You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
681 B
29 lines
681 B
package request
|
|
|
|
// Casbin info structure
|
|
type CasbinInfo struct {
|
|
Path string `json:"path"` // 路径
|
|
Method string `json:"method"` // 方法
|
|
}
|
|
|
|
// Casbin structure for input parameters
|
|
type CasbinInReceive struct {
|
|
AuthorityId uint `json:"authorityId"` // 权限id
|
|
CasbinInfos []CasbinInfo `json:"casbinInfos"`
|
|
}
|
|
|
|
type UpdateAuthorityRole struct {
|
|
AuthorityId uint `json:"authorityId"`
|
|
RoleId uint `json:"roleId"`
|
|
}
|
|
|
|
type AddAuthorityRole struct {
|
|
AuthorityId uint `json:"authorityId"`
|
|
RoleId uint `json:"roleId"`
|
|
}
|
|
|
|
type AddSubAccount struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Email string `json:"email"`
|
|
}
|
|
|