refact:openteam

This commit is contained in:
Sakurasan
2025-01-01 23:10:01 +08:00
parent 1f5e1c221c
commit 65d6d12972
18 changed files with 1126 additions and 106 deletions

17
team/consts/consts.go Normal file
View File

@@ -0,0 +1,17 @@
package consts
const (
RoleGuest = iota * 10
RoleUser
RoleAdmin
RoleSuperAdmin
)
const (
StatusEnabled = iota
StatusDisabled
StatusExpired // 过期
StatusExhausted // 耗尽
StatusDeleted
)
const UnlimitedQuota = -1