Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserStatus_Enabled string = "Enabled" UserStatus_Expired string = "Expired" UserStatus_Locked string = "Locked" UserStatus_Disabled string = "Disabled" UserStatus_Discarded string = "Discarded" )
View Source
const ( AuthenticateStatus_Success string = "Success" AuthenticateStatus_Expired string = "Expired" AuthenticateStatus_NotMatch string = "NotMatch" AuthenticateStatus_NotExist string = "NotExist" AuthenticateStatus_Locked string = "Locked" AuthenticateStatus_NoPassword string = "NoPassword" )
*
- The enum Temp password authenticate status.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { entity.StatusEntity `xorm:"extends"` GroupId string `xorm:"varchar(255)" json:"groupId,omitempty"` UserId string `xorm:"varchar(255)" json:"userId,omitempty"` LoginName string `xorm:"varchar(255)" json:"loginName,omitempty"` RoleId string `xorm:"varchar(255)" json:"roleId,omitempty"` RoleName string `xorm:"varchar(255)" json:"roleName,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` }
type Permission ¶
type Permission struct { entity.StatusEntity `xorm:"extends"` ActorId string `xorm:"varchar(255)" json:"actorId,omitempty"` ActorType string `xorm:"varchar(255)" json:"actorType,omitempty"` ActorKind string `xorm:"varchar(255)" json:"actorKind,omitempty"` ResourceId string `xorm:"varchar(255)" json:"resourceId,omitempty"` ResourceType string `xorm:"varchar(255)" json:"resourceType,omitempty"` ResourceKind string `xorm:"varchar(255)" json:"resourceKind,omitempty"` ResourceName string `xorm:"varchar(255)" json:"resourceName,omitempty"` ResourcePath string `xorm:"varchar(255)" json:"resourcePath,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` AccessMode string `xorm:"varchar(255)" json:"accessMode,omitempty"` Priority int64 `json:"priority,omitempty"` Path string `xorm:"varchar(255)" json:"path,omitempty"` Value string `xorm:"varchar(255)" json:"value,omitempty"` }
func (Permission) IdName ¶
func (Permission) IdName() string
func (Permission) KeyName ¶
func (Permission) KeyName() string
func (Permission) TableName ¶
func (Permission) TableName() string
type Resource ¶
type Resource struct { entity.StatusEntity `xorm:"extends"` ResourceId string `xorm:"varchar(255)" json:"resourceId,omitempty"` ResourceType string `xorm:"varchar(255)" json:"resourceTypeResourceType,omitempty"` Name string `xorm:"varchar(255)" json:"name,omitempty"` Path string `xorm:"varchar(255)" json:"path,omitempty"` ParentId string `xorm:"varchar(255)" json:"parentId,omitempty"` Value string `xorm:"varchar(255)" json:"value,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` AccessMode string `xorm:"varchar(255)" json:"accessMode,omitempty"` Priority int64 `json:"priority,omitempty"` OwnedStructureId string `xorm:"varchar(255)" json:"ownedStructureId,omitempty"` OwnedStructureName string `xorm:"varchar(255)" json:"ownedStructureName,omitempty"` OwnedStructurePath string `xorm:"varchar(255)" json:"ownedStructurePath,omitempty"` }
type Role ¶
type Role struct { entity.StatusEntity `xorm:"extends"` RoleId string `xorm:"varchar(255)" json:"roleId,omitempty"` Kind string `xorm:"varchar(255)" json:"kind,omitempty"` Name string `xorm:"varchar(255)" json:"name,omitempty"` Label string `xorm:"varchar(255)" json:"label,omitempty"` ParentId string `xorm:"varchar(255)" json:"parentId,omitempty"` Description string `xorm:"varchar(255)" json:"description,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` DefaultPage string `xorm:"varchar(255)" json:"defaultPage,omitempty"` OwnedStructureId string `xorm:"varchar(255)" json:"ownedStructureId,omitempty"` OwnedStructureName string `xorm:"varchar(255)" json:"ownedStructureName,omitempty"` OwnedStructurePath string `xorm:"varchar(255)" json:"ownedStructurePath,omitempty"` }
type User ¶
type User struct { entity.StatusEntity `xorm:"extends"` UserId string `xorm:"varchar(255)" json:"userId,omitempty"` NickName string `xorm:"varchar(255)" json:"nickName,omitempty"` UserName string `xorm:"varchar(255)" json:"userName,omitempty"` Name string `xorm:"varchar(255)" json:"name,omitempty"` Password string `xorm:"varchar(255)" json:"-,omitempty"` PlainPassword string `xorm:"-" json:"plainPassword,omitempty"` ConfirmPassword string `xorm:"-" json:"confirmPassword,omitempty"` PublicKey string `xorm:"varchar(2048)" json:"publicKey,omitempty"` SecurityContext string `xorm:"varchar(255)" json:"securityContext,omitempty"` Description string `xorm:"varchar(255)" json:"description,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` Email string `xorm:"varchar(255)" json:"email,omitempty"` IdentifyType string `xorm:"varchar(255)" json:"identifyType,omitempty"` IdentifyNumber string `xorm:"varchar(255)" json:"identifyNumber,omitempty"` Mobile string `xorm:"varchar(255)" json:"mobile,omitempty"` OwnedStructureId string `xorm:"varchar(255)" json:"ownedStructureIdownedStructureId,omitempty"` OwnedStructureName string `xorm:"varchar(255)" json:"ownedStructureName,omitempty"` OwnedStructurePath string `xorm:"varchar(255)" json:"ownedStructurePath,omitempty"` EmployeeId string `xorm:"varchar(255)" json:"employeeId,omitempty"` IpAddress string `xorm:"varchar(255)" json:"ipAddress,omitempty"` WechatId string `xorm:"varchar(255)" json:"wechatId,omitempty"` Avatar string `xorm:"varchar(4096)" json:"avatar,omitempty"` Roles string `xorm:"-" json:"roles,omitempty"` }
type UserProfile ¶
type UserProfile struct { entity.StatusEntity `xorm:"extends"` UserId string `xorm:"varchar(255)" json:"userId,omitempty"` UserType string `xorm:"varchar(255)" json:"userType,omitempty"` LastLoginDate *time.Time `json:"lastLoginDate,omitempty"` LoginCount int64 `json:"loginCount,omitempty"` EmailUser string `xorm:"varchar(255)" json:"emailUser,omitempty"` EmailPassword string `xorm:"varchar(255)" json:"emailPassword,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` RegisterIp string `xorm:"varchar(255)" json:"registerIp,omitempty"` RegisterSource string `xorm:"varchar(255)" json:"registerSource,omitempty"` DefaultPage string `xorm:"varchar(255)" json:"defaultPage,omitempty"` TempPassword string `xorm:"varchar(255)" json:"tempPassword,omitempty"` TempPasswordTime *time.Time `json:"tempPasswordTime,omitempty"` TempPasswordCount int64 `json:"tempPasswordCount,omitempty"` ActiveStatus string `xorm:"varchar(255)" json:"activeStatus,omitempty"` }
func (UserProfile) IdName ¶
func (UserProfile) IdName() string
func (UserProfile) KeyName ¶
func (UserProfile) KeyName() string
func (UserProfile) TableName ¶
func (UserProfile) TableName() string
Click to show internal directories.
Click to hide internal directories.