entity

package
v0.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 2 Imported by: 1

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"`
}

func (Group) IdName

func (Group) IdName() string

func (Group) KeyName

func (Group) KeyName() string

func (Group) TableName

func (Group) TableName() string

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"`
}

func (Resource) IdName

func (Resource) IdName() string

func (Resource) KeyName

func (Resource) KeyName() string

func (Resource) TableName

func (Resource) TableName() string

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"`
}

func (Role) IdName

func (Role) IdName() string

func (Role) KeyName

func (Role) KeyName() string

func (Role) TableName

func (Role) TableName() string

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"`
}

func (User) IdName

func (User) IdName() string

func (User) KeyName

func (User) KeyName() string

func (User) TableName

func (User) TableName() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL