|
@@ -64,6 +64,32 @@ func (this *SysRoleController) List() {
|
|
|
br.Data = resp
|
|
|
}
|
|
|
|
|
|
+// AllList
|
|
|
+// @Title 系统所有角色列表
|
|
|
+// @Description 系统所有角色列表
|
|
|
+// @Success 200 {object} response.SysRoleListResp
|
|
|
+// @router /allList [get]
|
|
|
+func (this *SysRoleController) AllList() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
+
|
|
|
+ list, err := models.GetSysRoleListNoPage()
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp := new(response.SysRoleListResp)
|
|
|
+ resp.List = list
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+}
|
|
|
+
|
|
|
// @Title 删除角色
|
|
|
// @Description 删除角色接口
|
|
|
// @Param request body system.SysRoleDeleteReq true "type json string"
|