Documentation ¶
Index ¶
- func GetPage(c *RoleController) int
- type LoginResult
- type Role
- type RoleController
- func (this *RoleController) AddlRole()
- func (this *RoleController) DeleteRole()
- func (this *RoleController) GetAllRole()
- func (this *RoleController) GetOneRole()
- func (this *RoleController) ResponseJson(httpCode, errCode int, data interface{})
- func (this *RoleController) URLMapping()
- func (this *RoleController) UpdateRole()
- type Roles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPage ¶
func GetPage(c *RoleController) int
Types ¶
type LoginResult ¶
type RoleController ¶
type RoleController struct {
beego.Controller
}
func (*RoleController) AddlRole ¶
func (this *RoleController) AddlRole()
@Summary 添加角色 @Tags 添加角色 @Description 添加角色 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /role [post]
func (*RoleController) DeleteRole ¶
func (this *RoleController) DeleteRole()
@Summary 删除角色 @Tags 删除角色 @Description 删除角色 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /role/:id [delete]
func (*RoleController) GetAllRole ¶
func (this *RoleController) GetAllRole()
@Summary 查询所有角色 @Tags 查询所有角色 @Description 查询所有角色 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /role [get]
func (*RoleController) GetOneRole ¶
func (this *RoleController) GetOneRole()
func (*RoleController) ResponseJson ¶
func (this *RoleController) ResponseJson(httpCode, errCode int, data interface{})
func (*RoleController) URLMapping ¶
func (this *RoleController) URLMapping()
func (*RoleController) UpdateRole ¶
func (this *RoleController) UpdateRole()
@Summary 修改角色信息 @Tags 修改角色信息 @Description 修改角色信息 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /role [put]