Documentation ¶
Index ¶
- type Employee
- func (entity *Employee) AutoMigrate(db *gorm.DB) error
- func (entity *Employee) GetAddress() string
- func (entity *Employee) GetBeginContract() model.LocalDate
- func (entity *Employee) GetBeginDate() model.LocalDate
- func (entity *Employee) GetBirthday() model.LocalDate
- func (entity *Employee) GetCode() string
- func (entity *Employee) GetContractTerm() float64
- func (entity *Employee) GetConversionTime() model.LocalDate
- func (entity *Employee) GetDepartmentId() int32
- func (entity *Employee) GetEmail() string
- func (entity *Employee) GetEndContract() model.LocalDate
- func (entity *Employee) GetEngageForm() string
- func (entity *Employee) GetGender() string
- func (entity *Employee) GetId() int32
- func (entity *Employee) GetIdCard() string
- func (entity *Employee) GetJobLevelId() int32
- func (entity *Employee) GetName() string
- func (entity *Employee) GetNationId() int32
- func (entity *Employee) GetNativePlace() string
- func (entity *Employee) GetNotWorkDate() model.LocalDate
- func (entity *Employee) GetPhone() string
- func (entity *Employee) GetPoliticId() int32
- func (entity *Employee) GetPosId() int32
- func (entity *Employee) GetSchool() string
- func (entity *Employee) GetSpecialty() string
- func (entity *Employee) GetTiptopDegree() string
- func (entity *Employee) GetWedlock() string
- func (entity *Employee) GetWorkAge() int32
- func (entity *Employee) GetWorkId() string
- func (entity *Employee) GetWorkState() string
- func (entity *Employee) Ini(iniPk bool) *Employee
- func (entity *Employee) IniNil(iniPk bool) *Employee
- func (entity *Employee) SetAddress(Address string)
- func (entity *Employee) SetBeginContract(BeginContract model.LocalDate)
- func (entity *Employee) SetBeginDate(BeginDate model.LocalDate)
- func (entity *Employee) SetBirthday(Birthday model.LocalDate)
- func (entity *Employee) SetCode(Code string)
- func (entity *Employee) SetContractTerm(ContractTerm float64)
- func (entity *Employee) SetConversionTime(ConversionTime model.LocalDate)
- func (entity *Employee) SetDepartmentId(DepartmentId int32)
- func (entity *Employee) SetEmail(Email string)
- func (entity *Employee) SetEndContract(EndContract model.LocalDate)
- func (entity *Employee) SetEngageForm(EngageForm string)
- func (entity *Employee) SetGender(Gender string)
- func (entity *Employee) SetId(Id int32)
- func (entity *Employee) SetIdCard(IdCard string)
- func (entity *Employee) SetJobLevelId(JobLevelId int32)
- func (entity *Employee) SetName(Name string)
- func (entity *Employee) SetNationId(NationId int32)
- func (entity *Employee) SetNativePlace(NativePlace string)
- func (entity *Employee) SetNotWorkDate(NotWorkDate model.LocalDate)
- func (entity *Employee) SetPhone(Phone string)
- func (entity *Employee) SetPoliticId(PoliticId int32)
- func (entity *Employee) SetPosId(PosId int32)
- func (entity *Employee) SetSchool(School string)
- func (entity *Employee) SetSpecialty(Specialty string)
- func (entity *Employee) SetTiptopDegree(TiptopDegree string)
- func (entity *Employee) SetWedlock(Wedlock string)
- func (entity *Employee) SetWorkAge(WorkAge int32)
- func (entity *Employee) SetWorkId(WorkId string)
- func (entity *Employee) SetWorkState(WorkState string)
- func (entity *Employee) String() string
- func (entity *Employee) TableName() string
- func (entity *Employee) ToString() string
- func (entity *Employee) Unmarshal(body string) error
- func (entity *Employee) UnmarshalBy(body []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Employee ¶
type Employee struct { /* 员工编号 */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId *int32 `gorm:"column:departmentId;type:int(11);comment:'所属部门';default:0" json:"departmentId"` /* 员工姓名 */ Name *string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender *string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday *model.LocalDate `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"` /* 身份证号 */ IdCard *string `gorm:"column:idCard;type:char(18);comment:'身份证号'" json:"idCard"` /* 婚姻状况 */ Wedlock *string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId *int32 `gorm:"column:nationId;type:int(8);comment:'民族'" json:"nationId"` /* 籍贯 */ NativePlace *string `gorm:"column:nativePlace;type:varchar(20);comment:'籍贯'" json:"nativePlace"` /* 政治面貌 */ PoliticId *int32 `gorm:"column:politicId;type:int(8);comment:'政治面貌'" json:"politicId"` /* 邮箱 */ 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:jobLevelId;type:int(11);comment:'职称ID'" json:"jobLevelId"` /* 职位ID */ PosId *int32 `gorm:"column:posId;type:int(11);comment:'职位ID'" json:"posId"` /* 聘用形式 */ EngageForm *string `gorm:"column:engageForm;type:varchar(8);comment:'聘用形式'" json:"engageForm"` /* 最高学历 */ TiptopDegree *string `gorm:"column:tiptopDegree;type:varchar(8);comment:'最高学历'" json:"tiptopDegree"` /* 所属专业 */ Specialty *string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School *string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate *model.LocalDate `gorm:"column:beginDate;type:date;comment:'入职日期'" json:"beginDate"` /* 在职状态 */ WorkState *string `gorm:"column:workState;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"workState"` /* 工号 */ Code *string `gorm:"column:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ ContractTerm *float64 `gorm:"column:contractTerm;type:double;comment:'合同期限'" json:"contractTerm"` /* 转正日期 */ ConversionTime *model.LocalDate `gorm:"column:conversionTime;type:date;comment:'转正日期'" json:"conversionTime"` /* 离职日期 */ NotWorkDate *model.LocalDate `gorm:"column:notWorkDate;type:date;comment:'离职日期'" json:"notWorkDate"` /* 合同起始日期 */ BeginContract *model.LocalDate `gorm:"column:beginContract;type:date;comment:'合同起始日期'" json:"beginContract"` /* 合同终止日期 */ EndContract *model.LocalDate `gorm:"column:endContract;type:date;comment:'合同终止日期'" json:"endContract"` /* 工龄 */ WorkAge *int32 `gorm:"column:workAge;type:int(11);comment:'工龄'" json:"workAge"` /* */ WorkId *string `gorm:"column:workId;type:varchar(16);comment:''" json:"workId"` }
员工
func (*Employee) GetAddress ¶
func (*Employee) GetBeginContract ¶
func (*Employee) GetBeginDate ¶
func (*Employee) GetBirthday ¶
func (*Employee) GetContractTerm ¶
func (*Employee) GetConversionTime ¶
func (*Employee) GetDepartmentId ¶
func (*Employee) GetEndContract ¶
func (*Employee) GetEngageForm ¶
func (*Employee) GetJobLevelId ¶
func (*Employee) GetNationId ¶
func (*Employee) GetNativePlace ¶
func (*Employee) GetNotWorkDate ¶
func (*Employee) GetPoliticId ¶
func (*Employee) GetSpecialty ¶
func (*Employee) GetTiptopDegree ¶
func (*Employee) GetWedlock ¶
func (*Employee) GetWorkAge ¶
func (*Employee) GetWorkState ¶
func (*Employee) SetAddress ¶
func (*Employee) SetBeginContract ¶
func (*Employee) SetBeginDate ¶
func (*Employee) SetBirthday ¶
func (*Employee) SetContractTerm ¶
func (*Employee) SetConversionTime ¶
func (*Employee) SetDepartmentId ¶
func (*Employee) SetEndContract ¶
func (*Employee) SetEngageForm ¶
func (*Employee) SetJobLevelId ¶
func (*Employee) SetNationId ¶
func (*Employee) SetNativePlace ¶
func (*Employee) SetNotWorkDate ¶
func (*Employee) SetPoliticId ¶
func (*Employee) SetSpecialty ¶
func (*Employee) SetTiptopDegree ¶
func (*Employee) SetWedlock ¶
func (*Employee) SetWorkAge ¶
func (*Employee) SetWorkState ¶
func (*Employee) UnmarshalBy ¶
Click to show internal directories.
Click to hide internal directories.