Documentation ¶
Index ¶
- type TSysUser
- func (entity *TSysUser) AutoMigrate(db *gorm.DB) error
- func (entity *TSysUser) GetCorpId() int32
- func (entity *TSysUser) GetCreateBy() int32
- func (entity *TSysUser) GetCreateOn() model.LocalDateInt
- func (entity *TSysUser) GetEmail() string
- func (entity *TSysUser) GetEmployeeId() int32
- func (entity *TSysUser) GetExtParams() string
- func (entity *TSysUser) GetId() int32
- func (entity *TSysUser) GetMobileNo() string
- func (entity *TSysUser) GetOpBy() int32
- func (entity *TSysUser) GetOpOn() model.LocalDateInt
- func (entity *TSysUser) GetOrgId() int32
- func (entity *TSysUser) GetPasswd() string
- func (entity *TSysUser) GetRealname() string
- func (entity *TSysUser) GetRemark() string
- func (entity *TSysUser) GetStatus() int8
- func (entity *TSysUser) GetUsername() string
- func (entity *TSysUser) Ini(iniPk bool) *TSysUser
- func (entity *TSysUser) IniNil(iniPk bool) *TSysUser
- func (entity *TSysUser) SetCorpId(CorpId int32)
- func (entity *TSysUser) SetCreateBy(CreateBy int32)
- func (entity *TSysUser) SetCreateOn(CreateOn model.LocalDateInt)
- func (entity *TSysUser) SetEmail(Email string)
- func (entity *TSysUser) SetEmployeeId(EmployeeId int32)
- func (entity *TSysUser) SetExtParams(ExtParams string)
- func (entity *TSysUser) SetId(Id int32)
- func (entity *TSysUser) SetMobileNo(MobileNo string)
- func (entity *TSysUser) SetOpBy(OpBy int32)
- func (entity *TSysUser) SetOpOn(OpOn model.LocalDateInt)
- func (entity *TSysUser) SetOrgId(OrgId int32)
- func (entity *TSysUser) SetPasswd(Passwd string)
- func (entity *TSysUser) SetRealname(Realname string)
- func (entity *TSysUser) SetRemark(Remark string)
- func (entity *TSysUser) SetStatus(Status int8)
- func (entity *TSysUser) SetUsername(Username string)
- func (entity *TSysUser) String() string
- func (*TSysUser) TableName() string
- func (entity *TSysUser) ToString() string
- func (entity *TSysUser) Unmarshal(body string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TSysUser ¶
type TSysUser struct { // TSysUserBase // ModelBase /* 主键 */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY" json:"id"` /* 工号 */ Username *string `gorm:"column:username;type:varchar(32)" json:"username"` /* 密码 */ Passwd *string `gorm:"column:passwd;type:varchar(64)" json:"passwd"` /* */ Realname *string `gorm:"column:realname;type:varchar(128)" json:"realname"` /* 企业ID */ CorpId *int32 `gorm:"column:corp_id;type:int(11)" json:"corpId"` /* 组织结构ID */ OrgId *int32 `gorm:"column:org_id;type:int(11)" json:"orgId"` /* */ MobileNo *string `gorm:"column:mobile_no;type:varchar(32)" json:"mobileNo"` /* 公司邮箱 */ Email *string `gorm:"column:email;type:varchar(255)" json:"email"` /* 状态(1:启用;0:停用) */ Status *int8 `gorm:"column:status;type:tinyint(4)" json:"status"` /* 备注 */ Remark *string `gorm:"column:remark;type:varchar(500)" json:"remark"` /* 创建人 */ CreateBy *int32 `gorm:"column:create_by;type:int(11)" json:"createBy"` /* 创建时间 */ CreateOn *model.LocalDateInt `gorm:"column:create_on;type:datetime" json:"createOn"` /* 操作人 */ OpBy *int32 `gorm:"column:op_by;type:int(11)" json:"opBy"` /* 操作时间 */ OpOn *model.LocalDateInt `gorm:"column:op_on;type:datetime" json:"opOn"` /* 扩展属性 */ ExtParams *string `gorm:"column:ext_params;type:varchar(1000)" json:"extParams"` /* 员工标识 */ EmployeeId *int32 `gorm:"column:employee_id;type:int(11)" json:"employeeId"` }
指定扩展结结构,单独存文件。生成时不会覆盖:
type TSysUserBase struct {ModelBase}
系统用户表
func (*TSysUser) GetCreateBy ¶
func (*TSysUser) GetCreateOn ¶
func (entity *TSysUser) GetCreateOn() model.LocalDateInt
func (*TSysUser) GetEmployeeId ¶
func (*TSysUser) GetExtParams ¶
func (*TSysUser) GetMobileNo ¶
func (*TSysUser) GetOpOn ¶
func (entity *TSysUser) GetOpOn() model.LocalDateInt
func (*TSysUser) GetRealname ¶
func (*TSysUser) GetUsername ¶
func (*TSysUser) SetCreateBy ¶
func (*TSysUser) SetCreateOn ¶
func (entity *TSysUser) SetCreateOn(CreateOn model.LocalDateInt)
func (*TSysUser) SetEmployeeId ¶
func (*TSysUser) SetExtParams ¶
func (*TSysUser) SetMobileNo ¶
func (*TSysUser) SetOpOn ¶
func (entity *TSysUser) SetOpOn(OpOn model.LocalDateInt)
func (*TSysUser) SetRealname ¶
func (*TSysUser) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.