This commit is contained in:
aozhiwei 2024-08-03 19:04:27 +08:00
parent 030c41ceff
commit 3a78cfe230

View File

@ -15,13 +15,10 @@ type Permission struct {
} }
type PermissionTable struct { type PermissionTable struct {
f5.CustomMetaTable
accountPermission *q5.ConcurrentMap[string, *Permission] accountPermission *q5.ConcurrentMap[string, *Permission]
} }
func (this *PermissionTable) IsNoLoad() bool {
return false
}
func (this *PermissionTable) Load() { func (this *PermissionTable) Load() {
this.accountPermission = new(q5.ConcurrentMap[string, *Permission]) this.accountPermission = new(q5.ConcurrentMap[string, *Permission])
{ {
@ -88,18 +85,6 @@ func (this *PermissionTable) Load() {
} }
} }
func (this *PermissionTable) PreInit1() {
}
func (this *PermissionTable) ElementsInit(int) {
}
func (this *PermissionTable) PostInit1() {
}
func (this *PermissionTable) CheckAPIPermission(account string, cmd string) bool { func (this *PermissionTable) CheckAPIPermission(account string, cmd string) bool {
if account == "" || cmd == "" { if account == "" || cmd == "" {
return false return false