Documentation ¶
Index ¶
- func InjectContactUser(s *ContactUser)
- func InjectContactUserEntity(s *ContactUserEntity)
- func InjectContactUserParams(s *ContactUserParams)
- func InjectEmployee(s *Employee)
- func LoadContactUser() baseiface.ISingleton
- func LoadContactUserEntity() baseiface.ISingleton
- func LoadContactUserParams() baseiface.ISingleton
- func LoadEmployee() baseiface.ISingleton
- type ContactUser
- type ContactUserEntity
- type ContactUserParams
- type Employee
- type EmployeeEntity
- type EmployeeParams
- type IdStru
- type SysDept
- func (entity *SysDept) AutoMigrate(db *gorm.DB) error
- func (entity *SysDept) GetAncestors() string
- func (entity *SysDept) GetCreateBy() string
- func (entity *SysDept) GetCreateTime() basemodel.LocalTime
- func (entity *SysDept) GetDelFlag() string
- func (entity *SysDept) GetDeptId() int64
- func (entity *SysDept) GetDeptName() string
- func (entity *SysDept) GetEmail() string
- func (entity *SysDept) GetLeader() string
- func (entity *SysDept) GetOrderNum() int32
- func (entity *SysDept) GetParentId() int64
- func (entity *SysDept) GetPhone() string
- func (entity *SysDept) GetStatus() string
- func (entity *SysDept) GetUpdateBy() string
- func (entity *SysDept) GetUpdateTime() time.Time
- func (entity *SysDept) Ini(iniPk bool) *SysDept
- func (entity *SysDept) IniNil(iniPk bool) *SysDept
- func (entity *SysDept) SetAncestors(Ancestors string)
- func (entity *SysDept) SetCreateBy(CreateBy string)
- func (entity *SysDept) SetCreateTime(CreateTime basemodel.LocalTime)
- func (entity *SysDept) SetDelFlag(DelFlag string)
- func (entity *SysDept) SetDeptId(DeptId int64)
- func (entity *SysDept) SetDeptName(DeptName string)
- func (entity *SysDept) SetEmail(Email string)
- func (entity *SysDept) SetLeader(Leader string)
- func (entity *SysDept) SetOrderNum(OrderNum int32)
- func (entity *SysDept) SetParentId(ParentId int64)
- func (entity *SysDept) SetPhone(Phone string)
- func (entity *SysDept) SetStatus(Status string)
- func (entity *SysDept) SetUpdateBy(UpdateBy string)
- func (entity *SysDept) SetUpdateTime(UpdateTime time.Time)
- func (entity *SysDept) String() string
- func (entity *SysDept) TableName() string
- func (entity *SysDept) ToString() string
- func (entity *SysDept) Unmarshal(body string) error
- func (entity *SysDept) UnmarshalBy(body []byte) error
- type SysDeptVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectContactUser ¶
func InjectContactUser(s *ContactUser)
func InjectContactUserEntity ¶
func InjectContactUserEntity(s *ContactUserEntity)
func InjectContactUserParams ¶
func InjectContactUserParams(s *ContactUserParams)
func InjectEmployee ¶
func InjectEmployee(s *Employee)
func LoadContactUser ¶
func LoadContactUser() baseiface.ISingleton
func LoadContactUserEntity ¶
func LoadContactUserEntity() baseiface.ISingleton
func LoadContactUserParams ¶
func LoadContactUserParams() baseiface.ISingleton
func LoadEmployee ¶
func LoadEmployee() baseiface.ISingleton
Types ¶
type ContactUser ¶
type ContactUser struct { basedto.BaseEntity `gorm:"-"` /* */ Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id"` /* */ CreatedAt time.Time `gorm:"column:created_at;type:TIMESPTAMP" json:"created_at"` /* */ UpdatedAt time.Time `gorm:"column:updated_at;type:TIMESPTAMP" json:"updated_at"` /* */ DeletedAt time.Time `gorm:"column:deleted_at;type:TIMESPTAMP" json:"deleted_at"` /* */ ContractId int64 `gorm:"column:contract_id;type:INT8" json:"contract_id"` /* */ IdentitiesId string `gorm:"column:identities_id;type:STRING" json:"identities_id"` /* */ Name string `gorm:"column:name;type:STRING" json:"name"` /* */ Avatar string `gorm:"column:avatar;type:STRING" json:"avatar"` /* */ RegisteredUserName string `gorm:"column:registered_user_name;type:STRING" json:"registered_user_name"` /* */ RegisteredCellphone string `gorm:"column:registered_cellphone;type:STRING" json:"registered_cellphone"` /* */ RegisteredEmail string `gorm:"column:registered_email;type:STRING" json:"registered_email"` /* */ LanguageId int64 `gorm:"column:language_id;type:INT8" json:"language_id"` /* */ TimeZoneId int64 `gorm:"column:time_zone_id;type:INT8" json:"time_zone_id"` /* */ LocationId int64 `gorm:"column:location_id;type:INT8" json:"location_id"` /* */ About string `gorm:"column:about;type:STRING" json:"about"` /* */ Description string `gorm:"column:description;type:STRING" json:"description"` /* */ IsInactive bool `gorm:"column:is_inactive;type:BOOL" json:"is_inactive"` /* */ NaturalPersonId int64 `gorm:"column:natural_person_id;type:INT8" json:"natural_person_id"` /* */ LegalPersonId int64 `gorm:"column:legal_person_id;type:INT8" json:"legal_person_id"` /* */ InvitationId int64 `gorm:"column:invitation_id;type:INT8" json:"invitation_id"` /* */ IsPartner bool `gorm:"column:is_partner;type:BOOL" json:"is_partner"` /* */ Status string `gorm:"column:status;type:STRING" json:"status"` /* */ CreatedBy int64 `gorm:"column:created_by;type:INT8" json:"created_by"` /* */ UpdatedBy int64 `gorm:"column:updated_by;type:INT8" json:"updated_by"` /* */ DeletedBy int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by"` /* */ LatestShopId int64 `gorm:"column:latest_shop_id;type:INT8" json:"latest_shop_id"` /* */ Slug string `gorm:"column:slug;type:STRING" json:"slug"` /* */ ShortName string `gorm:"column:short_name;type:STRING" json:"short_name"` /* */ PartneredUserId int64 `gorm:"column:partnered_user_id;type:INT8" json:"partnered_user_id"` /* */ LastLoginAt time.Time `gorm:"column:last_login_at;type:TIMESTAMPTZ" json:"last_login_at"` /* */ Rowid int64 `gorm:"column:rowid;type:INT8;default:unique_rowid()" json:"rowid"` /* */ Id10 int64 `gorm:"column:id_10;type:INT8" json:"id_10"` /* */ PartnerId10 int64 `gorm:"column:partner_id_10;type:INT8" json:"partner_id_10"` /* */ Version10 string `gorm:"column:version_10;type:VARCHAR(20)" json:"version_10"` /* */ LatestAccountId int64 `gorm:"column:latest_account_id;type:INT8" json:"latest_account_id"` /* */ ShopCount int64 `gorm:"column:shop_count;type:INT8" json:"shop_count"` /* */ Station string `gorm:"column:station;type:STRING" json:"station"` /* */ SoundSwitch bool `gorm:"column:sound_switch;type:BOOL" json:"sound_switch"` /* */ WechatNickname string `gorm:"column:wechat_nickname;type:STRING" json:"wechat_nickname"` /* */ WxNickname string `gorm:"column:wx_nickname;type:STRING" json:"wx_nickname"` }
func FindBeanContactUser ¶
func FindBeanContactUser() *ContactUser
func NewContactUser ¶
func NewContactUser() *ContactUser
func (*ContactUser) TableName ¶
func (entity *ContactUser) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
type ContactUserEntity ¶
type ContactUserEntity struct { basedto.BaseEntity `gorm:"-"` /* */ Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id"` /* */ CreatedAt int64 `gorm:"column:created_at;type:TIMESTAMPTZ" json:"created_at"` /* */ UpdatedAt int64 `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"updated_at"` /* */ DeletedAt int64 `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"deleted_at"` /* */ ContractId int64 `gorm:"column:contract_id;type:INT8" json:"contract_id"` /* */ IdentitiesId string `gorm:"column:identities_id;type:STRING" json:"identities_id"` /* */ Name string `gorm:"column:name;type:STRING" json:"name"` /* */ Avatar string `gorm:"column:avatar;type:STRING" json:"avatar"` /* */ RegisteredUserName string `gorm:"column:registered_user_name;type:STRING" json:"registered_user_name"` /* */ RegisteredCellphone string `gorm:"column:registered_cellphone;type:STRING" json:"registered_cellphone"` /* */ RegisteredEmail string `gorm:"column:registered_email;type:STRING" json:"registered_email"` /* */ LanguageId int64 `gorm:"column:language_id;type:INT8" json:"language_id"` /* */ TimeZoneId int64 `gorm:"column:time_zone_id;type:INT8" json:"time_zone_id"` /* */ LocationId int64 `gorm:"column:location_id;type:INT8" json:"location_id"` /* */ About string `gorm:"column:about;type:STRING" json:"about"` /* */ Description string `gorm:"column:description;type:STRING" json:"description"` /* */ IsInactive bool `gorm:"column:is_inactive;type:BOOL" json:"is_inactive"` /* */ NaturalPersonId int64 `gorm:"column:natural_person_id;type:INT8" json:"natural_person_id"` /* */ LegalPersonId int64 `gorm:"column:legal_person_id;type:INT8" json:"legal_person_id"` /* */ InvitationId int64 `gorm:"column:invitation_id;type:INT8" json:"invitation_id"` /* */ IsPartner bool `gorm:"column:is_partner;type:BOOL" json:"is_partner"` /* */ Status string `gorm:"column:status;type:STRING" json:"status"` /* */ CreatedBy int64 `gorm:"column:created_by;type:INT8" json:"created_by"` /* */ UpdatedBy int64 `gorm:"column:updated_by;type:INT8" json:"updated_by"` /* */ DeletedBy int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by"` /* */ LatestShopId int64 `gorm:"column:latest_shop_id;type:INT8" json:"latest_shop_id"` /* */ Slug string `gorm:"column:slug;type:STRING" json:"slug"` /* */ ShortName string `gorm:"column:short_name;type:STRING" json:"short_name"` /* */ PartneredUserId int64 `gorm:"column:partnered_user_id;type:INT8" json:"partnered_user_id"` /* */ LastLoginAt int64 `gorm:"column:last_login_at;type:TIMESTAMPTZ" json:"last_login_at"` /* */ Rowid int64 `gorm:"column:rowid;type:INT8;default:unique_rowid()" json:"rowid"` /* */ Id10 int64 `gorm:"column:id_10;type:INT8" json:"id_10"` /* */ PartnerId10 int64 `gorm:"column:partner_id_10;type:INT8" json:"partner_id_10"` /* */ Version10 string `gorm:"column:version_10;type:VARCHAR(20)" json:"version_10"` /* */ LatestAccountId int64 `gorm:"column:latest_account_id;type:INT8" json:"latest_account_id"` /* */ ShopCount int64 `gorm:"column:shop_count;type:INT8" json:"shop_count"` /* */ Station string `gorm:"column:station;type:STRING" json:"station"` /* */ SoundSwitch bool `gorm:"column:sound_switch;type:BOOL" json:"sound_switch"` /* */ WechatNickname string `gorm:"column:wechat_nickname;type:STRING" json:"wechat_nickname"` /* */ WxNickname string `gorm:"column:wx_nickname;type:STRING" json:"wx_nickname"` }
func FindBeanContactUserEntity ¶
func FindBeanContactUserEntity() *ContactUserEntity
func NewContactUserEntity ¶
func NewContactUserEntity() *ContactUserEntity
type ContactUserParams ¶
type ContactUserParams struct { basedto.BaseEntity `gorm:"-"` /* */ Id *int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id"` /* */ CreatedAt *time.Time `gorm:"column:created_at;type:TIMESTAMPTZ" json:"created_at"` /* */ UpdatedAt *time.Time `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"updated_at"` /* */ DeletedAt *time.Time `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"deleted_at"` /* */ ContractId *int64 `gorm:"column:contract_id;type:INT8" json:"contract_id"` /* */ IdentitiesId *string `gorm:"column:identities_id;type:STRING" json:"identities_id"` /* */ Name *string `gorm:"column:name;type:STRING" json:"name"` /* */ Avatar *string `gorm:"column:avatar;type:STRING" json:"avatar"` /* */ RegisteredUserName *string `gorm:"column:registered_user_name;type:STRING" json:"registered_user_name"` /* */ RegisteredCellphone *string `gorm:"column:registered_cellphone;type:STRING" json:"registered_cellphone"` /* */ RegisteredEmail *string `gorm:"column:registered_email;type:STRING" json:"registered_email"` /* */ LanguageId *int64 `gorm:"column:language_id;type:INT8" json:"language_id"` /* */ TimeZoneId *int64 `gorm:"column:time_zone_id;type:INT8" json:"time_zone_id"` /* */ LocationId *int64 `gorm:"column:location_id;type:INT8" json:"location_id"` /* */ About *string `gorm:"column:about;type:STRING" json:"about"` /* */ Description *string `gorm:"column:description;type:STRING" json:"description"` /* */ IsInactive *bool `gorm:"column:is_inactive;type:BOOL" json:"is_inactive"` /* */ NaturalPersonId *int64 `gorm:"column:natural_person_id;type:INT8" json:"natural_person_id"` /* */ LegalPersonId *int64 `gorm:"column:legal_person_id;type:INT8" json:"legal_person_id"` /* */ InvitationId *int64 `gorm:"column:invitation_id;type:INT8" json:"invitation_id"` /* */ IsPartner *bool `gorm:"column:is_partner;type:BOOL" json:"is_partner"` /* */ Status *string `gorm:"column:status;type:STRING" json:"status"` /* */ CreatedBy *int64 `gorm:"column:created_by;type:INT8" json:"created_by"` /* */ UpdatedBy *int64 `gorm:"column:updated_by;type:INT8" json:"updated_by"` /* */ DeletedBy *int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by"` /* */ LatestShopId *int64 `gorm:"column:latest_shop_id;type:INT8" json:"latest_shop_id"` /* */ Slug *string `gorm:"column:slug;type:STRING" json:"slug"` /* */ ShortName *string `gorm:"column:short_name;type:STRING" json:"short_name"` /* */ PartneredUserId *int64 `gorm:"column:partnered_user_id;type:INT8" json:"partnered_user_id"` /* */ LastLoginAt *time.Time `gorm:"column:last_login_at;type:TIMESTAMPTZ" json:"last_login_at"` /* */ Rowid *int64 `gorm:"column:rowid;type:INT8;default:unique_rowid()" json:"rowid"` /* */ Id10 *int64 `gorm:"column:id_10;type:INT8" json:"id_10"` /* */ PartnerId10 *int64 `gorm:"column:partner_id_10;type:INT8" json:"partner_id_10"` /* */ Version10 *string `gorm:"column:version_10;type:VARCHAR(20)" json:"version_10"` /* */ LatestAccountId *int64 `gorm:"column:latest_account_id;type:INT8" json:"latest_account_id"` /* */ ShopCount *int64 `gorm:"column:shop_count;type:INT8" json:"shop_count"` /* */ Station *string `gorm:"column:station;type:STRING" json:"station"` /* */ SoundSwitch *bool `gorm:"column:sound_switch;type:BOOL" json:"sound_switch"` /* */ WechatNickname *string `gorm:"column:wechat_nickname;type:STRING" json:"wechat_nickname"` /* */ WxNickname *string `gorm:"column:wx_nickname;type:STRING" json:"wx_nickname"` }
func FindBeanContactUserParams ¶
func FindBeanContactUserParams() *ContactUserParams
type Employee ¶
type Employee struct { basedto.BaseEntity `gorm:"-"` /* 员工编号 */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` IdStru /* 身份证号 */ IdCard string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate time.Time `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date"` /* 在职状态 */ WorkState string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code string `gorm:"column:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ ContractTerm float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime time.Time `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time"` /* 离职日期 */ NotWokDate time.Time `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date"` /* 合同起始日期 */ BeginContract time.Time `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract"` /* 合同终止日期 */ EndContract time.Time `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract"` /* 工龄 */ WorkAge int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
func FindBeanEmployee ¶
func FindBeanEmployee() *Employee
func NewEmployee ¶
func NewEmployee() *Employee
func (*Employee) UnmarshalBy ¶
type EmployeeEntity ¶
type EmployeeEntity struct { /* 员工编号 */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday int64 `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday,string"` /* 身份证号 */ IdCard string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate int64 `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date,string"` /* 在职状态 */ WorkState string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code string `gorm:"column:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ ContractTerm float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime int64 `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time,string"` /* 离职日期 */ NotWokDate int64 `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date,string"` /* 合同起始日期 */ BeginContract int64 `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract,string"` /* 合同终止日期 */ EndContract int64 `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract,string"` /* 工龄 */ WorkAge int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
type EmployeeParams ¶
type EmployeeParams struct { /* 员工编号 */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId *int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name *string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender *string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday *time.Time `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"` /* 身份证号 */ IdCard *string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock *string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId *int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace *string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId *int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email *string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone *string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address *string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId *int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId *int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm *string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree *string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty *string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School *string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate *time.Time `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date"` /* 在职状态 */ WorkState *string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code *string `gorm:"column:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ ContractTerm *float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime *time.Time `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time"` /* 离职日期 */ NotWokDate *time.Time `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date"` /* 合同起始日期 */ BeginContract *time.Time `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract"` /* 合同终止日期 */ EndContract *time.Time `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract"` /* 工龄 */ WorkAge *int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId *string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
type IdStru ¶
type IdStru struct { DepartmentId int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday time.Time `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"` }
指定扩展结结构,单独存文件。生成时不会覆盖:
type EmployeeBase struct {ModelBase}
type SysDept ¶
type SysDept struct { /* 部门id */ DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"dept_id,string"` /* 父部门id */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parent_id,string"` /* 祖级列表 */ Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"` /* 部门名称 */ DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"dept_name"` /* 显示顺序 */ OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"order_nm"` /* 负责人 */ Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"` /* 联系电话 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"` /* 部门状态(0正常 1停用) */ Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"` /* 删除标志(0代表存在 2代表删除) */ DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"del_flag"` /* 创建者 */ CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"create_by"` /* 创建时间 */ CreateTime time.Time `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"create_time"` /* 更新者 */ UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"update_by"` /* 更新时间 */ UpdateTime time.Time `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"-"` }
部门表
func (*SysDept) GetAncestors ¶
func (*SysDept) GetCreateBy ¶
func (*SysDept) GetCreateTime ¶
func (*SysDept) GetDelFlag ¶
func (*SysDept) GetDeptName ¶
func (*SysDept) GetOrderNum ¶
func (*SysDept) GetParentId ¶
func (*SysDept) GetUpdateBy ¶
func (*SysDept) GetUpdateTime ¶
func (*SysDept) SetAncestors ¶
func (*SysDept) SetCreateBy ¶
func (*SysDept) SetCreateTime ¶
func (*SysDept) SetDelFlag ¶
func (*SysDept) SetDeptName ¶
func (*SysDept) SetOrderNum ¶
func (*SysDept) SetParentId ¶
func (*SysDept) SetUpdateBy ¶
func (*SysDept) SetUpdateTime ¶
func (*SysDept) UnmarshalBy ¶
type SysDeptVo ¶
type SysDeptVo struct { /* 部门id */ DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"dept_id,string"` /* 父部门id */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parent_id,string"` /* 祖级列表 */ Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"` /* 部门名称 */ DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"deptName"` /* 显示顺序 */ OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"orderNum"` /* 负责人 */ Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"` /* 联系电话 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"` /* 部门状态(0正常 1停用) */ Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"` /* 删除标志(0代表存在 2代表删除) */ DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"delFlag"` /* 创建者 */ CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"createBy"` /* 创建时间 */ CreateTime basemodel.LocalTime `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"createTime"` /* 更新者 */ UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"updateBy"` /* 更新时间 */ UpdateTime basemodel.LocalTime `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"updateTime"` }
Click to show internal directories.
Click to hide internal directories.