Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(context controller.Context, input CreateParams) (res schema.Response)
- func CreateRouter(context *gin.Context)
- func Delete(context controller.Context, roleName string) (res schema.Response)
- func DeleteRoleByName(name string)
- func DeleteRouter(context *gin.Context)
- func Get(roleName string) (res schema.Response)
- func GetAccession() (res schema.Response)
- func GetAccessionRouter(context *gin.Context)
- func GetList(context controller.Context, input Query) (res schema.List)
- func GetListRouter(context *gin.Context)
- func GetRouter(context *gin.Context)
- func Update(context controller.Context, roleName string, input UpdateParams) (res schema.Response)
- func UpdateRouter(context *gin.Context)
- func UpdateUserRole(context controller.Context, userId string, input UpdateUserRoleParams) (res schema.Response)
- func UpdateUserRoleRouter(context *gin.Context)
- type CreateParams
- type Query
- type UpdateParams
- type UpdateUserRoleParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(context controller.Context, input CreateParams) (res schema.Response)
func CreateRouter ¶
func DeleteRoleByName ¶
func DeleteRoleByName(name string)
func DeleteRouter ¶
func GetAccession ¶
func GetAccessionRouter ¶
func GetListRouter ¶
func Update ¶
func Update(context controller.Context, roleName string, input UpdateParams) (res schema.Response)
func UpdateRouter ¶
func UpdateUserRole ¶
func UpdateUserRole(context controller.Context, userId string, input UpdateUserRoleParams) (res schema.Response)
func UpdateUserRoleRouter ¶
Types ¶
type CreateParams ¶
type UpdateParams ¶
type UpdateUserRoleParams ¶
type UpdateUserRoleParams struct {
Roles []string `json:"role"` // 要更新的用户角色
}
Click to show internal directories.
Click to hide internal directories.