Documentation
¶
Index ¶
- Variables
- func FieldNameNormalize(name string) string
- type AuditMixin
- type AuthProviders
- type Credentials
- type Demo
- type DepartmentRoles
- type Departments
- type GroupRoles
- type Groups
- type Permissions
- type Policies
- type Resources
- type RolePermissions
- type Roles
- type TimeMixin
- type TimeMixinWithoutDeleted
- type UserDepartments
- type UserGroups
- type UserIdentities
- type UserProfiles
- type UserRoles
- type Users
Constants ¶
This section is empty.
Variables ¶
var ( // URLRegex 验证 URL 格式的正则表达式,支持 http:// 和 https:// // 匹配格式: http://example.com, https://example.com/path, example.com/path URLRegex = regexp.MustCompile(`^(https?://)?([\da-z\.-]+)\.([a-z\.]{2,6})([/\w \.-]*)*/?$`) )
Functions ¶
func FieldNameNormalize ¶
FieldNameNormalize 移除字段名末尾的 "_encrypted", "_hash" 使其与 proto 等定义一致
Types ¶
type AuditMixin ¶
AuditMixin 创建或更新人员属性
type AuthProviders ¶
AuthProviders holds the schema definition for the Demo entity.
func (AuthProviders) Annotations ¶
func (AuthProviders) Annotations() []schema.Annotation
Annotations 自定义表名
type Credentials ¶
Credentials holds the schema definition for the Credentials entity.
func (Credentials) Annotations ¶
func (Credentials) Annotations() []schema.Annotation
Annotations 自定义表名
type DepartmentRoles ¶
DepartmentRoles 角色关联的菜单项
func (DepartmentRoles) Annotations ¶
func (DepartmentRoles) Annotations() []schema.Annotation
Annotations 自定义表名
type Departments ¶
Departments 组织架构部门管理
func (Departments) Annotations ¶
func (Departments) Annotations() []schema.Annotation
Annotations 自定义表名
type GroupRoles ¶
GroupRoles 角色与用户组的关系
func (GroupRoles) Annotations ¶
func (GroupRoles) Annotations() []schema.Annotation
Annotations 自定义表名
type Permissions ¶
Permissions 组下关联的具体用户
func (Permissions) Annotations ¶
func (Permissions) Annotations() []schema.Annotation
Annotations 自定义表名
type RolePermissions ¶
RolePermissions holds the schema definition for the RolePermissions entity.
func (RolePermissions) Annotations ¶
func (RolePermissions) Annotations() []schema.Annotation
Annotations 自定义表名
type TimeMixinWithoutDeleted ¶
TimeMixinWithoutDeleted xx
func (TimeMixinWithoutDeleted) Fields ¶
func (TimeMixinWithoutDeleted) Fields() []ent.Field
Fields xx
type UserDepartments ¶
UserDepartments holds the schema definition for the Demo entity.
func (UserDepartments) Annotations ¶
func (UserDepartments) Annotations() []schema.Annotation
Annotations 自定义表名
type UserGroups ¶
UserGroups 组下关联的具体用户
func (UserGroups) Annotations ¶
func (UserGroups) Annotations() []schema.Annotation
Annotations 自定义表名
type UserIdentities ¶
UserIdentities 存储通过 OIDC 等社交登录的用户信息
func (UserIdentities) Annotations ¶
func (UserIdentities) Annotations() []schema.Annotation
Annotations 自定义表名
type UserProfiles ¶
UserProfiles 用于存储用户的扩展属性信息
func (UserProfiles) Annotations ¶
func (UserProfiles) Annotations() []schema.Annotation
Annotations 自定义表名