model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) AutoMigrate

func (entity *TSysUser) AutoMigrate(db *gorm.DB) error

func (*TSysUser) GetCorpId

func (entity *TSysUser) GetCorpId() int32

func (*TSysUser) GetCreateBy

func (entity *TSysUser) GetCreateBy() int32

func (*TSysUser) GetCreateOn

func (entity *TSysUser) GetCreateOn() model.LocalDateInt

func (*TSysUser) GetEmail

func (entity *TSysUser) GetEmail() string

func (*TSysUser) GetEmployeeId

func (entity *TSysUser) GetEmployeeId() int32

func (*TSysUser) GetExtParams

func (entity *TSysUser) GetExtParams() string

func (*TSysUser) GetId

func (entity *TSysUser) GetId() int32

func (*TSysUser) GetMobileNo

func (entity *TSysUser) GetMobileNo() string

func (*TSysUser) GetOpBy

func (entity *TSysUser) GetOpBy() int32

func (*TSysUser) GetOpOn

func (entity *TSysUser) GetOpOn() model.LocalDateInt

func (*TSysUser) GetOrgId

func (entity *TSysUser) GetOrgId() int32

func (*TSysUser) GetPasswd

func (entity *TSysUser) GetPasswd() string

func (*TSysUser) GetRealname

func (entity *TSysUser) GetRealname() string

func (*TSysUser) GetRemark

func (entity *TSysUser) GetRemark() string

func (*TSysUser) GetStatus

func (entity *TSysUser) GetStatus() int8

func (*TSysUser) GetUsername

func (entity *TSysUser) GetUsername() string

func (*TSysUser) Ini

func (entity *TSysUser) Ini(iniPk bool) *TSysUser

iniPk bool:是否初始化主键Id

func (*TSysUser) IniNil

func (entity *TSysUser) IniNil(iniPk bool) *TSysUser

iniPk bool:是否初始化主键Id 初始化空指针

func (*TSysUser) SetCorpId

func (entity *TSysUser) SetCorpId(CorpId int32)

func (*TSysUser) SetCreateBy

func (entity *TSysUser) SetCreateBy(CreateBy int32)

func (*TSysUser) SetCreateOn

func (entity *TSysUser) SetCreateOn(CreateOn model.LocalDateInt)

func (*TSysUser) SetEmail

func (entity *TSysUser) SetEmail(Email string)

func (*TSysUser) SetEmployeeId

func (entity *TSysUser) SetEmployeeId(EmployeeId int32)

func (*TSysUser) SetExtParams

func (entity *TSysUser) SetExtParams(ExtParams string)

func (*TSysUser) SetId

func (entity *TSysUser) SetId(Id int32)

func (*TSysUser) SetMobileNo

func (entity *TSysUser) SetMobileNo(MobileNo string)

func (*TSysUser) SetOpBy

func (entity *TSysUser) SetOpBy(OpBy int32)

func (*TSysUser) SetOpOn

func (entity *TSysUser) SetOpOn(OpOn model.LocalDateInt)

func (*TSysUser) SetOrgId

func (entity *TSysUser) SetOrgId(OrgId int32)

func (*TSysUser) SetPasswd

func (entity *TSysUser) SetPasswd(Passwd string)

func (*TSysUser) SetRealname

func (entity *TSysUser) SetRealname(Realname string)

func (*TSysUser) SetRemark

func (entity *TSysUser) SetRemark(Remark string)

func (*TSysUser) SetStatus

func (entity *TSysUser) SetStatus(Status int8)

func (*TSysUser) SetUsername

func (entity *TSysUser) SetUsername(Username string)

func (*TSysUser) String

func (entity *TSysUser) String() string

指定生成结果转json字符串

func (*TSysUser) TableName

func (*TSysUser) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*TSysUser) ToString

func (entity *TSysUser) ToString() string

func (*TSysUser) Unmarshal

func (entity *TSysUser) Unmarshal(body string)

Jump to

Keyboard shortcuts

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