Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InviteCode ¶
type InviteCode struct { domain.Entity InviteCode string `gorm:"column:invite_code" json:"inviteCode"` UserId string `gorm:"column:user_id" json:"userId"` Channel string `gorm:"column:channel" json:"channel"` ExpireTime *time.Time `gorm:"column:expire_time" json:"expireTime,omitempty"` InviteLimit int64 `gorm:"column:invite_limit" json:"inviteLimit"` InvitedLimit int64 `gorm:"column:invited_limit" json:"invitedLimit"` }
func (*InviteCode) IsExpired ¶
func (c *InviteCode) IsExpired() bool
func (*InviteCode) TableName ¶
func (*InviteCode) TableName() string
type Organization ¶
type Organization struct { domain.Model Fid int64 `json:"fid" fid:"Id"` Name string `json:"name"` Status string `json:"status"` PathInfo string `json:"pathInfo"` Remark string `json:"remark,omitempty"` Leaf bool `gorm:"->" json:"leaf"` // 是否为叶子节点 Expand bool `gorm:"->" json:"expand"` NodeType string `gorm:"->" json:"nodeType"` Children []Organization `gorm:"-" json:"children,omitempty"` }
func (*Organization) TableName ¶
func (*Organization) TableName() string
type OrganizationMember ¶
type OrganizationMember struct { OrganizationUser Name string `gorm:"->" json:"name,omitempty"` Login string `gorm:"->" json:"login,omitempty"` Mobile string `gorm:"->" json:"mobile,omitempty"` Email string `gorm:"->" json:"email,omitempty"` Title string `gorm:"->" json:"title,omitempty"` OrganizationName string `gorm:"->" json:"organizationName,omitempty"` PositionName string `gorm:"->" json:"positionName,omitempty"` }
定义不同的查询结果返回的数据结构体
type OrganizationUser ¶
type OrganizationUser struct { domain.Relation OrganizationId int64 `gorm:"column:organization_id" json:"organizationId"` UserId string `gorm:"column:user_id" json:"userId"` PositionId *int64 `gorm:"column:position_id" json:"positionId"` Status int `gorm:"column:status;default:1" json:"status"` Remark string `json:"remark,omitempty"` }
type Role ¶
type Role struct { domain.DeletableEntity RoleInfo }
type RoleInfo ¶
type RoleInfo struct { Name string `gorm:"column:name" json:"name"` Title string `gorm:"column:title;default:null" json:"title,omitempty" i18n:"yes"` Description string `gorm:"column:description;default:null" json:"description,omitempty" i18n:"yes"` Scope string `gorm:"column:scope;default:TENANT" json:"scope,omitempty"` Includes string `gorm:"column:includes" json:"includes,omitempty"` Children []*Role `gorm:"-" json:"children,omitempty"` }
type RoleMember ¶
type RoleMember struct { RoleUser Name string `json:"name,omitempty"` Login string `json:"login,omitempty"` Mobile string `json:"mobile,omitempty"` Email string `json:"email,omitempty"` RoleName string `json:"roleName,omitempty"` }
定义不同的查询结果返回的数据结构体
type RoleUser ¶
type RoleUser struct { domain.Relation domain.TenantEnabled RoleId string `gorm:"column:role_id;primaryKey" json:"roleId"` UserId string `gorm:"column:user_id;primaryKey" json:"userId"` Status int `gorm:"column:status;default:1" json:"status"` Remark string `gorm:"column:remark;default:null" json:"remark,omitempty"` }
type SocialUser ¶
type SocialUser struct { domain.DeletableEntity social.SocialUser Roles []Role `gorm:"-" json:"roles,omitempty"` }
func (*SocialUser) SetSocialId ¶
func (u *SocialUser) SetSocialId(socialType string, socialId string) *SocialUser
func (*SocialUser) TableName ¶
func (u *SocialUser) TableName() string
type Tenant ¶
type Tenant struct { Id string `gorm:"column:id;primaryKey" json:"id" primaryKey:"yes"` Name string `gorm:"column:name" json:"name" i18n:"yes"` NameCn string `gorm:"column:name_cn;default:null" json:"nameCn,omitempty"` NameTw string `gorm:"column:name_tw;default:null" json:"nameTw,omitempty"` NameEn string `gorm:"column:name_en;default:null" json:"nameEn,omitempty"` Description string `gorm:"column:description;default:null" json:"description,omitempty"` Logo string `gorm:"column:logo;default:null" json:"logo,omitempty"` LicenseId string `gorm:"column:license_id;default:null" json:"licenseId,omitempty"` Address string `gorm:"column:address;default:null" json:"address,omitempty"` Telephone string `gorm:"column:telephone;default:null" json:"telephone,omitempty"` Fax string `gorm:"column:fax;default:null" json:"fax,omitempty"` Status int `gorm:"column:status;default:0" json:"status"` Remark string `gorm:"column:remark;default:null" json:"remark,omitempty"` CreatedTime time.Time `gorm:"column:created_time;autoCreateTime" json:"createdTime"` LastModifiedTime time.Time `gorm:"column:last_modified_time;autoUpdateTime" json:"lastModifiedTime"` CreatedBy string `gorm:"column:created_by" json:"createdBy,omitempty"` LastModifiedBy string `gorm:"column:last_modified_by" json:"lastModifiedBy,omitempty"` DelFlag bool `gorm:"column:del_flag;default:false" json:"delFlag"` DeletedTime time.Time `gorm:"column:deleted_time;autoUpdateTime" json:"deleted_time,omitempty"` DeletedBy string `gorm:"column:deleted_by;default:null" json:"deleted_by,omitempty"` }
type User ¶
type User struct { domain.DeletableEntity UserInfo Password string `gorm:"column:password" json:"-"` Admin bool `gorm:"column:admin;default:false" json:"admin"` Roles []Role `gorm:"many2many:sys_role_user;" json:"roles,omitempty"` /* 角色 */ InviteCode string `gorm:"-" json:"inviteCode,omitempty"` /* 邀请码 */ Tenant *Tenant `gorm:"->" json:"tenant,omitempty"` /* 所在企业ID */ }
func (*User) SetPassword ¶
type UserInfo ¶
type UserInfo struct { Login *string `gorm:"column:login" json:"login,omitempty"` Mobile *string `gorm:"column:mobile" json:"mobile,omitempty"` Email *string `gorm:"column:email" json:"email,omitempty"` Name *string `gorm:"column:name" json:"name,omitempty" i18n:"yes"` Status *int `gorm:"column:status" json:"status"` Avatar *string `gorm:"column:avatar" json:"avatar,omitempty"` Remark *string `gorm:"column:remark" json:"remark,omitempty"` InviterId *string `gorm:"column:inviter_id" json:"inviterId,omitempty"` LoginTimes int `gorm:"column:login_times;default:0" json:"loginTimes"` LastLoginTime *time.Time `gorm:"column:last_login_time" json:"lastLoginTime,omitempty"` LastLoginIp *string `gorm:"column:last_login_ip" json:"lastLoginIp,omitempty"` }
type UserWithOrganization ¶
Click to show internal directories.
Click to hide internal directories.