获取用户菜单列表,新增医生管理

This commit is contained in:
wucongxing 2023-07-03 15:39:15 +08:00
parent 28df69f9e2
commit d6597048ec
2 changed files with 1 additions and 2 deletions

View File

@ -268,7 +268,6 @@ func (b *User) LoginOut(c *gin.Context) {
// GetUserMenuList 获取用户菜单列表
func (r *User) GetUserMenuList(c *gin.Context) {
fmt.Println(1111111)
roleId := c.GetInt64("RoleId")
if roleId == 0 {
responses.Fail(c)

View File

@ -139,7 +139,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
userGroup.PUT("loginout", api.User.LoginOut)
// 获取用户菜单列表
userGroup.GET("/menu", api.User.GetUserPage)
userGroup.GET("/menu", api.User.GetUserMenuList)
}
// 接口