1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| package controllers
|
| import (
| "basic.com/dbapi.git"
| "github.com/gin-gonic/gin"
| "webserver/extend/code"
| "webserver/extend/util"
| )
|
| type RoleController struct {
|
| }
|
| // @Security ApiKeyAuth
| // @Summary 查找角色列表
| // @Description 查找角色列表
| // @Tags 系统角色
| // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
| // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
| // @Router /data/api-v/role/findAll [get]
| func (rc RoleController) FindAll(c *gin.Context) {
| var api dbapi.SysRoleApi
| b,d := api.FindAll()
| if b {
| util.ResponseFormat(c,code.Success,d)
| } else {
| util.ResponseFormat(c,code.ComError,"")
| }
| }
|
|