检查点:保留账号分组隔离实现,继续权限复审
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-25 21:46:42 +08:00
1 parent 9be7a6f990
commit fcbcf91d66
23 files changed
+811 -81

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package models
// AccountGroup 是账号管理分组,与邮箱文件夹分开;编号零为隐式默认分组。
type AccountGroup struct {
ID int `xorm:"id pk autoincr" json:"id"`
Name string `xorm:"varchar(64) notnull unique" json:"name"`
}
func (AccountGroup) TableName() string { return "account_group" }
type AccountGroupMember struct {
UserID int `xorm:"user_id pk" json:"user_id"`
GroupID int `xorm:"group_id pk" json:"group_id"`
}
func (AccountGroupMember) TableName() string { return "account_group_member" }