aa
This commit is contained in:
@@ -79,12 +79,13 @@ func (c *PowerController) AddRole() {
|
||||
// @Title 查询角色
|
||||
// @Description 查询角色
|
||||
// @Param token header string true "认证token"
|
||||
// @Param name query string false "角色名"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetRole [get]
|
||||
func (c *PowerController) GetRole() {
|
||||
c.callGetRole(func(params *tPowerGetRoleParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.GetRole(params.Ctx)
|
||||
retVal, err = cms.GetRole(params.Ctx, params.Name)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user