feat: 添加角色类型常量及用户主角色获取方法

This commit is contained in:
unclesam committed 2026-07-08 08:19:51 +08:00
1 parent c5977ce354
commit 20ad8115da
14 files changed
+123 -64

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ func ValidColumn(column string) bool {
var (
// CodeValidator is a validator for the "code" field. It is called by the builders before save.
CodeValidator func(string) error
CodeValidator func(int) error
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
)