From 3a78cfe2302a7481e2b27b88b80a479d1f06cb3d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 3 Aug 2024 19:04:27 +0800 Subject: [PATCH] 1 --- server/adminserver/mt/Permission.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/server/adminserver/mt/Permission.go b/server/adminserver/mt/Permission.go index 15605930..facaef32 100644 --- a/server/adminserver/mt/Permission.go +++ b/server/adminserver/mt/Permission.go @@ -15,13 +15,10 @@ type Permission struct { } type PermissionTable struct { + f5.CustomMetaTable accountPermission *q5.ConcurrentMap[string, *Permission] } -func (this *PermissionTable) IsNoLoad() bool { - return false -} - func (this *PermissionTable) Load() { 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 { if account == "" || cmd == "" { return false