Documentation
¶
Overview ¶
ent/schema/casbin_rule.go
ent/schema/role.go
ent/schema/user_role.go
Index ¶
Constants ¶
View Source
const ( DefaultLanguage = "en" DefaultTimezone = "Asia/Shanghai" )
Variables ¶
View Source
var ( EmailRegex = regexp.MustCompile(`^[^\s@]+@[^\s@]+\.[^\s@]+$`) // 基本 email 格式校验 PhoneRegex = regexp.MustCompile(`^\+[1-9]\d{1,14}$`) // E.164 国际手机号格式,例如 +8613812345678 LanguageRegex = regexp.MustCompile(`^(en|zh|fr|es|de|ja|ko)$`) )
Functions ¶
func IsValidTimeZone ¶
Types ¶
type CasbinRule ¶
func (CasbinRule) Fields ¶
func (CasbinRule) Fields() []ent.Field
func (CasbinRule) Indexes ¶
func (CasbinRule) Indexes() []ent.Index
type Department ¶
func (Department) Annotations ¶
func (Department) Annotations() []schema.Annotation
func (Department) Edges ¶
func (Department) Edges() []ent.Edge
func (Department) Fields ¶
func (Department) Fields() []ent.Field
func (Department) Indexes ¶
func (Department) Indexes() []ent.Index
type Role ¶
func (Role) Annotations ¶
func (Role) Annotations() []schema.Annotation
type Tenant ¶
func (Tenant) Annotations ¶
func (Tenant) Annotations() []schema.Annotation
type User ¶
User holds the schema definition for the User entity.
func (User) Annotations ¶
func (User) Annotations() []schema.Annotation
type UserAccount ¶
UserAccounts holds the schema definition for the UserAccounts entity.
func (UserAccount) Annotations ¶
func (UserAccount) Annotations() []schema.Annotation
func (UserAccount) Indexes ¶
func (UserAccount) Indexes() []ent.Index
type UserDepartment ¶
func (UserDepartment) Annotations ¶
func (UserDepartment) Annotations() []schema.Annotation
func (UserDepartment) Edges ¶
func (UserDepartment) Edges() []ent.Edge
func (UserDepartment) Fields ¶
func (UserDepartment) Fields() []ent.Field
func (UserDepartment) Indexes ¶
func (UserDepartment) Indexes() []ent.Index
type UserRole ¶
func (UserRole) Annotations ¶
func (UserRole) Annotations() []schema.Annotation
type UserTenant ¶
func (UserTenant) Annotations ¶
func (UserTenant) Annotations() []schema.Annotation
func (UserTenant) Edges ¶
func (UserTenant) Edges() []ent.Edge
func (UserTenant) Fields ¶
func (UserTenant) Fields() []ent.Field
func (UserTenant) Indexes ¶
func (UserTenant) Indexes() []ent.Index
Click to show internal directories.
Click to hide internal directories.