feat: 添加角色类型常量及用户主角色获取方法
This commit is contained in:
1 parent
c5977ce354
commit
20ad8115da
14 files changed
+123
-64
No files matched your search
@@ -18,7 +18,7 @@ func init() {
|
||||
// roleDescCode is the schema descriptor for code field.
|
||||
roleDescCode := roleFields[0].Descriptor()
|
||||
// role.CodeValidator is a validator for the "code" field. It is called by the builders before save.
|
||||
role.CodeValidator = roleDescCode.Validators[0].(func(string) error)
|
||||
role.CodeValidator = roleDescCode.Validators[0].(func(int) error)
|
||||
// roleDescName is the schema descriptor for name field.
|
||||
roleDescName := roleFields[1].Descriptor()
|
||||
// role.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
|
||||
Reference in new issue
Block a user