45 lines
736 B
Go
45 lines
736 B
Go
package authmeta
|
|
|
|
type TenantItem struct {
|
|
Name string
|
|
Type string
|
|
Code string
|
|
}
|
|
|
|
type ScopeItem struct {
|
|
Name string
|
|
Type string
|
|
Code string
|
|
}
|
|
|
|
type PrivilegeItem struct {
|
|
Name string
|
|
Type string
|
|
Code string
|
|
Children []PrivilegeItem
|
|
}
|
|
|
|
// (comment:(?<name>.+)){0}" json.*`$
|
|
type RoleItem struct {
|
|
Name string
|
|
Code string
|
|
UserType string
|
|
Desc string
|
|
PrivilegeResource []string
|
|
PrivilegeInterface []string
|
|
}
|
|
|
|
type AdminUser struct {
|
|
Username string
|
|
Channel string
|
|
ChannelCode string
|
|
Nickname string
|
|
Desc string
|
|
State int32
|
|
Password string
|
|
PassCipher string
|
|
PassSalt string
|
|
ExtID string
|
|
Roles []string
|
|
}
|