first commit

This commit is contained in:
Yangtao
2025-11-18 17:48:20 +08:00
commit 6e56cab848
196 changed files with 65809 additions and 0 deletions

46
pkg/authmeta/rbac.go Normal file
View File

@ -0,0 +1,46 @@
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
}