优化结构

This commit is contained in:
Yvan
2026-08-24 21:50:33 +08:00
parent d3c20c578f
commit 969afee284
20 changed files with 497 additions and 244 deletions
+5
View File
@@ -5,6 +5,11 @@ import (
"time"
)
// SuperAdminAuthorityID is the seeded super-administrator role created by the
// bootstrap data in internal/data/system/seed.go. It is the fallback authority
// for new users and the recipient group for system-wide alerts.
const SuperAdminAuthorityID uint = 888
type AuthorityAccessRepo interface {
CreateAuthority(context.Context, *Authority) error
CopyAuthority(context.Context, uint, *Authority) error