Discover Packages
github.com/lishimeng/auth
internal
api
authRoleApi
package
Version:
v0.0.0-...-7dcfe9a
Opens a new window with list of versions in this module.
Published: Mar 10, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Add(ctx iris.Context)
func Del(ctx iris.Context)
func DelUserRole(ctx iris.Context)
func GetRoleList(ctx iris.Context)
获取角色列表
type AuthRoleReq struct {
Uid int `json:"uid"`
Rid int `json:"rid"`
}
type AuthRoleResp struct {
app.Response
}
type RespRoleInfo struct {
Id int `json:"id,omitempty"`
RoleName string `json:"roleName,omitempty"`
RoleDescription string `json:"roleDesc,omitempty"`
Status int `json:"status,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.