用户添加全新啊

This commit is contained in:
苏尹岚
2020-09-28 10:43:48 +08:00
parent 58e6775125
commit 98c0b852af
3 changed files with 17 additions and 11 deletions

View File

@@ -32,12 +32,13 @@ func (c *PowerController) AddMenu() {
// @Title 查询功能(菜单)
// @Description 查询功能(菜单)
// @Param token header string true "认证token"
// @Param userID query string false "用户ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetMenu [get]
func (c *PowerController) GetMenu() {
c.callGetMenu(func(params *tPowerGetMenuParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetMenu(params.Ctx)
retVal, err = cms.GetMenu(params.Ctx, params.UserID)
return retVal, "", err
})
}