mbhrm

package
v0.15.108 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreateAssessRecord

func BatchCreateAssessRecord(req *BatchCreateAssessRecordRequest) error

func BatchCreateCertificate

func BatchCreateCertificate(req *BatchCreateCertificateRequest) error

func BatchCreateEducationExperiences added in v0.11.10

func BatchCreateEducationExperiences(req *BatchCreateEducationExperienceRequest) error

func BatchCreateFamilyMembers

func BatchCreateFamilyMembers(req *BatchCreateFamilyMemberRequest) error

func BatchCreateMotionRecordings

func BatchCreateMotionRecordings(req *BatchCreateMotionRecodingRequest) error

func BatchCreateRewardPunishes

func BatchCreateRewardPunishes(req *BatchCreateRewardPunishRequest) error

func BatchCreateTrainingRecords

func BatchCreateTrainingRecords(req *BatchCreateTrainingRecordRequest) error

func BatchCreateWorkExperiences

func BatchCreateWorkExperiences(req *BatchCreateWorkExperienceRequest) error

func CreateCertificate

func CreateCertificate(req *CreateCertificateRequest) (string, error)

func CreateFamilyMember

func CreateFamilyMember(req *CreateFamilyMemberRequest) (string, error)

func CreateMotionRecoding

func CreateMotionRecoding(req *CreateMotionRecodingRequest) (string, error)

func CreatePersonnelArchive

func CreatePersonnelArchive(req *CreatePersonnelArchiveRequest) (string, error)

func CreateRewardPunish

func CreateRewardPunish(req *CreateRewardPunishRequest) (string, error)

func CreateTrainingRecord

func CreateTrainingRecord(req *CreateTrainingRecordRequest) (string, error)

func CreateWorkExperience

func CreateWorkExperience(req *CreateWorkExperienceRequest) (string, error)

func DeleteCertificate

func DeleteCertificate(companyId, certId string) error

func DeleteFamilyMember

func DeleteFamilyMember(companyId, familyMemberId string) error

func DeleteMotionRecoding

func DeleteMotionRecoding(companyId, motionRecordingId string) error

func DeletePersonnelArchive

func DeletePersonnelArchive(companyId, archiveId string) error

func DeleteRewardPunish

func DeleteRewardPunish(companyId, rewardPunishId string) error

func DeleteTrainingRecord

func DeleteTrainingRecord(companyId, id string) error

func DeleteWorkExperience

func DeleteWorkExperience(companyId, rewardPunishId string) error

func Destroy

func Destroy()

func GetArchiveAvatarBase64 added in v0.12.11

