获取用户菜单列表,新增医生管理
This commit is contained in:
parent
28df69f9e2
commit
d6597048ec
@ -268,7 +268,6 @@ func (b *User) LoginOut(c *gin.Context) {
|
|||||||
|
|
||||||
// GetUserMenuList 获取用户菜单列表
|
// GetUserMenuList 获取用户菜单列表
|
||||||
func (r *User) GetUserMenuList(c *gin.Context) {
|
func (r *User) GetUserMenuList(c *gin.Context) {
|
||||||
fmt.Println(1111111)
|
|
||||||
roleId := c.GetInt64("RoleId")
|
roleId := c.GetInt64("RoleId")
|
||||||
if roleId == 0 {
|
if roleId == 0 {
|
||||||
responses.Fail(c)
|
responses.Fail(c)
|
||||||
|
|||||||
@ -139,7 +139,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
|||||||
userGroup.PUT("loginout", api.User.LoginOut)
|
userGroup.PUT("loginout", api.User.LoginOut)
|
||||||
|
|
||||||
// 获取用户菜单列表
|
// 获取用户菜单列表
|
||||||
userGroup.GET("/menu", api.User.GetUserPage)
|
userGroup.GET("/menu", api.User.GetUserMenuList)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 接口
|
// 接口
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user