Documentation
¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(c helper.Context, input CreateParams) (res schema.Response)
- func CreateRouter(c *gin.Context)
- func Delete(c helper.Context, roleName string) (res schema.Response)
- func DeleteRoleByName(name string)
- func DeleteRouter(c *gin.Context)
- func Get(roleName string) (res schema.Response)
- func GetAccession() (res schema.Response)
- func GetAccessionRouter(c *gin.Context)
- func GetList(c helper.Context, input Query) (res schema.List)
- func GetListRouter(c *gin.Context)
- func GetRouter(c *gin.Context)
- func Update(c helper.Context, roleName string, input UpdateParams) (res schema.Response)
- func UpdateRouter(c *gin.Context)
- func UpdateUserRole(c helper.Context, userId string, input UpdateUserRoleParams) (res schema.Response)
- func UpdateUserRoleRouter(c *gin.Context)
- type CreateParams
- type Query
- type UpdateParams
- type UpdateUserRoleParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func DeleteRoleByName ¶
func DeleteRoleByName(name string)
func DeleteRouter ¶
func GetAccession ¶
func GetAccessionRouter ¶
func GetListRouter ¶
func UpdateRouter ¶
func UpdateUserRole ¶
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.