func GetArchiveAvatarBase64(req *GetArchiveAvatarBase64Query) (string, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UpdateCertificate

func UpdateCertificate(req *UpdateCertificateRequest) error

func UpdateFamilyMember

func UpdateFamilyMember(req *UpdateFamilyMemberRequest) error

func UpdateMotionRecording

func UpdateMotionRecording(req *UpdateMotionRecodingRequest) error

func UpdatePersonnelArchive

func UpdatePersonnelArchive(req *UpdatePersonnelArchiveRequest) error

func UpdateRewardPunish

func UpdateRewardPunish(req *UpdateRewardPunishRequest) error

func UpdateTrainingRecord

func UpdateTrainingRecord(req *UpdateTrainingRecordRequest) error

func UpdateWorkExperience

func UpdateWorkExperience(req *UpdateWorkExperienceRequest) error

Types

type AllArchive added in v0.11.13

type AllArchive struct {
	BasicInfo            *PersonnelArchiveInfo `json:"basicInfo"`
	AssessRecords        []AssessRecordInfo    `json:"assessRecords"`
	Certificates         []CertificateInfo     `json:"certificates"`
	EducationExperiences []EducationExperience `json:"educationExperiences"`
	FamilyMembers        []FamilyMemberInfo    `json:"familyMembers"`
	MotionRecords        []MotionRecordingInfo `json:"motionRecords"`
	RewardPunishes       []RewardPunishInfo    `json:"rewardPunishes"`
	TrainingRecords      []TrainingRecordInfo  `json:"trainingRecords"`
	WorkExperiences      []WorkExperienceInfo  `json:"workExperiences"`
}

func GetAllArchive added in v0.11.13

func GetAllArchive(req *GetAllArchiveRequest) (*AllArchive, error)

type AssessRecordInfo

type AssessRecordInfo struct {
	Id             string `json:"id"`
	ArchiveId      string `json:"archiveId"`
	AssessDate     string `json:"assessDate"`
	AssessType     string `json:"assessType"`
	AssessResult   string `json:"assessResult"`
	AssessEstimate string `json:"assessEstimate"`
	AssessProve    string `json:"assessProve"`
	AssessorId     string `json:"assessorId"`
	AssessorName   string `json:"assessorName"`
	CompanyId      string `json:"companyId"`
}

type BatchCreateAssessRecordRequest

type BatchCreateAssessRecordRequest struct {
	CompanyId string                      `json:"companyId"`
	ArchiveId string                      `json:"archiveId,omitempty"`
	Batch     []CreateAssessRecordRequest `json:"batch,omitempty"`
}

type BatchCreateAssessRecordResponse

type BatchCreateAssessRecordResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateCertificateRequest

type BatchCreateCertificateRequest struct {
	CompanyId string                     `json:"companyId"`
	ArchiveId string                     `json:"archiveId,omitempty"`
	Batch     []CreateCertificateRequest `json:"batch,omitempty"`
}

type BatchCreateCertificateResponse

type BatchCreateCertificateResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateEducationExperienceRequest added in v0.11.10

type BatchCreateEducationExperienceRequest struct {
	CompanyId string                             `json:"companyId"`
	ArchiveId string                             `json:"archiveId,omitempty"`
	Batch     []CreateEducationExperienceRequest `json:"batch,omitempty"`
}

type BatchCreateEducationExperienceResponse added in v0.11.10

type BatchCreateEducationExperienceResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateFamilyMemberRequest

type BatchCreateFamilyMemberRequest struct {
	CompanyId string                      `json:"companyId"`
	ArchiveId string                      `json:"archiveId,omitempty"`
	Batch     []CreateFamilyMemberRequest `json:"batch,omitempty"`
}

type BatchCreateFamilyMemberResponse

type BatchCreateFamilyMemberResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateMotionRecodingRequest

type BatchCreateMotionRecodingRequest struct {
	CompanyId string                        `json:"companyId"`
	ArchiveId string                        `json:"archiveId,omitempty"`
	Batch     []CreateMotionRecodingRequest `json:"batch,omitempty"`
}

type BatchCreateMotionRecodingResponse

type BatchCreateMotionRecodingResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateRewardPunishRequest

type BatchCreateRewardPunishRequest struct {
	CompanyId string                      `json:"companyId"`
	ArchiveId string                      `json:"archiveId,omitempty"`
	Batch     []CreateRewardPunishRequest `json:"batch,omitempty"`
}

type BatchCreateRewardPunishResponse

type BatchCreateRewardPunishResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateTrainingRecordRequest

type BatchCreateTrainingRecordRequest struct {
	CompanyId string                        `json:"companyId"`
	ArchiveId string                        `json:"archiveId,omitempty"`
	Batch     []CreateTrainingRecordRequest `json:"batch,omitempty"`
}

type BatchCreateTrainingRecordResponse

type BatchCreateTrainingRecordResponse struct {
	// contains filtered or unexported fields
}

type BatchCreateWorkExperienceRequest

type BatchCreateWorkExperienceRequest struct {
	CompanyId string                        `json:"companyId"`
	ArchiveId string                        `json:"archiveId,omitempty"`
	Batch     []CreateWorkExperienceRequest `json:"batch,omitempty"`
}

type BatchCreateWorkExperienceResponse

type BatchCreateWorkExperienceResponse struct {
	// contains filtered or unexported fields
}

type CertificateInfo

type CertificateInfo struct {
	Id            string `json:"id"`
	ArchiveId     string `json:"archiveId"`
	CertName      string `json:"certName"`
	ObtainDate    string `json:"obtainDate"`
	CertAuthority string `json:"certAuthority"`
	ValidPeriod   string `json:"validPeriod"`
	CertState     string `json:"certState"`
	CompanyId     string `json:"companyId"`
}

type CreateAssessRecordRequest

type CreateAssessRecordRequest struct {
	CompanyId string `json:"companyId" binding:"required"`
	// 档案ID
	ArchiveId string `json:"archiveId" `
	// 考核时间
	AssessDate string `json:"assessDate" `
	// 考核类型
	AssessType string `json:"assessType" `
	// 考核结果
	AssessResult string `json:"assessResult" `
	// 考核评价
	AssessEstimate string `json:"assessEstimate" `
	// 考核证明
	AssessProve string `json:"assessProve" `
	// 考核人ID
	AssessorId string `json:"assessorId" `
	// 考核人Name
	AssessorName string `json:"assessorName" `
}

type CreateCertificateRequest

type CreateCertificateRequest struct {
	CompanyId     string `json:"companyId"`
	ArchiveId     string `json:"archiveId" `
	CertName      string `json:"certName" `
	ObtainDate    string `json:"obtainDate" `
	CertAuthority string `json:"certAuthority" `
	ValidPeriod   string `json:"validPeriod" `
	CertState     string `json:"certState" `
}

type CreateCertificateResponse

type CreateCertificateResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateEducationExperienceRequest added in v0.11.10

type CreateEducationExperienceRequest struct {
	CompanyId string `json:"companyId"`
	ArchiveId string `json:"archiveId"`
	School    string `json:"school"`
	Major     string `json:"major"`
	Degree    string `json:"degree"`
	StartDate string `json:"startDate"`
	EndDate   string `json:"endDate"`
}

type CreateFamilyMemberRequest

type CreateFamilyMemberRequest struct {
	CompanyId  string `json:"companyId" binding:"required"`
	ArchiveId  string `json:"archiveId" `
	MemberName string `json:"memberName" `
	Relation   string `json:"relation" `
	Contact    string `json:"contact" `
	Profession string `json:"profession" `
	Health     string `json:"health" `
	Education  string `json:"education" `
	Remark     string `json:"remark" `
}

type CreateFamilyMemberResponse

type CreateFamilyMemberResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateMotionRecodingRequest

type CreateMotionRecodingRequest struct {
	CompanyId    string `json:"companyId" binding:"required"`
	ArchiveId    string `json:"archiveId" `
	MotionType   string `json:"motionType" `
	MotionDate   string `json:"motionDate" `
	BeforeCase   string `json:"beforeCase" `
	AfterCase    string `json:"afterCase" `
	MotionReason string `json:"motionReason" `
	ApproverId   string `json:"approverId" `
	ApproverName string `json:"approverName" `
	Remark       string `json:"remark" `
}

type CreateMotionRecodingResponse

type CreateMotionRecodingResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreatePersonnelArchiveRequest

type CreatePersonnelArchiveRequest struct {
	CompanyId        string `json:"companyId"`
	UserId           string `json:"userId"`
	Name             string `json:"name"`
	Gender           string `json:"gender"`
	WNo              string `json:"wNo"`
	Department       string `json:"department" `
	Position         string `json:"position" `
	DutyLevel        string `json:"dutyLevel" `
	Duty             string `json:"duty" `
	IdentityType     string `json:"identityType" `
	EnrollmentDate   string `json:"enrollmentDate" `
	RegularStatus    string `json:"regularStatus" `
	RegularDate      string `json:"regularDate" `
	WorkingYear      int    `json:"workingYear" `
	CertificateType  string `json:"certificateType" `
	CertificateNo    string `json:"certificateNo" `
	Birthday         string `json:"birthday" `
	Nation           string `json:"nation" `
	NativePlace      string `json:"nativePlace" `
	PoliticsStatus   string `json:"politicsStatus" `
	MaritalStatus    string `json:"maritalStatus" `
	DomicilePlace    string `json:"domicilePlace" `
	StartingWorkDate string `json:"startingWorkDate" `
	HighestEducation string `json:"highestEducation" `
	University       string `json:"university" `
	Major            string `json:"major" `
	PhoneNo          string `json:"phoneNo" `
	Email            string `json:"email" `
	Superior         string `json:"superior" `
	BasicSalary      int    `json:"basicSalary" `
	Subsidy          int    `json:"subsidy" `
	MeritSalary      int    `json:"meritSalary" `
	AvatarObjName    string `json:"avatarObjName"`
	LeaveDate        string `json:"leaveDate"`
}

type CreatePersonnelArchiveResponse

type CreatePersonnelArchiveResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateRewardPunishRequest

type CreateRewardPunishRequest struct {
	CompanyId    string  `json:"companyId" binding:"required"`
	ArchiveId    string  `json:"archiveId" `
	RpType       string  `json:"rpType" `
	Reason       string  `json:"reason" `
	Date         string  `json:"date" `
	Money        float32 `json:"money" `
	Remark       string  `json:"remark" `
	ApproverId   string  `json:"approverId" `
	ApproverName string  `json:"approverName" `
}

type CreateRewardPunishResponse

type CreateRewardPunishResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateTrainingRecordRequest

type CreateTrainingRecordRequest struct {
	CompanyId       string  `json:"companyId" binding:"required"`
	ArchiveId       string  `json:"archiveId" `
	TrainingDate    string  `json:"trainingDate" `
	TrainingName    string  `json:"trainingName" `
	TrainingPlace   string  `json:"trainingPlace" `
	TrainingContent string  `json:"trainingContent" `
	TrainingHour    float32 `json:"trainingHour" `
	TrainingTeacher string  `json:"trainingTeacher" `
	TrainingScore   string  `json:"trainingScore" `
	TrainingCert    string  `json:"trainingCert" `
	Remark          string  `json:"remark" `
}

type CreateTrainingRecordResponse

type CreateTrainingRecordResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateWorkExperienceRequest

type CreateWorkExperienceRequest struct {
	CompanyId       string `json:"companyId" binding:"required"`
	ArchiveId       string `json:"archiveId" `
	CompanyName     string `json:"companyName" `
	StartTime       string `json:"startTime" `
	EndTime         string `json:"endTime" `
	Department      string `json:"department" `
	Position        string `json:"position" `
	WorkContent     string `json:"workContent" `
	WorkPerformance string `json:"workPerformance" `
	LeaveReason     string `json:"leaveReason" `
}

type CreateWorkExperienceResponse

type CreateWorkExperienceResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type DeleteCertificateQuery

type DeleteCertificateQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteCertificateResponse

type DeleteCertificateResponse struct {
	// contains filtered or unexported fields
}

type DeleteFamilyMemberQuery

type DeleteFamilyMemberQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteFamilyMemberResponse

type DeleteFamilyMemberResponse struct {
	// contains filtered or unexported fields
}

type DeleteMotionRecodingQuery

type DeleteMotionRecodingQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteMotionRecodingResponse

type DeleteMotionRecodingResponse struct {
	// contains filtered or unexported fields
}

type DeletePersonnelArchiveQuery

type DeletePersonnelArchiveQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeletePersonnelArchiveResponse

type DeletePersonnelArchiveResponse struct {
	// contains filtered or unexported fields
}

type DeleteRewardPunishQuery

type DeleteRewardPunishQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteRewardPunishResponse

type DeleteRewardPunishResponse struct {
	// contains filtered or unexported fields
}

type DeleteTrainingRecordQuery

type DeleteTrainingRecordQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteTrainingRecordResponse

type DeleteTrainingRecordResponse struct {
	// contains filtered or unexported fields
}

type DeleteWorkExperienceQuery

type DeleteWorkExperienceQuery struct {
	CompanyId string `form:"companyId" binding:"required"`
}

type DeleteWorkExperienceResponse

type DeleteWorkExperienceResponse struct {
	// contains filtered or unexported fields
}

type EducationExperience added in v0.11.10

type EducationExperience struct {
	Id        string `json:"id"`
	ArchiveId string `json:"archiveId"`
	School    string `json:"school"`
	Degree    string `json:"degree"`
	Major     string `json:"major"`
	StartDate string `json:"startDate"`
	EndDate   string `json:"endDate"`
	CompanyId string `json:"companyId"`
}

type EnrollAndLeaveData added in v0.12.3

type EnrollAndLeaveData struct {
	Date string      `json:"date"`
	Data []InnerData `json:"data"`
}

func CalEnrollAndLeave added in v0.12.3

func CalEnrollAndLeave(req *HrmStatisticsQuery) ([]EnrollAndLeaveData, error)

type FamilyMemberInfo

type FamilyMemberInfo struct {
	Id         string `json:"id"`
	ArchiveId  string `json:"archiveId"`
	MemberName string `json:"memberName"`
	Relation   string `json:"relation"`
	Contact    string `json:"contact"`
	Profession string `json:"profession"`
	Health     string `json:"health"`
	Education  string `json:"education"`
	Remark     string `json:"remark"`
	CompanyId  string `json:"companyId"`
}

type GetAllArchiveRequest added in v0.11.13

type GetAllArchiveRequest struct {
	UserId string `form:"userId"`
}

type GetAllArchiveResponse added in v0.11.13

type GetAllArchiveResponse struct {
	Archive *AllArchive `json:"archive"`
	// contains filtered or unexported fields
}

type GetArchiveAvatarBase64Query added in v0.12.11

type GetArchiveAvatarBase64Query struct {
	PersonnelArchiveId string `form:"archiveId"`
}

type GetArchiveAvatarBase64Response added in v0.12.11

type GetArchiveAvatarBase64Response struct {
	Base64 string `json:"base64"`
	// contains filtered or unexported fields
}

======================人事档案管理===========================

type GetAssessRecordsQuery

type GetAssessRecordsQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetAssessRecordsResponse

type GetAssessRecordsResponse struct {
	PageNo     int                `json:"pageNo"`
	TotalCount int64              `json:"totalCount"`
	Infos      []AssessRecordInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetCertificatesQuery

type GetCertificatesQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetCertificatesResponse

type GetCertificatesResponse struct {
	PageNo     int               `json:"pageNo"`
	TotalCount int64             `json:"totalCount"`
	Infos      []CertificateInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetEducationExperienceResponse added in v0.11.10

type GetEducationExperienceResponse struct {
	PageNo     int                   `json:"pageNo"`
	TotalCount int64                 `json:"totalCount"`
	Infos      []EducationExperience `json:"infos"`
	// contains filtered or unexported fields
}

func GetEducationExperience added in v0.11.10

func GetEducationExperience(req *GetEducationExperiencesQuery) (*GetEducationExperienceResponse, error)

type GetEducationExperiencesQuery added in v0.11.10

type GetEducationExperiencesQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetFamilyMembersQuery

type GetFamilyMembersQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetFamilyMembersResponse

type GetFamilyMembersResponse struct {
	PageNo     int                `json:"pageNo"`
	TotalCount int64              `json:"totalCount"`
	Infos      []FamilyMemberInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetMotionRecodingsQuery

type GetMotionRecodingsQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetMotionRecodingsResponse

type GetMotionRecodingsResponse struct {
	PageNo     int                   `json:"pageNo"`
	TotalCount int64                 `json:"totalCount"`
	Infos      []MotionRecordingInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetPersonnelArchivesQuery

type GetPersonnelArchivesQuery struct {
	CompanyId        string `form:"companyId"`
	Id               string `form:"id"`
	UserId           string `form:"userId"`
	Name             string `form:"name"`
	WNo              string `form:"wNo"`
	Gender           string `form:"gender"`
	Department       string `form:"department"`
	Position         string `form:"position"`
	DutyLevel        string `form:"dutyLevel"`
	Duty             string `form:"duty"`
	IdentityType     string `form:"identityType"`
	EnrollmentDate   string `form:"enrollmentDate"`
	RegularStatus    string `form:"regularStatus"`
	RegularDate      string `form:"regularDate"`
	WorkingYear      int    `form:"workingYear"`
	CertificateType  string `form:"certificateType"`
	CertificateNo    string `form:"certificateNo"`
	Birthday         string `form:"birthday"`
	Nation           string `form:"nation"`
	NativePlace      string `form:"nativePlace"`
	PoliticsStatus   string `form:"politicsStatus"`
	MaritalStatus    string `form:"maritalStatus"`
	DomicilePlace    string `form:"domicilePlace"`
	StartingWorkDate string `form:"startingWorkDate"`
	HighestEducation string `form:"highestEducation"`
	University       string `form:"university"`
	Major            string `form:"major"`
	PhoneNo          string `form:"phoneNo"`
	Superior         string `form:"superior"`
	LeaveDate        string `json:"leaveDate"`
	PageNo           int    `form:"pageNo"`
	PageSize         int    `form:"pageSize"`
}

type GetPersonnelArchivesResponse

type GetPersonnelArchivesResponse struct {
	PageNo     int                    `json:"pageNo"`
	TotalCount int64                  `json:"totalCount"`
	Infos      []PersonnelArchiveInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetRewardPunishesQuery

type GetRewardPunishesQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetRewardPunishesResponse

type GetRewardPunishesResponse struct {
	PageNo     int                `json:"pageNo"`
	TotalCount int64              `json:"totalCount"`
	Infos      []RewardPunishInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetTrainingRecordsQuery

type GetTrainingRecordsQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetTrainingRecordsResponse

type GetTrainingRecordsResponse struct {
	PageNo     int                  `json:"pageNo"`
	TotalCount int64                `json:"totalCount"`
	Infos      []TrainingRecordInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetWorkExperiencesQuery

type GetWorkExperiencesQuery struct {
	CompanyId string `form:"companyId"`
	Id        string `form:"id"`
	ArchiveId string `form:"archiveId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetWorkExperiencesResponse

type GetWorkExperiencesResponse struct {
	PageNo     int                  `json:"pageNo"`
	TotalCount int64                `json:"totalCount"`
	Infos      []WorkExperienceInfo `json:"infos"`
	// contains filtered or unexported fields
}

type HrmStatisticsQuery added in v0.11.18

type HrmStatisticsQuery struct {
	CompanyId string `form:"companyId"`
}

type InnerData added in v0.12.3

type InnerData struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type LabelValueGroup added in v0.11.18

type LabelValueGroup struct {
	Labels []string `json:"labels"`
	Counts []int    `json:"counts"`
}

func CalPersonCountByAge added in v0.11.18

func CalPersonCountByAge(req *HrmStatisticsQuery) (*LabelValueGroup, error)

func CalPersonCountByEnrollDate added in v0.11.18

func CalPersonCountByEnrollDate(req *HrmStatisticsQuery) (*LabelValueGroup, error)

type MotionRecordingInfo

type MotionRecordingInfo struct {
	Id           string `json:"id"`
	ArchiveId    string `json:"archiveId"`
	MotionType   string `json:"motionType"`
	MotionDate   string `json:"motionDate"`
	BeforeCase   string `json:"beforeCase"`
	AfterCase    string `json:"afterCase"`
	MotionReason string `json:"motionReason"`
	ApproverId   string `json:"approverId"`
	ApproverName string `json:"approverName"`
	Remark       string `json:"remark"`
	CompanyId    string `json:"companyId"`
}

type NamValuePair added in v0.11.18

type NamValuePair struct {
	Name  string `json:"name"`
	Value int    `json:"value"`
}

func CalPersonCountByDepartment added in v0.11.18

func CalPersonCountByDepartment(req *HrmStatisticsQuery) ([]NamValuePair, error)

func CalPersonCountByHighestEdu added in v0.11.18

func CalPersonCountByHighestEdu(req *HrmStatisticsQuery) ([]NamValuePair, error)

type PersonnelArchiveInfo

type PersonnelArchiveInfo struct {
	Id               string `json:"id"`
	UserId           string `json:"userId"`
	Name             string `json:"name"`
	Gender           string `json:"gender"`
	WNo              string `json:"wNo"`
	Department       string `json:"department"`
	Position         string `json:"position"`
	DutyLevel        string `json:"dutyLevel"`
	Duty             string `json:"duty"`
	IdentityType     string `json:"identityType"`
	EnrollmentDate   string `json:"enrollmentDate"`
	RegularStatus    string `json:"regularStatus"`
	RegularDate      string `json:"regularDate"`
	WorkingYear      int    `json:"workingYear"`
	CertificateType  string `json:"certificateType"`
	CertificateNo    string `json:"certificateNo"`
	Birthday         string `json:"birthday"`
	Nation           string `json:"nation"`
	NativePlace      string `json:"nativePlace"`
	PoliticsStatus   string `json:"politicsStatus"`
	MaritalStatus    string `json:"maritalStatus"`
	DomicilePlace    string `json:"domicilePlace"`
	StartingWorkDate string `json:"startingWorkDate"`
	HighestEducation string `json:"highestEducation"`
	University       string `json:"university"`
	Major            string `json:"major"`
	PhoneNo          string `json:"phoneNo"`
	Email            string `json:"email"`
	Superior         string `json:"superior"`
	BasicSalary      int    `json:"basicSalary"`
	Subsidy          int    `json:"subsidy"`
	MeritSalary      int    `json:"meritSalary"`
	CompanyId        string `json:"companyId"`
	AvatarUrl        string `json:"avatarUrl"`
	LeaveDate        string `json:"leaveDate"`
}

type RewardPunishInfo

type RewardPunishInfo struct {
	Id           string  `json:"id"`
	ArchiveId    string  `json:"archiveId"`
	RpType       string  `json:"rpType"`
	Reason       string  `json:"reason"`
	Date         string  `json:"date"`
	Money        float32 `json:"money"`
	Remark       string  `json:"remark"`
	ApproverId   string  `json:"approverId"`
	ApproverName string  `json:"approverName"`
	CompanyId    string  `json:"companyId"`
}

type StatisticByEnrollAndLeaveResponse added in v0.12.3

type StatisticByEnrollAndLeaveResponse struct {
	Data []EnrollAndLeaveData `json:"data"`
	// contains filtered or unexported fields
}

type StatisticsByAgeResponse added in v0.11.18

type StatisticsByAgeResponse struct {
	Data *LabelValueGroup `json:"data"`
	// contains filtered or unexported fields
}

type StatisticsByDepartmentResponse added in v0.11.18

type StatisticsByDepartmentResponse struct {
	Data []NamValuePair `json:"data"`
	// contains filtered or unexported fields
}

type StatisticsByEnrollDateResponse added in v0.11.18

type StatisticsByEnrollDateResponse struct {
	Data *LabelValueGroup `json:"data"`
	// contains filtered or unexported fields
}

type StatisticsByHighestEduResponse added in v0.11.18

type StatisticsByHighestEduResponse struct {
	Data []NamValuePair `json:"data"`
	// contains filtered or unexported fields
}

type TrainingRecordInfo

type TrainingRecordInfo struct {
	Id              string  `json:"id"`
	ArchiveId       string  `json:"archiveId"`
	TrainingDate    string  `json:"trainingDate"`
	TrainingName    string  `json:"trainingName"`
	TrainingPlace   string  `json:"trainingPlace"`
	TrainingContent string  `json:"trainingContent"`
	TrainingHour    float32 `json:"trainingHour"`
	TrainingTeacher string  `json:"trainingTeacher"`
	TrainingScore   string  `json:"trainingScore"`
	TrainingCert    string  `json:"trainingCert"`
	Remark          string  `json:"remark"`
	CompanyId       string  `json:"companyId"`
}

type UpdateCertificateRequest

type UpdateCertificateRequest struct {
	CompanyId     string `json:"companyId"`
	Id            string `json:"id"`
	CertName      string `json:"certName"`
	ObtainDate    string `json:"obtainDate"`
	CertAuthority string `json:"certAuthority"`
	ValidPeriod   string `json:"validPeriod"`
	CertState     string `json:"certState"`
}

type UpdateCertificateResponse

type UpdateCertificateResponse struct {
	// contains filtered or unexported fields
}

type UpdateFamilyMemberRequest

type UpdateFamilyMemberRequest struct {
	CompanyId  string `json:"companyId" binding:"required"`
	Id         string `json:"id" binding:"required"`
	MemberName string `json:"memberName"`
	Relation   string `json:"relation"`
	Contact    string `json:"contact"`
	Profession string `json:"profession"`
	Health     string `json:"health"`
	Education  string `json:"education"`
	Remark     string `json:"remark"`
}

type UpdateFamilyMemberResponse

type UpdateFamilyMemberResponse struct {
	// contains filtered or unexported fields
}

type UpdateMotionRecodingRequest

type UpdateMotionRecodingRequest struct {
	CompanyId    string `json:"companyId" binding:"required"`
	Id           string `json:"id" binding:"required"`
	MotionType   string `json:"motionType"`
	MotionDate   string `json:"motionDate"`
	BeforeCase   string `json:"beforeCase"`
	AfterCase    string `json:"afterCase"`
	MotionReason string `json:"motionReason"`
	ApproverId   string `json:"approverId"`
	ApproverName string `json:"approverName"`
	Remark       string `json:"remark"`
}

type UpdateMotionRecodingResponse

type UpdateMotionRecodingResponse struct {
	// contains filtered or unexported fields
}

type UpdatePersonnelArchiveRequest

type UpdatePersonnelArchiveRequest struct {
	Id               string `json:"id"`
	CompanyId        string `json:"companyId"`
	UserId           string `json:"userId"`
	Name             string `json:"name"`
	Gender           string `json:"gender"`
	WNo              string `json:"wNo"`
	Department       string `json:"department"`
	Position         string `json:"position"`
	DutyLevel        string `json:"dutyLevel"`
	Duty             string `json:"duty"`
	IdentityType     string `json:"identityType"`
	EnrollmentDate   string `json:"enrollmentDate"`
	RegularStatus    string `json:"regularStatus"`
	RegularDate      string `json:"regularDate"`
	WorkingYear      int    `json:"workingYear"`
	CertificateType  string `json:"certificateType"`
	CertificateNo    string `json:"certificateNo"`
	Birthday         string `json:"birthday"`
	Nation           string `json:"nation"`
	NativePlace      string `json:"nativePlace"`
	PoliticsStatus   string `json:"politicsStatus"`
	MaritalStatus    string `json:"maritalStatus"`
	DomicilePlace    string `json:"domicilePlace"`
	StartingWorkDate string `json:"startingWorkDate"`
	HighestEducation string `json:"highestEducation"`
	University       string `json:"university"`
	Major            string `json:"major"`
	PhoneNo          string `json:"phoneNo"`
	Email            string `json:"email"`
	Superior         string `json:"superior"`
	BasicSalary      int    `json:"basicSalary" `
	Subsidy          int    `json:"subsidy" `
	MeritSalary      int    `json:"meritSalary" `
	AvatarObjName    string `json:"avatarObjName"`
	LeaveDate        string `json:"leaveDate"`
}

type UpdatePersonnelArchiveResponse

type UpdatePersonnelArchiveResponse struct {
	// contains filtered or unexported fields
}

type UpdateRewardPunishRequest

type UpdateRewardPunishRequest struct {
	CompanyId    string  `json:"companyId" binding:"required"`
	Id           string  `json:"id" binding:"required"`
	Reason       string  `json:"reason"`
	Date         string  `json:"date"`
	Money        float32 `json:"money"`
	Remark       string  `json:"remark"`
	ApproverId   string  `json:"approverId"`
	ApproverName string  `json:"approverName"`
}

type UpdateRewardPunishResponse

type UpdateRewardPunishResponse struct {
	// contains filtered or unexported fields
}

type UpdateTrainingRecordRequest

type UpdateTrainingRecordRequest struct {
	CompanyId       string  `json:"companyId" binding:"required"`
	Id              string  `json:"id" binding:"required"`
	TrainingDate    string  `json:"trainingDate"`
	TrainingName    string  `json:"trainingName"`
	TrainingPlace   string  `json:"trainingPlace"`
	TrainingContent string  `json:"trainingContent"`
	TrainingHour    float32 `json:"trainingHour"`
	TrainingTeacher string  `json:"trainingTeacher"`
	TrainingScore   string  `json:"trainingScore"`
	TrainingCert    string  `json:"trainingCert"`
	Remark          string  `json:"remark"`
}

type UpdateTrainingRecordResponse

type UpdateTrainingRecordResponse struct {
	// contains filtered or unexported fields
}

type UpdateWorkExperienceRequest

type UpdateWorkExperienceRequest struct {
	CompanyId       string `json:"companyId" binding:"required"`
	Id              string `json:"id" binding:"required"`
	CompanyName     string `json:"companyName"`
	StartTime       string `json:"startTime"`
	EndTime         string `json:"endTime"`
	Department      string `json:"department"`
	Position        string `json:"position"`
	WorkContent     string `json:"workContent"`
	WorkPerformance string `json:"workPerformance"`
	LeaveReason     string `json:"leaveReason"`
}

type UpdateWorkExperienceResponse

type UpdateWorkExperienceResponse struct {
	// contains filtered or unexported fields
}

type UploadTempPicRequest

type UploadTempPicRequest struct {
	Pic *multipart.FileHeader `form:"file"`
}

type UploadTempPicResponse

type UploadTempPicResponse struct {
	Url     string `json:"url"`
	ObjName string `json:"objName"`
	// contains filtered or unexported fields
}

func UploadSingleTempPic

func UploadSingleTempPic(req *UploadTempPicRequest) (*UploadTempPicResponse, error)

type WorkExperienceInfo

type WorkExperienceInfo struct {
	Id              string `json:"id"`
	ArchiveId       string `json:"archiveId"`
	CompanyName     string `json:"companyName"`
	StartTime       string `json:"startTime"`
	EndTime         string `json:"endTime"`
	Department      string `json:"department"`
	Position        string `json:"position"`
	WorkContent     string `json:"workContent"`
	WorkPerformance string `json:"workPerformance"`
	LeaveReason     string `json:"leaveReason"`
	CompanyId       string `json:"companyId"`
}

Jump to

Keyboard shortcuts

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