larkcorehr

package
v3.4.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeOpenQueryDepartmentChangeListByIdsApprovalGroupsUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeOpenQueryDepartmentChangeListByIdsApprovalGroupsUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeOpenQueryDepartmentChangeListByIdsApprovalGroupsOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeOpenQueryDepartmentChangeListByIdsApprovalGroupsPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeOpenQueryJobChangeListByIdsApprovalGroupsUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeOpenQueryJobChangeListByIdsApprovalGroupsUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeOpenQueryJobChangeListByIdsApprovalGroupsOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeOpenQueryJobChangeListByIdsApprovalGroupsPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeOpenQueryJobChangeListByIdsApprovalGroupsOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeOpenQueryJobChangeListByIdsApprovalGroupsDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeOpenQueryJobChangeListByIdsApprovalGroupsPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeListApproverUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeListApproverUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeListApproverOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeListApproverPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	ApproverStatusSkipped       = -2 // 跳过
	ApproverStatusInitiated     = -1 // 发起
	ApproverStatusNotStarted    = 0  // 未开始
	ApproverStatusInProgress    = 1  // 进行中
	ApproverStatusRejected      = 2  // 已拒绝
	ApproverStatusApproved      = 3  // 已通过
	ApproverStatusCancelled     = 4  // 被撤回
	ApproverStatusCC            = 5  // 抄送
	ApproverStatusFormSubmitted = 6  // 表单提交
	ApproverStatusFailed        = 12 // 失败
	ApproverStatusRolledBack    = 14 // 已回退
	ApproverStatusRevoke        = 16 // 发起撤销

)
View Source
const (
	UserIdTypeGetByDepartmentBpUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeGetByDepartmentBpUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeGetByDepartmentBpOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeGetByDepartmentBpPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeGetByDepartmentBpOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeGetByDepartmentBpDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeGetByDepartmentBpPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeListBpUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeListBpUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeListBpOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeListBpPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeListBpOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeListBpDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeListBpPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeSearchContractUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchContractUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchContractOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchContractPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeCreateCostCenterUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeCreateCostCenterUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeCreateCostCenterOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeCreateCostCenterPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypePatchCostCenterUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypePatchCostCenterUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypePatchCostCenterOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypePatchCostCenterPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeSearchCostCenterUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchCostCenterUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchCostCenterOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchCostCenterPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeCreateCostCenterVersionUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeCreateCostCenterVersionUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeCreateCostCenterVersionOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeCreateCostCenterVersionPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypePatchCostCenterVersionUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypePatchCostCenterVersionUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypePatchCostCenterVersionOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypePatchCostCenterVersionPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeBatchGetDepartmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeBatchGetDepartmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeBatchGetDepartmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeBatchGetDepartmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeBatchGetDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeBatchGetDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeBatchGetDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	DepartmentIdTypeDeleteDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeDeleteDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeDeleteDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	DepartmentIdTypeParentsDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeParentsDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeParentsDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypePatchDepartmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypePatchDepartmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypePatchDepartmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypePatchDepartmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypePatchDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypePatchDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypePatchDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeQueryMultiTimelineDepartmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeQueryMultiTimelineDepartmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeQueryMultiTimelineDepartmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeQueryMultiTimelineDepartmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeQueryMultiTimelineDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeQueryMultiTimelineDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeQueryMultiTimelineDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	DepartmentIdTypeQueryRecentChangeDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeQueryRecentChangeDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeQueryRecentChangeDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeQueryTimelineDepartmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeQueryTimelineDepartmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeQueryTimelineDepartmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeQueryTimelineDepartmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeQueryTimelineDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeQueryTimelineDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeQueryTimelineDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeSearchDepartmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchDepartmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchDepartmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchDepartmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeSearchDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeSearchDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	DepartmentIdTypeTreeDepartmentOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeTreeDepartmentDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeTreeDepartmentPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeBatchGetEmployeeUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeBatchGetEmployeeUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeBatchGetEmployeeOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeBatchGetEmployeePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeBatchGetEmployeeOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeBatchGetEmployeeDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeBatchGetEmployeePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	EmploymentStatusHired      = "hired"      // 在职
	EmploymentStatusTerminated = "terminated" // 离职
)
View Source
const (
	UserIdTypeSearchEmployeeUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchEmployeeUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchEmployeeOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchEmployeePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchEmployeeOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeSearchEmployeeDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeSearchEmployeePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeBatchEmployeesAdditionalJobUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeBatchEmployeesAdditionalJobUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeBatchEmployeesAdditionalJobOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeBatchEmployeesAdditionalJobPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeBatchEmployeesAdditionalJobOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeBatchEmployeesAdditionalJobDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeBatchEmployeesAdditionalJobPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeCreateEmployeesAdditionalJobUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeCreateEmployeesAdditionalJobUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeCreateEmployeesAdditionalJobOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeCreateEmployeesAdditionalJobPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeCreateEmployeesAdditionalJobOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeCreateEmployeesAdditionalJobDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeCreateEmployeesAdditionalJobPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypePatchEmployeesAdditionalJobUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypePatchEmployeesAdditionalJobUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypePatchEmployeesAdditionalJobOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypePatchEmployeesAdditionalJobPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypePatchEmployeesAdditionalJobOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypePatchEmployeesAdditionalJobDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypePatchEmployeesAdditionalJobPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeBatchGetEmployeesBpUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeBatchGetEmployeesBpUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeBatchGetEmployeesBpOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeBatchGetEmployeesBpPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeBatchGetEmployeesJobDataUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeBatchGetEmployeesJobDataUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeBatchGetEmployeesJobDataOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeBatchGetEmployeesJobDataPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeBatchGetEmployeesJobDataOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeBatchGetEmployeesJobDataDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeBatchGetEmployeesJobDataPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeQueryEmployeesJobDataUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeQueryEmployeesJobDataUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeQueryEmployeesJobDataOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeQueryEmployeesJobDataPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeQueryEmployeesJobDataOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeQueryEmployeesJobDataDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeQueryEmployeesJobDataPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeSearchJobChangeUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchJobChangeUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchJobChangeOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchJobChangePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchJobChangeOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeSearchJobChangeDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeSearchJobChangePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeEditOffboardingUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeEditOffboardingUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeEditOffboardingOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeEditOffboardingPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeRevokeOffboardingUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeRevokeOffboardingUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeRevokeOffboardingOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeRevokeOffboardingPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	OffboardingModeTerminationOfDismissal = 1 // 直接离职
	OffboardingModeOffboardingWithProcess = 2 // 发起离职审批

)
View Source
const (
	UserIdTypeSubmitV2OffboardingUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSubmitV2OffboardingUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSubmitV2OffboardingOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSubmitV2OffboardingPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeQueryPreHireUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeQueryPreHireUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeQueryPreHireOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeQueryPreHirePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeQueryPreHireOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeQueryPreHireDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeQueryPreHirePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	OnboardingStatusPreboarding = "preboarding" // 待入职
	OnboardingStatusDeleted     = "deleted"     // 已删除
	OnboardingStatusDayOne      = "day_one"     // 准备就绪
	OnboardingStatusWithdrawn   = "withdrawn"   // 已撤销
	OnboardingStatusCompleted   = "completed"   // 已完成
)
View Source
const (
	RehireToBeConfirmed = "to_be_confirmed" // 待确认,系统会判断该员工是否存在历史雇佣记录,如果存在且需要二次确认时会调用失败,并返回历史雇佣记录
	RehireNo            = "no"              // 否,系统直接标为非离职重聘人员,不再做重复判断
	RehireYes           = "yes"             // 是,要求历史雇佣信息 ID 必填
)
View Source
const (
	UserIdTypeSearchPreHireUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchPreHireUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchPreHireOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchPreHirePeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchPreHireOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeSearchPreHireDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeSearchPreHirePeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	ProbationStatusPending    = "pending"    // 审批中
	ProbationStatusRejected   = "rejected"   // 已拒绝
	ProbationStatusWaiting    = "waiting"    // 待发起转正
	ProbationStatusApproved   = "approved"   // 审批通过
	ProbationStatusConverted  = "converted"  // 已转正
	ProbationStatusOffboarded = "offboarded" // 已离职
)
View Source
const (
	FinalAssessmentResultApproved = "approved" // 通过
	FinalAssessmentResultRejected = "rejected" // 不通过
)
View Source
const (
	UserIdTypeSearchProbationUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSearchProbationUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSearchProbationOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSearchProbationPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchProbationOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeSearchProbationDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeSearchProbationPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	ConversionMode1 = 1 // 直接转正
	ConversionMode2 = 2 // 发起转正

)
View Source
const (
	SubmissionTypeSelfSubmission = "self_submission" // 员工
	SubmissionTypeSystem         = "system"          // 系统
	SubmissionTypeHrSubmission   = "hr_submission"   // HR
)
View Source
const (
	UserIdTypeSubmitProbationUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeSubmitProbationUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeSubmitProbationOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeSubmitProbationPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeWithdrawProbationUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeWithdrawProbationUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeWithdrawProbationOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeWithdrawProbationPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	UserIdTypeCreateProbationAssessmentUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeCreateProbationAssessmentUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeCreateProbationAssessmentOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeCreateProbationAssessmentPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	AssessmentStatusNotStarted = "not_started" // 未开始
	AssessmentStatusInProcess  = "in_process"  // 进行中
	AssessmentStatusCompleted  = "completed"   // 已完成
	AssessmentStatusNoNeed     = "no_need"     // 无需考核
)
View Source
const (
	AssessmentResultApproved = "approved" // 通过
	AssessmentResultRejected = "rejected" // 不通过
)
View Source
const (
	UserIdTypeGetProcessUserId         = "user_id"          // 以 user_id 来识别用户
	UserIdTypeGetProcessUnionId        = "union_id"         // 以 union_id 来识别用户
	UserIdTypeGetProcessOpenId         = "open_id"          // 以 open_id 来识别用户
	UserIdTypeGetProcessPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	StatusApproved = 2 // 拒绝
	StatusRejected = 3 // 通过

)
View Source
const (
	UserIdTypeUpdateProcessApproverOpenId         = "open_id"          // 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。了解更多:如何获取 Open ID
	UserIdTypeUpdateProcessApproverUnionId        = "union_id"         // 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。了解更多:如何获取 Union ID?
	UserIdTypeUpdateProcessApproverUserId         = "user_id"          // 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。了解更多:如何获取 User ID? 默认值:open_id 当值为 user_id,字段权限要求:获取用户 user ID(仅自建应用)
	UserIdTypeUpdateProcessApproverPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeUpdateProcessApproverOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeUpdateProcessApproverDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeUpdateProcessApproverPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 people_corehr_department_id 来标识部门
)
View Source
const (
	UserIdTypeGetProcessFormVariableDataOpenId         = "open_id"          // 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。了解更多:如何获取 Open ID
	UserIdTypeGetProcessFormVariableDataUnionId        = "union_id"         // 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。了解更多:如何获取 Union ID?
	UserIdTypeGetProcessFormVariableDataUserId         = "user_id"          // 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。了解更多:如何获取 User ID? 默认值:open_id 当值为 user_id,字段权限要求:获取用户 user ID(仅自建应用)
	UserIdTypeGetProcessFormVariableDataPeopleCorehrId = "people_corehr_id" // 以飞书人事的 ID 来识别用户
)
View Source
const (
	DepartmentIdTypeGetProcessFormVariableDataOpenDepartmentId         = "open_department_id"          // 以 open_department_id 来标识部门
	DepartmentIdTypeGetProcessFormVariableDataDepartmentId             = "department_id"               // 以 department_id 来标识部门
	DepartmentIdTypeGetProcessFormVariableDataPeopleCorehrDepartmentId = "people_corehr_department_id" // 以 department_id 来标识部门
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbnormalReason

type AbnormalReason struct {
	Id *string `json:"id,omitempty"` // 异常原因ID

	Type *int `json:"type,omitempty"` // 异常原因类型,1-系统异常,2-用户自定义异常;

	I18nElements []*AbnormalReasonI18nElement `json:"i18n_elements,omitempty"` // 异常原因列表
}

type AbnormalReasonBuilder

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

func NewAbnormalReasonBuilder

func NewAbnormalReasonBuilder() *AbnormalReasonBuilder

func (*AbnormalReasonBuilder) Build

func (builder *AbnormalReasonBuilder) Build() *AbnormalReason

func (*AbnormalReasonBuilder) I18nElements

func (builder *AbnormalReasonBuilder) I18nElements(i18nElements []*AbnormalReasonI18nElement) *AbnormalReasonBuilder

异常原因列表

示例值:

func (*AbnormalReasonBuilder) Id

异常原因ID

示例值:6893014062142064135

func (*AbnormalReasonBuilder) Type

func (builder *AbnormalReasonBuilder) Type(type_ int) *AbnormalReasonBuilder

异常原因类型,1-系统异常,2-用户自定义异常;

示例值:1

type AbnormalReasonElement

type AbnormalReasonElement struct {
	Tag *string `json:"tag,omitempty"` // 组件类型

	Text *string `json:"text,omitempty"` // 文本

	Href *string `json:"href,omitempty"` // 超链接
}

type AbnormalReasonElementBuilder

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

func NewAbnormalReasonElementBuilder

func NewAbnormalReasonElementBuilder() *AbnormalReasonElementBuilder

func (*AbnormalReasonElementBuilder) Build

func (*AbnormalReasonElementBuilder) Href

超链接

示例值:https://open.feishu.cn/

func (*AbnormalReasonElementBuilder) Tag

组件类型

示例值:a,text

func (*AbnormalReasonElementBuilder) Text

文本

示例值:这个是一个文本字段

type AbnormalReasonI18nElement

type AbnormalReasonI18nElement struct {
	Lang *string `json:"lang,omitempty"` // 语言

	Elements []*AbnormalReasonElement `json:"elements,omitempty"` // 异常原因列表
}

type AbnormalReasonI18nElementBuilder

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

func NewAbnormalReasonI18nElementBuilder

func NewAbnormalReasonI18nElementBuilder() *AbnormalReasonI18nElementBuilder

func (*AbnormalReasonI18nElementBuilder) Build

func (*AbnormalReasonI18nElementBuilder) Elements

异常原因列表

示例值:

func (*AbnormalReasonI18nElementBuilder) Lang

语言

示例值:zh-CN,en-US

type ActiveCompanyPathReqBodyBuilder added in v3.3.7

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

func NewActiveCompanyPathReqBodyBuilder added in v3.3.7

func NewActiveCompanyPathReqBodyBuilder() *ActiveCompanyPathReqBodyBuilder

func (*ActiveCompanyPathReqBodyBuilder) Active added in v3.3.7

启用停用状态

示例值:true

func (*ActiveCompanyPathReqBodyBuilder) Build added in v3.3.7

func (*ActiveCompanyPathReqBodyBuilder) CompanyId added in v3.3.7

公司ID

示例值:1616161616

func (*ActiveCompanyPathReqBodyBuilder) EffectiveTime added in v3.3.7

func (builder *ActiveCompanyPathReqBodyBuilder) EffectiveTime(effectiveTime string) *ActiveCompanyPathReqBodyBuilder

生效时间

示例值:2020-01-01

func (*ActiveCompanyPathReqBodyBuilder) OperationReason added in v3.3.7

func (builder *ActiveCompanyPathReqBodyBuilder) OperationReason(operationReason string) *ActiveCompanyPathReqBodyBuilder

操作原因

示例值:业务操作

type ActiveCompanyReq added in v3.3.7

type ActiveCompanyReq struct {
	Body *ActiveCompanyReqBody `body:""`
	// contains filtered or unexported fields
}

type ActiveCompanyReqBody added in v3.3.7

type ActiveCompanyReqBody struct {
	CompanyId *string `json:"company_id,omitempty"` // 公司ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	Active *bool `json:"active,omitempty"` // 启用停用状态

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type ActiveCompanyReqBodyBuilder added in v3.3.7

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

func NewActiveCompanyReqBodyBuilder added in v3.3.7

func NewActiveCompanyReqBodyBuilder() *ActiveCompanyReqBodyBuilder

func (*ActiveCompanyReqBodyBuilder) Active added in v3.3.7

启用停用状态

示例值:true

func (*ActiveCompanyReqBodyBuilder) Build added in v3.3.7

func (*ActiveCompanyReqBodyBuilder) CompanyId added in v3.3.7

func (builder *ActiveCompanyReqBodyBuilder) CompanyId(companyId string) *ActiveCompanyReqBodyBuilder

公司ID

示例值:1616161616

func (*ActiveCompanyReqBodyBuilder) EffectiveTime added in v3.3.7

func (builder *ActiveCompanyReqBodyBuilder) EffectiveTime(effectiveTime string) *ActiveCompanyReqBodyBuilder

生效时间

示例值:2020-01-01

func (*ActiveCompanyReqBodyBuilder) OperationReason added in v3.3.7

func (builder *ActiveCompanyReqBodyBuilder) OperationReason(operationReason string) *ActiveCompanyReqBodyBuilder

操作原因

示例值:业务操作

type ActiveCompanyReqBuilder added in v3.3.7

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

func NewActiveCompanyReqBuilder added in v3.3.7

func NewActiveCompanyReqBuilder() *ActiveCompanyReqBuilder

func (*ActiveCompanyReqBuilder) Body added in v3.3.7

func (*ActiveCompanyReqBuilder) Build added in v3.3.7

func (builder *ActiveCompanyReqBuilder) Build() *ActiveCompanyReq

type ActiveCompanyResp added in v3.3.7

type ActiveCompanyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*ActiveCompanyResp) Success added in v3.3.7

func (resp *ActiveCompanyResp) Success() bool

type ActiveLocationPathReqBodyBuilder added in v3.3.7

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

func NewActiveLocationPathReqBodyBuilder added in v3.3.7

func NewActiveLocationPathReqBodyBuilder() *ActiveLocationPathReqBodyBuilder

func (*ActiveLocationPathReqBodyBuilder) Active added in v3.3.7

启用停用状态

示例值:true

func (*ActiveLocationPathReqBodyBuilder) Build added in v3.3.7

func (*ActiveLocationPathReqBodyBuilder) EffectiveTime added in v3.3.7

func (builder *ActiveLocationPathReqBodyBuilder) EffectiveTime(effectiveTime string) *ActiveLocationPathReqBodyBuilder

生效时间

示例值:2020-01-01

func (*ActiveLocationPathReqBodyBuilder) LocationId added in v3.3.7

地点 ID

示例值:1616161616

func (*ActiveLocationPathReqBodyBuilder) OperationReason added in v3.3.7

func (builder *ActiveLocationPathReqBodyBuilder) OperationReason(operationReason string) *ActiveLocationPathReqBodyBuilder

操作原因

示例值:业务操作

type ActiveLocationReq added in v3.3.7

type ActiveLocationReq struct {
	Body *ActiveLocationReqBody `body:""`
	// contains filtered or unexported fields
}

type ActiveLocationReqBody added in v3.3.7

type ActiveLocationReqBody struct {
	LocationId *string `json:"location_id,omitempty"` // 地点 ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	Active *bool `json:"active,omitempty"` // 启用停用状态

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type ActiveLocationReqBodyBuilder added in v3.3.7

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

func NewActiveLocationReqBodyBuilder added in v3.3.7

func NewActiveLocationReqBodyBuilder() *ActiveLocationReqBodyBuilder

func (*ActiveLocationReqBodyBuilder) Active added in v3.3.7

启用停用状态

示例值:true

func (*ActiveLocationReqBodyBuilder) Build added in v3.3.7

func (*ActiveLocationReqBodyBuilder) EffectiveTime added in v3.3.7

func (builder *ActiveLocationReqBodyBuilder) EffectiveTime(effectiveTime string) *ActiveLocationReqBodyBuilder

生效时间

示例值:2020-01-01

func (*ActiveLocationReqBodyBuilder) LocationId added in v3.3.7

func (builder *ActiveLocationReqBodyBuilder) LocationId(locationId string) *ActiveLocationReqBodyBuilder

地点 ID

示例值:1616161616

func (*ActiveLocationReqBodyBuilder) OperationReason added in v3.3.7

func (builder *ActiveLocationReqBodyBuilder) OperationReason(operationReason string) *ActiveLocationReqBodyBuilder

操作原因

示例值:业务操作

type ActiveLocationReqBuilder added in v3.3.7

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

func NewActiveLocationReqBuilder added in v3.3.7

func NewActiveLocationReqBuilder() *ActiveLocationReqBuilder

func (*ActiveLocationReqBuilder) Body added in v3.3.7

启停/停用地点

func (*ActiveLocationReqBuilder) Build added in v3.3.7

func (builder *ActiveLocationReqBuilder) Build() *ActiveLocationReq

type ActiveLocationResp added in v3.3.7

type ActiveLocationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*ActiveLocationResp) Success added in v3.3.7

func (resp *ActiveLocationResp) Success() bool

type Address

type Address struct {
	FullAddressLocalScript *string `json:"full_address_local_script,omitempty"` // 完整地址(本地文字)

	FullAddressWesternScript *string `json:"full_address_western_script,omitempty"` // 完整地址(西方文字)

	AddressId *string `json:"address_id,omitempty"` // 地址 ID

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	RegionId *string `json:"region_id,omitempty"` // 主要行政区

	CityId *string `json:"city_id,omitempty"` // 城市(该字段待作废,请勿使用)

	DistinctId *string `json:"distinct_id,omitempty"` // 区/县(该字段待作废,请勿使用)

	CityIdV2 *string `json:"city_id_v2,omitempty"` // 城市

	DistrictIdV2 *string `json:"district_id_v2,omitempty"` // 区/县

	AddressLine1 *string `json:"address_line1,omitempty"` // 地址行 1

	AddressLine2 *string `json:"address_line2,omitempty"` // 地址行 2

	AddressLine3 *string `json:"address_line3,omitempty"` // 地址行 3

	AddressLine4 *string `json:"address_line4,omitempty"` // 地址行 4

	AddressLine5 *string `json:"address_line5,omitempty"` // 地址行 5

	AddressLine6 *string `json:"address_line6,omitempty"` // 地址行 6

	AddressLine7 *string `json:"address_line7,omitempty"` // 地址行 7

	AddressLine8 *string `json:"address_line8,omitempty"` // 地址行 8

	AddressLine9 *string `json:"address_line9,omitempty"` // 地址行 9

	LocalAddressLine1 *string `json:"local_address_line1,omitempty"` // 地址行 1(非拉丁语系的本地文字)

	LocalAddressLine2 *string `json:"local_address_line2,omitempty"` // 地址行 2(非拉丁语系的本地文字)

	LocalAddressLine3 *string `json:"local_address_line3,omitempty"` // 地址行 3(非拉丁语系的本地文字)

	LocalAddressLine4 *string `json:"local_address_line4,omitempty"` // 地址行 4(非拉丁语系的本地文字)

	LocalAddressLine5 *string `json:"local_address_line5,omitempty"` // 地址行 5(非拉丁语系的本地文字)

	LocalAddressLine6 *string `json:"local_address_line6,omitempty"` // 地址行 6(非拉丁语系的本地文字)

	LocalAddressLine7 *string `json:"local_address_line7,omitempty"` // 地址行 7(非拉丁语系的本地文字)

	LocalAddressLine8 *string `json:"local_address_line8,omitempty"` // 地址行 8(非拉丁语系的本地文字)

	LocalAddressLine9 *string `json:"local_address_line9,omitempty"` // 地址行 9(非拉丁语系的本地文字)

	PostalCode *string `json:"postal_code,omitempty"` // 邮政编码

	AddressTypeList []*Enum `json:"address_type_list,omitempty"` // 地址类型

	IsPrimary *bool `json:"is_primary,omitempty"` // 主要地址

	IsPublic *bool `json:"is_public,omitempty"` // 公开地址

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	CitySubdivision1 *string `json:"city_subdivision_1,omitempty"` // 城市往下细分 1 层的行政区

	CitySubdivision2 *string `json:"city_subdivision_2,omitempty"` // 城市往下细分 2 层的行政区

	RegionSubdivision1 *string `json:"region_subdivision_1,omitempty"` // 主要行政区往下细分 1 层的行政区

	RegionSubdivision2 *string `json:"region_subdivision_2,omitempty"` // 主要行政区往下细分 2 层的行政区
}

type AddressBuilder

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

func NewAddressBuilder

func NewAddressBuilder() *AddressBuilder

func (*AddressBuilder) AddressId

func (builder *AddressBuilder) AddressId(addressId string) *AddressBuilder

地址 ID

示例值:6989822217869624863

func (*AddressBuilder) AddressLine1 added in v3.2.6

func (builder *AddressBuilder) AddressLine1(addressLine1 string) *AddressBuilder

地址行 1

示例值:丹佛测试地址-纽埃时区

func (*AddressBuilder) AddressLine2 added in v3.2.6

func (builder *AddressBuilder) AddressLine2(addressLine2 string) *AddressBuilder

地址行 2

示例值:PoewH

func (*AddressBuilder) AddressLine3 added in v3.2.6

func (builder *AddressBuilder) AddressLine3(addressLine3 string) *AddressBuilder

地址行 3

示例值:PoewH

func (*AddressBuilder) AddressLine4 added in v3.2.6

func (builder *AddressBuilder) AddressLine4(addressLine4 string) *AddressBuilder

地址行 4

示例值:jmwJc

func (*AddressBuilder) AddressLine5 added in v3.2.6

func (builder *AddressBuilder) AddressLine5(addressLine5 string) *AddressBuilder

地址行 5

示例值:jmwJc

func (*AddressBuilder) AddressLine6 added in v3.2.6

func (builder *AddressBuilder) AddressLine6(addressLine6 string) *AddressBuilder

地址行 6

示例值:jmwJc

func (*AddressBuilder) AddressLine7 added in v3.2.6

func (builder *AddressBuilder) AddressLine7(addressLine7 string) *AddressBuilder

地址行 7

示例值:jmwJc

func (*AddressBuilder) AddressLine8 added in v3.2.6

func (builder *AddressBuilder) AddressLine8(addressLine8 string) *AddressBuilder

地址行 8

示例值:rafSu

func (*AddressBuilder) AddressLine9 added in v3.2.6

func (builder *AddressBuilder) AddressLine9(addressLine9 string) *AddressBuilder

地址行 9

示例值:McPRG

func (*AddressBuilder) AddressTypeList

func (builder *AddressBuilder) AddressTypeList(addressTypeList []*Enum) *AddressBuilder

地址类型

示例值:

func (*AddressBuilder) Build

func (builder *AddressBuilder) Build() *Address

func (*AddressBuilder) CityId added in v3.4.2

func (builder *AddressBuilder) CityId(cityId string) *AddressBuilder

城市(该字段待作废,请勿使用)

示例值:6863333254578046471

func (*AddressBuilder) CityIdV2 added in v3.1.2

func (builder *AddressBuilder) CityIdV2(cityIdV2 string) *AddressBuilder

城市

示例值:6863333254578046471

func (*AddressBuilder) CitySubdivision1 added in v3.3.4

func (builder *AddressBuilder) CitySubdivision1(citySubdivision1 string) *AddressBuilder

城市往下细分 1 层的行政区

示例值:123

func (*AddressBuilder) CitySubdivision2 added in v3.3.4

func (builder *AddressBuilder) CitySubdivision2(citySubdivision2 string) *AddressBuilder

城市往下细分 2 层的行政区

示例值:123

func (*AddressBuilder) CountryRegionId

func (builder *AddressBuilder) CountryRegionId(countryRegionId string) *AddressBuilder

国家 / 地区

示例值:6862995757234914824

func (*AddressBuilder) CustomFields

func (builder *AddressBuilder) CustomFields(customFields []*CustomFieldData) *AddressBuilder

自定义字段

示例值:

func (*AddressBuilder) DistinctId added in v3.4.2

func (builder *AddressBuilder) DistinctId(distinctId string) *AddressBuilder

区/县(该字段待作废,请勿使用)

示例值:6863333516579440141

func (*AddressBuilder) DistrictIdV2 added in v3.1.2

func (builder *AddressBuilder) DistrictIdV2(districtIdV2 string) *AddressBuilder

区/县

示例值:6863333516579440141

func (*AddressBuilder) FullAddressLocalScript

func (builder *AddressBuilder) FullAddressLocalScript(fullAddressLocalScript string) *AddressBuilder

完整地址(本地文字)

示例值:中国北京北京

func (*AddressBuilder) FullAddressWesternScript

func (builder *AddressBuilder) FullAddressWesternScript(fullAddressWesternScript string) *AddressBuilder

完整地址(西方文字)

示例值:Beijing, Beijing, China,

func (*AddressBuilder) IsPrimary

func (builder *AddressBuilder) IsPrimary(isPrimary bool) *AddressBuilder

主要地址

示例值:true

func (*AddressBuilder) IsPublic

func (builder *AddressBuilder) IsPublic(isPublic bool) *AddressBuilder

公开地址

示例值:true

func (*AddressBuilder) LocalAddressLine1

func (builder *AddressBuilder) LocalAddressLine1(localAddressLine1 string) *AddressBuilder

地址行 1(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*AddressBuilder) LocalAddressLine2

func (builder *AddressBuilder) LocalAddressLine2(localAddressLine2 string) *AddressBuilder

地址行 2(非拉丁语系的本地文字)

示例值:PoewH

func (*AddressBuilder) LocalAddressLine3

func (builder *AddressBuilder) LocalAddressLine3(localAddressLine3 string) *AddressBuilder

地址行 3(非拉丁语系的本地文字)

示例值:PoewH

func (*AddressBuilder) LocalAddressLine4

func (builder *AddressBuilder) LocalAddressLine4(localAddressLine4 string) *AddressBuilder

地址行 4(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressBuilder) LocalAddressLine5

func (builder *AddressBuilder) LocalAddressLine5(localAddressLine5 string) *AddressBuilder

地址行 5(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressBuilder) LocalAddressLine6

func (builder *AddressBuilder) LocalAddressLine6(localAddressLine6 string) *AddressBuilder

地址行 6(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressBuilder) LocalAddressLine7

func (builder *AddressBuilder) LocalAddressLine7(localAddressLine7 string) *AddressBuilder

地址行 7(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressBuilder) LocalAddressLine8

func (builder *AddressBuilder) LocalAddressLine8(localAddressLine8 string) *AddressBuilder

地址行 8(非拉丁语系的本地文字)

示例值:rafSu

func (*AddressBuilder) LocalAddressLine9

func (builder *AddressBuilder) LocalAddressLine9(localAddressLine9 string) *AddressBuilder

地址行 9(非拉丁语系的本地文字)

示例值:McPRG

func (*AddressBuilder) PostalCode

func (builder *AddressBuilder) PostalCode(postalCode string) *AddressBuilder

邮政编码

示例值:611530

func (*AddressBuilder) RegionId

func (builder *AddressBuilder) RegionId(regionId string) *AddressBuilder

主要行政区

示例值:6863326815667095047

func (*AddressBuilder) RegionSubdivision1 added in v3.3.4

func (builder *AddressBuilder) RegionSubdivision1(regionSubdivision1 string) *AddressBuilder

主要行政区往下细分 1 层的行政区

示例值:123

func (*AddressBuilder) RegionSubdivision2 added in v3.3.4

func (builder *AddressBuilder) RegionSubdivision2(regionSubdivision2 string) *AddressBuilder

主要行政区往下细分 2 层的行政区

示例值:123

type AddressForUpdate added in v3.2.8

type AddressForUpdate struct {
	AddressId *string `json:"address_id,omitempty"` // 地址 ID

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	RegionId *string `json:"region_id,omitempty"` // 主要行政区

	LocalAddressLine1 *string `json:"local_address_line1,omitempty"` // 地址行 1(非拉丁语系的本地文字)

	LocalAddressLine2 *string `json:"local_address_line2,omitempty"` // 地址行 2(非拉丁语系的本地文字)

	LocalAddressLine3 *string `json:"local_address_line3,omitempty"` // 地址行 3(非拉丁语系的本地文字)

	LocalAddressLine4 *string `json:"local_address_line4,omitempty"` // 地址行 4(非拉丁语系的本地文字)

	LocalAddressLine5 *string `json:"local_address_line5,omitempty"` // 地址行 5(非拉丁语系的本地文字)

	LocalAddressLine6 *string `json:"local_address_line6,omitempty"` // 地址行 6(非拉丁语系的本地文字)

	LocalAddressLine7 *string `json:"local_address_line7,omitempty"` // 地址行 7(非拉丁语系的本地文字)

	LocalAddressLine8 *string `json:"local_address_line8,omitempty"` // 地址行 8(非拉丁语系的本地文字)

	LocalAddressLine9 *string `json:"local_address_line9,omitempty"` // 地址行 9(非拉丁语系的本地文字)

	PostalCode *string `json:"postal_code,omitempty"` // 邮政编码

	AddressTypes []string `json:"address_types,omitempty"` // 地址类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "address" - custom_api_name = "address_type"

	IsPrimary *bool `json:"is_primary,omitempty"` // 主要地址

	IsPublic *bool `json:"is_public,omitempty"` // 公开地址
}

type AddressForUpdateBuilder added in v3.2.8

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

func NewAddressForUpdateBuilder added in v3.2.8

func NewAddressForUpdateBuilder() *AddressForUpdateBuilder

func (*AddressForUpdateBuilder) AddressId added in v3.2.8

func (builder *AddressForUpdateBuilder) AddressId(addressId string) *AddressForUpdateBuilder

地址 ID

示例值:6989822217869624863

func (*AddressForUpdateBuilder) AddressTypes added in v3.2.8

func (builder *AddressForUpdateBuilder) AddressTypes(addressTypes []string) *AddressForUpdateBuilder

地址类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "address" - custom_api_name = "address_type"

示例值:

func (*AddressForUpdateBuilder) Build added in v3.2.8

func (builder *AddressForUpdateBuilder) Build() *AddressForUpdate

func (*AddressForUpdateBuilder) CountryRegionId added in v3.2.8

func (builder *AddressForUpdateBuilder) CountryRegionId(countryRegionId string) *AddressForUpdateBuilder

国家 / 地区

示例值:6862995757234914824

func (*AddressForUpdateBuilder) IsPrimary added in v3.2.8

func (builder *AddressForUpdateBuilder) IsPrimary(isPrimary bool) *AddressForUpdateBuilder

主要地址

示例值:true

func (*AddressForUpdateBuilder) IsPublic added in v3.2.8

func (builder *AddressForUpdateBuilder) IsPublic(isPublic bool) *AddressForUpdateBuilder

公开地址

示例值:true

func (*AddressForUpdateBuilder) LocalAddressLine1 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine1(localAddressLine1 string) *AddressForUpdateBuilder

地址行 1(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*AddressForUpdateBuilder) LocalAddressLine2 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine2(localAddressLine2 string) *AddressForUpdateBuilder

地址行 2(非拉丁语系的本地文字)

示例值:PoewH

func (*AddressForUpdateBuilder) LocalAddressLine3 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine3(localAddressLine3 string) *AddressForUpdateBuilder

地址行 3(非拉丁语系的本地文字)

示例值:PoewH

func (*AddressForUpdateBuilder) LocalAddressLine4 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine4(localAddressLine4 string) *AddressForUpdateBuilder

地址行 4(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressForUpdateBuilder) LocalAddressLine5 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine5(localAddressLine5 string) *AddressForUpdateBuilder

地址行 5(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressForUpdateBuilder) LocalAddressLine6 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine6(localAddressLine6 string) *AddressForUpdateBuilder

地址行 6(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressForUpdateBuilder) LocalAddressLine7 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine7(localAddressLine7 string) *AddressForUpdateBuilder

地址行 7(非拉丁语系的本地文字)

示例值:jmwJc

func (*AddressForUpdateBuilder) LocalAddressLine8 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine8(localAddressLine8 string) *AddressForUpdateBuilder

地址行 8(非拉丁语系的本地文字)

示例值:rafSu

func (*AddressForUpdateBuilder) LocalAddressLine9 added in v3.2.8

func (builder *AddressForUpdateBuilder) LocalAddressLine9(localAddressLine9 string) *AddressForUpdateBuilder

地址行 9(非拉丁语系的本地文字)

示例值:McPRG

func (*AddressForUpdateBuilder) PostalCode added in v3.2.8

func (builder *AddressForUpdateBuilder) PostalCode(postalCode string) *AddressForUpdateBuilder

邮政编码

示例值:611530

func (*AddressForUpdateBuilder) RegionId added in v3.2.8

func (builder *AddressForUpdateBuilder) RegionId(regionId string) *AddressForUpdateBuilder

主要行政区

示例值:6863326815667095047

type ApprovalGroup

type ApprovalGroup struct {
	ApprovalGroupId *string `json:"approval_group_id,omitempty"` // 组织架构调整审批组 ID

	ProcessId *string `json:"process_id,omitempty"` // 组织架构调整流程 ID

	ApprovalGroupStatus *string `json:"approval_group_status,omitempty"` // 组织架构调整流程状态

	Topic *string `json:"topic,omitempty"` // 调整主题

	AdjustReason *string `json:"adjust_reason,omitempty"` // 调整原因

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	CreatedBy *string `json:"created_by,omitempty"` // 发起人

	DraftId *string `json:"draft_id,omitempty"` // 组织架构调整任务 ID

	DraftStatus *string `json:"draft_status,omitempty"` // 组织架构调整任务状态

	DepartmentChanges []string `json:"department_changes,omitempty"` // 关联的部门调整记录 ID 列表

	JobChanges []string `json:"job_changes,omitempty"` // 关联的人员调整记录 ID 列表

	PositionChanges []string `json:"position_changes,omitempty"` // 关联的岗位调整记录 ID 列表
}

type ApprovalGroupBuilder

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

func NewApprovalGroupBuilder

func NewApprovalGroupBuilder() *ApprovalGroupBuilder

func (*ApprovalGroupBuilder) AdjustReason

func (builder *ApprovalGroupBuilder) AdjustReason(adjustReason string) *ApprovalGroupBuilder

调整原因

示例值:测试

func (*ApprovalGroupBuilder) ApprovalGroupId

func (builder *ApprovalGroupBuilder) ApprovalGroupId(approvalGroupId string) *ApprovalGroupBuilder

组织架构调整审批组 ID

示例值:6991776076699549697

func (*ApprovalGroupBuilder) ApprovalGroupStatus

func (builder *ApprovalGroupBuilder) ApprovalGroupStatus(approvalGroupStatus string) *ApprovalGroupBuilder

组织架构调整流程状态

示例值:

func (*ApprovalGroupBuilder) Build

func (builder *ApprovalGroupBuilder) Build() *ApprovalGroup

func (*ApprovalGroupBuilder) CreatedBy

func (builder *ApprovalGroupBuilder) CreatedBy(createdBy string) *ApprovalGroupBuilder

发起人

示例值:6974641477444060708

func (*ApprovalGroupBuilder) DepartmentChanges

func (builder *ApprovalGroupBuilder) DepartmentChanges(departmentChanges []string) *ApprovalGroupBuilder

关联的部门调整记录 ID 列表

示例值:

func (*ApprovalGroupBuilder) DraftId

func (builder *ApprovalGroupBuilder) DraftId(draftId string) *ApprovalGroupBuilder

组织架构调整任务 ID

示例值:6991776076699549697

func (*ApprovalGroupBuilder) DraftStatus

func (builder *ApprovalGroupBuilder) DraftStatus(draftStatus string) *ApprovalGroupBuilder

组织架构调整任务状态

示例值:

func (*ApprovalGroupBuilder) EffectiveDate

func (builder *ApprovalGroupBuilder) EffectiveDate(effectiveDate string) *ApprovalGroupBuilder

生效日期

示例值:2022-03-01

func (*ApprovalGroupBuilder) JobChanges

func (builder *ApprovalGroupBuilder) JobChanges(jobChanges []string) *ApprovalGroupBuilder

关联的人员调整记录 ID 列表

示例值:

func (*ApprovalGroupBuilder) PositionChanges added in v3.3.4

func (builder *ApprovalGroupBuilder) PositionChanges(positionChanges []string) *ApprovalGroupBuilder

关联的岗位调整记录 ID 列表

示例值:

func (*ApprovalGroupBuilder) ProcessId

func (builder *ApprovalGroupBuilder) ProcessId(processId string) *ApprovalGroupBuilder

组织架构调整流程 ID

示例值:6991776076699549697

func (*ApprovalGroupBuilder) Topic

func (builder *ApprovalGroupBuilder) Topic(topic string) *ApprovalGroupBuilder

调整主题

示例值:测试组织架构调整

type ApproverInfo added in v3.3.4

type ApproverInfo struct {
	ApproverId *string `json:"approver_id,omitempty"` // 审批任务id

	ProcessId *string `json:"process_id,omitempty"` // 流程id

	ApproverStatus *int `json:"approver_status,omitempty"` // 任务状态
}

type ApproverInfoBuilder added in v3.3.4

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

func NewApproverInfoBuilder added in v3.3.4

func NewApproverInfoBuilder() *ApproverInfoBuilder

func (*ApproverInfoBuilder) ApproverId added in v3.3.4

func (builder *ApproverInfoBuilder) ApproverId(approverId string) *ApproverInfoBuilder

审批任务id

示例值:7410781046418966060

func (*ApproverInfoBuilder) ApproverStatus added in v3.3.4

func (builder *ApproverInfoBuilder) ApproverStatus(approverStatus int) *ApproverInfoBuilder

任务状态

示例值:1

func (*ApproverInfoBuilder) Build added in v3.3.4

func (builder *ApproverInfoBuilder) Build() *ApproverInfo

func (*ApproverInfoBuilder) ProcessId added in v3.3.4

func (builder *ApproverInfoBuilder) ProcessId(processId string) *ApproverInfoBuilder

流程id

示例值:7410781046418966060

type Assessment

type Assessment struct {
	AssessmentId *string `json:"assessment_id,omitempty"` // 考核结果 ID

	AssessmentStatus *Enum `json:"assessment_status,omitempty"` // 考核状态

	AssessmentResult *Enum `json:"assessment_result,omitempty"` // 试用期考核结果

	AssessmentScore *float64 `json:"assessment_score,omitempty"` // 考核得分

	AssessmentGrade *Enum `json:"assessment_grade,omitempty"` // 试用期考核等级

	AssessmentComment *string `json:"assessment_comment,omitempty"` // 考核评语

	AssessmentDetail *string `json:"assessment_detail,omitempty"` // 考核结果页面超链接

	IsFinalAsssessment *bool `json:"is_final_asssessment,omitempty"` // 是否为最终考核结果
}

type AssessmentBuilder

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

func NewAssessmentBuilder

func NewAssessmentBuilder() *AssessmentBuilder

func (*AssessmentBuilder) AssessmentComment

func (builder *AssessmentBuilder) AssessmentComment(assessmentComment string) *AssessmentBuilder

考核评语

示例值:超出预期

func (*AssessmentBuilder) AssessmentGrade

func (builder *AssessmentBuilder) AssessmentGrade(assessmentGrade *Enum) *AssessmentBuilder

试用期考核等级

示例值:

func (*AssessmentBuilder) AssessmentId

func (builder *AssessmentBuilder) AssessmentId(assessmentId string) *AssessmentBuilder

考核结果 ID

示例值:6893014061142064135

func (*AssessmentBuilder) AssessmentResult

func (builder *AssessmentBuilder) AssessmentResult(assessmentResult *Enum) *AssessmentBuilder

试用期考核结果

示例值:

func (*AssessmentBuilder) AssessmentScore

func (builder *AssessmentBuilder) AssessmentScore(assessmentScore float64) *AssessmentBuilder

考核得分

示例值:99.9

func (*AssessmentBuilder) AssessmentStatus

func (builder *AssessmentBuilder) AssessmentStatus(assessmentStatus *Enum) *AssessmentBuilder

考核状态

示例值:

func (*AssessmentBuilder) Build

func (builder *AssessmentBuilder) Build() *Assessment

func (*AssessmentBuilder) IsFinalAsssessment

func (builder *AssessmentBuilder) IsFinalAsssessment(isFinalAsssessment bool) *AssessmentBuilder

是否为最终考核结果

示例值:false

type AssessmentForCreate

type AssessmentForCreate struct {
	AssessmentStatus *string `json:"assessment_status,omitempty"` // 考核状态

	AssessmentResult *string `json:"assessment_result,omitempty"` // 试用期考核结果

	AssessmentScore *float64 `json:"assessment_score,omitempty"` // 考核得分

	AssessmentGrade *string `json:"assessment_grade,omitempty"` // 试用期考核等级

	AssessmentComment *string `json:"assessment_comment,omitempty"` // 考核评语

	AssessmentDetail *string `json:"assessment_detail,omitempty"` // 考核结果页面超链接

	IsFinalAsssessment *bool `json:"is_final_asssessment,omitempty"` // 是否为最终考核结果
}

type AssessmentForCreateBuilder

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

func NewAssessmentForCreateBuilder

func NewAssessmentForCreateBuilder() *AssessmentForCreateBuilder

func (*AssessmentForCreateBuilder) AssessmentComment

func (builder *AssessmentForCreateBuilder) AssessmentComment(assessmentComment string) *AssessmentForCreateBuilder

考核评语

示例值:超出预期

func (*AssessmentForCreateBuilder) AssessmentDetail

func (builder *AssessmentForCreateBuilder) AssessmentDetail(assessmentDetail string) *AssessmentForCreateBuilder

考核结果页面超链接

示例值:暂无示例

func (*AssessmentForCreateBuilder) AssessmentGrade

func (builder *AssessmentForCreateBuilder) AssessmentGrade(assessmentGrade string) *AssessmentForCreateBuilder

试用期考核等级

示例值:grade_a

func (*AssessmentForCreateBuilder) AssessmentResult

func (builder *AssessmentForCreateBuilder) AssessmentResult(assessmentResult string) *AssessmentForCreateBuilder

试用期考核结果

示例值:approved

func (*AssessmentForCreateBuilder) AssessmentScore

func (builder *AssessmentForCreateBuilder) AssessmentScore(assessmentScore float64) *AssessmentForCreateBuilder

考核得分

示例值:99.9

func (*AssessmentForCreateBuilder) AssessmentStatus

func (builder *AssessmentForCreateBuilder) AssessmentStatus(assessmentStatus string) *AssessmentForCreateBuilder

考核状态

示例值:completed

func (*AssessmentForCreateBuilder) Build

func (*AssessmentForCreateBuilder) IsFinalAsssessment

func (builder *AssessmentForCreateBuilder) IsFinalAsssessment(isFinalAsssessment bool) *AssessmentForCreateBuilder

是否为最终考核结果

示例值:false

type Bank

type Bank struct {
	BankId *string `json:"bank_id,omitempty"` // 银行 ID

	BankName []*I18n `json:"bank_name,omitempty"` // 银行名称

	BankCode *string `json:"bank_code,omitempty"` // 总行代码

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家/地区 ID,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询

	Status *int `json:"status,omitempty"` // 状态

	CreateTime *string `json:"create_time,omitempty"` // 创建时间

	UpdateTime *string `json:"update_time,omitempty"` // 更新时间
}

type BankAccount

type BankAccount struct {
	BankName *string `json:"bank_name,omitempty"` // 银行名称

	BankAccountNumber *string `json:"bank_account_number,omitempty"` // 银行账号

	AccountHolder *string `json:"account_holder,omitempty"` // 开户人姓名

	Bank *Enum `json:"bank,omitempty"` // 银行枚举(该字段待作废,请勿使用)

	BankIdentificationCode *string `json:"bank_identification_code,omitempty"` // 银行识别码(该字段待作废,请勿使用)

	BranchName *string `json:"branch_name,omitempty"` // 支行名称

	BankId *string `json:"bank_id,omitempty"` // 银行 ID(该字段待作废,请勿使用)

	BranchId *string `json:"branch_id,omitempty"` // 支行 ID(该字段待作废,请勿使用)

	BankIdV2 *string `json:"bank_id_v2,omitempty"` // 银行 ID,详细信息可通过【查询银行信息】接口查询获得

	BranchIdV2 *string `json:"branch_id_v2,omitempty"` // 支行 ID,要求必须为填入银行的支行,详细信息可通过【查询支行信息】接口查询获得

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家/地区 ID,详细信息可通过【查询国家/地区信息】接口查询获得

	BankAccountUsage []*Enum `json:"bank_account_usage,omitempty"` // 银行卡用途,枚举值可通过文档【飞书人事枚举常量】银行卡用途(Bank Account Usage)枚举定义部分获得

	BankAccountType *Enum `json:"bank_account_type,omitempty"` // 银行卡类型,枚举值可通过文档【飞书人事枚举常量】银行卡类型(Bank Account Type)枚举定义部分获得

	PaymentType *Enum `json:"payment_type,omitempty"` // 分配方式,枚举值可通过文档【飞书人事枚举常量】分配方式(Payment Type)枚举定义部分获得

	PaymentRate *string `json:"payment_rate,omitempty"` // 分配比例

	PaymentAmount *string `json:"payment_amount,omitempty"` // 分配金额

	Priority *int `json:"priority,omitempty"` // 分配优先级

	CurrencyId *string `json:"currency_id,omitempty"` // 货币id

	IBAN *string `json:"IBAN,omitempty"` // 国际银行账号

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type BankAccountBuilder

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

func NewBankAccountBuilder

func NewBankAccountBuilder() *BankAccountBuilder

func (*BankAccountBuilder) AccountHolder

func (builder *BankAccountBuilder) AccountHolder(accountHolder string) *BankAccountBuilder

开户人姓名

示例值:孟十五

func (*BankAccountBuilder) Bank added in v3.4.2

func (builder *BankAccountBuilder) Bank(bank *Enum) *BankAccountBuilder

银行枚举(该字段待作废,请勿使用)

示例值:

func (*BankAccountBuilder) BankAccountNumber

func (builder *BankAccountBuilder) BankAccountNumber(bankAccountNumber string) *BankAccountBuilder

银行账号

示例值:6231200000001223

func (*BankAccountBuilder) BankAccountType

func (builder *BankAccountBuilder) BankAccountType(bankAccountType *Enum) *BankAccountBuilder

银行卡类型,枚举值可通过文档【飞书人事枚举常量】银行卡类型(Bank Account Type)枚举定义部分获得

示例值:

func (*BankAccountBuilder) BankAccountUsage

func (builder *BankAccountBuilder) BankAccountUsage(bankAccountUsage []*Enum) *BankAccountBuilder

银行卡用途,枚举值可通过文档【飞书人事枚举常量】银行卡用途(Bank Account Usage)枚举定义部分获得

示例值:

func (*BankAccountBuilder) BankId added in v3.4.2

func (builder *BankAccountBuilder) BankId(bankId string) *BankAccountBuilder

银行 ID(该字段待作废,请勿使用)

示例值:8

func (*BankAccountBuilder) BankIdV2 added in v3.1.2

func (builder *BankAccountBuilder) BankIdV2(bankIdV2 string) *BankAccountBuilder

银行 ID,详细信息可通过【查询银行信息】接口查询获得

示例值:MDBH00000001

func (*BankAccountBuilder) BankIdentificationCode added in v3.4.2

func (builder *BankAccountBuilder) BankIdentificationCode(bankIdentificationCode string) *BankAccountBuilder

银行识别码(该字段待作废,请勿使用)

示例值:1234

func (*BankAccountBuilder) BankName

func (builder *BankAccountBuilder) BankName(bankName string) *BankAccountBuilder

银行名称

示例值:中国农业银行

func (*BankAccountBuilder) BranchId added in v3.4.2

func (builder *BankAccountBuilder) BranchId(branchId string) *BankAccountBuilder

支行 ID(该字段待作废,请勿使用)

示例值:12

func (*BankAccountBuilder) BranchIdV2 added in v3.1.2

func (builder *BankAccountBuilder) BranchIdV2(branchIdV2 string) *BankAccountBuilder

支行 ID,要求必须为填入银行的支行,详细信息可通过【查询支行信息】接口查询获得

示例值:MDBK00000017

func (*BankAccountBuilder) BranchName

func (builder *BankAccountBuilder) BranchName(branchName string) *BankAccountBuilder

支行名称

示例值:中国农业银行支行

func (*BankAccountBuilder) Build

func (builder *BankAccountBuilder) Build() *BankAccount

func (*BankAccountBuilder) CountryRegionId

func (builder *BankAccountBuilder) CountryRegionId(countryRegionId string) *BankAccountBuilder

国家/地区 ID,详细信息可通过【查询国家/地区信息】接口查询获得

示例值:12

func (*BankAccountBuilder) CurrencyId

func (builder *BankAccountBuilder) CurrencyId(currencyId string) *BankAccountBuilder

货币id

示例值:12

func (*BankAccountBuilder) CustomFields

func (builder *BankAccountBuilder) CustomFields(customFields []*CustomFieldData) *BankAccountBuilder

自定义字段

示例值:

func (*BankAccountBuilder) IBAN

func (builder *BankAccountBuilder) IBAN(iBAN string) *BankAccountBuilder

国际银行账号

示例值:CH56 0483 5012 3456 7800 9

func (*BankAccountBuilder) PaymentAmount added in v3.3.4

func (builder *BankAccountBuilder) PaymentAmount(paymentAmount string) *BankAccountBuilder

分配金额

示例值:5000

func (*BankAccountBuilder) PaymentRate added in v3.3.4

func (builder *BankAccountBuilder) PaymentRate(paymentRate string) *BankAccountBuilder

分配比例

示例值:70.21

func (*BankAccountBuilder) PaymentType added in v3.3.4

func (builder *BankAccountBuilder) PaymentType(paymentType *Enum) *BankAccountBuilder

分配方式,枚举值可通过文档【飞书人事枚举常量】分配方式(Payment Type)枚举定义部分获得

示例值:balance

func (*BankAccountBuilder) Priority added in v3.3.4

func (builder *BankAccountBuilder) Priority(priority int) *BankAccountBuilder

分配优先级

示例值:1

type BankAccountForUpdate added in v3.2.8

type BankAccountForUpdate struct {
	BankName *string `json:"bank_name,omitempty"` // 银行名称:- 当填入 bank_id 时,自动填入 bank 的名称 - 未填入 bank_id ,取传入的银行名称

	BranchName *string `json:"branch_name,omitempty"` // 支行名称,仅当支行为手动输入时该字段才需要填入

	BankAccountNumber *string `json:"bank_account_number,omitempty"` // 银行账号

	AccountHolder *string `json:"account_holder,omitempty"` // 开户人姓名

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家/地区 ID,详细信息可通过【查询国家/地区信息】接口查询获得

	BankAccountUsages []string `json:"bank_account_usages,omitempty"` // 银行卡用途,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "bank_account" - custom_api_name = "bank_account_usage"

	BankAccountType *string `json:"bank_account_type,omitempty"` // 银行卡类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "bank_account" - custom_api_name = "bank_account_type"
}

type BankAccountForUpdateBuilder added in v3.2.8

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

func NewBankAccountForUpdateBuilder added in v3.2.8

func NewBankAccountForUpdateBuilder() *BankAccountForUpdateBuilder

func (*BankAccountForUpdateBuilder) AccountHolder added in v3.2.8

func (builder *BankAccountForUpdateBuilder) AccountHolder(accountHolder string) *BankAccountForUpdateBuilder

开户人姓名

示例值:孟十五

func (*BankAccountForUpdateBuilder) BankAccountNumber added in v3.2.8

func (builder *BankAccountForUpdateBuilder) BankAccountNumber(bankAccountNumber string) *BankAccountForUpdateBuilder

银行账号

示例值:6231200000001223

func (*BankAccountForUpdateBuilder) BankAccountType added in v3.2.8

func (builder *BankAccountForUpdateBuilder) BankAccountType(bankAccountType string) *BankAccountForUpdateBuilder

银行卡类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "bank_account" - custom_api_name = "bank_account_type"

示例值:checking

func (*BankAccountForUpdateBuilder) BankAccountUsages added in v3.2.8

func (builder *BankAccountForUpdateBuilder) BankAccountUsages(bankAccountUsages []string) *BankAccountForUpdateBuilder

银行卡用途,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "bank_account" - custom_api_name = "bank_account_usage"

示例值:

func (*BankAccountForUpdateBuilder) BankName added in v3.2.8

func (builder *BankAccountForUpdateBuilder) BankName(bankName string) *BankAccountForUpdateBuilder

银行名称:- 当填入 bank_id 时,自动填入 bank 的名称 - 未填入 bank_id ,取传入的银行名称

示例值:中国农业银行

func (*BankAccountForUpdateBuilder) BranchName added in v3.2.8

func (builder *BankAccountForUpdateBuilder) BranchName(branchName string) *BankAccountForUpdateBuilder

支行名称,仅当支行为手动输入时该字段才需要填入

示例值:中国农业银行支行

func (*BankAccountForUpdateBuilder) Build added in v3.2.8

func (*BankAccountForUpdateBuilder) CountryRegionId added in v3.2.8

func (builder *BankAccountForUpdateBuilder) CountryRegionId(countryRegionId string) *BankAccountForUpdateBuilder

国家/地区 ID,详细信息可通过【查询国家/地区信息】接口查询获得

示例值:6862995745889322510

type BankBranch

type BankBranch struct {
	BankBranchId *string `json:"bank_branch_id,omitempty"` // 支行 ID

	BankBranchName []*I18n `json:"bank_branch_name,omitempty"` // 支行名称

	BankId *string `json:"bank_id,omitempty"` // 所属银行 ID,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)接口查询

	Code *string `json:"code,omitempty"` // 金融分支机构编码(联行号)

	SwiftCode *string `json:"swift_code,omitempty"` // SWIFT 银行代码(ISO 9362)

	Status *int `json:"status,omitempty"` // 状态

	BankBranchCode *string `json:"bank_branch_code,omitempty"` // Bank Branch Code(特定国家地区汇款使用的编码,如美国银行的 ABA Number、澳大利亚银行的 BSB Code、英国银行的 Sort Code)

	RegisterPlace *string `json:"register_place,omitempty"` // 注册地址

	BankAddress *string `json:"bank_address,omitempty"` // 银行地址

	CreateTime *string `json:"create_time,omitempty"` // 创建时间

	UpdateTime *string `json:"update_time,omitempty"` // 更新时间
}

type BankBranchBuilder

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

func NewBankBranchBuilder

func NewBankBranchBuilder() *BankBranchBuilder

func (*BankBranchBuilder) BankAddress added in v3.2.3

func (builder *BankBranchBuilder) BankAddress(bankAddress string) *BankBranchBuilder

银行地址

示例值:北京市朝阳区

func (*BankBranchBuilder) BankBranchCode added in v3.2.3

func (builder *BankBranchBuilder) BankBranchCode(bankBranchCode string) *BankBranchBuilder

Bank Branch Code(特定国家地区汇款使用的编码,如美国银行的 ABA Number、澳大利亚银行的 BSB Code、英国银行的 Sort Code)

示例值:B04

func (*BankBranchBuilder) BankBranchId

func (builder *BankBranchBuilder) BankBranchId(bankBranchId string) *BankBranchBuilder

支行 ID

示例值:MDBK00061194

func (*BankBranchBuilder) BankBranchName

func (builder *BankBranchBuilder) BankBranchName(bankBranchName []*I18n) *BankBranchBuilder

支行名称

示例值:

func (*BankBranchBuilder) BankId

func (builder *BankBranchBuilder) BankId(bankId string) *BankBranchBuilder

所属银行 ID,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)接口查询

示例值:MDBH00000080

func (*BankBranchBuilder) Build

func (builder *BankBranchBuilder) Build() *BankBranch

func (*BankBranchBuilder) Code

func (builder *BankBranchBuilder) Code(code string) *BankBranchBuilder

金融分支机构编码(联行号)

示例值:308100005019

func (*BankBranchBuilder) CreateTime added in v3.2.3

func (builder *BankBranchBuilder) CreateTime(createTime string) *BankBranchBuilder

创建时间

示例值:2020-01-01 00:00:00

func (*BankBranchBuilder) RegisterPlace added in v3.2.3

func (builder *BankBranchBuilder) RegisterPlace(registerPlace string) *BankBranchBuilder

注册地址

示例值:北京市朝阳区

func (*BankBranchBuilder) Status

func (builder *BankBranchBuilder) Status(status int) *BankBranchBuilder

状态

示例值:1

func (*BankBranchBuilder) SwiftCode

func (builder *BankBranchBuilder) SwiftCode(swiftCode string) *BankBranchBuilder

SWIFT 银行代码(ISO 9362)

示例值:CMBCCNBS201

func (*BankBranchBuilder) UpdateTime added in v3.2.3

func (builder *BankBranchBuilder) UpdateTime(updateTime string) *BankBranchBuilder

更新时间

示例值:2024-01-01 00:00:00

type BankBuilder

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

func NewBankBuilder

func NewBankBuilder() *BankBuilder

func (*BankBuilder) BankCode

func (builder *BankBuilder) BankCode(bankCode string) *BankBuilder

总行代码

示例值:CMB

func (*BankBuilder) BankId

func (builder *BankBuilder) BankId(bankId string) *BankBuilder

银行 ID

示例值:MDBH00000080

func (*BankBuilder) BankName

func (builder *BankBuilder) BankName(bankName []*I18n) *BankBuilder

银行名称

示例值:

func (*BankBuilder) Build

func (builder *BankBuilder) Build() *Bank

func (*BankBuilder) CountryRegionId

func (builder *BankBuilder) CountryRegionId(countryRegionId string) *BankBuilder

国家/地区 ID,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询

示例值:6862995757234914824

func (*BankBuilder) CreateTime added in v3.2.3

func (builder *BankBuilder) CreateTime(createTime string) *BankBuilder

创建时间

示例值:2020-01-01 00:00:00

func (*BankBuilder) Status

func (builder *BankBuilder) Status(status int) *BankBuilder

状态

示例值:1

func (*BankBuilder) UpdateTime added in v3.2.3

func (builder *BankBuilder) UpdateTime(updateTime string) *BankBuilder

更新时间

示例值:2024-01-01 00:00:00

type BasicDepartment

type BasicDepartment struct {
	Id *string `json:"id,omitempty"` // 部门 ID;- 类型与 department_id_type 一致,转换失败时返回空值;- 请使用 id_v2

	IdV2 *string `json:"id_v2,omitempty"` // 部门 ID;- 类型与 department_id_type 一致,转换失败时返回空值

	DepartmentName []*I18n `json:"department_name,omitempty"` // 部门名称
}

type BasicDepartmentBuilder

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

func NewBasicDepartmentBuilder

func NewBasicDepartmentBuilder() *BasicDepartmentBuilder

func (*BasicDepartmentBuilder) Build

func (builder *BasicDepartmentBuilder) Build() *BasicDepartment

func (*BasicDepartmentBuilder) DepartmentName

func (builder *BasicDepartmentBuilder) DepartmentName(departmentName []*I18n) *BasicDepartmentBuilder

部门名称

示例值:

func (*BasicDepartmentBuilder) Id

部门 ID;- 类型与 department_id_type 一致,转换失败时返回空值;- 请使用 id_v2

示例值:4719456877659520852

func (*BasicDepartmentBuilder) IdV2 added in v3.3.3

部门 ID;- 类型与 department_id_type 一致,转换失败时返回空值

示例值:4719456877659520852

type BasicEmployee

type BasicEmployee struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 类型与 user_id_type 一致;- 请使用 employment_id_v2

	EmploymentIdV2 *string `json:"employment_id_v2,omitempty"` // 雇佣 ID;- 类型与 user_id_type 一致,转换失败时返回空值

	EmployeeNumber *string `json:"employee_number,omitempty"` // 工号

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱地址

	PersonInfo *BasicPersonInfo `json:"person_info,omitempty"` // 基本个人信息
}

type BasicEmployeeBuilder

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

func NewBasicEmployeeBuilder

func NewBasicEmployeeBuilder() *BasicEmployeeBuilder

func (*BasicEmployeeBuilder) Build

func (builder *BasicEmployeeBuilder) Build() *BasicEmployee

func (*BasicEmployeeBuilder) EmailAddress

func (builder *BasicEmployeeBuilder) EmailAddress(emailAddress string) *BasicEmployeeBuilder

邮箱地址

示例值:test@163.com

func (*BasicEmployeeBuilder) EmployeeNumber

func (builder *BasicEmployeeBuilder) EmployeeNumber(employeeNumber string) *BasicEmployeeBuilder

工号

示例值:1000000

func (*BasicEmployeeBuilder) EmploymentId

func (builder *BasicEmployeeBuilder) EmploymentId(employmentId string) *BasicEmployeeBuilder

雇佣 ID;- 类型与 user_id_type 一致;- 请使用 employment_id_v2

示例值:6893014062142064135

func (*BasicEmployeeBuilder) EmploymentIdV2 added in v3.3.3

func (builder *BasicEmployeeBuilder) EmploymentIdV2(employmentIdV2 string) *BasicEmployeeBuilder

雇佣 ID;- 类型与 user_id_type 一致,转换失败时返回空值

示例值:6893014062142064135

func (*BasicEmployeeBuilder) PersonInfo

func (builder *BasicEmployeeBuilder) PersonInfo(personInfo *BasicPersonInfo) *BasicEmployeeBuilder

基本个人信息

示例值:

type BasicInfo

type BasicInfo struct {
	Name *Name `json:"name,omitempty"` // 描述

	PhoneNumber *string `json:"phone_number,omitempty"` // 手机号

	InternationalAreaCode *string `json:"international_area_code,omitempty"` // 区号

	Email *string `json:"email,omitempty"` // 个人邮箱

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 生日

	PersonalIdNumber *string `json:"personal_id_number,omitempty"` // 证件号

	PersonalIdType *string `json:"personal_id_type,omitempty"` // 证件类型

	DateEnteredWorkforce *string `json:"date_entered_workforce,omitempty"` // 参加工作日期

	GenderId *string `json:"gender_id,omitempty"` // 性别

	NationalityId *string `json:"nationality_id,omitempty"` // 国籍

	NationalityV2Id *string `json:"nationality_v2_id,omitempty"` // 国籍(新)

	AdditionalNationalityIdList []string `json:"additional_nationality_id_list,omitempty"` // 其他国籍

	CitizenshipStatusIdList []string `json:"citizenship_status_id_list,omitempty"` // 公民身份

	HomeAddress *string `json:"home_address,omitempty"` // 家庭地址

	WorkerId *string `json:"worker_id,omitempty"` // 人员编号

	UserGeo *string `json:"user_geo,omitempty"` // 数据驻留地

	LegalName *Name `json:"legal_name,omitempty"` // 法定姓名

	ResidentTaxList []*ResidentTaxForUpdate `json:"resident_tax_list,omitempty"` // 纳税身份信息

	BornCountryRegion *string `json:"born_country_region,omitempty"` // 出生国家/地区

	IsDisabled *bool `json:"is_disabled,omitempty"` // 是否残疾

	DisableCardNumber *string `json:"disable_card_number,omitempty"` // 残疾证号

	IsOldAlone *bool `json:"is_old_alone,omitempty"` // 是否孤老

	IsMartyrFamily *bool `json:"is_martyr_family,omitempty"` // 是否烈属

	MartyrCardNumber *string `json:"martyr_card_number,omitempty"` // 烈属证号

	DependentList []*DependentForUpdate `json:"dependent_list,omitempty"` // 家庭成员

	Religion *string `json:"religion,omitempty"` // 宗教信仰

	BankAccountList []*BankAccountForUpdate `json:"bank_account_list,omitempty"` // 银行账号

	NationalIdList []*NationalIdForUpdate `json:"national_id_list,omitempty"` // 证件账号

	PersonalProfileList []*PersonalProfileForUpdate `json:"personal_profile_list,omitempty"` // 个人资料

	EmergencyContactList []*EmergencyContactForUpdate `json:"emergency_contact_list,omitempty"` // 紧急联系人

	AddressList []*AddressForUpdate `json:"address_list,omitempty"` // 联系地址

	MaritalStatus *string `json:"marital_status,omitempty"` // 婚姻状况

	EthnicityRace *string `json:"ethnicity_race,omitempty"` // 民族 / 种族

	NativeRegion *string `json:"native_region,omitempty"` // 籍贯

	HukouType *string `json:"hukou_type,omitempty"` // 户口类型

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type BasicInfoBuilder

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

func NewBasicInfoBuilder

func NewBasicInfoBuilder() *BasicInfoBuilder

func (*BasicInfoBuilder) AdditionalNationalityIdList added in v3.2.0

func (builder *BasicInfoBuilder) AdditionalNationalityIdList(additionalNationalityIdList []string) *BasicInfoBuilder

其他国籍

示例值:[6862995757234914824]

func (*BasicInfoBuilder) AddressList added in v3.2.8

func (builder *BasicInfoBuilder) AddressList(addressList []*AddressForUpdate) *BasicInfoBuilder

联系地址

示例值:

func (*BasicInfoBuilder) BankAccountList added in v3.2.8

func (builder *BasicInfoBuilder) BankAccountList(bankAccountList []*BankAccountForUpdate) *BasicInfoBuilder

银行账号

示例值:

func (*BasicInfoBuilder) BornCountryRegion added in v3.2.8

func (builder *BasicInfoBuilder) BornCountryRegion(bornCountryRegion string) *BasicInfoBuilder

出生国家/地区

示例值:cn

func (*BasicInfoBuilder) Build

func (builder *BasicInfoBuilder) Build() *BasicInfo

func (*BasicInfoBuilder) CitizenshipStatusIdList added in v3.2.0

func (builder *BasicInfoBuilder) CitizenshipStatusIdList(citizenshipStatusIdList []string) *BasicInfoBuilder

公民身份

示例值:[6862995757234914824]

func (*BasicInfoBuilder) CustomFields added in v3.2.8

func (builder *BasicInfoBuilder) CustomFields(customFields []*ObjectFieldData) *BasicInfoBuilder

自定义字段

示例值:

func (*BasicInfoBuilder) DateEnteredWorkforce

func (builder *BasicInfoBuilder) DateEnteredWorkforce(dateEnteredWorkforce string) *BasicInfoBuilder

参加工作日期

示例值:2100-09-09

func (*BasicInfoBuilder) DateOfBirth

func (builder *BasicInfoBuilder) DateOfBirth(dateOfBirth string) *BasicInfoBuilder

生日

示例值:2011-99-99

func (*BasicInfoBuilder) DependentList added in v3.2.8

func (builder *BasicInfoBuilder) DependentList(dependentList []*DependentForUpdate) *BasicInfoBuilder

家庭成员

示例值:

func (*BasicInfoBuilder) DisableCardNumber added in v3.2.8

func (builder *BasicInfoBuilder) DisableCardNumber(disableCardNumber string) *BasicInfoBuilder

残疾证号

示例值:xxx

func (*BasicInfoBuilder) Email

func (builder *BasicInfoBuilder) Email(email string) *BasicInfoBuilder

个人邮箱

示例值:xx@xx.com

func (*BasicInfoBuilder) EmergencyContactList added in v3.2.8

func (builder *BasicInfoBuilder) EmergencyContactList(emergencyContactList []*EmergencyContactForUpdate) *BasicInfoBuilder

紧急联系人

示例值:

func (*BasicInfoBuilder) EthnicityRace added in v3.2.8

func (builder *BasicInfoBuilder) EthnicityRace(ethnicityRace string) *BasicInfoBuilder

民族 / 种族

示例值:xxx

func (*BasicInfoBuilder) GenderId

func (builder *BasicInfoBuilder) GenderId(genderId string) *BasicInfoBuilder

性别

示例值:male

func (*BasicInfoBuilder) HomeAddress

func (builder *BasicInfoBuilder) HomeAddress(homeAddress string) *BasicInfoBuilder

家庭地址

示例值:home addr

func (*BasicInfoBuilder) HukouLocation added in v3.2.8

func (builder *BasicInfoBuilder) HukouLocation(hukouLocation string) *BasicInfoBuilder

户口所在地

示例值:xxx

func (*BasicInfoBuilder) HukouType added in v3.2.8

func (builder *BasicInfoBuilder) HukouType(hukouType string) *BasicInfoBuilder

户口类型

示例值:xxx

func (*BasicInfoBuilder) InternationalAreaCode

func (builder *BasicInfoBuilder) InternationalAreaCode(internationalAreaCode string) *BasicInfoBuilder

区号

示例值:86_china

func (*BasicInfoBuilder) IsDisabled added in v3.2.8

func (builder *BasicInfoBuilder) IsDisabled(isDisabled bool) *BasicInfoBuilder

是否残疾

示例值:true

func (*BasicInfoBuilder) IsMartyrFamily added in v3.2.8

func (builder *BasicInfoBuilder) IsMartyrFamily(isMartyrFamily bool) *BasicInfoBuilder

是否烈属

示例值:true

func (*BasicInfoBuilder) IsOldAlone added in v3.2.8

func (builder *BasicInfoBuilder) IsOldAlone(isOldAlone bool) *BasicInfoBuilder

是否孤老

示例值:true

func (*BasicInfoBuilder) LegalName added in v3.2.3

func (builder *BasicInfoBuilder) LegalName(legalName *Name) *BasicInfoBuilder

法定姓名

示例值:

func (*BasicInfoBuilder) MaritalStatus added in v3.2.8

func (builder *BasicInfoBuilder) MaritalStatus(maritalStatus string) *BasicInfoBuilder

婚姻状况

示例值:xxx

func (*BasicInfoBuilder) MartyrCardNumber added in v3.2.8

func (builder *BasicInfoBuilder) MartyrCardNumber(martyrCardNumber string) *BasicInfoBuilder

烈属证号

示例值:xxx

func (*BasicInfoBuilder) Name

func (builder *BasicInfoBuilder) Name(name *Name) *BasicInfoBuilder

描述

示例值:

func (*BasicInfoBuilder) NationalIdList added in v3.2.8

func (builder *BasicInfoBuilder) NationalIdList(nationalIdList []*NationalIdForUpdate) *BasicInfoBuilder

证件账号

示例值:

func (*BasicInfoBuilder) NationalityId

func (builder *BasicInfoBuilder) NationalityId(nationalityId string) *BasicInfoBuilder

国籍

示例值:6862995757234914824

func (*BasicInfoBuilder) NationalityV2Id added in v3.2.8

func (builder *BasicInfoBuilder) NationalityV2Id(nationalityV2Id string) *BasicInfoBuilder

国籍(新)

示例值:6862995757234914824

func (*BasicInfoBuilder) NativeRegion added in v3.2.8

func (builder *BasicInfoBuilder) NativeRegion(nativeRegion string) *BasicInfoBuilder

籍贯

示例值:xxx

func (*BasicInfoBuilder) PersonalIdNumber

func (builder *BasicInfoBuilder) PersonalIdNumber(personalIdNumber string) *BasicInfoBuilder

证件号

示例值:31123127

func (*BasicInfoBuilder) PersonalIdType added in v3.2.3

func (builder *BasicInfoBuilder) PersonalIdType(personalIdType string) *BasicInfoBuilder

证件类型

示例值:6862995757234914823

func (*BasicInfoBuilder) PersonalProfileList added in v3.2.8

func (builder *BasicInfoBuilder) PersonalProfileList(personalProfileList []*PersonalProfileForUpdate) *BasicInfoBuilder

个人资料

示例值:

func (*BasicInfoBuilder) PhoneNumber

func (builder *BasicInfoBuilder) PhoneNumber(phoneNumber string) *BasicInfoBuilder

手机号

示例值:31123127

func (*BasicInfoBuilder) Religion added in v3.2.8

func (builder *BasicInfoBuilder) Religion(religion string) *BasicInfoBuilder

宗教信仰

示例值:xxx

func (*BasicInfoBuilder) ResidentTaxList added in v3.2.8

func (builder *BasicInfoBuilder) ResidentTaxList(residentTaxList []*ResidentTaxForUpdate) *BasicInfoBuilder

纳税身份信息

示例值:

func (*BasicInfoBuilder) UserGeo added in v3.2.2

func (builder *BasicInfoBuilder) UserGeo(userGeo string) *BasicInfoBuilder

数据驻留地

示例值:cn

func (*BasicInfoBuilder) WorkerId

func (builder *BasicInfoBuilder) WorkerId(workerId string) *BasicInfoBuilder

人员编号

示例值:6862995757234914824

type BasicInfoUpdate added in v3.2.3

type BasicInfoUpdate struct {
	Names []*NameForUpdate `json:"names,omitempty"` // 姓名,该值是一个list,会全量更新

	Phones []*PhoneForUpdate `json:"phones,omitempty"` // 电话,该值是一个list,会全量更新

	Emails []*EmailForUpdate `json:"emails,omitempty"` // 邮箱,该值是一个list,会全量更新

	NationalityV2Id *string `json:"nationality_v2_id,omitempty"` // 国籍

	AdditionalNationalityIdList []string `json:"additional_nationality_id_list,omitempty"` // 其他国籍

	ResidentTaxList []*ResidentTaxForUpdate `json:"resident_tax_list,omitempty"` // 纳税身份信息,该值是一个list,会全量更新

	BornCountryRegion *string `json:"born_country_region,omitempty"` // 出生国家/地区

	IsDisabled *bool `json:"is_disabled,omitempty"` // 是否残疾

	DisableCardNumber *string `json:"disable_card_number,omitempty"` // 残疾证号

	IsOldAlone *bool `json:"is_old_alone,omitempty"` // 是否孤老

	IsMartyrFamily *bool `json:"is_martyr_family,omitempty"` // 是否烈属

	MartyrCardNumber *string `json:"martyr_card_number,omitempty"` // 烈属证号

	DependentList []*DependentForUpdate `json:"dependent_list,omitempty"` // 家庭成员

	Religion *string `json:"religion,omitempty"` // 宗教信仰

	BankAccountList []*BankAccountForUpdate `json:"bank_account_list,omitempty"` // 银行账号

	NationalIdList []*NationalIdForUpdate `json:"national_id_list,omitempty"` // 证件账号

	PersonalProfileList []*PersonalProfileForUpdate `json:"personal_profile_list,omitempty"` // 个人资料

	EmergencyContactList []*EmergencyContactForUpdate `json:"emergency_contact_list,omitempty"` // 紧急联系人

	AddressList []*AddressForUpdate `json:"address_list,omitempty"` // 联系地址

	MaritalStatus *string `json:"marital_status,omitempty"` // 婚姻状况

	EthnicityRace *string `json:"ethnicity_race,omitempty"` // 民族 / 种族

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段

	NativeRegion *string `json:"native_region,omitempty"` // 籍贯

	HukouType *string `json:"hukou_type,omitempty"` // 户口类型

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地
}

type BasicInfoUpdateBuilder added in v3.2.3

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

func NewBasicInfoUpdateBuilder added in v3.2.3

func NewBasicInfoUpdateBuilder() *BasicInfoUpdateBuilder

func (*BasicInfoUpdateBuilder) AdditionalNationalityIdList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) AdditionalNationalityIdList(additionalNationalityIdList []string) *BasicInfoUpdateBuilder

其他国籍

示例值:[6862995757234914824]

func (*BasicInfoUpdateBuilder) AddressList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) AddressList(addressList []*AddressForUpdate) *BasicInfoUpdateBuilder

联系地址

示例值:

func (*BasicInfoUpdateBuilder) BankAccountList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) BankAccountList(bankAccountList []*BankAccountForUpdate) *BasicInfoUpdateBuilder

银行账号

示例值:

func (*BasicInfoUpdateBuilder) BornCountryRegion added in v3.2.8

func (builder *BasicInfoUpdateBuilder) BornCountryRegion(bornCountryRegion string) *BasicInfoUpdateBuilder

出生国家/地区

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) Build added in v3.2.3

func (builder *BasicInfoUpdateBuilder) Build() *BasicInfoUpdate

func (*BasicInfoUpdateBuilder) CustomFields added in v3.2.8

func (builder *BasicInfoUpdateBuilder) CustomFields(customFields []*ObjectFieldData) *BasicInfoUpdateBuilder

自定义字段

示例值:

func (*BasicInfoUpdateBuilder) DependentList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) DependentList(dependentList []*DependentForUpdate) *BasicInfoUpdateBuilder

家庭成员

示例值:

func (*BasicInfoUpdateBuilder) DisableCardNumber added in v3.2.8

func (builder *BasicInfoUpdateBuilder) DisableCardNumber(disableCardNumber string) *BasicInfoUpdateBuilder

残疾证号

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) Emails added in v3.2.3

func (builder *BasicInfoUpdateBuilder) Emails(emails []*EmailForUpdate) *BasicInfoUpdateBuilder

邮箱,该值是一个list,会全量更新

示例值:

func (*BasicInfoUpdateBuilder) EmergencyContactList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) EmergencyContactList(emergencyContactList []*EmergencyContactForUpdate) *BasicInfoUpdateBuilder

紧急联系人

示例值:

func (*BasicInfoUpdateBuilder) EthnicityRace added in v3.2.8

func (builder *BasicInfoUpdateBuilder) EthnicityRace(ethnicityRace string) *BasicInfoUpdateBuilder

民族 / 种族

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) HukouLocation added in v3.2.8

func (builder *BasicInfoUpdateBuilder) HukouLocation(hukouLocation string) *BasicInfoUpdateBuilder

户口所在地

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) HukouType added in v3.2.8

func (builder *BasicInfoUpdateBuilder) HukouType(hukouType string) *BasicInfoUpdateBuilder

户口类型

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) IsDisabled added in v3.2.8

func (builder *BasicInfoUpdateBuilder) IsDisabled(isDisabled bool) *BasicInfoUpdateBuilder

是否残疾

示例值:true

func (*BasicInfoUpdateBuilder) IsMartyrFamily added in v3.2.8

func (builder *BasicInfoUpdateBuilder) IsMartyrFamily(isMartyrFamily bool) *BasicInfoUpdateBuilder

是否烈属

示例值:true

func (*BasicInfoUpdateBuilder) IsOldAlone added in v3.2.8

func (builder *BasicInfoUpdateBuilder) IsOldAlone(isOldAlone bool) *BasicInfoUpdateBuilder

是否孤老

示例值:true

func (*BasicInfoUpdateBuilder) MaritalStatus added in v3.2.8

func (builder *BasicInfoUpdateBuilder) MaritalStatus(maritalStatus string) *BasicInfoUpdateBuilder

婚姻状况

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) MartyrCardNumber added in v3.2.8

func (builder *BasicInfoUpdateBuilder) MartyrCardNumber(martyrCardNumber string) *BasicInfoUpdateBuilder

烈属证号

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) Names added in v3.2.3

姓名,该值是一个list,会全量更新

示例值:

func (*BasicInfoUpdateBuilder) NationalIdList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) NationalIdList(nationalIdList []*NationalIdForUpdate) *BasicInfoUpdateBuilder

证件账号

示例值:

func (*BasicInfoUpdateBuilder) NationalityV2Id added in v3.2.8

func (builder *BasicInfoUpdateBuilder) NationalityV2Id(nationalityV2Id string) *BasicInfoUpdateBuilder

国籍

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) NativeRegion added in v3.2.8

func (builder *BasicInfoUpdateBuilder) NativeRegion(nativeRegion string) *BasicInfoUpdateBuilder

籍贯

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) PersonalProfileList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) PersonalProfileList(personalProfileList []*PersonalProfileForUpdate) *BasicInfoUpdateBuilder

个人资料

示例值:

func (*BasicInfoUpdateBuilder) Phones added in v3.2.3

func (builder *BasicInfoUpdateBuilder) Phones(phones []*PhoneForUpdate) *BasicInfoUpdateBuilder

电话,该值是一个list,会全量更新

示例值:

func (*BasicInfoUpdateBuilder) Religion added in v3.2.8

func (builder *BasicInfoUpdateBuilder) Religion(religion string) *BasicInfoUpdateBuilder

宗教信仰

示例值:6862995757234914824

func (*BasicInfoUpdateBuilder) ResidentTaxList added in v3.2.8

func (builder *BasicInfoUpdateBuilder) ResidentTaxList(residentTaxList []*ResidentTaxForUpdate) *BasicInfoUpdateBuilder

纳税身份信息,该值是一个list,会全量更新

示例值:

type BasicJobData

type BasicJobData struct {
	JobDataId *string `json:"job_data_id,omitempty"` // 任职信息 ID

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID
}

type BasicJobDataBuilder

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

func NewBasicJobDataBuilder

func NewBasicJobDataBuilder() *BasicJobDataBuilder

func (*BasicJobDataBuilder) Build

func (builder *BasicJobDataBuilder) Build() *BasicJobData

func (*BasicJobDataBuilder) EmploymentId

func (builder *BasicJobDataBuilder) EmploymentId(employmentId string) *BasicJobDataBuilder

雇佣 ID

示例值:6893014062142064135

func (*BasicJobDataBuilder) JobDataId

func (builder *BasicJobDataBuilder) JobDataId(jobDataId string) *BasicJobDataBuilder

任职信息 ID

示例值:1000000

type BasicPersonInfo

type BasicPersonInfo struct {
	PersonId *string `json:"person_id,omitempty"` // 个人信息 ID

	PreferredName *string `json:"preferred_name,omitempty"` // 常用名

	PreferredLocalFullName *string `json:"preferred_local_full_name,omitempty"` // 常用本地全名

	PreferredEnglishFullName *string `json:"preferred_english_full_name,omitempty"` // 常用英文全名
}

type BasicPersonInfoBuilder

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

func NewBasicPersonInfoBuilder

func NewBasicPersonInfoBuilder() *BasicPersonInfoBuilder

func (*BasicPersonInfoBuilder) Build

func (builder *BasicPersonInfoBuilder) Build() *BasicPersonInfo

func (*BasicPersonInfoBuilder) PersonId

func (builder *BasicPersonInfoBuilder) PersonId(personId string) *BasicPersonInfoBuilder

个人信息 ID

示例值:6919733936050406926

func (*BasicPersonInfoBuilder) PreferredEnglishFullName

func (builder *BasicPersonInfoBuilder) PreferredEnglishFullName(preferredEnglishFullName string) *BasicPersonInfoBuilder

常用英文全名

示例值:Henry

func (*BasicPersonInfoBuilder) PreferredLocalFullName

func (builder *BasicPersonInfoBuilder) PreferredLocalFullName(preferredLocalFullName string) *BasicPersonInfoBuilder

常用本地全名

示例值:刘梓新

func (*BasicPersonInfoBuilder) PreferredName

func (builder *BasicPersonInfoBuilder) PreferredName(preferredName string) *BasicPersonInfoBuilder

常用名

示例值:刘梓新

type BatchEmployeesAdditionalJobIterator added in v3.4.0

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

func (*BatchEmployeesAdditionalJobIterator) Next added in v3.4.0

func (*BatchEmployeesAdditionalJobIterator) NextPageToken added in v3.4.0

func (iterator *BatchEmployeesAdditionalJobIterator) NextPageToken() *string

type BatchEmployeesAdditionalJobPathReqBodyBuilder added in v3.4.0

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

func NewBatchEmployeesAdditionalJobPathReqBodyBuilder added in v3.4.0

func NewBatchEmployeesAdditionalJobPathReqBodyBuilder() *BatchEmployeesAdditionalJobPathReqBodyBuilder

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) AdditionalJobIds added in v3.4.0

兼职 ID

示例值:

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) Build added in v3.4.0

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) DataDate added in v3.4.0

查看数据日期,默认当天

示例值:2024-01-02

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) EmploymentIds added in v3.4.0

雇佣 ID

示例值:

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) EndDate added in v3.4.0

结束日期

示例值:

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) IsEffective added in v3.4.0

仅查询 【data_date】日期生效中的

示例值:true

func (*BatchEmployeesAdditionalJobPathReqBodyBuilder) StartDate added in v3.4.0

开始日期

示例值:

type BatchEmployeesAdditionalJobReq added in v3.4.0

type BatchEmployeesAdditionalJobReq struct {
	Body  *BatchEmployeesAdditionalJobReqBody `body:""`
	Limit int                                 // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type BatchEmployeesAdditionalJobReqBody added in v3.4.0

type BatchEmployeesAdditionalJobReqBody struct {
	EmploymentIds []string `json:"employment_ids,omitempty"` // 雇佣 ID

	AdditionalJobIds []string `json:"additional_job_ids,omitempty"` // 兼职 ID

	StartDate *EmployeesAdditionalJobBatchReqDate `json:"start_date,omitempty"` // 开始日期

	EndDate *EmployeesAdditionalJobBatchReqDate `json:"end_date,omitempty"` // 结束日期

	DataDate *string `json:"data_date,omitempty"` // 查看数据日期,默认当天

	IsEffective *bool `json:"is_effective,omitempty"` // 仅查询 【data_date】日期生效中的
}

type BatchEmployeesAdditionalJobReqBodyBuilder added in v3.4.0

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

func NewBatchEmployeesAdditionalJobReqBodyBuilder added in v3.4.0

func NewBatchEmployeesAdditionalJobReqBodyBuilder() *BatchEmployeesAdditionalJobReqBodyBuilder

func (*BatchEmployeesAdditionalJobReqBodyBuilder) AdditionalJobIds added in v3.4.0

兼职 ID

示例值:

func (*BatchEmployeesAdditionalJobReqBodyBuilder) Build added in v3.4.0

func (*BatchEmployeesAdditionalJobReqBodyBuilder) DataDate added in v3.4.0

查看数据日期,默认当天

示例值:2024-01-02

func (*BatchEmployeesAdditionalJobReqBodyBuilder) EmploymentIds added in v3.4.0

雇佣 ID

示例值:

func (*BatchEmployeesAdditionalJobReqBodyBuilder) EndDate added in v3.4.0

结束日期

示例值:

func (*BatchEmployeesAdditionalJobReqBodyBuilder) IsEffective added in v3.4.0

仅查询 【data_date】日期生效中的

示例值:true

func (*BatchEmployeesAdditionalJobReqBodyBuilder) StartDate added in v3.4.0

开始日期

示例值:

type BatchEmployeesAdditionalJobReqBuilder added in v3.4.0

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

func NewBatchEmployeesAdditionalJobReqBuilder added in v3.4.0

func NewBatchEmployeesAdditionalJobReqBuilder() *BatchEmployeesAdditionalJobReqBuilder

func (*BatchEmployeesAdditionalJobReqBuilder) Body added in v3.4.0

批量查询兼职信息

func (*BatchEmployeesAdditionalJobReqBuilder) Build added in v3.4.0

func (*BatchEmployeesAdditionalJobReqBuilder) DepartmentIdType added in v3.4.0

func (builder *BatchEmployeesAdditionalJobReqBuilder) DepartmentIdType(departmentIdType string) *BatchEmployeesAdditionalJobReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*BatchEmployeesAdditionalJobReqBuilder) Limit added in v3.4.0

最大返回多少记录,当使用迭代器访问时才有效

func (*BatchEmployeesAdditionalJobReqBuilder) PageSize added in v3.4.0

分页大小

示例值:10

func (*BatchEmployeesAdditionalJobReqBuilder) PageToken added in v3.4.0

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:Njg5MTI1MTcyMjYzMTg5MDQ0NQ==

func (*BatchEmployeesAdditionalJobReqBuilder) UserIdType added in v3.4.0

用户 ID 类型

示例值:open_id

type BatchEmployeesAdditionalJobResp added in v3.4.0

type BatchEmployeesAdditionalJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchEmployeesAdditionalJobRespData `json:"data"` // 业务数据
}

func (*BatchEmployeesAdditionalJobResp) Success added in v3.4.0

func (resp *BatchEmployeesAdditionalJobResp) Success() bool

type BatchEmployeesAdditionalJobRespData added in v3.4.0

type BatchEmployeesAdditionalJobRespData struct {
	Items []*EmployeesAdditionalJob `json:"items,omitempty"` // 兼职记录

	PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token

	HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项
}

type BatchGetCompanyPathReqBodyBuilder

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

func NewBatchGetCompanyPathReqBodyBuilder

func NewBatchGetCompanyPathReqBodyBuilder() *BatchGetCompanyPathReqBodyBuilder

func (*BatchGetCompanyPathReqBodyBuilder) Build

func (*BatchGetCompanyPathReqBodyBuilder) CompanyIds

公司 ID 列表

示例值:

type BatchGetCompanyReq

type BatchGetCompanyReq struct {
	Body *BatchGetCompanyReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetCompanyReqBody

type BatchGetCompanyReqBody struct {
	CompanyIds []string `json:"company_ids,omitempty"` // 公司 ID 列表
}

type BatchGetCompanyReqBodyBuilder

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

func NewBatchGetCompanyReqBodyBuilder

func NewBatchGetCompanyReqBodyBuilder() *BatchGetCompanyReqBodyBuilder

func (*BatchGetCompanyReqBodyBuilder) Build

func (*BatchGetCompanyReqBodyBuilder) CompanyIds

func (builder *BatchGetCompanyReqBodyBuilder) CompanyIds(companyIds []string) *BatchGetCompanyReqBodyBuilder

公司 ID 列表

示例值:

type BatchGetCompanyReqBuilder

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

func NewBatchGetCompanyReqBuilder

func NewBatchGetCompanyReqBuilder() *BatchGetCompanyReqBuilder

func (*BatchGetCompanyReqBuilder) Body

通过公司 ID 批量获取公司信息

func (*BatchGetCompanyReqBuilder) Build

type BatchGetCompanyResp

type BatchGetCompanyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetCompanyRespData `json:"data"` // 业务数据
}

func (*BatchGetCompanyResp) Success

func (resp *BatchGetCompanyResp) Success() bool

type BatchGetCompanyRespData

type BatchGetCompanyRespData struct {
	Items []*Company `json:"items,omitempty"` // 查询的公司信息
}

type BatchGetDepartmentPathReqBodyBuilder added in v3.2.2

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

func NewBatchGetDepartmentPathReqBodyBuilder added in v3.2.2

func NewBatchGetDepartmentPathReqBodyBuilder() *BatchGetDepartmentPathReqBodyBuilder

func (*BatchGetDepartmentPathReqBodyBuilder) Build added in v3.2.2

func (*BatchGetDepartmentPathReqBodyBuilder) DepartmentIdList added in v3.2.2

func (builder *BatchGetDepartmentPathReqBodyBuilder) DepartmentIdList(departmentIdList []string) *BatchGetDepartmentPathReqBodyBuilder

部门 ID 列表

示例值:

func (*BatchGetDepartmentPathReqBodyBuilder) DepartmentNameList added in v3.2.2

func (builder *BatchGetDepartmentPathReqBodyBuilder) DepartmentNameList(departmentNameList []string) *BatchGetDepartmentPathReqBodyBuilder

部门名称精确匹配,最多传100个

示例值:

func (*BatchGetDepartmentPathReqBodyBuilder) Fields added in v3.2.2

返回数据的字段列表

示例值:

type BatchGetDepartmentReq added in v3.2.2

type BatchGetDepartmentReq struct {
	Body *BatchGetDepartmentReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetDepartmentReqBody added in v3.2.2

type BatchGetDepartmentReqBody struct {
	DepartmentIdList []string `json:"department_id_list,omitempty"` // 部门 ID 列表

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表

	DepartmentNameList []string `json:"department_name_list,omitempty"` // 部门名称精确匹配,最多传100个
}

type BatchGetDepartmentReqBodyBuilder added in v3.2.2

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

func NewBatchGetDepartmentReqBodyBuilder added in v3.2.2

func NewBatchGetDepartmentReqBodyBuilder() *BatchGetDepartmentReqBodyBuilder

func (*BatchGetDepartmentReqBodyBuilder) Build added in v3.2.2

func (*BatchGetDepartmentReqBodyBuilder) DepartmentIdList added in v3.2.2

func (builder *BatchGetDepartmentReqBodyBuilder) DepartmentIdList(departmentIdList []string) *BatchGetDepartmentReqBodyBuilder

部门 ID 列表

示例值:

func (*BatchGetDepartmentReqBodyBuilder) DepartmentNameList added in v3.2.2

func (builder *BatchGetDepartmentReqBodyBuilder) DepartmentNameList(departmentNameList []string) *BatchGetDepartmentReqBodyBuilder

部门名称精确匹配,最多传100个

示例值:

func (*BatchGetDepartmentReqBodyBuilder) Fields added in v3.2.2

返回数据的字段列表

示例值:

type BatchGetDepartmentReqBuilder added in v3.2.2

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

func NewBatchGetDepartmentReqBuilder added in v3.2.2

func NewBatchGetDepartmentReqBuilder() *BatchGetDepartmentReqBuilder

func (*BatchGetDepartmentReqBuilder) Body added in v3.2.2

func (*BatchGetDepartmentReqBuilder) Build added in v3.2.2

func (*BatchGetDepartmentReqBuilder) DepartmentIdType added in v3.2.2

func (builder *BatchGetDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *BatchGetDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*BatchGetDepartmentReqBuilder) UserIdType added in v3.2.2

func (builder *BatchGetDepartmentReqBuilder) UserIdType(userIdType string) *BatchGetDepartmentReqBuilder

用户 ID 类型

示例值:open_id

type BatchGetDepartmentResp added in v3.2.2

type BatchGetDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetDepartmentRespData `json:"data"` // 业务数据
}

func (*BatchGetDepartmentResp) Success added in v3.2.2

func (resp *BatchGetDepartmentResp) Success() bool

type BatchGetDepartmentRespData added in v3.2.2

type BatchGetDepartmentRespData struct {
	Items []*Department `json:"items,omitempty"` // 查询的部门信息
}

type BatchGetEmployeePathReqBodyBuilder

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

func NewBatchGetEmployeePathReqBodyBuilder

func NewBatchGetEmployeePathReqBodyBuilder() *BatchGetEmployeePathReqBodyBuilder

func (*BatchGetEmployeePathReqBodyBuilder) Build

func (*BatchGetEmployeePathReqBodyBuilder) EmploymentIds

func (builder *BatchGetEmployeePathReqBodyBuilder) EmploymentIds(employmentIds []string) *BatchGetEmployeePathReqBodyBuilder

雇佣 ID 列表

示例值:

func (*BatchGetEmployeePathReqBodyBuilder) Fields

返回数据的字段列表,填写方式:为空时默认仅返回 ID

示例值:

func (*BatchGetEmployeePathReqBodyBuilder) PersonIds

个人信息 ID 列表,employment_ids参数有值时该参数不生效

示例值:

func (*BatchGetEmployeePathReqBodyBuilder) WorkEmails

主工作邮箱列表

示例值:

type BatchGetEmployeeReq

type BatchGetEmployeeReq struct {
	Body *BatchGetEmployeeReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetEmployeeReqBody

type BatchGetEmployeeReqBody struct {
	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,填写方式:为空时默认仅返回 ID

	EmploymentIds []string `json:"employment_ids,omitempty"` // 雇佣 ID 列表

	PersonIds []string `json:"person_ids,omitempty"` // 个人信息 ID 列表,employment_ids参数有值时该参数不生效

	WorkEmails []string `json:"work_emails,omitempty"` // 主工作邮箱列表

	UserNames []string `json:"user_names,omitempty"` // username列表
}

type BatchGetEmployeeReqBodyBuilder

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

func NewBatchGetEmployeeReqBodyBuilder

func NewBatchGetEmployeeReqBodyBuilder() *BatchGetEmployeeReqBodyBuilder

func (*BatchGetEmployeeReqBodyBuilder) Build

func (*BatchGetEmployeeReqBodyBuilder) EmploymentIds

func (builder *BatchGetEmployeeReqBodyBuilder) EmploymentIds(employmentIds []string) *BatchGetEmployeeReqBodyBuilder

雇佣 ID 列表

示例值:

func (*BatchGetEmployeeReqBodyBuilder) Fields

返回数据的字段列表,填写方式:为空时默认仅返回 ID

示例值:

func (*BatchGetEmployeeReqBodyBuilder) PersonIds

func (builder *BatchGetEmployeeReqBodyBuilder) PersonIds(personIds []string) *BatchGetEmployeeReqBodyBuilder

个人信息 ID 列表,employment_ids参数有值时该参数不生效

示例值:

func (*BatchGetEmployeeReqBodyBuilder) WorkEmails

func (builder *BatchGetEmployeeReqBodyBuilder) WorkEmails(workEmails []string) *BatchGetEmployeeReqBodyBuilder

主工作邮箱列表

示例值:

type BatchGetEmployeeReqBuilder

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

func NewBatchGetEmployeeReqBuilder

func NewBatchGetEmployeeReqBuilder() *BatchGetEmployeeReqBuilder

func (*BatchGetEmployeeReqBuilder) Body

通过员工 ID 批量获取员工信息

func (*BatchGetEmployeeReqBuilder) Build

func (*BatchGetEmployeeReqBuilder) DepartmentIdType

func (builder *BatchGetEmployeeReqBuilder) DepartmentIdType(departmentIdType string) *BatchGetEmployeeReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*BatchGetEmployeeReqBuilder) UserIdType

func (builder *BatchGetEmployeeReqBuilder) UserIdType(userIdType string) *BatchGetEmployeeReqBuilder

用户 ID 类型

示例值:open_id

type BatchGetEmployeeResp

type BatchGetEmployeeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetEmployeeRespData `json:"data"` // 业务数据
}

func (*BatchGetEmployeeResp) Success

func (resp *BatchGetEmployeeResp) Success() bool

type BatchGetEmployeeRespData

type BatchGetEmployeeRespData struct {
	Items []*Employee `json:"items,omitempty"` // 查询的雇佣信息
}

type BatchGetEmployeesBpPathReqBodyBuilder

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

func NewBatchGetEmployeesBpPathReqBodyBuilder

func NewBatchGetEmployeesBpPathReqBodyBuilder() *BatchGetEmployeesBpPathReqBodyBuilder

func (*BatchGetEmployeesBpPathReqBodyBuilder) Build

func (*BatchGetEmployeesBpPathReqBodyBuilder) EmploymentIds

员工雇佣 ID

示例值:

func (*BatchGetEmployeesBpPathReqBodyBuilder) GetAll

是否获取全部 BP,true 为获取员工所在部门及来自上级部门的全部 HRBP 和属地 BP,false 为仅获取员工的直属 HRBP 和属地 BP(当员工所在部门、属地无 BP 时,会上钻找到最近的 BP),默认为 false

示例值:true

type BatchGetEmployeesBpReq

type BatchGetEmployeesBpReq struct {
	Body *BatchGetEmployeesBpReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetEmployeesBpReqBody

type BatchGetEmployeesBpReqBody struct {
	EmploymentIds []string `json:"employment_ids,omitempty"` // 员工雇佣 ID

	GetAll *bool `json:"get_all,omitempty"` // 是否获取全部 BP,true 为获取员工所在部门及来自上级部门的全部 HRBP 和属地 BP,false 为仅获取员工的直属 HRBP 和属地 BP(当员工所在部门、属地无 BP 时,会上钻找到最近的 BP),默认为 false
}

type BatchGetEmployeesBpReqBodyBuilder

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

func NewBatchGetEmployeesBpReqBodyBuilder

func NewBatchGetEmployeesBpReqBodyBuilder() *BatchGetEmployeesBpReqBodyBuilder

func (*BatchGetEmployeesBpReqBodyBuilder) Build

func (*BatchGetEmployeesBpReqBodyBuilder) EmploymentIds

func (builder *BatchGetEmployeesBpReqBodyBuilder) EmploymentIds(employmentIds []string) *BatchGetEmployeesBpReqBodyBuilder

员工雇佣 ID

示例值:

func (*BatchGetEmployeesBpReqBodyBuilder) GetAll

是否获取全部 BP,true 为获取员工所在部门及来自上级部门的全部 HRBP 和属地 BP,false 为仅获取员工的直属 HRBP 和属地 BP(当员工所在部门、属地无 BP 时,会上钻找到最近的 BP),默认为 false

示例值:true

type BatchGetEmployeesBpReqBuilder

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

func NewBatchGetEmployeesBpReqBuilder

func NewBatchGetEmployeesBpReqBuilder() *BatchGetEmployeesBpReqBuilder

func (*BatchGetEmployeesBpReqBuilder) Body

func (*BatchGetEmployeesBpReqBuilder) Build

func (*BatchGetEmployeesBpReqBuilder) UserIdType

func (builder *BatchGetEmployeesBpReqBuilder) UserIdType(userIdType string) *BatchGetEmployeesBpReqBuilder

用户 ID 类型

示例值:open_id

type BatchGetEmployeesBpResp

type BatchGetEmployeesBpResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetEmployeesBpRespData `json:"data"` // 业务数据
}

func (*BatchGetEmployeesBpResp) Success

func (resp *BatchGetEmployeesBpResp) Success() bool

type BatchGetEmployeesBpRespData

type BatchGetEmployeesBpRespData struct {
	EmploymentDirectBps []*EmploymentBp `json:"employment_direct_bps,omitempty"` // 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP

	EmploymentAllBps []*EmploymentBp `json:"employment_all_bps,omitempty"` // 员工全部 BP 信息
}

type BatchGetEmployeesJobDataPathReqBodyBuilder

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

func NewBatchGetEmployeesJobDataPathReqBodyBuilder

func NewBatchGetEmployeesJobDataPathReqBodyBuilder() *BatchGetEmployeesJobDataPathReqBodyBuilder

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) AssignmentStartReasons added in v3.3.7

func (builder *BatchGetEmployeesJobDataPathReqBodyBuilder) AssignmentStartReasons(assignmentStartReasons []string) *BatchGetEmployeesJobDataPathReqBodyBuilder

任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:assignment_start_reason

示例值:

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) Build

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) DataDate

查看数据日期,默认为今天

示例值:2020-01-01

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) EffectiveDateEnd

生效日期 - 搜索范围结束

示例值:2020-01-01

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) EffectiveDateStart

func (builder *BatchGetEmployeesJobDataPathReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *BatchGetEmployeesJobDataPathReqBodyBuilder

生效日期 - 搜索范围开始

示例值:2020-01-01

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) EmploymentIds

员工雇佣 ID 列表

示例值:

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) GetAllVersion

是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

示例值:false

func (*BatchGetEmployeesJobDataPathReqBodyBuilder) PrimaryJobData added in v3.3.7

是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

示例值:true

type BatchGetEmployeesJobDataReq

type BatchGetEmployeesJobDataReq struct {
	Body *BatchGetEmployeesJobDataReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetEmployeesJobDataReqBody

type BatchGetEmployeesJobDataReqBody struct {
	EmploymentIds []string `json:"employment_ids,omitempty"` // 员工雇佣 ID 列表

	GetAllVersion *bool `json:"get_all_version,omitempty"` // 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

	EffectiveDateStart *string `json:"effective_date_start,omitempty"` // 生效日期 - 搜索范围开始

	EffectiveDateEnd *string `json:"effective_date_end,omitempty"` // 生效日期 - 搜索范围结束

	DataDate *string `json:"data_date,omitempty"` // 查看数据日期,默认为今天

	PrimaryJobData *bool `json:"primary_job_data,omitempty"` // 是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

	AssignmentStartReasons []string `json:"assignment_start_reasons,omitempty"` // 任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:assignment_start_reason
}

type BatchGetEmployeesJobDataReqBodyBuilder

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

func NewBatchGetEmployeesJobDataReqBodyBuilder

func NewBatchGetEmployeesJobDataReqBodyBuilder() *BatchGetEmployeesJobDataReqBodyBuilder

func (*BatchGetEmployeesJobDataReqBodyBuilder) AssignmentStartReasons added in v3.3.7

func (builder *BatchGetEmployeesJobDataReqBodyBuilder) AssignmentStartReasons(assignmentStartReasons []string) *BatchGetEmployeesJobDataReqBodyBuilder

任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:assignment_start_reason

示例值:

func (*BatchGetEmployeesJobDataReqBodyBuilder) Build

func (*BatchGetEmployeesJobDataReqBodyBuilder) DataDate

查看数据日期,默认为今天

示例值:2020-01-01

func (*BatchGetEmployeesJobDataReqBodyBuilder) EffectiveDateEnd

func (builder *BatchGetEmployeesJobDataReqBodyBuilder) EffectiveDateEnd(effectiveDateEnd string) *BatchGetEmployeesJobDataReqBodyBuilder

生效日期 - 搜索范围结束

示例值:2020-01-01

func (*BatchGetEmployeesJobDataReqBodyBuilder) EffectiveDateStart

func (builder *BatchGetEmployeesJobDataReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *BatchGetEmployeesJobDataReqBodyBuilder

生效日期 - 搜索范围开始

示例值:2020-01-01

func (*BatchGetEmployeesJobDataReqBodyBuilder) EmploymentIds

员工雇佣 ID 列表

示例值:

func (*BatchGetEmployeesJobDataReqBodyBuilder) GetAllVersion

是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

示例值:false

func (*BatchGetEmployeesJobDataReqBodyBuilder) PrimaryJobData added in v3.3.7

是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

示例值:true

type BatchGetEmployeesJobDataReqBuilder

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

func NewBatchGetEmployeesJobDataReqBuilder

func NewBatchGetEmployeesJobDataReqBuilder() *BatchGetEmployeesJobDataReqBuilder

func (*BatchGetEmployeesJobDataReqBuilder) Body

func (*BatchGetEmployeesJobDataReqBuilder) Build

func (*BatchGetEmployeesJobDataReqBuilder) DepartmentIdType

func (builder *BatchGetEmployeesJobDataReqBuilder) DepartmentIdType(departmentIdType string) *BatchGetEmployeesJobDataReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*BatchGetEmployeesJobDataReqBuilder) UserIdType

用户 ID 类型

示例值:open_id

type BatchGetEmployeesJobDataResp

type BatchGetEmployeesJobDataResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetEmployeesJobDataRespData `json:"data"` // 业务数据
}

func (*BatchGetEmployeesJobDataResp) Success

func (resp *BatchGetEmployeesJobDataResp) Success() bool

type BatchGetEmployeesJobDataRespData

type BatchGetEmployeesJobDataRespData struct {
	Items []*EmployeeJobData `json:"items,omitempty"` // 查询的雇佣信息
}

type BatchGetJobFamilyPathReqBodyBuilder

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

func NewBatchGetJobFamilyPathReqBodyBuilder

func NewBatchGetJobFamilyPathReqBodyBuilder() *BatchGetJobFamilyPathReqBodyBuilder

func (*BatchGetJobFamilyPathReqBodyBuilder) Build

func (*BatchGetJobFamilyPathReqBodyBuilder) JobFamilyIds

序列 ID 列表

示例值:

type BatchGetJobFamilyReq

type BatchGetJobFamilyReq struct {
	Body *BatchGetJobFamilyReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetJobFamilyReqBody

type BatchGetJobFamilyReqBody struct {
	JobFamilyIds []string `json:"job_family_ids,omitempty"` // 序列 ID 列表
}

type BatchGetJobFamilyReqBodyBuilder

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

func NewBatchGetJobFamilyReqBodyBuilder

func NewBatchGetJobFamilyReqBodyBuilder() *BatchGetJobFamilyReqBodyBuilder

func (*BatchGetJobFamilyReqBodyBuilder) Build

func (*BatchGetJobFamilyReqBodyBuilder) JobFamilyIds

func (builder *BatchGetJobFamilyReqBodyBuilder) JobFamilyIds(jobFamilyIds []string) *BatchGetJobFamilyReqBodyBuilder

序列 ID 列表

示例值:

type BatchGetJobFamilyReqBuilder

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

func NewBatchGetJobFamilyReqBuilder

func NewBatchGetJobFamilyReqBuilder() *BatchGetJobFamilyReqBuilder

func (*BatchGetJobFamilyReqBuilder) Body

通过序列 ID 批量获取序列信息

func (*BatchGetJobFamilyReqBuilder) Build

type BatchGetJobFamilyResp

type BatchGetJobFamilyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetJobFamilyRespData `json:"data"` // 业务数据
}

func (*BatchGetJobFamilyResp) Success

func (resp *BatchGetJobFamilyResp) Success() bool

type BatchGetJobFamilyRespData

type BatchGetJobFamilyRespData struct {
	Items []*JobFamily `json:"items,omitempty"` // 查询的序列信息
}

type BatchGetJobLevelPathReqBodyBuilder

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

func NewBatchGetJobLevelPathReqBodyBuilder

func NewBatchGetJobLevelPathReqBodyBuilder() *BatchGetJobLevelPathReqBodyBuilder

func (*BatchGetJobLevelPathReqBodyBuilder) Build

func (*BatchGetJobLevelPathReqBodyBuilder) JobLevelIds

职级 ID 列表

示例值:

type BatchGetJobLevelReq

type BatchGetJobLevelReq struct {
	Body *BatchGetJobLevelReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetJobLevelReqBody

type BatchGetJobLevelReqBody struct {
	JobLevelIds []string `json:"job_level_ids,omitempty"` // 职级 ID 列表
}

type BatchGetJobLevelReqBodyBuilder

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

func NewBatchGetJobLevelReqBodyBuilder

func NewBatchGetJobLevelReqBodyBuilder() *BatchGetJobLevelReqBodyBuilder

func (*BatchGetJobLevelReqBodyBuilder) Build

func (*BatchGetJobLevelReqBodyBuilder) JobLevelIds

func (builder *BatchGetJobLevelReqBodyBuilder) JobLevelIds(jobLevelIds []string) *BatchGetJobLevelReqBodyBuilder

职级 ID 列表

示例值:

type BatchGetJobLevelReqBuilder

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

func NewBatchGetJobLevelReqBuilder

func NewBatchGetJobLevelReqBuilder() *BatchGetJobLevelReqBuilder

func (*BatchGetJobLevelReqBuilder) Body

通过职级 ID 批量获取职级信息

func (*BatchGetJobLevelReqBuilder) Build

type BatchGetJobLevelResp

type BatchGetJobLevelResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetJobLevelRespData `json:"data"` // 业务数据
}

func (*BatchGetJobLevelResp) Success

func (resp *BatchGetJobLevelResp) Success() bool

type BatchGetJobLevelRespData

type BatchGetJobLevelRespData struct {
	Items []*JobLevel `json:"items,omitempty"` // 查询的职级信息
}

type BatchGetLocationPathReqBodyBuilder

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

func NewBatchGetLocationPathReqBodyBuilder

func NewBatchGetLocationPathReqBodyBuilder() *BatchGetLocationPathReqBodyBuilder

func (*BatchGetLocationPathReqBodyBuilder) Build

func (*BatchGetLocationPathReqBodyBuilder) LocationIds

地点 ID 列表

示例值:

type BatchGetLocationReq

type BatchGetLocationReq struct {
	Body *BatchGetLocationReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchGetLocationReqBody

type BatchGetLocationReqBody struct {
	LocationIds []string `json:"location_ids,omitempty"` // 地点 ID 列表
}

type BatchGetLocationReqBodyBuilder

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

func NewBatchGetLocationReqBodyBuilder

func NewBatchGetLocationReqBodyBuilder() *BatchGetLocationReqBodyBuilder

func (*BatchGetLocationReqBodyBuilder) Build

func (*BatchGetLocationReqBodyBuilder) LocationIds

func (builder *BatchGetLocationReqBodyBuilder) LocationIds(locationIds []string) *BatchGetLocationReqBodyBuilder

地点 ID 列表

示例值:

type BatchGetLocationReqBuilder

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

func NewBatchGetLocationReqBuilder

func NewBatchGetLocationReqBuilder() *BatchGetLocationReqBuilder

func (*BatchGetLocationReqBuilder) Body

通过地点 ID 批量获取地点信息

func (*BatchGetLocationReqBuilder) Build

type BatchGetLocationResp

type BatchGetLocationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetLocationRespData `json:"data"` // 业务数据
}

func (*BatchGetLocationResp) Success

func (resp *BatchGetLocationResp) Success() bool

type BatchGetLocationRespData

type BatchGetLocationRespData struct {
	Items []*Location `json:"items,omitempty"` // 查询的地点信息
}

type BatchWorkforcePlanDetailPathReqBodyBuilder added in v3.3.4

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

func NewBatchWorkforcePlanDetailPathReqBodyBuilder added in v3.3.4

func NewBatchWorkforcePlanDetailPathReqBodyBuilder() *BatchWorkforcePlanDetailPathReqBodyBuilder

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) Build added in v3.3.4

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) CentralizedReportingProjectId added in v3.3.4

func (builder *BatchWorkforcePlanDetailPathReqBodyBuilder) CentralizedReportingProjectId(centralizedReportingProjectId string) *BatchWorkforcePlanDetailPathReqBodyBuilder

编制规划集中填报项目ID,ID可通过访问集中填报页面,从URL中提取report_id参数。如果租户未使用集中填报功能,将此参数置空即可。查询集中填报信息时,集中填报项目ID必填,是否为集中填报项目设置为true,不填写编制规划方案ID(是否填写不影响返回结果)

示例值:7140964208476371111

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) CostCenterIds added in v3.3.4

成本中心 ID 列表,可以通过搜索成本中心信息接口获取对应的成本中心信息

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) DepartmentIds added in v3.3.4

部门 ID 列表,枚举值及详细信息可通过查询单个部门接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) EmployeeTypeIds added in v3.3.4

人员类型 ID 列表,枚举值及详细信息可通过查询单个人员类型接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) IsCentralizedReportingProject added in v3.3.4

func (builder *BatchWorkforcePlanDetailPathReqBodyBuilder) IsCentralizedReportingProject(isCentralizedReportingProject bool) *BatchWorkforcePlanDetailPathReqBodyBuilder

是否为集中填报项目。如果租户未使用集中填报功能,将此参数置空即可。如果查询集中填报明细,将此参数设置为true。

示例值:false

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) JobFamilyIds added in v3.3.4

序列 ID 列表,枚举值及详细信息可通过查询单个序列接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) JobIds added in v3.3.4

职务 ID 列表,枚举值及详细信息可通过查询单个职务接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) JobLevelIds added in v3.3.4

职级 ID 列表,枚举值及详细信息可通过查询单个职级接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) WorkLocationIds added in v3.3.4

工作地点 ID 列表,枚举值及详细信息可通过查询单个地点接口查询获得

示例值:

func (*BatchWorkforcePlanDetailPathReqBodyBuilder) WorkforcePlanId added in v3.3.4

编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果)

示例值:781234834512

type BatchWorkforcePlanDetailReq added in v3.3.4

type BatchWorkforcePlanDetailReq struct {
	Body *BatchWorkforcePlanDetailReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchWorkforcePlanDetailReqBody added in v3.3.4

type BatchWorkforcePlanDetailReqBody struct {
	WorkforcePlanId *string `json:"workforce_plan_id,omitempty"` // 编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果)

	IsCentralizedReportingProject *bool `json:"is_centralized_reporting_project,omitempty"` // 是否为集中填报项目。如果租户未使用集中填报功能,将此参数置空即可。如果查询集中填报明细,将此参数设置为true。

	CentralizedReportingProjectId *string `json:"centralized_reporting_project_id,omitempty"` // 编制规划集中填报项目ID,ID可通过访问集中填报页面,从URL中提取report_id参数。如果租户未使用集中填报功能,将此参数置空即可。查询集中填报信息时,集中填报项目ID必填,是否为集中填报项目设置为true,不填写编制规划方案ID(是否填写不影响返回结果)

	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表,枚举值及详细信息可通过查询单个部门接口查询获得

	EmployeeTypeIds []string `json:"employee_type_ids,omitempty"` // 人员类型 ID 列表,枚举值及详细信息可通过查询单个人员类型接口查询获得

	WorkLocationIds []string `json:"work_location_ids,omitempty"` // 工作地点 ID 列表,枚举值及详细信息可通过查询单个地点接口查询获得

	JobFamilyIds []string `json:"job_family_ids,omitempty"` // 序列 ID 列表,枚举值及详细信息可通过查询单个序列接口查询获得

	JobLevelIds []string `json:"job_level_ids,omitempty"` // 职级 ID 列表,枚举值及详细信息可通过查询单个职级接口查询获得

	JobIds []string `json:"job_ids,omitempty"` // 职务 ID 列表,枚举值及详细信息可通过查询单个职务接口查询获得

	CostCenterIds []string `json:"cost_center_ids,omitempty"` // 成本中心 ID 列表,可以通过搜索成本中心信息接口获取对应的成本中心信息
}

type BatchWorkforcePlanDetailReqBodyBuilder added in v3.3.4

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

func NewBatchWorkforcePlanDetailReqBodyBuilder added in v3.3.4

func NewBatchWorkforcePlanDetailReqBodyBuilder() *BatchWorkforcePlanDetailReqBodyBuilder

func (*BatchWorkforcePlanDetailReqBodyBuilder) Build added in v3.3.4

func (*BatchWorkforcePlanDetailReqBodyBuilder) CentralizedReportingProjectId added in v3.3.4

func (builder *BatchWorkforcePlanDetailReqBodyBuilder) CentralizedReportingProjectId(centralizedReportingProjectId string) *BatchWorkforcePlanDetailReqBodyBuilder

编制规划集中填报项目ID,ID可通过访问集中填报页面,从URL中提取report_id参数。如果租户未使用集中填报功能,将此参数置空即可。查询集中填报信息时,集中填报项目ID必填,是否为集中填报项目设置为true,不填写编制规划方案ID(是否填写不影响返回结果)

示例值:7140964208476371111

func (*BatchWorkforcePlanDetailReqBodyBuilder) CostCenterIds added in v3.3.4

成本中心 ID 列表,可以通过搜索成本中心信息接口获取对应的成本中心信息

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) DepartmentIds added in v3.3.4

部门 ID 列表,枚举值及详细信息可通过查询单个部门接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) EmployeeTypeIds added in v3.3.4

func (builder *BatchWorkforcePlanDetailReqBodyBuilder) EmployeeTypeIds(employeeTypeIds []string) *BatchWorkforcePlanDetailReqBodyBuilder

人员类型 ID 列表,枚举值及详细信息可通过查询单个人员类型接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) IsCentralizedReportingProject added in v3.3.4

func (builder *BatchWorkforcePlanDetailReqBodyBuilder) IsCentralizedReportingProject(isCentralizedReportingProject bool) *BatchWorkforcePlanDetailReqBodyBuilder

是否为集中填报项目。如果租户未使用集中填报功能,将此参数置空即可。如果查询集中填报明细,将此参数设置为true。

示例值:false

func (*BatchWorkforcePlanDetailReqBodyBuilder) JobFamilyIds added in v3.3.4

序列 ID 列表,枚举值及详细信息可通过查询单个序列接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) JobIds added in v3.3.4

职务 ID 列表,枚举值及详细信息可通过查询单个职务接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) JobLevelIds added in v3.3.4

职级 ID 列表,枚举值及详细信息可通过查询单个职级接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) WorkLocationIds added in v3.3.4

func (builder *BatchWorkforcePlanDetailReqBodyBuilder) WorkLocationIds(workLocationIds []string) *BatchWorkforcePlanDetailReqBodyBuilder

工作地点 ID 列表,枚举值及详细信息可通过查询单个地点接口查询获得

示例值:

func (*BatchWorkforcePlanDetailReqBodyBuilder) WorkforcePlanId added in v3.3.4

编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果)

示例值:781234834512

type BatchWorkforcePlanDetailReqBuilder added in v3.3.4

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

func NewBatchWorkforcePlanDetailReqBuilder added in v3.3.4

func NewBatchWorkforcePlanDetailReqBuilder() *BatchWorkforcePlanDetailReqBuilder

func (*BatchWorkforcePlanDetailReqBuilder) Body added in v3.3.4

func (*BatchWorkforcePlanDetailReqBuilder) Build added in v3.3.4

func (*BatchWorkforcePlanDetailReqBuilder) PageSize added in v3.3.4

分页大小

示例值:100

func (*BatchWorkforcePlanDetailReqBuilder) PageToken added in v3.3.4

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:["123456"]

type BatchWorkforcePlanDetailResp added in v3.3.4

type BatchWorkforcePlanDetailResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchWorkforcePlanDetailRespData `json:"data"` // 业务数据
}

func (*BatchWorkforcePlanDetailResp) Success added in v3.3.4

func (resp *BatchWorkforcePlanDetailResp) Success() bool

type BatchWorkforcePlanDetailRespData added in v3.3.4

type BatchWorkforcePlanDetailRespData struct {
	WorkforcePlanId *string `json:"workforce_plan_id,omitempty"` // 编制规划方案 ID

	CentralizedReportingProjectId *string `json:"centralized_reporting_project_id,omitempty"` // 集中填报项目 ID

	Items []*WorkforcePlanDetail `json:"items,omitempty"` // 编制规划明细信息

	PageToken *string `json:"page_token,omitempty"` // 分页标识

	HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项
}

type Bp

type Bp struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	HrbpId *string `json:"hrbp_id,omitempty"` // BP 的雇佣 ID
}

type BpBuilder

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

func NewBpBuilder

func NewBpBuilder() *BpBuilder

func (*BpBuilder) Build

func (builder *BpBuilder) Build() *Bp

func (*BpBuilder) DepartmentId

func (builder *BpBuilder) DepartmentId(departmentId string) *BpBuilder

部门 ID

示例值:4719456877659520852

func (*BpBuilder) HrbpId

func (builder *BpBuilder) HrbpId(hrbpId string) *BpBuilder

BP 的雇佣 ID

示例值:4719456877659520852

type BpmDataengineI18n added in v3.2.1

type BpmDataengineI18n struct {
	ZhCn *string `json:"zh_cn,omitempty"` // (注json key是zh-CN,不是zh_cn)i18n类型字段,中文值

	EnUs *string `json:"en_us,omitempty"` // (注json key是en-US,不是en_us)i18n类型字段,英文值
}

type BpmDataengineI18nBuilder added in v3.2.1

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

func NewBpmDataengineI18nBuilder added in v3.2.1

func NewBpmDataengineI18nBuilder() *BpmDataengineI18nBuilder

func (*BpmDataengineI18nBuilder) Build added in v3.2.1

func (builder *BpmDataengineI18nBuilder) Build() *BpmDataengineI18n

func (*BpmDataengineI18nBuilder) EnUs added in v3.2.1

(注json key是en-US,不是en_us)i18n类型字段,英文值

示例值:Beijing

func (*BpmDataengineI18nBuilder) ZhCn added in v3.2.1

(注json key是zh-CN,不是zh_cn)i18n类型字段,中文值

示例值:北京

type CalculateParam

type CalculateParam struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID

	SocialSecurityCityId *string `json:"social_security_city_id,omitempty"` // 社保公积金缴纳地 ID

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID

	JobId *string `json:"job_id,omitempty"` // 职务 ID

	MatchingRuleDimension []*DimensionValue `json:"matching_rule_dimension,omitempty"` // 人员自定义字段
}

type CalculateParamBuilder

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

func NewCalculateParamBuilder

func NewCalculateParamBuilder() *CalculateParamBuilder

func (*CalculateParamBuilder) Build

func (builder *CalculateParamBuilder) Build() *CalculateParam

func (*CalculateParamBuilder) DepartmentId

func (builder *CalculateParamBuilder) DepartmentId(departmentId string) *CalculateParamBuilder

部门 ID

示例值:slnkdnaklsnda

func (*CalculateParamBuilder) EmployeeTypeId

func (builder *CalculateParamBuilder) EmployeeTypeId(employeeTypeId string) *CalculateParamBuilder

人员类型 ID

示例值:kajsdnjasdn

func (*CalculateParamBuilder) JobFamilyId

func (builder *CalculateParamBuilder) JobFamilyId(jobFamilyId string) *CalculateParamBuilder

序列 ID

示例值:bjlsadnas

func (*CalculateParamBuilder) JobId

func (builder *CalculateParamBuilder) JobId(jobId string) *CalculateParamBuilder

职务 ID

示例值:dsandkjanjnda

func (*CalculateParamBuilder) JobLevelId

func (builder *CalculateParamBuilder) JobLevelId(jobLevelId string) *CalculateParamBuilder

职级 ID

示例值:dsadamkdq

func (*CalculateParamBuilder) MatchingRuleDimension

func (builder *CalculateParamBuilder) MatchingRuleDimension(matchingRuleDimension []*DimensionValue) *CalculateParamBuilder

人员自定义字段

示例值:

func (*CalculateParamBuilder) SocialSecurityCityId

func (builder *CalculateParamBuilder) SocialSecurityCityId(socialSecurityCityId string) *CalculateParamBuilder

社保公积金缴纳地 ID

示例值:dsalndlnasl

func (*CalculateParamBuilder) WorkLocationId

func (builder *CalculateParamBuilder) WorkLocationId(workLocationId string) *CalculateParamBuilder

工作地点 ID

示例值:asbjldasnjdlwa

type ChangeFieldPair

type ChangeFieldPair struct {
	OriginValue *CustomFieldData `json:"origin_value,omitempty"` // 调整前

	TargetValue *CustomFieldData `json:"target_value,omitempty"` // 调整后
}

type ChangeFieldPairBuilder

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

func NewChangeFieldPairBuilder

func NewChangeFieldPairBuilder() *ChangeFieldPairBuilder

func (*ChangeFieldPairBuilder) Build

func (builder *ChangeFieldPairBuilder) Build() *ChangeFieldPair

func (*ChangeFieldPairBuilder) OriginValue

func (builder *ChangeFieldPairBuilder) OriginValue(originValue *CustomFieldData) *ChangeFieldPairBuilder

调整前

示例值:

func (*ChangeFieldPairBuilder) TargetValue

func (builder *ChangeFieldPairBuilder) TargetValue(targetValue *CustomFieldData) *ChangeFieldPairBuilder

调整后

示例值:

type CitizenshipStatus added in v3.2.0

type CitizenshipStatus struct {
	Id *string `json:"id,omitempty"` // 公民身份id

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家/地区id

	Active *bool `json:"active,omitempty"` // 是否启用

	Name []*I18n `json:"name,omitempty"` // 名称

	CitizenshipStatus []*I18n `json:"citizenship_status,omitempty"` // 公民身份

	ViewOrder *string `json:"view_order,omitempty"` // 排序
}

type CitizenshipStatusBuilder added in v3.2.0

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

func NewCitizenshipStatusBuilder added in v3.2.0

func NewCitizenshipStatusBuilder() *CitizenshipStatusBuilder

func (*CitizenshipStatusBuilder) Active added in v3.2.0

func (builder *CitizenshipStatusBuilder) Active(active bool) *CitizenshipStatusBuilder

是否启用

示例值:true

func (*CitizenshipStatusBuilder) Build added in v3.2.0

func (builder *CitizenshipStatusBuilder) Build() *CitizenshipStatus

func (*CitizenshipStatusBuilder) CitizenshipStatus added in v3.2.0

func (builder *CitizenshipStatusBuilder) CitizenshipStatus(citizenshipStatus []*I18n) *CitizenshipStatusBuilder

公民身份

示例值:

func (*CitizenshipStatusBuilder) CountryRegionId added in v3.2.0

func (builder *CitizenshipStatusBuilder) CountryRegionId(countryRegionId string) *CitizenshipStatusBuilder

国家/地区id

示例值:6891251722631890445

func (*CitizenshipStatusBuilder) Id added in v3.2.0

公民身份id

示例值:6891251722631890445

func (*CitizenshipStatusBuilder) Name added in v3.2.0

func (builder *CitizenshipStatusBuilder) Name(name []*I18n) *CitizenshipStatusBuilder

名称

示例值:

func (*CitizenshipStatusBuilder) ViewOrder added in v3.2.0

func (builder *CitizenshipStatusBuilder) ViewOrder(viewOrder string) *CitizenshipStatusBuilder

排序

示例值:1

type City

type City struct {
	CityId *string `json:"city_id,omitempty"` // 城市 ID

	Name []*I18n `json:"name,omitempty"` // 城市名称

	CountryRegionSubdivisionId *string `json:"country_region_subdivision_id,omitempty"` // 所属省份/主要行政区 ID,详细信息可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口获得

	Code *string `json:"code,omitempty"` // 城市三位字母代码

	SubregionCode *string `json:"subregion_code,omitempty"` // 行政区划代码

	Status *int `json:"status,omitempty"` // 状态
}

type CityBuilder

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

func NewCityBuilder

func NewCityBuilder() *CityBuilder

func (*CityBuilder) Build

func (builder *CityBuilder) Build() *City

func (*CityBuilder) CityId

func (builder *CityBuilder) CityId(cityId string) *CityBuilder

城市 ID

示例值:6863333352603125255

func (*CityBuilder) Code

func (builder *CityBuilder) Code(code string) *CityBuilder

城市三位字母代码

示例值:HRB

func (*CityBuilder) CountryRegionSubdivisionId

func (builder *CityBuilder) CountryRegionSubdivisionId(countryRegionSubdivisionId string) *CityBuilder

所属省份/主要行政区 ID,详细信息可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口获得

示例值:6863326262757164551

func (*CityBuilder) Name

func (builder *CityBuilder) Name(name []*I18n) *CityBuilder

城市名称

示例值:

func (*CityBuilder) Status

func (builder *CityBuilder) Status(status int) *CityBuilder

状态

示例值:1

func (*CityBuilder) SubregionCode added in v3.2.6

func (builder *CityBuilder) SubregionCode(subregionCode string) *CityBuilder

行政区划代码

示例值:230100

type Company

type Company struct {
	CompanyId *string `json:"company_id,omitempty"` // 公司 ID

	HiberarchyCommon *HiberarchyCommon `json:"hiberarchy_common,omitempty"` // 公司基本信息

	Type *Enum `json:"type,omitempty"` // 性质

	IndustryList []*Enum `json:"industry_list,omitempty"` // 行业

	LegalRepresentative []*I18n `json:"legal_representative,omitempty"` // 法定代表人

	PostCode *string `json:"post_code,omitempty"` // 邮编

	TaxPayerId *string `json:"tax_payer_id,omitempty"` // 纳税人识别号

	Confidential *bool `json:"confidential,omitempty"` // confidential

	SubTypeList []*Enum `json:"sub_type_list,omitempty"` // 主体类型

	BranchCompany *bool `json:"branch_company,omitempty"` // 是否为分公司

	PrimaryManager []*I18n `json:"primary_manager,omitempty"` // 主要负责人

	Currency *Currency `json:"currency,omitempty"` // 默认币种

	Phone *PhoneNumberAndAreaCode `json:"phone,omitempty"` // 电话

	Fax *PhoneNumberAndAreaCode `json:"fax,omitempty"` // 传真

	RegisteredOfficeAddress []*I18n `json:"registered_office_address,omitempty"` // 完整注册地址

	OfficeAddress []*I18n `json:"office_address,omitempty"` // 完整办公地址

	RegisteredOfficeAddressInfo *Address `json:"registered_office_address_info,omitempty"` // 注册地址

	OfficeAddressInfo *Address `json:"office_address_info,omitempty"` // 办公地址

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type CompanyBuilder

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

func NewCompanyBuilder

func NewCompanyBuilder() *CompanyBuilder

func (*CompanyBuilder) BranchCompany

func (builder *CompanyBuilder) BranchCompany(branchCompany bool) *CompanyBuilder

是否为分公司

示例值:true

func (*CompanyBuilder) Build

func (builder *CompanyBuilder) Build() *Company

func (*CompanyBuilder) CompanyId

func (builder *CompanyBuilder) CompanyId(companyId string) *CompanyBuilder

公司 ID

示例值:4692472714243080020

func (*CompanyBuilder) Confidential

func (builder *CompanyBuilder) Confidential(confidential bool) *CompanyBuilder

confidential

示例值:true

func (*CompanyBuilder) Currency

func (builder *CompanyBuilder) Currency(currency *Currency) *CompanyBuilder

默认币种

示例值:

func (*CompanyBuilder) CustomFields

func (builder *CompanyBuilder) CustomFields(customFields []*CustomFieldData) *CompanyBuilder

自定义字段

示例值:

func (*CompanyBuilder) Fax

传真

示例值:

func (*CompanyBuilder) HiberarchyCommon

func (builder *CompanyBuilder) HiberarchyCommon(hiberarchyCommon *HiberarchyCommon) *CompanyBuilder

公司基本信息

示例值:

func (*CompanyBuilder) IndustryList

func (builder *CompanyBuilder) IndustryList(industryList []*Enum) *CompanyBuilder

行业

示例值:

func (*CompanyBuilder) LegalRepresentative

func (builder *CompanyBuilder) LegalRepresentative(legalRepresentative []*I18n) *CompanyBuilder

法定代表人

示例值:

func (*CompanyBuilder) OfficeAddress

func (builder *CompanyBuilder) OfficeAddress(officeAddress []*I18n) *CompanyBuilder

完整办公地址

示例值:

func (*CompanyBuilder) OfficeAddressInfo added in v3.1.2

func (builder *CompanyBuilder) OfficeAddressInfo(officeAddressInfo *Address) *CompanyBuilder

办公地址

示例值:

func (*CompanyBuilder) Phone

func (builder *CompanyBuilder) Phone(phone *PhoneNumberAndAreaCode) *CompanyBuilder

电话

示例值:

func (*CompanyBuilder) PostCode

func (builder *CompanyBuilder) PostCode(postCode string) *CompanyBuilder

邮编

示例值:邮编

func (*CompanyBuilder) PrimaryManager

func (builder *CompanyBuilder) PrimaryManager(primaryManager []*I18n) *CompanyBuilder

主要负责人

示例值:

func (*CompanyBuilder) RegisteredOfficeAddress

func (builder *CompanyBuilder) RegisteredOfficeAddress(registeredOfficeAddress []*I18n) *CompanyBuilder

完整注册地址

示例值:

func (*CompanyBuilder) RegisteredOfficeAddressInfo added in v3.1.2

func (builder *CompanyBuilder) RegisteredOfficeAddressInfo(registeredOfficeAddressInfo *Address) *CompanyBuilder

注册地址

示例值:

func (*CompanyBuilder) SubTypeList

func (builder *CompanyBuilder) SubTypeList(subTypeList []*Enum) *CompanyBuilder

主体类型

示例值:

func (*CompanyBuilder) TaxPayerId

func (builder *CompanyBuilder) TaxPayerId(taxPayerId string) *CompanyBuilder

纳税人识别号

示例值:123456840

func (*CompanyBuilder) Type

func (builder *CompanyBuilder) Type(type_ *Enum) *CompanyBuilder

性质

示例值:

type CompanyIdAndName

type CompanyIdAndName struct {
	CompanyId *string `json:"company_id,omitempty"` // 所属公司的 ID

	CompanyName []*I18n `json:"company_name,omitempty"` // 所属公司的名称
}

type CompanyIdAndNameBuilder

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

func NewCompanyIdAndNameBuilder

func NewCompanyIdAndNameBuilder() *CompanyIdAndNameBuilder

func (*CompanyIdAndNameBuilder) Build

func (builder *CompanyIdAndNameBuilder) Build() *CompanyIdAndName

func (*CompanyIdAndNameBuilder) CompanyId

func (builder *CompanyIdAndNameBuilder) CompanyId(companyId string) *CompanyIdAndNameBuilder

所属公司的 ID

示例值:sadasdasda

func (*CompanyIdAndNameBuilder) CompanyName

func (builder *CompanyIdAndNameBuilder) CompanyName(companyName []*I18n) *CompanyIdAndNameBuilder

所属公司的名称

示例值:

type CompletePreHireReq added in v3.2.9

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

type CompletePreHireReqBuilder added in v3.2.9

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

func NewCompletePreHireReqBuilder added in v3.2.9

func NewCompletePreHireReqBuilder() *CompletePreHireReqBuilder

func (*CompletePreHireReqBuilder) Build added in v3.2.9

func (*CompletePreHireReqBuilder) PreHireId added in v3.2.9

func (builder *CompletePreHireReqBuilder) PreHireId(preHireId string) *CompletePreHireReqBuilder

待入职ID

示例值:7345005664477775407

type CompletePreHireResp added in v3.2.9

type CompletePreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CompletePreHireRespData `json:"data"` // 业务数据
}

func (*CompletePreHireResp) Success added in v3.2.9

func (resp *CompletePreHireResp) Success() bool

type CompletePreHireRespData added in v3.2.9

type CompletePreHireRespData struct {
	Success *bool `json:"success,omitempty"` // 是否成功完成入职
}

type Contract

type Contract struct {
	Id *string `json:"id,omitempty"` // 合同ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 合同结束日期

	ExpirationTime *string `json:"expiration_time,omitempty"` // 实际结束日期

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID

	ContractType *Enum `json:"contract_type,omitempty"` // 合同类型,枚举值可通过文档【飞书人事枚举常量】合同类型(contract_type)枚举定义部分获得

	FirstPartyCompanyId *string `json:"first_party_company_id,omitempty"` // 合同主体, 引用Company的ID,枚举值及详细信息可通过【批量查询公司】接口查询获得

	PersonId *string `json:"person_id,omitempty"` // Person ID,枚举值及详细信息可通过【批量查询个人信息】接口查询获得

	DurationType *Enum `json:"duration_type,omitempty"` // 期限类型,枚举值可通过文档【飞书人事枚举常量】合同期限类型(duration_type)枚举定义部分获得

	ContractNumber *string `json:"contract_number,omitempty"` // 合同编号

	SigningType *Enum `json:"signing_type,omitempty"` // 签订类型,枚举值可通过文档【飞书人事枚举常量】签订类型(signing_type)枚举定义部分获得

	ContractStatus *Enum `json:"contract_status,omitempty"` // 合同协议状态,枚举值可通过文档【飞书人事枚举常量】合同协议状态(contract_status)枚举定义部分获得

	RenewalStatus *Enum `json:"renewal_status,omitempty"` // 续签状态,枚举值可通过文档【飞书人事枚举常量】续签状态(renewal_status)枚举定义部分获得

	SigningTimes *int `json:"signing_times,omitempty"` // 第几次签署

	OriginalContract *string `json:"original_contract,omitempty"` // 原合同ID
}

type ContractBuilder

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

func NewContractBuilder

func NewContractBuilder() *ContractBuilder

func (*ContractBuilder) Build

func (builder *ContractBuilder) Build() *Contract

func (*ContractBuilder) ContractEndDate

func (builder *ContractBuilder) ContractEndDate(contractEndDate string) *ContractBuilder

合同结束日期

示例值:2024-01-01

func (*ContractBuilder) ContractNumber

func (builder *ContractBuilder) ContractNumber(contractNumber string) *ContractBuilder

合同编号

示例值:0000011

func (*ContractBuilder) ContractStatus added in v3.2.7

func (builder *ContractBuilder) ContractStatus(contractStatus *Enum) *ContractBuilder

合同协议状态,枚举值可通过文档【飞书人事枚举常量】合同协议状态(contract_status)枚举定义部分获得

示例值:

func (*ContractBuilder) ContractType

func (builder *ContractBuilder) ContractType(contractType *Enum) *ContractBuilder

合同类型,枚举值可通过文档【飞书人事枚举常量】合同类型(contract_type)枚举定义部分获得

示例值:

func (*ContractBuilder) DurationType

func (builder *ContractBuilder) DurationType(durationType *Enum) *ContractBuilder

期限类型,枚举值可通过文档【飞书人事枚举常量】合同期限类型(duration_type)枚举定义部分获得

示例值:

func (*ContractBuilder) EffectiveTime

func (builder *ContractBuilder) EffectiveTime(effectiveTime string) *ContractBuilder

合同开始日期

示例值:2023-01-01 00:00:00

func (*ContractBuilder) EmploymentId

func (builder *ContractBuilder) EmploymentId(employmentId string) *ContractBuilder

雇佣 ID

示例值:6893014062142064135

func (*ContractBuilder) ExpirationTime

func (builder *ContractBuilder) ExpirationTime(expirationTime string) *ContractBuilder

实际结束日期

示例值:2023-11-01 00:00:00

func (*ContractBuilder) FirstPartyCompanyId

func (builder *ContractBuilder) FirstPartyCompanyId(firstPartyCompanyId string) *ContractBuilder

合同主体, 引用Company的ID,枚举值及详细信息可通过【批量查询公司】接口查询获得

示例值:7091599096804394540

func (*ContractBuilder) Id

func (builder *ContractBuilder) Id(id string) *ContractBuilder

合同ID

示例值:7147527056140813828

func (*ContractBuilder) OriginalContract added in v3.3.1

func (builder *ContractBuilder) OriginalContract(originalContract string) *ContractBuilder

原合同ID

示例值:7147527056140813828

func (*ContractBuilder) PersonId

func (builder *ContractBuilder) PersonId(personId string) *ContractBuilder

Person ID,枚举值及详细信息可通过【批量查询个人信息】接口查询获得

示例值:7088589447189022252

func (*ContractBuilder) RenewalStatus added in v3.2.7

func (builder *ContractBuilder) RenewalStatus(renewalStatus *Enum) *ContractBuilder

续签状态,枚举值可通过文档【飞书人事枚举常量】续签状态(renewal_status)枚举定义部分获得

示例值:

func (*ContractBuilder) SigningTimes added in v3.2.7

func (builder *ContractBuilder) SigningTimes(signingTimes int) *ContractBuilder

第几次签署

示例值:1

func (*ContractBuilder) SigningType

func (builder *ContractBuilder) SigningType(signingType *Enum) *ContractBuilder

签订类型,枚举值可通过文档【飞书人事枚举常量】签订类型(signing_type)枚举定义部分获得

示例值:

type CostCenter

type CostCenter struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心ID

	Name []*I18n `json:"name,omitempty"` // 成本中心名称

	Code *string `json:"code,omitempty"` // 编码

	ParentCostCenterId *string `json:"parent_cost_center_id,omitempty"` // 上级成本中心ID

	Managers []string `json:"managers,omitempty"` // 成本中心负责人ID 列表,可通过雇佣信息接口查询获得

	Description []*I18n `json:"description,omitempty"` // 成本中心描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 过期时间

	Active *bool `json:"active,omitempty"` // 当前实体是否启用

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type CostCenterBuilder

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

func NewCostCenterBuilder

func NewCostCenterBuilder() *CostCenterBuilder

func (*CostCenterBuilder) Active

func (builder *CostCenterBuilder) Active(active bool) *CostCenterBuilder

当前实体是否启用

示例值:2020-01-01

func (*CostCenterBuilder) Build

func (builder *CostCenterBuilder) Build() *CostCenter

func (*CostCenterBuilder) Code

func (builder *CostCenterBuilder) Code(code string) *CostCenterBuilder

编码

示例值:MDPD00000023

func (*CostCenterBuilder) CostCenterId

func (builder *CostCenterBuilder) CostCenterId(costCenterId string) *CostCenterBuilder

成本中心ID

示例值:6969828847121885087

func (*CostCenterBuilder) Description

func (builder *CostCenterBuilder) Description(description []*I18n) *CostCenterBuilder

成本中心描述

示例值:

func (*CostCenterBuilder) EffectiveTime

func (builder *CostCenterBuilder) EffectiveTime(effectiveTime string) *CostCenterBuilder

生效时间

示例值:2020-01-01

func (*CostCenterBuilder) ExpirationTime

func (builder *CostCenterBuilder) ExpirationTime(expirationTime string) *CostCenterBuilder

过期时间

示例值:2020-01-01

func (*CostCenterBuilder) Managers

func (builder *CostCenterBuilder) Managers(managers []string) *CostCenterBuilder

成本中心负责人ID 列表,可通过雇佣信息接口查询获得

示例值:

func (*CostCenterBuilder) Name

func (builder *CostCenterBuilder) Name(name []*I18n) *CostCenterBuilder

成本中心名称

示例值:

func (*CostCenterBuilder) OperationReason

func (builder *CostCenterBuilder) OperationReason(operationReason string) *CostCenterBuilder

操作原因

示例值:过期作废

func (*CostCenterBuilder) ParentCostCenterId

func (builder *CostCenterBuilder) ParentCostCenterId(parentCostCenterId string) *CostCenterBuilder

上级成本中心ID

示例值:6862995757234914824

type CostCenterVersion

type CostCenterVersion struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心ID

	VersionId *string `json:"version_id,omitempty"` // 成本中心版本ID

	Name []*I18n `json:"name,omitempty"` // 成本中心名称

	Code *string `json:"code,omitempty"` // 编码

	ParentCostCenterId *string `json:"parent_cost_center_id,omitempty"` // 上级成本中心ID

	Managers []string `json:"managers,omitempty"` // 成本中心负责人ID 列表,可通过雇佣信息接口查询获得

	Description []*I18n `json:"description,omitempty"` // 成本中心描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 过期时间

	Active *bool `json:"active,omitempty"` // 当前实体是否启用

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type CostCenterVersionBuilder

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

func NewCostCenterVersionBuilder

func NewCostCenterVersionBuilder() *CostCenterVersionBuilder

func (*CostCenterVersionBuilder) Active

func (builder *CostCenterVersionBuilder) Active(active bool) *CostCenterVersionBuilder

当前实体是否启用

示例值:2020-01-01

func (*CostCenterVersionBuilder) Build

func (builder *CostCenterVersionBuilder) Build() *CostCenterVersion

func (*CostCenterVersionBuilder) Code

编码

示例值:MDPD00000023

func (*CostCenterVersionBuilder) CostCenterId

func (builder *CostCenterVersionBuilder) CostCenterId(costCenterId string) *CostCenterVersionBuilder

成本中心ID

示例值:6969828847121885087

func (*CostCenterVersionBuilder) Description

func (builder *CostCenterVersionBuilder) Description(description []*I18n) *CostCenterVersionBuilder

成本中心描述

示例值:

func (*CostCenterVersionBuilder) EffectiveTime

func (builder *CostCenterVersionBuilder) EffectiveTime(effectiveTime string) *CostCenterVersionBuilder

生效时间

示例值:2020-01-01

func (*CostCenterVersionBuilder) ExpirationTime

func (builder *CostCenterVersionBuilder) ExpirationTime(expirationTime string) *CostCenterVersionBuilder

过期时间

示例值:2020-01-01

func (*CostCenterVersionBuilder) Managers

func (builder *CostCenterVersionBuilder) Managers(managers []string) *CostCenterVersionBuilder

成本中心负责人ID 列表,可通过雇佣信息接口查询获得

示例值:

func (*CostCenterVersionBuilder) Name

func (builder *CostCenterVersionBuilder) Name(name []*I18n) *CostCenterVersionBuilder

成本中心名称

示例值:

func (*CostCenterVersionBuilder) OperationReason

func (builder *CostCenterVersionBuilder) OperationReason(operationReason string) *CostCenterVersionBuilder

操作原因

示例值:过期作废

func (*CostCenterVersionBuilder) ParentCostCenterId

func (builder *CostCenterVersionBuilder) ParentCostCenterId(parentCostCenterId string) *CostCenterVersionBuilder

上级成本中心ID

示例值:6862995757234914824

func (*CostCenterVersionBuilder) VersionId

func (builder *CostCenterVersionBuilder) VersionId(versionId string) *CostCenterVersionBuilder

成本中心版本ID

示例值:6969828847121885087

type CountryRegion

type CountryRegion struct {
	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家/地区 ID

	Name []*I18n `json:"name,omitempty"` // 国家/地区名称

	FullName []*I18n `json:"full_name,omitempty"` // 国家/地区全称

	Alpha2Code *string `json:"alpha_2_code,omitempty"` // 国家/地区两位字母编码(ISO 3166-1)

	Alpha3Code *string `json:"alpha_3_code,omitempty"` // 国家/地区三位字母编码(ISO 3166-1)

	GlobalCode *string `json:"global_code,omitempty"` // 国际电话区号

	Status *int `json:"status,omitempty"` // 状态
}

type CountryRegionBuilder

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

func NewCountryRegionBuilder

func NewCountryRegionBuilder() *CountryRegionBuilder

func (*CountryRegionBuilder) Alpha2Code

func (builder *CountryRegionBuilder) Alpha2Code(alpha2Code string) *CountryRegionBuilder

国家/地区两位字母编码(ISO 3166-1)

示例值:CN

func (*CountryRegionBuilder) Alpha3Code

func (builder *CountryRegionBuilder) Alpha3Code(alpha3Code string) *CountryRegionBuilder

国家/地区三位字母编码(ISO 3166-1)

示例值:CHN

func (*CountryRegionBuilder) Build

func (builder *CountryRegionBuilder) Build() *CountryRegion

func (*CountryRegionBuilder) CountryRegionId

func (builder *CountryRegionBuilder) CountryRegionId(countryRegionId string) *CountryRegionBuilder

国家/地区 ID

示例值:6862995757234914824

func (*CountryRegionBuilder) FullName

func (builder *CountryRegionBuilder) FullName(fullName []*I18n) *CountryRegionBuilder

国家/地区全称

示例值:

func (*CountryRegionBuilder) GlobalCode

func (builder *CountryRegionBuilder) GlobalCode(globalCode string) *CountryRegionBuilder

国际电话区号

示例值:+86

func (*CountryRegionBuilder) Name

func (builder *CountryRegionBuilder) Name(name []*I18n) *CountryRegionBuilder

国家/地区名称

示例值:

func (*CountryRegionBuilder) Status

func (builder *CountryRegionBuilder) Status(status int) *CountryRegionBuilder

状态

示例值:1

type CountryRegionSubdivision

type CountryRegionSubdivision struct {
	CountryRegionSubdivisionId *string `json:"country_region_subdivision_id,omitempty"` // 省份/主要行政区 ID

	Name []*I18n `json:"name,omitempty"` // 省份/主要行政区名称

	CountryRegionId *string `json:"country_region_id,omitempty"` // 所属国家/地区 ID,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

	SubdivisionType *Enum `json:"subdivision_type,omitempty"` // 行政区类型,枚举值可通过飞书人事[枚举常量介绍](https://open.feishu.cn/document/server-docs/corehr-v1/feishu-people-enum-constant#402ea9a0)文档中行政区类型(subdivision_type)定义部分获得

	IsoCode *string `json:"iso_code,omitempty"` // 省份/主要行政区编码(ISO 3166-2)

	Status *int `json:"status,omitempty"` // 状态
}

type CountryRegionSubdivisionBuilder

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

func NewCountryRegionSubdivisionBuilder

func NewCountryRegionSubdivisionBuilder() *CountryRegionSubdivisionBuilder

func (*CountryRegionSubdivisionBuilder) Build

func (*CountryRegionSubdivisionBuilder) CountryRegionId

func (builder *CountryRegionSubdivisionBuilder) CountryRegionId(countryRegionId string) *CountryRegionSubdivisionBuilder

所属国家/地区 ID,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

示例值:6862995791674344967

func (*CountryRegionSubdivisionBuilder) CountryRegionSubdivisionId

func (builder *CountryRegionSubdivisionBuilder) CountryRegionSubdivisionId(countryRegionSubdivisionId string) *CountryRegionSubdivisionBuilder

省份/主要行政区 ID

示例值:6863326571462133262

func (*CountryRegionSubdivisionBuilder) IsoCode

省份/主要行政区编码(ISO 3166-2)

示例值:PSE-GZA

func (*CountryRegionSubdivisionBuilder) Name

省份/主要行政区名称

示例值:

func (*CountryRegionSubdivisionBuilder) Status

状态

示例值:1

func (*CountryRegionSubdivisionBuilder) SubdivisionType

func (builder *CountryRegionSubdivisionBuilder) SubdivisionType(subdivisionType *Enum) *CountryRegionSubdivisionBuilder

行政区类型,枚举值可通过飞书人事[枚举常量介绍](https://open.feishu.cn/document/server-docs/corehr-v1/feishu-people-enum-constant#402ea9a0)文档中行政区类型(subdivision_type)定义部分获得

示例值:

type CreateCostCenterReq added in v3.1.2

type CreateCostCenterReq struct {
	CostCenter *CostCenter `body:""`
	// contains filtered or unexported fields
}

type CreateCostCenterReqBuilder added in v3.1.2

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

func NewCreateCostCenterReqBuilder added in v3.1.2

func NewCreateCostCenterReqBuilder() *CreateCostCenterReqBuilder

func (*CreateCostCenterReqBuilder) Build added in v3.1.2

func (*CreateCostCenterReqBuilder) CostCenter added in v3.1.2

func (builder *CreateCostCenterReqBuilder) CostCenter(costCenter *CostCenter) *CreateCostCenterReqBuilder

创建成本中心

func (*CreateCostCenterReqBuilder) UserIdType added in v3.1.2

func (builder *CreateCostCenterReqBuilder) UserIdType(userIdType string) *CreateCostCenterReqBuilder

用户 ID 类型

示例值:people_corehr_id

type CreateCostCenterResp added in v3.1.2

type CreateCostCenterResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateCostCenterRespData `json:"data"` // 业务数据
}

func (*CreateCostCenterResp) Success added in v3.1.2

func (resp *CreateCostCenterResp) Success() bool

type CreateCostCenterRespData added in v3.1.2

type CreateCostCenterRespData struct {
	CostCenter *CostCenter `json:"cost_center,omitempty"` //
}

type CreateCostCenterVersionReq added in v3.1.2

type CreateCostCenterVersionReq struct {
	CostCenterVersion *CostCenterVersion `body:""`
	// contains filtered or unexported fields
}

type CreateCostCenterVersionReqBuilder added in v3.1.2

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

func NewCreateCostCenterVersionReqBuilder added in v3.1.2

func NewCreateCostCenterVersionReqBuilder() *CreateCostCenterVersionReqBuilder

func (*CreateCostCenterVersionReqBuilder) Build added in v3.1.2

func (*CreateCostCenterVersionReqBuilder) CostCenterId added in v3.1.2

func (builder *CreateCostCenterVersionReqBuilder) CostCenterId(costCenterId string) *CreateCostCenterVersionReqBuilder

成本中心ID

示例值:6862995757234914824

func (*CreateCostCenterVersionReqBuilder) CostCenterVersion added in v3.1.2

func (builder *CreateCostCenterVersionReqBuilder) CostCenterVersion(costCenterVersion *CostCenterVersion) *CreateCostCenterVersionReqBuilder

创建成本中心版本

func (*CreateCostCenterVersionReqBuilder) UserIdType added in v3.1.2

用户 ID 类型

示例值:people_corehr_id

type CreateCostCenterVersionResp added in v3.1.2

type CreateCostCenterVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateCostCenterVersionRespData `json:"data"` // 业务数据
}

func (*CreateCostCenterVersionResp) Success added in v3.1.2

func (resp *CreateCostCenterVersionResp) Success() bool

type CreateCostCenterVersionRespData added in v3.1.2

type CreateCostCenterVersionRespData struct {
	Version *CostCenterVersion `json:"version,omitempty"` //
}

type CreateEmpCustomOrg added in v3.3.1

type CreateEmpCustomOrg struct {
	Id *string `json:"id,omitempty"` // 自定义组织ID

	Rate *float64 `json:"rate,omitempty"` // 比例 如果是非比例的可不填写
}

type CreateEmpCustomOrgBuilder added in v3.3.1

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

func NewCreateEmpCustomOrgBuilder added in v3.3.1

func NewCreateEmpCustomOrgBuilder() *CreateEmpCustomOrgBuilder

func (*CreateEmpCustomOrgBuilder) Build added in v3.3.1

func (*CreateEmpCustomOrgBuilder) Id added in v3.3.1

自定义组织ID

示例值:7260357352426782739

func (*CreateEmpCustomOrgBuilder) Rate added in v3.3.1

比例 如果是非比例的可不填写

示例值:50.1

type CreateEmployeePathReqBodyBuilder added in v3.2.7

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

func NewCreateEmployeePathReqBodyBuilder added in v3.2.7

func NewCreateEmployeePathReqBodyBuilder() *CreateEmployeePathReqBodyBuilder

func (*CreateEmployeePathReqBodyBuilder) Build added in v3.2.7

func (*CreateEmployeePathReqBodyBuilder) Career added in v3.2.7

履历信息

示例值:

func (*CreateEmployeePathReqBodyBuilder) DataAttachment added in v3.2.7

资料附件

示例值:

func (*CreateEmployeePathReqBodyBuilder) EmploymentInfo added in v3.2.7

工作信息

示例值:

func (*CreateEmployeePathReqBodyBuilder) PersonalInfo added in v3.2.7

个人信息

示例值:

type CreateEmployeeReq added in v3.2.7

type CreateEmployeeReq struct {
	Body *CreateEmployeeReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateEmployeeReqBody added in v3.2.7

type CreateEmployeeReqBody struct {
	PersonalInfo *ProfileSettingPersonalInfo `json:"personal_info,omitempty"` // 个人信息

	EmploymentInfo *ProfileSettingEmploymentInfo `json:"employment_info,omitempty"` // 工作信息

	Career *ProfileSettingCareer `json:"career,omitempty"` // 履历信息

	DataAttachment *ProfileSettingDataAttachment `json:"data_attachment,omitempty"` // 资料附件
}

type CreateEmployeeReqBodyBuilder added in v3.2.7

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

func NewCreateEmployeeReqBodyBuilder added in v3.2.7

func NewCreateEmployeeReqBodyBuilder() *CreateEmployeeReqBodyBuilder

func (*CreateEmployeeReqBodyBuilder) Build added in v3.2.7

func (*CreateEmployeeReqBodyBuilder) Career added in v3.2.7

履历信息

示例值:

func (*CreateEmployeeReqBodyBuilder) DataAttachment added in v3.2.7

资料附件

示例值:

func (*CreateEmployeeReqBodyBuilder) EmploymentInfo added in v3.2.7

工作信息

示例值:

func (*CreateEmployeeReqBodyBuilder) PersonalInfo added in v3.2.7

个人信息

示例值:

type CreateEmployeeReqBuilder added in v3.2.7

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

func NewCreateEmployeeReqBuilder added in v3.2.7

func NewCreateEmployeeReqBuilder() *CreateEmployeeReqBuilder

func (*CreateEmployeeReqBuilder) Body added in v3.2.7

func (*CreateEmployeeReqBuilder) Build added in v3.2.7

func (builder *CreateEmployeeReqBuilder) Build() *CreateEmployeeReq

func (*CreateEmployeeReqBuilder) ClientToken added in v3.2.7

func (builder *CreateEmployeeReqBuilder) ClientToken(clientToken string) *CreateEmployeeReqBuilder

幂等标识,服务端会忽略client_token重复的请求

示例值:12454646

func (*CreateEmployeeReqBuilder) ForceSubmit added in v3.2.7

func (builder *CreateEmployeeReqBuilder) ForceSubmit(forceSubmit bool) *CreateEmployeeReqBuilder

是否强制提交,超编等场景需要用户确认影响才能提交

示例值:false

func (*CreateEmployeeReqBuilder) IgnoreWorkingHoursTypeRule added in v3.2.7

func (builder *CreateEmployeeReqBuilder) IgnoreWorkingHoursTypeRule(ignoreWorkingHoursTypeRule bool) *CreateEmployeeReqBuilder

是否忽略工时制度自动生成规则

示例值:true

func (*CreateEmployeeReqBuilder) Rehire added in v3.2.7

func (builder *CreateEmployeeReqBuilder) Rehire(rehire bool) *CreateEmployeeReqBuilder

是否为离职重聘:;false: 否,系统直接标为非离职重聘人员,不再做重复判断";true: 是,要求rehire_employment_id

示例值:true

func (*CreateEmployeeReqBuilder) RehireEmploymentId added in v3.2.7

func (builder *CreateEmployeeReqBuilder) RehireEmploymentId(rehireEmploymentId string) *CreateEmployeeReqBuilder

离职重聘员工雇佣ID, rehire

示例值:7140964208476371111

type CreateEmployeeResp added in v3.2.7

type CreateEmployeeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateEmployeeRespData `json:"data"` // 业务数据
}

func (*CreateEmployeeResp) Success added in v3.2.7

func (resp *CreateEmployeeResp) Success() bool

type CreateEmployeeRespData added in v3.2.7

type CreateEmployeeRespData struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣信息 ID

	ContractId *string `json:"contract_id,omitempty"` // 合同 ID

	JobDataId *string `json:"job_data_id,omitempty"` // 任职信息 ID
}

type CreateEmployeesAdditionalJobReq added in v3.4.0

type CreateEmployeesAdditionalJobReq struct {
	EmployeesAdditionalJobEdit *EmployeesAdditionalJobEdit `body:""`
	// contains filtered or unexported fields
}

type CreateEmployeesAdditionalJobReqBuilder added in v3.4.0

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

func NewCreateEmployeesAdditionalJobReqBuilder added in v3.4.0

func NewCreateEmployeesAdditionalJobReqBuilder() *CreateEmployeesAdditionalJobReqBuilder

func (*CreateEmployeesAdditionalJobReqBuilder) Build added in v3.4.0

func (*CreateEmployeesAdditionalJobReqBuilder) ClientToken added in v3.4.0

操作的唯一标识,用于幂等校验。请求成功时,重复的client_token不会再创建、变更数据。

示例值:12454646

func (*CreateEmployeesAdditionalJobReqBuilder) DepartmentIdType added in v3.4.0

func (builder *CreateEmployeesAdditionalJobReqBuilder) DepartmentIdType(departmentIdType string) *CreateEmployeesAdditionalJobReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*CreateEmployeesAdditionalJobReqBuilder) EmployeesAdditionalJobEdit added in v3.4.0

func (builder *CreateEmployeesAdditionalJobReqBuilder) EmployeesAdditionalJobEdit(employeesAdditionalJobEdit *EmployeesAdditionalJobEdit) *CreateEmployeesAdditionalJobReqBuilder

创建兼职

func (*CreateEmployeesAdditionalJobReqBuilder) UserIdType added in v3.4.0

用户 ID 类型

示例值:open_id

type CreateEmployeesAdditionalJobResp added in v3.4.0

type CreateEmployeesAdditionalJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateEmployeesAdditionalJobRespData `json:"data"` // 业务数据
}

func (*CreateEmployeesAdditionalJobResp) Success added in v3.4.0

func (resp *CreateEmployeesAdditionalJobResp) Success() bool

type CreateEmployeesAdditionalJobRespData added in v3.4.0

type CreateEmployeesAdditionalJobRespData struct {
	AdditionalJob *EmployeesAdditionalJobWriteResp `json:"additional_job,omitempty"` //
}

type CreateJobGradeReq added in v3.3.5

type CreateJobGradeReq struct {
	JobGradeCreate *JobGradeCreate `body:""`
	// contains filtered or unexported fields
}

type CreateJobGradeReqBuilder added in v3.3.5

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

func NewCreateJobGradeReqBuilder added in v3.3.5

func NewCreateJobGradeReqBuilder() *CreateJobGradeReqBuilder

func (*CreateJobGradeReqBuilder) Build added in v3.3.5

func (builder *CreateJobGradeReqBuilder) Build() *CreateJobGradeReq

func (*CreateJobGradeReqBuilder) ClientToken added in v3.3.5

func (builder *CreateJobGradeReqBuilder) ClientToken(clientToken string) *CreateJobGradeReqBuilder

根据client_token是否一致来判断是否为同一请求

示例值:12454646

func (*CreateJobGradeReqBuilder) JobGradeCreate added in v3.3.5

func (builder *CreateJobGradeReqBuilder) JobGradeCreate(jobGradeCreate *JobGradeCreate) *CreateJobGradeReqBuilder

创建职等数据

type CreateJobGradeResp added in v3.3.5

type CreateJobGradeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateJobGradeRespData `json:"data"` // 业务数据
}

func (*CreateJobGradeResp) Success added in v3.3.5

func (resp *CreateJobGradeResp) Success() bool

type CreateJobGradeRespData added in v3.3.5

type CreateJobGradeRespData struct {
	GradeId *string `json:"grade_id,omitempty"` // 职等ID
}

type CreateLocationAddressReq added in v3.3.7

type CreateLocationAddressReq struct {
	LocationAddressCreate *LocationAddressCreate `body:""`
	// contains filtered or unexported fields
}

type CreateLocationAddressReqBuilder added in v3.3.7

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

func NewCreateLocationAddressReqBuilder added in v3.3.7

func NewCreateLocationAddressReqBuilder() *CreateLocationAddressReqBuilder

func (*CreateLocationAddressReqBuilder) Build added in v3.3.7

func (*CreateLocationAddressReqBuilder) ClientToken added in v3.3.7

func (builder *CreateLocationAddressReqBuilder) ClientToken(clientToken string) *CreateLocationAddressReqBuilder

根据 client_token 是否一致来判断是否为同一请求

示例值:12454646

func (*CreateLocationAddressReqBuilder) LocationAddressCreate added in v3.3.7

func (builder *CreateLocationAddressReqBuilder) LocationAddressCreate(locationAddressCreate *LocationAddressCreate) *CreateLocationAddressReqBuilder

添加地点地址

func (*CreateLocationAddressReqBuilder) LocationId added in v3.3.7

地点 ID

示例值:1616161616

type CreateLocationAddressResp added in v3.3.7

type CreateLocationAddressResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateLocationAddressRespData `json:"data"` // 业务数据
}

func (*CreateLocationAddressResp) Success added in v3.3.7

func (resp *CreateLocationAddressResp) Success() bool

type CreateLocationAddressRespData added in v3.3.7

type CreateLocationAddressRespData struct {
	AddressId *string `json:"address_id,omitempty"` // 地址 ID
}

type CreatePersonReq

type CreatePersonReq struct {
	PersonInfo *PersonInfo `body:""`
	// contains filtered or unexported fields
}

type CreatePersonReqBuilder

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

func NewCreatePersonReqBuilder

func NewCreatePersonReqBuilder() *CreatePersonReqBuilder

func (*CreatePersonReqBuilder) Build

func (builder *CreatePersonReqBuilder) Build() *CreatePersonReq

func (*CreatePersonReqBuilder) ClientToken

func (builder *CreatePersonReqBuilder) ClientToken(clientToken string) *CreatePersonReqBuilder

根据client_token是否一致来判断是否为同一请求

示例值:12454646

func (*CreatePersonReqBuilder) PersonInfo

func (builder *CreatePersonReqBuilder) PersonInfo(personInfo *PersonInfo) *CreatePersonReqBuilder

创建个人信息数据

type CreatePersonResp

type CreatePersonResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreatePersonRespData `json:"data"` // 业务数据
}

func (*CreatePersonResp) Success

func (resp *CreatePersonResp) Success() bool

type CreatePersonRespData

type CreatePersonRespData struct {
	Person *PersonInfo `json:"person,omitempty"` //
}

type CreatePreHireReq

type CreatePreHireReq struct {
	PrehireCreate *PrehireCreate `body:""`
	// contains filtered or unexported fields
}

type CreatePreHireReqBuilder

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

func NewCreatePreHireReqBuilder

func NewCreatePreHireReqBuilder() *CreatePreHireReqBuilder

func (*CreatePreHireReqBuilder) Build

func (builder *CreatePreHireReqBuilder) Build() *CreatePreHireReq

func (*CreatePreHireReqBuilder) PrehireCreate

func (builder *CreatePreHireReqBuilder) PrehireCreate(prehireCreate *PrehireCreate) *CreatePreHireReqBuilder

创建待入职人员

type CreatePreHireResp

type CreatePreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreatePreHireRespData `json:"data"` // 业务数据
}

func (*CreatePreHireResp) Success

func (resp *CreatePreHireResp) Success() bool

type CreatePreHireRespData

type CreatePreHireRespData struct {
	PreHireId *string `json:"pre_hire_id,omitempty"` // 待入职 ID
}

type CreateProbationAssessmentPathReqBodyBuilder

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

func NewCreateProbationAssessmentPathReqBodyBuilder

func NewCreateProbationAssessmentPathReqBodyBuilder() *CreateProbationAssessmentPathReqBodyBuilder

func (*CreateProbationAssessmentPathReqBodyBuilder) Assessments

试用期考核结果列表

示例值:

func (*CreateProbationAssessmentPathReqBodyBuilder) Build

func (*CreateProbationAssessmentPathReqBodyBuilder) EmploymentId

试用期人员的雇佣 ID

示例值:7140964208476371111

type CreateProbationAssessmentReq

type CreateProbationAssessmentReq struct {
	Body *CreateProbationAssessmentReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateProbationAssessmentReqBody

type CreateProbationAssessmentReqBody struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 试用期人员的雇佣 ID

	Assessments []*AssessmentForCreate `json:"assessments,omitempty"` // 试用期考核结果列表
}

type CreateProbationAssessmentReqBodyBuilder

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

func NewCreateProbationAssessmentReqBodyBuilder

func NewCreateProbationAssessmentReqBodyBuilder() *CreateProbationAssessmentReqBodyBuilder

func (*CreateProbationAssessmentReqBodyBuilder) Assessments

试用期考核结果列表

示例值:

func (*CreateProbationAssessmentReqBodyBuilder) Build

func (*CreateProbationAssessmentReqBodyBuilder) EmploymentId

试用期人员的雇佣 ID

示例值:7140964208476371111

type CreateProbationAssessmentReqBuilder

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

func NewCreateProbationAssessmentReqBuilder

func NewCreateProbationAssessmentReqBuilder() *CreateProbationAssessmentReqBuilder

func (*CreateProbationAssessmentReqBuilder) Body

func (*CreateProbationAssessmentReqBuilder) Build

func (*CreateProbationAssessmentReqBuilder) ClientToken

根据 client_token 是否一致来判断是否为同一请求

示例值:6822122262122064111

func (*CreateProbationAssessmentReqBuilder) UserIdType

用户 ID 类型

示例值:open_id

type CreateProbationAssessmentResp

type CreateProbationAssessmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateProbationAssessmentRespData `json:"data"` // 业务数据
}

func (*CreateProbationAssessmentResp) Success

func (resp *CreateProbationAssessmentResp) Success() bool

type CreateProbationAssessmentRespData

type CreateProbationAssessmentRespData struct {
	AssessmentIds []string `json:"assessment_ids,omitempty"` // 创建的试用期考核记录 ID 列表,有序返回
}

type CreateTransferInfo added in v3.3.5

type CreateTransferInfo struct {
	Remark *string `json:"remark,omitempty"` // 备注

	OfferInfo *string `json:"offer_info,omitempty"` // offer信息

	TargetDottedManagerClean *bool `json:"target_dotted_manager_clean,omitempty"` // 是否撤销虚线上级

	ProbationExist *bool `json:"probation_exist,omitempty"` // 是否有试用期

	TargetDepartment *string `json:"target_department,omitempty"` // 新部门

	TargetWorkLocation *string `json:"target_work_location,omitempty"` // 新工作地点

	TargetDirectManager *string `json:"target_direct_manager,omitempty"` // 新直属上级

	TargetDottedManager *string `json:"target_dotted_manager,omitempty"` // 新虚线上级

	TargetJob *string `json:"target_job,omitempty"` // 新职务

	TargetJobFamily *string `json:"target_job_family,omitempty"` // 新序列

	TargetJobLevel *string `json:"target_job_level,omitempty"` // 新级别

	TargetWorkforceType *string `json:"target_workforce_type,omitempty"` // 新人员类型

	TargetEmployeeSubtype *string `json:"target_employee_subtype,omitempty"` // 新人员子类型

	TargetCompany *string `json:"target_company,omitempty"` // 新公司

	TargetContractNumber *string `json:"target_contract_number,omitempty"` // 新合同编号

	TargetContractType *string `json:"target_contract_type,omitempty"` // 新合同类型

	TargetDurationType *string `json:"target_duration_type,omitempty"` // 新期限类型

	TargetSigningType *string `json:"target_signing_type,omitempty"` // 新签订类型

	TargetContractStartDate *string `json:"target_contract_start_date,omitempty"` // 新合同开始日期

	TargetContractEndDate *string `json:"target_contract_end_date,omitempty"` // 新合同结束日期

	TargetWorkingHoursType *string `json:"target_working_hours_type,omitempty"` // 新工时制度

	TargetWorkingCalendar *string `json:"target_working_calendar,omitempty"` // 新工作日历

	TargetProbationEndDate *string `json:"target_probation_end_date,omitempty"` // 新试用期预计结束日期

	TargetWeeklyWorkingHours *string `json:"target_weekly_working_hours,omitempty"` // 新周工作时长

	TargetWorkShift *string `json:"target_work_shift,omitempty"` // 新排班

	TargetCostCenterRates []*JobDataCostCenter `json:"target_cost_center_rates,omitempty"` // 新成本中心分摊方式

	TargetEmploymentChange *TranferEmploymentInfo `json:"target_employment_change,omitempty"` // 新工作信息

	TargetJobGrade *string `json:"target_job_grade,omitempty"` // 新职等

	TargetCompensationType *string `json:"target_compensation_type,omitempty"` // 新薪资类型

	TargetServiceCompany *string `json:"target_service_company,omitempty"` // 新任职公司

	TargetPosition *string `json:"target_position,omitempty"` // 新岗位

	TargetSocialSecurityCity *string `json:"target_social_security_city,omitempty"` // 新社保城市

	IsTransferWithWorkforce *bool `json:"is_transfer_with_workforce,omitempty"` // 编制随人员一起调整
}

type CreateTransferInfoBuilder added in v3.3.5

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

func NewCreateTransferInfoBuilder added in v3.3.5

func NewCreateTransferInfoBuilder() *CreateTransferInfoBuilder

func (*CreateTransferInfoBuilder) Build added in v3.3.5

func (*CreateTransferInfoBuilder) IsTransferWithWorkforce added in v3.4.1

func (builder *CreateTransferInfoBuilder) IsTransferWithWorkforce(isTransferWithWorkforce bool) *CreateTransferInfoBuilder

编制随人员一起调整

示例值:false

func (*CreateTransferInfoBuilder) OfferInfo added in v3.3.5

func (builder *CreateTransferInfoBuilder) OfferInfo(offerInfo string) *CreateTransferInfoBuilder

offer信息

示例值:优质人才,加急处理

func (*CreateTransferInfoBuilder) ProbationExist added in v3.3.5

func (builder *CreateTransferInfoBuilder) ProbationExist(probationExist bool) *CreateTransferInfoBuilder

是否有试用期

示例值:false

func (*CreateTransferInfoBuilder) Remark added in v3.3.5

备注

示例值:异动详情

func (*CreateTransferInfoBuilder) TargetCompany added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetCompany(targetCompany string) *CreateTransferInfoBuilder

新公司

示例值:6974659700705068581

func (*CreateTransferInfoBuilder) TargetCompensationType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetCompensationType(targetCompensationType string) *CreateTransferInfoBuilder

新薪资类型

示例值:salary

func (*CreateTransferInfoBuilder) TargetContractEndDate added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetContractEndDate(targetContractEndDate string) *CreateTransferInfoBuilder

新合同结束日期

示例值:2024-07-01

func (*CreateTransferInfoBuilder) TargetContractNumber added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetContractNumber(targetContractNumber string) *CreateTransferInfoBuilder

新合同编号

示例值:55333

func (*CreateTransferInfoBuilder) TargetContractStartDate added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetContractStartDate(targetContractStartDate string) *CreateTransferInfoBuilder

新合同开始日期

示例值:2021-07-01

func (*CreateTransferInfoBuilder) TargetContractType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetContractType(targetContractType string) *CreateTransferInfoBuilder

新合同类型

示例值:labor_contract

func (*CreateTransferInfoBuilder) TargetCostCenterRates added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetCostCenterRates(targetCostCenterRates []*JobDataCostCenter) *CreateTransferInfoBuilder

新成本中心分摊方式

示例值:

func (*CreateTransferInfoBuilder) TargetDepartment added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetDepartment(targetDepartment string) *CreateTransferInfoBuilder

新部门

示例值:6966236933198579208

func (*CreateTransferInfoBuilder) TargetDirectManager added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetDirectManager(targetDirectManager string) *CreateTransferInfoBuilder

新直属上级

示例值:7013619729281713671

func (*CreateTransferInfoBuilder) TargetDottedManager added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetDottedManager(targetDottedManager string) *CreateTransferInfoBuilder

新虚线上级

示例值:7013328578351842852

func (*CreateTransferInfoBuilder) TargetDottedManagerClean added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetDottedManagerClean(targetDottedManagerClean bool) *CreateTransferInfoBuilder

是否撤销虚线上级

示例值:true

func (*CreateTransferInfoBuilder) TargetDurationType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetDurationType(targetDurationType string) *CreateTransferInfoBuilder

新期限类型

示例值:fixed_term

func (*CreateTransferInfoBuilder) TargetEmployeeSubtype added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetEmployeeSubtype(targetEmployeeSubtype string) *CreateTransferInfoBuilder

新人员子类型

示例值:7036268995372303885

func (*CreateTransferInfoBuilder) TargetEmploymentChange added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetEmploymentChange(targetEmploymentChange *TranferEmploymentInfo) *CreateTransferInfoBuilder

新工作信息

示例值:

func (*CreateTransferInfoBuilder) TargetJob added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetJob(targetJob string) *CreateTransferInfoBuilder

新职务

示例值:6969469557836760606

func (*CreateTransferInfoBuilder) TargetJobFamily added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetJobFamily(targetJobFamily string) *CreateTransferInfoBuilder

新序列

示例值:6967287547462419975

func (*CreateTransferInfoBuilder) TargetJobGrade added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetJobGrade(targetJobGrade string) *CreateTransferInfoBuilder

新职等

示例值:7289005963599693366

func (*CreateTransferInfoBuilder) TargetJobLevel added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetJobLevel(targetJobLevel string) *CreateTransferInfoBuilder

新级别

示例值:6972085707674355214

func (*CreateTransferInfoBuilder) TargetPosition added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetPosition(targetPosition string) *CreateTransferInfoBuilder

新岗位

示例值:7289005963599693367

func (*CreateTransferInfoBuilder) TargetProbationEndDate added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetProbationEndDate(targetProbationEndDate string) *CreateTransferInfoBuilder

新试用期预计结束日期

示例值:2021-11-17

func (*CreateTransferInfoBuilder) TargetServiceCompany added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetServiceCompany(targetServiceCompany string) *CreateTransferInfoBuilder

新任职公司

示例值:7289005963599693368

func (*CreateTransferInfoBuilder) TargetSigningType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetSigningType(targetSigningType string) *CreateTransferInfoBuilder

新签订类型

示例值:new

func (*CreateTransferInfoBuilder) TargetSocialSecurityCity added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetSocialSecurityCity(targetSocialSecurityCity string) *CreateTransferInfoBuilder

新社保城市

示例值:7289005963599693367

func (*CreateTransferInfoBuilder) TargetWeeklyWorkingHours added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWeeklyWorkingHours(targetWeeklyWorkingHours string) *CreateTransferInfoBuilder

新周工作时长

示例值:160

func (*CreateTransferInfoBuilder) TargetWorkLocation added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWorkLocation(targetWorkLocation string) *CreateTransferInfoBuilder

新工作地点

示例值:6967271100992587295

func (*CreateTransferInfoBuilder) TargetWorkShift added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWorkShift(targetWorkShift string) *CreateTransferInfoBuilder

新排班

示例值:non_work_shift

func (*CreateTransferInfoBuilder) TargetWorkforceType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWorkforceType(targetWorkforceType string) *CreateTransferInfoBuilder

新人员类型

示例值:7036268995372303885

func (*CreateTransferInfoBuilder) TargetWorkingCalendar added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWorkingCalendar(targetWorkingCalendar string) *CreateTransferInfoBuilder

新工作日历

示例值:6969087376740236087

func (*CreateTransferInfoBuilder) TargetWorkingHoursType added in v3.3.5

func (builder *CreateTransferInfoBuilder) TargetWorkingHoursType(targetWorkingHoursType string) *CreateTransferInfoBuilder

新工时制度

示例值:6969087376740206087

type Currency

type Currency struct {
	CurrencyId *string `json:"currency_id,omitempty"` // 货币 ID

	CountryRegionIdList []string `json:"country_region_id_list,omitempty"` // 货币所属国家/地区 ID 列表,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

	CurrencyName []*I18n `json:"currency_name,omitempty"` // 货币名称

	NumericCode *int `json:"numeric_code,omitempty"` // 数字代码(ISO 4217)

	CurrencyAlpha3Code *string `json:"currency_alpha_3_code,omitempty"` // 三位字母代码(ISO 4217)

	Status *int `json:"status,omitempty"` // 状态
}

type CurrencyBuilder

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

func NewCurrencyBuilder

func NewCurrencyBuilder() *CurrencyBuilder

func (*CurrencyBuilder) Build

func (builder *CurrencyBuilder) Build() *Currency

func (*CurrencyBuilder) CountryRegionIdList added in v3.2.6

func (builder *CurrencyBuilder) CountryRegionIdList(countryRegionIdList []string) *CurrencyBuilder

货币所属国家/地区 ID 列表,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

示例值:

func (*CurrencyBuilder) CurrencyAlpha3Code

func (builder *CurrencyBuilder) CurrencyAlpha3Code(currencyAlpha3Code string) *CurrencyBuilder

三位字母代码(ISO 4217)

示例值:CNY

func (*CurrencyBuilder) CurrencyId

func (builder *CurrencyBuilder) CurrencyId(currencyId string) *CurrencyBuilder

货币 ID

示例值:6863329932261459464

func (*CurrencyBuilder) CurrencyName

func (builder *CurrencyBuilder) CurrencyName(currencyName []*I18n) *CurrencyBuilder

货币名称

示例值:

func (*CurrencyBuilder) NumericCode

func (builder *CurrencyBuilder) NumericCode(numericCode int) *CurrencyBuilder

数字代码(ISO 4217)

示例值:156

func (*CurrencyBuilder) Status

func (builder *CurrencyBuilder) Status(status int) *CurrencyBuilder

状态

示例值:1

type CustomFieldData

type CustomFieldData struct {
	CustomApiName *string `json:"custom_api_name,omitempty"` // 自定义字段 apiname,即自定义字段的唯一标识

	Name *CustomName `json:"name,omitempty"` // 自定义字段名称

	Type *int `json:"type,omitempty"` // 自定义字段类型

	Value *string `json:"value,omitempty"` // 字段值,是 json 转义后的字符串,根据元数据定义不同,字段格式不同(如 123, 123.23, "true", ["id1","id2"], "2006-01-02 15:04:05")
}

type CustomFieldDataBuilder

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

func NewCustomFieldDataBuilder

func NewCustomFieldDataBuilder() *CustomFieldDataBuilder

func (*CustomFieldDataBuilder) Build

func (builder *CustomFieldDataBuilder) Build() *CustomFieldData

func (*CustomFieldDataBuilder) CustomApiName

func (builder *CustomFieldDataBuilder) CustomApiName(customApiName string) *CustomFieldDataBuilder

自定义字段 apiname,即自定义字段的唯一标识

示例值:name

func (*CustomFieldDataBuilder) Name

自定义字段名称

示例值:

func (*CustomFieldDataBuilder) Type

func (builder *CustomFieldDataBuilder) Type(type_ int) *CustomFieldDataBuilder

自定义字段类型

示例值:1

func (*CustomFieldDataBuilder) Value

func (builder *CustomFieldDataBuilder) Value(value string) *CustomFieldDataBuilder

字段值,是 json 转义后的字符串,根据元数据定义不同,字段格式不同(如 123, 123.23, "true", ["id1","id2"], "2006-01-02 15:04:05")

示例值:\"231\"

type CustomName

type CustomName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文

	EnUs *string `json:"en_us,omitempty"` // 英文
}

type CustomNameBuilder

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

func NewCustomNameBuilder

func NewCustomNameBuilder() *CustomNameBuilder

func (*CustomNameBuilder) Build

func (builder *CustomNameBuilder) Build() *CustomName

func (*CustomNameBuilder) EnUs

func (builder *CustomNameBuilder) EnUs(enUs string) *CustomNameBuilder

英文

示例值:Custom Name

func (*CustomNameBuilder) ZhCn

func (builder *CustomNameBuilder) ZhCn(zhCn string) *CustomNameBuilder

中文

示例值:自定义姓名

type CustomOrg added in v3.2.3

type CustomOrg struct {
	ObjectApiName *string `json:"object_api_name,omitempty"` // 组织类型编码

	Names []*I18n `json:"names,omitempty"` // 组织名称

	Code *string `json:"code,omitempty"` // 编码

	ParentId *string `json:"parent_id,omitempty"` // 上级组织 ID

	ManagerIds []string `json:"manager_ids,omitempty"` // 负责人ID 列表

	Description []*I18n `json:"description,omitempty"` // 描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	OrgRoles []*OrgRole `json:"org_roles,omitempty"` // 组织角色

	MatchRuleGroups []*MatchRules `json:"match_rule_groups,omitempty"` // 匹配规则组,组间并集

	Active *bool `json:"active,omitempty"` // 是否启用

	OrgId *string `json:"org_id,omitempty"` // 组织ID

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type CustomOrgBuilder added in v3.2.3

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

func NewCustomOrgBuilder added in v3.2.3

func NewCustomOrgBuilder() *CustomOrgBuilder

func (*CustomOrgBuilder) Active added in v3.2.3

func (builder *CustomOrgBuilder) Active(active bool) *CustomOrgBuilder

是否启用

示例值:true

func (*CustomOrgBuilder) Build added in v3.2.3

func (builder *CustomOrgBuilder) Build() *CustomOrg

func (*CustomOrgBuilder) Code added in v3.2.3

func (builder *CustomOrgBuilder) Code(code string) *CustomOrgBuilder

编码

示例值:MDPD00000023

func (*CustomOrgBuilder) CustomFields added in v3.3.3

func (builder *CustomOrgBuilder) CustomFields(customFields []*CustomFieldData) *CustomOrgBuilder

自定义字段

示例值:

func (*CustomOrgBuilder) Description added in v3.2.3

func (builder *CustomOrgBuilder) Description(description []*I18n) *CustomOrgBuilder

描述

示例值:

func (*CustomOrgBuilder) EffectiveTime added in v3.2.3

func (builder *CustomOrgBuilder) EffectiveTime(effectiveTime string) *CustomOrgBuilder

生效时间

示例值:2020-01-01

func (*CustomOrgBuilder) ManagerIds added in v3.2.3

func (builder *CustomOrgBuilder) ManagerIds(managerIds []string) *CustomOrgBuilder

负责人ID 列表

示例值:

func (*CustomOrgBuilder) MatchRuleGroups added in v3.2.3

func (builder *CustomOrgBuilder) MatchRuleGroups(matchRuleGroups []*MatchRules) *CustomOrgBuilder

匹配规则组,组间并集

示例值:

func (*CustomOrgBuilder) Names added in v3.2.3

func (builder *CustomOrgBuilder) Names(names []*I18n) *CustomOrgBuilder

组织名称

示例值:

func (*CustomOrgBuilder) ObjectApiName added in v3.2.3

func (builder *CustomOrgBuilder) ObjectApiName(objectApiName string) *CustomOrgBuilder

组织类型编码

示例值:apiname__c

func (*CustomOrgBuilder) OrgId added in v3.2.3

func (builder *CustomOrgBuilder) OrgId(orgId string) *CustomOrgBuilder

组织ID

示例值:6862995757234914824

func (*CustomOrgBuilder) OrgRoles added in v3.2.3

func (builder *CustomOrgBuilder) OrgRoles(orgRoles []*OrgRole) *CustomOrgBuilder

组织角色

示例值:

func (*CustomOrgBuilder) ParentId added in v3.2.3

func (builder *CustomOrgBuilder) ParentId(parentId string) *CustomOrgBuilder

上级组织 ID

示例值:6862995757234914824

type CustomOrgCreate added in v3.2.3

type CustomOrgCreate struct {
	ObjectApiName *string `json:"object_api_name,omitempty"` // 组织类型编码

	Names []*I18n `json:"names,omitempty"` // 组织名称

	Code *string `json:"code,omitempty"` // 编码

	ParentId *string `json:"parent_id,omitempty"` // 上级组织 ID

	ManagerIds []string `json:"manager_ids,omitempty"` // 负责人ID 列表

	Description []*I18n `json:"description,omitempty"` // 描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	OrgRoles []*OrgRoleUpdate `json:"org_roles,omitempty"` // 组织角色

	MatchRuleGroups []*MatchRules `json:"match_rule_groups,omitempty"` // 匹配规则组 ,组间并集

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type CustomOrgCreateBuilder added in v3.2.3

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

func NewCustomOrgCreateBuilder added in v3.2.3

func NewCustomOrgCreateBuilder() *CustomOrgCreateBuilder

func (*CustomOrgCreateBuilder) Build added in v3.2.3

func (builder *CustomOrgCreateBuilder) Build() *CustomOrgCreate

func (*CustomOrgCreateBuilder) Code added in v3.2.3

编码

示例值:MDPD00000023

func (*CustomOrgCreateBuilder) CustomFields added in v3.3.3

func (builder *CustomOrgCreateBuilder) CustomFields(customFields []*CustomFieldData) *CustomOrgCreateBuilder

自定义字段

示例值:

func (*CustomOrgCreateBuilder) Description added in v3.2.3

func (builder *CustomOrgCreateBuilder) Description(description []*I18n) *CustomOrgCreateBuilder

描述

示例值:

func (*CustomOrgCreateBuilder) EffectiveTime added in v3.2.3

func (builder *CustomOrgCreateBuilder) EffectiveTime(effectiveTime string) *CustomOrgCreateBuilder

生效时间

示例值:2020-01-01

func (*CustomOrgCreateBuilder) ManagerIds added in v3.2.3

func (builder *CustomOrgCreateBuilder) ManagerIds(managerIds []string) *CustomOrgCreateBuilder

负责人ID 列表

示例值:

func (*CustomOrgCreateBuilder) MatchRuleGroups added in v3.2.3

func (builder *CustomOrgCreateBuilder) MatchRuleGroups(matchRuleGroups []*MatchRules) *CustomOrgCreateBuilder

匹配规则组 ,组间并集

示例值:

func (*CustomOrgCreateBuilder) Names added in v3.2.3

func (builder *CustomOrgCreateBuilder) Names(names []*I18n) *CustomOrgCreateBuilder

组织名称

示例值:

func (*CustomOrgCreateBuilder) ObjectApiName added in v3.2.3

func (builder *CustomOrgCreateBuilder) ObjectApiName(objectApiName string) *CustomOrgCreateBuilder

组织类型编码

示例值:apiname__c

func (*CustomOrgCreateBuilder) OrgRoles added in v3.2.3

func (builder *CustomOrgCreateBuilder) OrgRoles(orgRoles []*OrgRoleUpdate) *CustomOrgCreateBuilder

组织角色

示例值:

func (*CustomOrgCreateBuilder) ParentId added in v3.2.3

func (builder *CustomOrgCreateBuilder) ParentId(parentId string) *CustomOrgCreateBuilder

上级组织 ID

示例值:6862995757234914824

type CustomOrgList added in v3.3.1

type CustomOrgList struct {
	CustomOrgName *I18nV2 `json:"custom_org_name,omitempty"` // 自定义组织名称

	CustomOrgId *string `json:"custom_org_id,omitempty"` // 自定义组织ID

	Rate *string `json:"rate,omitempty"` // 比例
}

type CustomOrgListBuilder added in v3.3.1

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

func NewCustomOrgListBuilder added in v3.3.1

func NewCustomOrgListBuilder() *CustomOrgListBuilder

func (*CustomOrgListBuilder) Build added in v3.3.1

func (builder *CustomOrgListBuilder) Build() *CustomOrgList

func (*CustomOrgListBuilder) CustomOrgId added in v3.3.1

func (builder *CustomOrgListBuilder) CustomOrgId(customOrgId string) *CustomOrgListBuilder

自定义组织ID

示例值:7293641346149138452

func (*CustomOrgListBuilder) CustomOrgName added in v3.3.1

func (builder *CustomOrgListBuilder) CustomOrgName(customOrgName *I18nV2) *CustomOrgListBuilder

自定义组织名称

示例值:编制单元

func (*CustomOrgListBuilder) Rate added in v3.3.1

func (builder *CustomOrgListBuilder) Rate(rate string) *CustomOrgListBuilder

比例

示例值:42.98

type CustomOrgUpdate added in v3.2.3

type CustomOrgUpdate struct {
	ObjectApiName *string `json:"object_api_name,omitempty"` // 组织类型编码

	Names []*I18n `json:"names,omitempty"` // 组织名称

	Code *string `json:"code,omitempty"` // 组织编码

	ParentId *string `json:"parent_id,omitempty"` // 上级组织 ID

	ManagerIds []string `json:"manager_ids,omitempty"` // 负责人ID 列表

	Description []*I18n `json:"description,omitempty"` // 描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	OrgRoles []*OrgRoleUpdate `json:"org_roles,omitempty"` // 组织角色

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type CustomOrgUpdateBuilder added in v3.2.3

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

func NewCustomOrgUpdateBuilder added in v3.2.3

func NewCustomOrgUpdateBuilder() *CustomOrgUpdateBuilder

func (*CustomOrgUpdateBuilder) Build added in v3.2.3

func (builder *CustomOrgUpdateBuilder) Build() *CustomOrgUpdate

func (*CustomOrgUpdateBuilder) Code added in v3.2.3

组织编码

示例值:MDPD00000023

func (*CustomOrgUpdateBuilder) CustomFields added in v3.3.3

func (builder *CustomOrgUpdateBuilder) CustomFields(customFields []*CustomFieldData) *CustomOrgUpdateBuilder

自定义字段

示例值:

func (*CustomOrgUpdateBuilder) Description added in v3.2.3

func (builder *CustomOrgUpdateBuilder) Description(description []*I18n) *CustomOrgUpdateBuilder

描述

示例值:

func (*CustomOrgUpdateBuilder) EffectiveTime added in v3.2.3

func (builder *CustomOrgUpdateBuilder) EffectiveTime(effectiveTime string) *CustomOrgUpdateBuilder

生效时间

示例值:2020-01-01

func (*CustomOrgUpdateBuilder) ManagerIds added in v3.2.3

func (builder *CustomOrgUpdateBuilder) ManagerIds(managerIds []string) *CustomOrgUpdateBuilder

负责人ID 列表

示例值:

func (*CustomOrgUpdateBuilder) Names added in v3.2.3

func (builder *CustomOrgUpdateBuilder) Names(names []*I18n) *CustomOrgUpdateBuilder

组织名称

示例值:

func (*CustomOrgUpdateBuilder) ObjectApiName added in v3.2.3

func (builder *CustomOrgUpdateBuilder) ObjectApiName(objectApiName string) *CustomOrgUpdateBuilder

组织类型编码

示例值:apiname__c

func (*CustomOrgUpdateBuilder) OrgRoles added in v3.2.3

func (builder *CustomOrgUpdateBuilder) OrgRoles(orgRoles []*OrgRoleUpdate) *CustomOrgUpdateBuilder

组织角色

示例值:

func (*CustomOrgUpdateBuilder) ParentId added in v3.2.3

func (builder *CustomOrgUpdateBuilder) ParentId(parentId string) *CustomOrgUpdateBuilder

上级组织 ID

示例值:6862995757234914824

type CustomOrgWithRate added in v3.3.1

type CustomOrgWithRate struct {
	Id *string `json:"id,omitempty"` // 自定义组织id

	Rate *string `json:"rate,omitempty"` // 比例
}

type CustomOrgWithRateBuilder added in v3.3.1

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

func NewCustomOrgWithRateBuilder added in v3.3.1

func NewCustomOrgWithRateBuilder() *CustomOrgWithRateBuilder

func (*CustomOrgWithRateBuilder) Build added in v3.3.1

func (builder *CustomOrgWithRateBuilder) Build() *CustomOrgWithRate

func (*CustomOrgWithRateBuilder) Id added in v3.3.1

自定义组织id

示例值:7382048365313261588

func (*CustomOrgWithRateBuilder) Rate added in v3.3.1

比例

示例值:50.01

type CustomValue

type CustomValue struct {
	ValueBoolean *bool `json:"value_boolean,omitempty"` // 布尔类型的字段值

	ValueEnumId *string `json:"value_enum_id,omitempty"` // 枚举类型的字段的枚举值 ID
}

type CustomValueBuilder

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

func NewCustomValueBuilder

func NewCustomValueBuilder() *CustomValueBuilder

func (*CustomValueBuilder) Build

func (builder *CustomValueBuilder) Build() *CustomValue

func (*CustomValueBuilder) ValueBoolean

func (builder *CustomValueBuilder) ValueBoolean(valueBoolean bool) *CustomValueBuilder

布尔类型的字段值

示例值:false

func (*CustomValueBuilder) ValueEnumId

func (builder *CustomValueBuilder) ValueEnumId(valueEnumId string) *CustomValueBuilder

枚举类型的字段的枚举值 ID

示例值:sadasdas

type DataengineI18n

type DataengineI18n struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文值

	EnUs *string `json:"en_us,omitempty"` // 英文值
}

type DataengineI18nBuilder

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

func NewDataengineI18nBuilder

func NewDataengineI18nBuilder() *DataengineI18nBuilder

func (*DataengineI18nBuilder) Build

func (builder *DataengineI18nBuilder) Build() *DataengineI18n

func (*DataengineI18nBuilder) EnUs

func (builder *DataengineI18nBuilder) EnUs(enUs string) *DataengineI18nBuilder

英文值

示例值:English

func (*DataengineI18nBuilder) ZhCn

func (builder *DataengineI18nBuilder) ZhCn(zhCn string) *DataengineI18nBuilder

中文值

示例值:中文

type DeleteCostCenterPathReqBodyBuilder added in v3.1.2

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

func NewDeleteCostCenterPathReqBodyBuilder added in v3.1.2

func NewDeleteCostCenterPathReqBodyBuilder() *DeleteCostCenterPathReqBodyBuilder

func (*DeleteCostCenterPathReqBodyBuilder) Build added in v3.1.2

func (*DeleteCostCenterPathReqBodyBuilder) OperationReason added in v3.1.2

func (builder *DeleteCostCenterPathReqBodyBuilder) OperationReason(operationReason string) *DeleteCostCenterPathReqBodyBuilder

操作原因

示例值:随着组织架构调整,该成本中心不再使用

type DeleteCostCenterReq added in v3.1.2

type DeleteCostCenterReq struct {
	Body *DeleteCostCenterReqBody `body:""`
	// contains filtered or unexported fields
}

type DeleteCostCenterReqBody added in v3.1.2

type DeleteCostCenterReqBody struct {
	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type DeleteCostCenterReqBodyBuilder added in v3.1.2

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

func NewDeleteCostCenterReqBodyBuilder added in v3.1.2

func NewDeleteCostCenterReqBodyBuilder() *DeleteCostCenterReqBodyBuilder

func (*DeleteCostCenterReqBodyBuilder) Build added in v3.1.2

func (*DeleteCostCenterReqBodyBuilder) OperationReason added in v3.1.2

func (builder *DeleteCostCenterReqBodyBuilder) OperationReason(operationReason string) *DeleteCostCenterReqBodyBuilder

操作原因

示例值:随着组织架构调整,该成本中心不再使用

type DeleteCostCenterReqBuilder added in v3.1.2

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

func NewDeleteCostCenterReqBuilder added in v3.1.2

func NewDeleteCostCenterReqBuilder() *DeleteCostCenterReqBuilder

func (*DeleteCostCenterReqBuilder) Body added in v3.1.2

func (*DeleteCostCenterReqBuilder) Build added in v3.1.2

func (*DeleteCostCenterReqBuilder) CostCenterId added in v3.1.2

func (builder *DeleteCostCenterReqBuilder) CostCenterId(costCenterId string) *DeleteCostCenterReqBuilder

成本中心ID

示例值:6862995757234914824

type DeleteCostCenterResp added in v3.1.2

type DeleteCostCenterResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCostCenterResp) Success added in v3.1.2

func (resp *DeleteCostCenterResp) Success() bool

type DeleteCostCenterVersionPathReqBodyBuilder added in v3.1.2

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

func NewDeleteCostCenterVersionPathReqBodyBuilder added in v3.1.2

func NewDeleteCostCenterVersionPathReqBodyBuilder() *DeleteCostCenterVersionPathReqBodyBuilder

func (*DeleteCostCenterVersionPathReqBodyBuilder) Build added in v3.1.2

func (*DeleteCostCenterVersionPathReqBodyBuilder) OperationReason added in v3.1.2

操作原因

示例值:随着组织架构调整,该成本中心不再使用

type DeleteCostCenterVersionReq added in v3.1.2

type DeleteCostCenterVersionReq struct {
	Body *DeleteCostCenterVersionReqBody `body:""`
	// contains filtered or unexported fields
}

type DeleteCostCenterVersionReqBody added in v3.1.2

type DeleteCostCenterVersionReqBody struct {
	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type DeleteCostCenterVersionReqBodyBuilder added in v3.1.2

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

func NewDeleteCostCenterVersionReqBodyBuilder added in v3.1.2

func NewDeleteCostCenterVersionReqBodyBuilder() *DeleteCostCenterVersionReqBodyBuilder

func (*DeleteCostCenterVersionReqBodyBuilder) Build added in v3.1.2

func (*DeleteCostCenterVersionReqBodyBuilder) OperationReason added in v3.1.2

func (builder *DeleteCostCenterVersionReqBodyBuilder) OperationReason(operationReason string) *DeleteCostCenterVersionReqBodyBuilder

操作原因

示例值:随着组织架构调整,该成本中心不再使用

type DeleteCostCenterVersionReqBuilder added in v3.1.2

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

func NewDeleteCostCenterVersionReqBuilder added in v3.1.2

func NewDeleteCostCenterVersionReqBuilder() *DeleteCostCenterVersionReqBuilder

func (*DeleteCostCenterVersionReqBuilder) Body added in v3.1.2

撤销成本中心版本

func (*DeleteCostCenterVersionReqBuilder) Build added in v3.1.2

func (*DeleteCostCenterVersionReqBuilder) CostCenterId added in v3.1.2

func (builder *DeleteCostCenterVersionReqBuilder) CostCenterId(costCenterId string) *DeleteCostCenterVersionReqBuilder

成本中心ID

示例值:6862995757234914824

func (*DeleteCostCenterVersionReqBuilder) VersionId added in v3.1.2

版本ID

示例值:6862995757234914824

type DeleteCostCenterVersionResp added in v3.1.2

type DeleteCostCenterVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCostCenterVersionResp) Success added in v3.1.2

func (resp *DeleteCostCenterVersionResp) Success() bool

type DeleteDepartmentReq added in v3.3.3

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

type DeleteDepartmentReqBuilder added in v3.3.3

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

func NewDeleteDepartmentReqBuilder added in v3.3.3

func NewDeleteDepartmentReqBuilder() *DeleteDepartmentReqBuilder

func (*DeleteDepartmentReqBuilder) Build added in v3.3.3

func (*DeleteDepartmentReqBuilder) DepartmentId added in v3.3.3

func (builder *DeleteDepartmentReqBuilder) DepartmentId(departmentId string) *DeleteDepartmentReqBuilder

需要删除的部门ID

示例值:1616161616

func (*DeleteDepartmentReqBuilder) DepartmentIdType added in v3.3.3

func (builder *DeleteDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *DeleteDepartmentReqBuilder

此次删除中所使用的部门ID类型

示例值:open_department_id

type DeleteDepartmentResp added in v3.3.3

type DeleteDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteDepartmentResp) Success added in v3.3.3

func (resp *DeleteDepartmentResp) Success() bool

type DeleteEmployeesAdditionalJobReq added in v3.4.0

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

type DeleteEmployeesAdditionalJobReqBuilder added in v3.4.0

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

func NewDeleteEmployeesAdditionalJobReqBuilder added in v3.4.0

func NewDeleteEmployeesAdditionalJobReqBuilder() *DeleteEmployeesAdditionalJobReqBuilder

func (*DeleteEmployeesAdditionalJobReqBuilder) AdditionalJobId added in v3.4.0

兼职记录ID

示例值:654637829201

func (*DeleteEmployeesAdditionalJobReqBuilder) Build added in v3.4.0

type DeleteEmployeesAdditionalJobResp added in v3.4.0

type DeleteEmployeesAdditionalJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteEmployeesAdditionalJobResp) Success added in v3.4.0

func (resp *DeleteEmployeesAdditionalJobResp) Success() bool

type DeleteJobGradeReq added in v3.3.5

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

type DeleteJobGradeReqBuilder added in v3.3.5

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

func NewDeleteJobGradeReqBuilder added in v3.3.5

func NewDeleteJobGradeReqBuilder() *DeleteJobGradeReqBuilder

func (*DeleteJobGradeReqBuilder) Build added in v3.3.5

func (builder *DeleteJobGradeReqBuilder) Build() *DeleteJobGradeReq

func (*DeleteJobGradeReqBuilder) JobGradeId added in v3.3.5

func (builder *DeleteJobGradeReqBuilder) JobGradeId(jobGradeId string) *DeleteJobGradeReqBuilder

需要删除的职等ID

示例值:1616161616

type DeleteJobGradeResp added in v3.3.5

type DeleteJobGradeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteJobGradeResp) Success added in v3.3.5

func (resp *DeleteJobGradeResp) Success() bool

type DeleteLocationAddressReq added in v3.3.7

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

type DeleteLocationAddressReqBuilder added in v3.3.7

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

func NewDeleteLocationAddressReqBuilder added in v3.3.7

func NewDeleteLocationAddressReqBuilder() *DeleteLocationAddressReqBuilder

func (*DeleteLocationAddressReqBuilder) AddressId added in v3.3.7

地址 ID

示例值:1515151515

func (*DeleteLocationAddressReqBuilder) Build added in v3.3.7

func (*DeleteLocationAddressReqBuilder) LocationId added in v3.3.7

地点 ID

示例值:1616161616

type DeleteLocationAddressResp added in v3.3.7

type DeleteLocationAddressResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteLocationAddressResp) Success added in v3.3.7

func (resp *DeleteLocationAddressResp) Success() bool

type DeletePreHireReq added in v3.2.5

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

type DeletePreHireReqBuilder added in v3.2.5

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

func NewDeletePreHireReqBuilder added in v3.2.5

func NewDeletePreHireReqBuilder() *DeletePreHireReqBuilder

func (*DeletePreHireReqBuilder) Build added in v3.2.5

func (builder *DeletePreHireReqBuilder) Build() *DeletePreHireReq

func (*DeletePreHireReqBuilder) PreHireId added in v3.2.5

func (builder *DeletePreHireReqBuilder) PreHireId(preHireId string) *DeletePreHireReqBuilder

待入职ID

示例值:7345005664477775407

type DeletePreHireResp added in v3.2.5

type DeletePreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeletePreHireResp) Success added in v3.2.5

func (resp *DeletePreHireResp) Success() bool

type DeleteProbationAssessmentReq

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

type DeleteProbationAssessmentReqBuilder

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

func NewDeleteProbationAssessmentReqBuilder

func NewDeleteProbationAssessmentReqBuilder() *DeleteProbationAssessmentReqBuilder

func (*DeleteProbationAssessmentReqBuilder) AssessmentId

考核结果 ID

示例值:7140964208476371331

func (*DeleteProbationAssessmentReqBuilder) Build

type DeleteProbationAssessmentResp

type DeleteProbationAssessmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteProbationAssessmentResp) Success

func (resp *DeleteProbationAssessmentResp) Success() bool

type Department

type Department struct {
	Id *string `json:"id,omitempty"` // 部门 ID

	VersionId *string `json:"version_id,omitempty"` // 部门记录版本 ID

	DepartmentName []*I18n `json:"department_name,omitempty"` // 部门名称

	SubType *Enum `json:"sub_type,omitempty"` // 部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

	ParentDepartmentId *string `json:"parent_department_id,omitempty"` // 上级部门 ID

	Manager *string `json:"manager,omitempty"` // 部门负责人雇佣 ID,枚举值及详细信息可通过【查询员工信息】接口查询获得

	TreeOrder *string `json:"tree_order,omitempty"` // 树形排序,代表同层级的部门排序序号

	ListOrder *string `json:"list_order,omitempty"` // 列表排序,代表所有部门的混排序号

	Code *string `json:"code,omitempty"` // 编码

	IsRoot *bool `json:"is_root,omitempty"` // 是否根部门

	IsConfidential *bool `json:"is_confidential,omitempty"` // 是否保密

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期

	Active *bool `json:"active,omitempty"` // 是否启用

	Description []*I18n `json:"description,omitempty"` // 描述

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	StaffingModel *Enum `json:"staffing_model,omitempty"` // 是否使用职务

	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心id
}

type DepartmentBuilder

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

func NewDepartmentBuilder

func NewDepartmentBuilder() *DepartmentBuilder

func (*DepartmentBuilder) Active

func (builder *DepartmentBuilder) Active(active bool) *DepartmentBuilder

是否启用

示例值:true

func (*DepartmentBuilder) Build

func (builder *DepartmentBuilder) Build() *Department

func (*DepartmentBuilder) Code

func (builder *DepartmentBuilder) Code(code string) *DepartmentBuilder

编码

示例值:D00000456

func (*DepartmentBuilder) CostCenterId added in v3.3.1

func (builder *DepartmentBuilder) CostCenterId(costCenterId string) *DepartmentBuilder

成本中心id

示例值:7142384817131652652

func (*DepartmentBuilder) CustomFields

func (builder *DepartmentBuilder) CustomFields(customFields []*CustomFieldData) *DepartmentBuilder

自定义字段

示例值:

func (*DepartmentBuilder) DepartmentName

func (builder *DepartmentBuilder) DepartmentName(departmentName []*I18n) *DepartmentBuilder

部门名称

示例值:

func (*DepartmentBuilder) Description

func (builder *DepartmentBuilder) Description(description []*I18n) *DepartmentBuilder

描述

示例值:

func (*DepartmentBuilder) EffectiveDate

func (builder *DepartmentBuilder) EffectiveDate(effectiveDate string) *DepartmentBuilder

生效日期

示例值:2020-05-01

func (*DepartmentBuilder) ExpirationDate

func (builder *DepartmentBuilder) ExpirationDate(expirationDate string) *DepartmentBuilder

失效日期

示例值:2020-05-02

func (*DepartmentBuilder) Id

func (builder *DepartmentBuilder) Id(id string) *DepartmentBuilder

部门 ID

示例值:4719456877659520852

func (*DepartmentBuilder) IsConfidential

func (builder *DepartmentBuilder) IsConfidential(isConfidential bool) *DepartmentBuilder

是否保密

示例值:false

func (*DepartmentBuilder) IsRoot

func (builder *DepartmentBuilder) IsRoot(isRoot bool) *DepartmentBuilder

是否根部门

示例值:false

func (*DepartmentBuilder) ListOrder

func (builder *DepartmentBuilder) ListOrder(listOrder string) *DepartmentBuilder

列表排序,代表所有部门的混排序号

示例值:001000-001000

func (*DepartmentBuilder) Manager

func (builder *DepartmentBuilder) Manager(manager string) *DepartmentBuilder

部门负责人雇佣 ID,枚举值及详细信息可通过【查询员工信息】接口查询获得

示例值:6893013238632416777

func (*DepartmentBuilder) ParentDepartmentId

func (builder *DepartmentBuilder) ParentDepartmentId(parentDepartmentId string) *DepartmentBuilder

上级部门 ID

示例值:4719456877659520111

func (*DepartmentBuilder) StaffingModel added in v3.1.3

func (builder *DepartmentBuilder) StaffingModel(staffingModel *Enum) *DepartmentBuilder

是否使用职务

示例值:

func (*DepartmentBuilder) SubType

func (builder *DepartmentBuilder) SubType(subType *Enum) *DepartmentBuilder

部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

示例值:

func (*DepartmentBuilder) TreeOrder

func (builder *DepartmentBuilder) TreeOrder(treeOrder string) *DepartmentBuilder

树形排序,代表同层级的部门排序序号

示例值:001000

func (*DepartmentBuilder) VersionId

func (builder *DepartmentBuilder) VersionId(versionId string) *DepartmentBuilder

部门记录版本 ID

示例值:6890452208593372611

type DepartmentChange

type DepartmentChange struct {
	DepartmentChangeId *string `json:"department_change_id,omitempty"` // 部门调整记录 ID

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	DraftDepartmentId *string `json:"draft_department_id,omitempty"` // 调整部门 ID ,调整审批未生效前会返回格式为 td_xxx 的临时 ID

	DepartmentChangeType *string `json:"department_change_type,omitempty"` // 调整类型

	ReorganizationInfo *ReorganizationInfo `json:"reorganization_info,omitempty"` // 调整详细信息
}

type DepartmentChangeBuilder

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

func NewDepartmentChangeBuilder

func NewDepartmentChangeBuilder() *DepartmentChangeBuilder

func (*DepartmentChangeBuilder) Build

func (builder *DepartmentChangeBuilder) Build() *DepartmentChange

func (*DepartmentChangeBuilder) DepartmentChangeId

func (builder *DepartmentChangeBuilder) DepartmentChangeId(departmentChangeId string) *DepartmentChangeBuilder

部门调整记录 ID

示例值:6991776076699549697

func (*DepartmentChangeBuilder) DepartmentChangeType

func (builder *DepartmentChangeBuilder) DepartmentChangeType(departmentChangeType string) *DepartmentChangeBuilder

调整类型

示例值:Create

func (*DepartmentChangeBuilder) DepartmentId

func (builder *DepartmentChangeBuilder) DepartmentId(departmentId string) *DepartmentChangeBuilder

部门 ID

示例值:6966236933198579208

func (*DepartmentChangeBuilder) DraftDepartmentId added in v3.2.3

func (builder *DepartmentChangeBuilder) DraftDepartmentId(draftDepartmentId string) *DepartmentChangeBuilder

调整部门 ID ,调整审批未生效前会返回格式为 td_xxx 的临时 ID

示例值:6966236933198579208

func (*DepartmentChangeBuilder) ReorganizationInfo

func (builder *DepartmentChangeBuilder) ReorganizationInfo(reorganizationInfo *ReorganizationInfo) *DepartmentChangeBuilder

调整详细信息

示例值:

type DepartmentForPatch added in v3.2.3

type DepartmentForPatch struct {
	Id *string `json:"id,omitempty"` // 实体在CoreHR内部的唯一键

	SubType *Enum `json:"sub_type,omitempty"` // 子类型

	Manager *string `json:"manager,omitempty"` // 部门负责人

	IsConfidential *bool `json:"is_confidential,omitempty"` // 是否保密

	HiberarchyCommon *HiberarchyCommon `json:"hiberarchy_common,omitempty"` // 层级关系,内层字段见实体

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段

	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心id

	StaffingModel *Enum `json:"staffing_model,omitempty"` // 是否使用职务
}

type DepartmentForPatchBuilder added in v3.2.3

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

func NewDepartmentForPatchBuilder added in v3.2.3

func NewDepartmentForPatchBuilder() *DepartmentForPatchBuilder

func (*DepartmentForPatchBuilder) Build added in v3.2.3

func (*DepartmentForPatchBuilder) CostCenterId added in v3.2.3

func (builder *DepartmentForPatchBuilder) CostCenterId(costCenterId string) *DepartmentForPatchBuilder

成本中心id

示例值:7142384817131652652

func (*DepartmentForPatchBuilder) CustomFields added in v3.2.3

func (builder *DepartmentForPatchBuilder) CustomFields(customFields []*ObjectFieldData) *DepartmentForPatchBuilder

自定义字段

示例值:

func (*DepartmentForPatchBuilder) EffectiveTime added in v3.2.3

func (builder *DepartmentForPatchBuilder) EffectiveTime(effectiveTime string) *DepartmentForPatchBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*DepartmentForPatchBuilder) HiberarchyCommon added in v3.2.3

func (builder *DepartmentForPatchBuilder) HiberarchyCommon(hiberarchyCommon *HiberarchyCommon) *DepartmentForPatchBuilder

层级关系,内层字段见实体

示例值:

func (*DepartmentForPatchBuilder) Id added in v3.2.3

实体在CoreHR内部的唯一键

示例值:4719456877659520852

func (*DepartmentForPatchBuilder) IsConfidential added in v3.2.3

func (builder *DepartmentForPatchBuilder) IsConfidential(isConfidential bool) *DepartmentForPatchBuilder

是否保密

示例值:true

func (*DepartmentForPatchBuilder) Manager added in v3.2.3

func (builder *DepartmentForPatchBuilder) Manager(manager string) *DepartmentForPatchBuilder

部门负责人

示例值:6893013238632416776

func (*DepartmentForPatchBuilder) StaffingModel added in v3.2.3

func (builder *DepartmentForPatchBuilder) StaffingModel(staffingModel *Enum) *DepartmentForPatchBuilder

是否使用职务

示例值:

func (*DepartmentForPatchBuilder) SubType added in v3.2.3

func (builder *DepartmentForPatchBuilder) SubType(subType *Enum) *DepartmentForPatchBuilder

子类型

示例值:

type DepartmentHrbp

type DepartmentHrbp struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	HrbpIds []string `json:"hrbp_ids,omitempty"` // 部门 HRBP 雇佣 ID
}

type DepartmentHrbpBuilder

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

func NewDepartmentHrbpBuilder

func NewDepartmentHrbpBuilder() *DepartmentHrbpBuilder

func (*DepartmentHrbpBuilder) Build

func (builder *DepartmentHrbpBuilder) Build() *DepartmentHrbp

func (*DepartmentHrbpBuilder) DepartmentId

func (builder *DepartmentHrbpBuilder) DepartmentId(departmentId string) *DepartmentHrbpBuilder

部门 ID

示例值:4719456877659520852

func (*DepartmentHrbpBuilder) HrbpIds

func (builder *DepartmentHrbpBuilder) HrbpIds(hrbpIds []string) *DepartmentHrbpBuilder

部门 HRBP 雇佣 ID

示例值:

type DepartmentId

type DepartmentId struct {
	DepartmentId *string `json:"department_id,omitempty"` //

	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder

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

func NewDepartmentIdBuilder

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId

func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type DepartmentParentInfo

type DepartmentParentInfo struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	DepartmentName []*I18n `json:"department_name,omitempty"` // 部门名称

	ParentDepartmentId *string `json:"parent_department_id,omitempty"` // 上级部门 ID

	Active *bool `json:"active,omitempty"` // 是否启用

	IsRoot *bool `json:"is_root,omitempty"` // 是否根部门
}

type DepartmentParentInfoBuilder

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

func NewDepartmentParentInfoBuilder

func NewDepartmentParentInfoBuilder() *DepartmentParentInfoBuilder

func (*DepartmentParentInfoBuilder) Active

是否启用

示例值:true

func (*DepartmentParentInfoBuilder) Build

func (*DepartmentParentInfoBuilder) DepartmentId

func (builder *DepartmentParentInfoBuilder) DepartmentId(departmentId string) *DepartmentParentInfoBuilder

部门 ID

示例值:4719456877659520852

func (*DepartmentParentInfoBuilder) DepartmentName

func (builder *DepartmentParentInfoBuilder) DepartmentName(departmentName []*I18n) *DepartmentParentInfoBuilder

部门名称

示例值:

func (*DepartmentParentInfoBuilder) IsRoot

是否根部门

示例值:true

func (*DepartmentParentInfoBuilder) ParentDepartmentId

func (builder *DepartmentParentInfoBuilder) ParentDepartmentId(parentDepartmentId string) *DepartmentParentInfoBuilder

上级部门 ID

示例值:4719456877659520111

type DepartmentParents

type DepartmentParents struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	ParentDepartmentList []*DepartmentParentInfo `json:"parent_department_list,omitempty"` // 父部门列表,部门按照至底向上的顺序返回
}

type DepartmentParentsBuilder

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

func NewDepartmentParentsBuilder

func NewDepartmentParentsBuilder() *DepartmentParentsBuilder

func (*DepartmentParentsBuilder) Build

func (builder *DepartmentParentsBuilder) Build() *DepartmentParents

func (*DepartmentParentsBuilder) DepartmentId

func (builder *DepartmentParentsBuilder) DepartmentId(departmentId string) *DepartmentParentsBuilder

部门 ID

示例值:6893014062142064111

func (*DepartmentParentsBuilder) ParentDepartmentList

func (builder *DepartmentParentsBuilder) ParentDepartmentList(parentDepartmentList []*DepartmentParentInfo) *DepartmentParentsBuilder

父部门列表,部门按照至底向上的顺序返回

示例值:

type DepartmentTimeline added in v3.2.3

type DepartmentTimeline struct {
	Id *string `json:"id,omitempty"` // 部门 ID

	VersionId *string `json:"version_id,omitempty"` // 部门版本 ID

	Names []*I18n `json:"names,omitempty"` // 部门名称

	ParentDepartmentId *string `json:"parent_department_id,omitempty"` // 上级部门 ID

	Manager *string `json:"manager,omitempty"` // 部门负责人雇佣 ID,枚举值及详细信息可通过【查询员工信息】接口查询获得

	Code *string `json:"code,omitempty"` // 编码

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	Active *bool `json:"active,omitempty"` // 是否启用

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type DepartmentTimelineBuilder added in v3.2.3

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

func NewDepartmentTimelineBuilder added in v3.2.3

func NewDepartmentTimelineBuilder() *DepartmentTimelineBuilder

func (*DepartmentTimelineBuilder) Active added in v3.2.3

func (builder *DepartmentTimelineBuilder) Active(active bool) *DepartmentTimelineBuilder

是否启用

示例值:true

func (*DepartmentTimelineBuilder) Build added in v3.2.3

func (*DepartmentTimelineBuilder) Code added in v3.2.3

编码

示例值:D00000456

func (*DepartmentTimelineBuilder) CustomFields added in v3.2.6

func (builder *DepartmentTimelineBuilder) CustomFields(customFields []*CustomFieldData) *DepartmentTimelineBuilder

自定义字段

示例值:

func (*DepartmentTimelineBuilder) Descriptions added in v3.2.3

func (builder *DepartmentTimelineBuilder) Descriptions(descriptions []*I18n) *DepartmentTimelineBuilder

描述

示例值:

func (*DepartmentTimelineBuilder) EffectiveDate added in v3.2.3

func (builder *DepartmentTimelineBuilder) EffectiveDate(effectiveDate string) *DepartmentTimelineBuilder

生效日期

示例值:2020-05-01

func (*DepartmentTimelineBuilder) Id added in v3.2.3

部门 ID

示例值:4719456877659520852

func (*DepartmentTimelineBuilder) Manager added in v3.2.3

func (builder *DepartmentTimelineBuilder) Manager(manager string) *DepartmentTimelineBuilder

部门负责人雇佣 ID,枚举值及详细信息可通过【查询员工信息】接口查询获得

示例值:6893013238632416777

func (*DepartmentTimelineBuilder) Names added in v3.2.3

func (builder *DepartmentTimelineBuilder) Names(names []*I18n) *DepartmentTimelineBuilder

部门名称

示例值:

func (*DepartmentTimelineBuilder) ParentDepartmentId added in v3.2.3

func (builder *DepartmentTimelineBuilder) ParentDepartmentId(parentDepartmentId string) *DepartmentTimelineBuilder

上级部门 ID

示例值:4719456877659520111

func (*DepartmentTimelineBuilder) VersionId added in v3.2.6

func (builder *DepartmentTimelineBuilder) VersionId(versionId string) *DepartmentTimelineBuilder

部门版本 ID

示例值:7238516215202170412

type DepartmentTree added in v3.3.2

type DepartmentTree struct {
	Id *string `json:"id,omitempty"` // 部门 ID

	Level *int `json:"level,omitempty"` // 部门层级

	Children []string `json:"children,omitempty"` // 下级部门 ID 列表
}

type DepartmentTreeBuilder added in v3.3.2

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

func NewDepartmentTreeBuilder added in v3.3.2

func NewDepartmentTreeBuilder() *DepartmentTreeBuilder

func (*DepartmentTreeBuilder) Build added in v3.3.2

func (builder *DepartmentTreeBuilder) Build() *DepartmentTree

func (*DepartmentTreeBuilder) Children added in v3.3.2

func (builder *DepartmentTreeBuilder) Children(children []string) *DepartmentTreeBuilder

下级部门 ID 列表

示例值:

func (*DepartmentTreeBuilder) Id added in v3.3.2

部门 ID

示例值:4719456877659520852

func (*DepartmentTreeBuilder) Level added in v3.3.2

func (builder *DepartmentTreeBuilder) Level(level int) *DepartmentTreeBuilder

部门层级

示例值:1

type Dependent

type Dependent struct {
	Id *string `json:"id,omitempty"` // ID

	Name *PersonName `json:"name,omitempty"` // 姓名

	Relationship *Enum `json:"relationship,omitempty"` // 关系

	Gender *Enum `json:"gender,omitempty"` // 性别

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 生日

	NationalityId *string `json:"nationality_id,omitempty"` // 国籍 ID(该字段待作废,请勿使用)

	NationalityIdV2 *string `json:"nationality_id_v2,omitempty"` // 国籍 ID,可通过【查询国籍信息】接口查询

	NationalIdList []*NationalId `json:"national_id_list,omitempty"` // 证件号码

	SpousesWorkingStatus *Enum `json:"spouses_working_status,omitempty"` // 配偶工作状态

	IsThisPersonCoveredByHealthInsurance *bool `json:"is_this_person_covered_by_health_insurance,omitempty"` // 包含家属医疗保险

	IsThisPersonAllowedForTaxDeduction *bool `json:"is_this_person_allowed_for_tax_deduction,omitempty"` // 允许家属抵扣税款

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	DependentName *string `json:"dependent_name,omitempty"` // 家庭成员姓名

	Employer *string `json:"employer,omitempty"` // 工作单位

	Job *string `json:"job,omitempty"` // 岗位

	Phone *Phone `json:"phone,omitempty"` // 电话

	Address *Address `json:"address,omitempty"` // 联系地址

	BirthCertificateOfChild []*File `json:"birth_certificate_of_child,omitempty"` // 出生证明
}

type DependentBuilder

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

func NewDependentBuilder

func NewDependentBuilder() *DependentBuilder

func (*DependentBuilder) Address

func (builder *DependentBuilder) Address(address *Address) *DependentBuilder

联系地址

示例值:

func (*DependentBuilder) BirthCertificateOfChild

func (builder *DependentBuilder) BirthCertificateOfChild(birthCertificateOfChild []*File) *DependentBuilder

出生证明

示例值:

func (*DependentBuilder) Build

func (builder *DependentBuilder) Build() *Dependent

func (*DependentBuilder) CustomFields

func (builder *DependentBuilder) CustomFields(customFields []*CustomFieldData) *DependentBuilder

自定义字段

示例值:

func (*DependentBuilder) DateOfBirth

func (builder *DependentBuilder) DateOfBirth(dateOfBirth string) *DependentBuilder

生日

示例值:2020-01-01

func (*DependentBuilder) DependentName

func (builder *DependentBuilder) DependentName(dependentName string) *DependentBuilder

家庭成员姓名

示例值:张三

func (*DependentBuilder) Employer

func (builder *DependentBuilder) Employer(employer string) *DependentBuilder

工作单位

示例值:海淀区交警大队

func (*DependentBuilder) Gender

func (builder *DependentBuilder) Gender(gender *Enum) *DependentBuilder

性别

示例值:

func (*DependentBuilder) Id added in v3.3.4

func (builder *DependentBuilder) Id(id string) *DependentBuilder

ID

示例值:123

func (*DependentBuilder) IsThisPersonAllowedForTaxDeduction

func (builder *DependentBuilder) IsThisPersonAllowedForTaxDeduction(isThisPersonAllowedForTaxDeduction bool) *DependentBuilder

允许家属抵扣税款

示例值:false

func (*DependentBuilder) IsThisPersonCoveredByHealthInsurance

func (builder *DependentBuilder) IsThisPersonCoveredByHealthInsurance(isThisPersonCoveredByHealthInsurance bool) *DependentBuilder

包含家属医疗保险

示例值:true

func (*DependentBuilder) Job

func (builder *DependentBuilder) Job(job string) *DependentBuilder

岗位

示例值:保安

func (*DependentBuilder) Name

func (builder *DependentBuilder) Name(name *PersonName) *DependentBuilder

姓名

示例值:

func (*DependentBuilder) NationalIdList

func (builder *DependentBuilder) NationalIdList(nationalIdList []*NationalId) *DependentBuilder

证件号码

示例值:

func (*DependentBuilder) NationalityId added in v3.4.2

func (builder *DependentBuilder) NationalityId(nationalityId string) *DependentBuilder

国籍 ID(该字段待作废,请勿使用)

示例值:6862995745046267400

func (*DependentBuilder) NationalityIdV2 added in v3.1.2

func (builder *DependentBuilder) NationalityIdV2(nationalityIdV2 string) *DependentBuilder

国籍 ID,可通过【查询国籍信息】接口查询

示例值:6862995745046267401

func (*DependentBuilder) Phone

func (builder *DependentBuilder) Phone(phone *Phone) *DependentBuilder

电话

示例值:

func (*DependentBuilder) Relationship

func (builder *DependentBuilder) Relationship(relationship *Enum) *DependentBuilder

关系

示例值:

func (*DependentBuilder) SpousesWorkingStatus

func (builder *DependentBuilder) SpousesWorkingStatus(spousesWorkingStatus *Enum) *DependentBuilder

配偶工作状态

示例值:

type DependentForUpdate added in v3.2.8

type DependentForUpdate struct {
	Relationship *string `json:"relationship,omitempty"` // 关系

	Gender *string `json:"gender,omitempty"` // 性别

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 生日

	NationalIds []*NationalIdForUpdate `json:"national_ids,omitempty"` // 证件号码

	SpousesWorkingStatus *string `json:"spouses_working_status,omitempty"` // 配偶工作状态

	IsThisPersonCoveredByHealthInsurance *bool `json:"is_this_person_covered_by_health_insurance,omitempty"` // 包含家属医疗保险

	IsThisPersonAllowedForTaxDeduction *bool `json:"is_this_person_allowed_for_tax_deduction,omitempty"` // 允许家属抵扣税款

	DependentName *string `json:"dependent_name,omitempty"` // 家庭成员姓名

	Employer *string `json:"employer,omitempty"` // 工作单位

	Job *string `json:"job,omitempty"` // 岗位

	Phone *PhoneForUpdate `json:"phone,omitempty"` // 电话

	Address *AddressForUpdate `json:"address,omitempty"` // 联系地址

	BirthCertificateOfChildren []*File `json:"birth_certificate_of_children,omitempty"` // 出生证明
}

type DependentForUpdateBuilder added in v3.2.8

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

func NewDependentForUpdateBuilder added in v3.2.8

func NewDependentForUpdateBuilder() *DependentForUpdateBuilder

func (*DependentForUpdateBuilder) Address added in v3.2.8

联系地址

示例值:

func (*DependentForUpdateBuilder) BirthCertificateOfChildren added in v3.2.8

func (builder *DependentForUpdateBuilder) BirthCertificateOfChildren(birthCertificateOfChildren []*File) *DependentForUpdateBuilder

出生证明

示例值:

func (*DependentForUpdateBuilder) Build added in v3.2.8

func (*DependentForUpdateBuilder) DateOfBirth added in v3.2.8

func (builder *DependentForUpdateBuilder) DateOfBirth(dateOfBirth string) *DependentForUpdateBuilder

生日

示例值:2020-01-01

func (*DependentForUpdateBuilder) DependentName added in v3.2.8

func (builder *DependentForUpdateBuilder) DependentName(dependentName string) *DependentForUpdateBuilder

家庭成员姓名

示例值:王冰

func (*DependentForUpdateBuilder) Employer added in v3.2.8

func (builder *DependentForUpdateBuilder) Employer(employer string) *DependentForUpdateBuilder

工作单位

示例值:海淀区交警大队

func (*DependentForUpdateBuilder) Gender added in v3.2.8

性别

示例值:male

func (*DependentForUpdateBuilder) IsThisPersonAllowedForTaxDeduction added in v3.2.8

func (builder *DependentForUpdateBuilder) IsThisPersonAllowedForTaxDeduction(isThisPersonAllowedForTaxDeduction bool) *DependentForUpdateBuilder

允许家属抵扣税款

示例值:false

func (*DependentForUpdateBuilder) IsThisPersonCoveredByHealthInsurance added in v3.2.8

func (builder *DependentForUpdateBuilder) IsThisPersonCoveredByHealthInsurance(isThisPersonCoveredByHealthInsurance bool) *DependentForUpdateBuilder

包含家属医疗保险

示例值:true

func (*DependentForUpdateBuilder) Job added in v3.2.8

岗位

示例值:保安

func (*DependentForUpdateBuilder) NationalIds added in v3.2.8

func (builder *DependentForUpdateBuilder) NationalIds(nationalIds []*NationalIdForUpdate) *DependentForUpdateBuilder

证件号码

示例值:

func (*DependentForUpdateBuilder) Phone added in v3.2.8

电话

示例值:

func (*DependentForUpdateBuilder) Relationship added in v3.2.8

func (builder *DependentForUpdateBuilder) Relationship(relationship string) *DependentForUpdateBuilder

关系

示例值:parent

func (*DependentForUpdateBuilder) SpousesWorkingStatus added in v3.2.8

func (builder *DependentForUpdateBuilder) SpousesWorkingStatus(spousesWorkingStatus string) *DependentForUpdateBuilder

配偶工作状态

示例值:working

type Dimension

type Dimension struct {
	Name []*I18n `json:"name,omitempty"` // 维度的名称

	ApiName *string `json:"api_name,omitempty"` // 维度的 api name

	FieldType *string `json:"field_type,omitempty"` // 维度的字段类型。enum 代表字段为枚举类型,lookup 代表字段为 lookup 类型,bool 代表字段为布尔类型

	Required *bool `json:"required,omitempty"` // 维度是否为必填

	EnumValue []*Enum `json:"enum_value,omitempty"` // 枚举类型的维度对应的枚举值列表
}

type DimensionBuilder

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

func NewDimensionBuilder

func NewDimensionBuilder() *DimensionBuilder

func (*DimensionBuilder) ApiName

func (builder *DimensionBuilder) ApiName(apiName string) *DimensionBuilder

维度的 api name

示例值:department

func (*DimensionBuilder) Build

func (builder *DimensionBuilder) Build() *Dimension

func (*DimensionBuilder) EnumValue

func (builder *DimensionBuilder) EnumValue(enumValue []*Enum) *DimensionBuilder

枚举类型的维度对应的枚举值列表

示例值:

func (*DimensionBuilder) FieldType

func (builder *DimensionBuilder) FieldType(fieldType string) *DimensionBuilder

维度的字段类型。enum 代表字段为枚举类型,lookup 代表字段为 lookup 类型,bool 代表字段为布尔类型

示例值:enum

func (*DimensionBuilder) Name

func (builder *DimensionBuilder) Name(name []*I18n) *DimensionBuilder

维度的名称

示例值:

func (*DimensionBuilder) Required

func (builder *DimensionBuilder) Required(required bool) *DimensionBuilder

维度是否为必填

示例值:true

type DimensionEntity added in v3.3.7

type DimensionEntity struct {
	DimensionKey *string `json:"dimension_key,omitempty"` // 维度key

	DimensionValue *string `json:"dimension_value,omitempty"` // 维度值
}

type DimensionEntityBuilder added in v3.3.7

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

func NewDimensionEntityBuilder added in v3.3.7

func NewDimensionEntityBuilder() *DimensionEntityBuilder

func (*DimensionEntityBuilder) Build added in v3.3.7

func (builder *DimensionEntityBuilder) Build() *DimensionEntity

func (*DimensionEntityBuilder) DimensionKey added in v3.3.7

func (builder *DimensionEntityBuilder) DimensionKey(dimensionKey string) *DimensionEntityBuilder

维度key

示例值:department

func (*DimensionEntityBuilder) DimensionValue added in v3.3.7

func (builder *DimensionEntityBuilder) DimensionValue(dimensionValue string) *DimensionEntityBuilder

维度值

示例值:7322790168290739756

type DimensionIdInData added in v3.2.3

type DimensionIdInData struct {
	DimensionKey *string `json:"dimension_key,omitempty"` // 维度 key

	DimensionIds []string `json:"dimension_ids,omitempty"` // 维度 ids
}

type DimensionIdInDataBuilder added in v3.2.3

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

func NewDimensionIdInDataBuilder added in v3.2.3

func NewDimensionIdInDataBuilder() *DimensionIdInDataBuilder

func (*DimensionIdInDataBuilder) Build added in v3.2.3

func (builder *DimensionIdInDataBuilder) Build() *DimensionIdInData

func (*DimensionIdInDataBuilder) DimensionIds added in v3.2.3

func (builder *DimensionIdInDataBuilder) DimensionIds(dimensionIds []string) *DimensionIdInDataBuilder

维度 ids

示例值:

func (*DimensionIdInDataBuilder) DimensionKey added in v3.2.3

func (builder *DimensionIdInDataBuilder) DimensionKey(dimensionKey string) *DimensionIdInDataBuilder

维度 key

示例值:department

type DimensionInfo

type DimensionInfo struct {
	Id *string `json:"id,omitempty"` // 维度id

	Name []*I18n `json:"name,omitempty"` // 维度名称
}

type DimensionInfoBuilder

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

func NewDimensionInfoBuilder

func NewDimensionInfoBuilder() *DimensionInfoBuilder

func (*DimensionInfoBuilder) Build

func (builder *DimensionInfoBuilder) Build() *DimensionInfo

func (*DimensionInfoBuilder) Id

维度id

示例值:“123456”

func (*DimensionInfoBuilder) Name

func (builder *DimensionInfoBuilder) Name(name []*I18n) *DimensionInfoBuilder

维度名称

示例值:

type DimensionInfoData added in v3.2.3

type DimensionInfoData struct {
	DimensionKey *string `json:"dimension_key,omitempty"` // 维度 key

	DimensionInfo *DimensionInfo `json:"dimension_info,omitempty"` // 维度信息
}

type DimensionInfoDataBuilder added in v3.2.3

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

func NewDimensionInfoDataBuilder added in v3.2.3

func NewDimensionInfoDataBuilder() *DimensionInfoDataBuilder

func (*DimensionInfoDataBuilder) Build added in v3.2.3

func (builder *DimensionInfoDataBuilder) Build() *DimensionInfoData

func (*DimensionInfoDataBuilder) DimensionInfo added in v3.2.3

func (builder *DimensionInfoDataBuilder) DimensionInfo(dimensionInfo *DimensionInfo) *DimensionInfoDataBuilder

维度信息

示例值:

func (*DimensionInfoDataBuilder) DimensionKey added in v3.2.3

func (builder *DimensionInfoDataBuilder) DimensionKey(dimensionKey string) *DimensionInfoDataBuilder

维度 key

示例值:"department"

type DimensionValue

type DimensionValue struct {
	DimensionApiName *string `json:"dimension_api_name,omitempty"` // API name

	DimensionValue *CustomValue `json:"dimension_value,omitempty"` // 查询的维度值信息
}

type DimensionValueBuilder

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

func NewDimensionValueBuilder

func NewDimensionValueBuilder() *DimensionValueBuilder

func (*DimensionValueBuilder) Build

func (builder *DimensionValueBuilder) Build() *DimensionValue

func (*DimensionValueBuilder) DimensionApiName

func (builder *DimensionValueBuilder) DimensionApiName(dimensionApiName string) *DimensionValueBuilder

API name

示例值:asdasdsa

func (*DimensionValueBuilder) DimensionValue

func (builder *DimensionValueBuilder) DimensionValue(dimensionValue *CustomValue) *DimensionValueBuilder

查询的维度值信息

示例值:

type District

type District struct {
	DistrictId *string `json:"district_id,omitempty"` // 区/县 ID

	Name []*I18n `json:"name,omitempty"` // 名称

	CityId *string `json:"city_id,omitempty"` // 所属城市 ID,详细信息可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口获得

	SubregionCode *string `json:"subregion_code,omitempty"` // 行政区划代码

	Status *int `json:"status,omitempty"` // 状态
}

type DistrictBuilder

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

func NewDistrictBuilder

func NewDistrictBuilder() *DistrictBuilder

func (*DistrictBuilder) Build

func (builder *DistrictBuilder) Build() *District

func (*DistrictBuilder) CityId

func (builder *DistrictBuilder) CityId(cityId string) *DistrictBuilder

所属城市 ID,详细信息可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口获得

示例值:6863333352603125255

func (*DistrictBuilder) DistrictId

func (builder *DistrictBuilder) DistrictId(districtId string) *DistrictBuilder

区/县 ID

示例值:6863333353496512007

func (*DistrictBuilder) Name

func (builder *DistrictBuilder) Name(name []*I18n) *DistrictBuilder

名称

示例值:

func (*DistrictBuilder) Status

func (builder *DistrictBuilder) Status(status int) *DistrictBuilder

状态

示例值:1

func (*DistrictBuilder) SubregionCode added in v3.2.6

func (builder *DistrictBuilder) SubregionCode(subregionCode string) *DistrictBuilder

行政区划代码

示例值:230110

type EditOffboardingPathReqBodyBuilder added in v3.4.1

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

func NewEditOffboardingPathReqBodyBuilder added in v3.4.1

func NewEditOffboardingPathReqBodyBuilder() *EditOffboardingPathReqBodyBuilder

func (*EditOffboardingPathReqBodyBuilder) Build added in v3.4.1

func (*EditOffboardingPathReqBodyBuilder) OffboardingId added in v3.4.1

func (builder *EditOffboardingPathReqBodyBuilder) OffboardingId(offboardingId string) *EditOffboardingPathReqBodyBuilder

离职记录 ID

示例值:7095671727698478604

func (*EditOffboardingPathReqBodyBuilder) OperatorId added in v3.4.1

操作人雇佣 ID(employment_id),为空默认为系统操作。

示例值:6982509313466189341

func (*EditOffboardingPathReqBodyBuilder) UpdateData added in v3.4.1

编辑字段数据信息

示例值:

type EditOffboardingReq added in v3.4.1

type EditOffboardingReq struct {
	Body *EditOffboardingReqBody `body:""`
	// contains filtered or unexported fields
}

type EditOffboardingReqBody added in v3.4.1

type EditOffboardingReqBody struct {
	OffboardingId *string `json:"offboarding_id,omitempty"` // 离职记录 ID

	OperatorId *string `json:"operator_id,omitempty"` // 操作人雇佣 ID(employment_id),为空默认为系统操作。

	UpdateData []*ObjectFieldData `json:"update_data,omitempty"` // 编辑字段数据信息
}

type EditOffboardingReqBodyBuilder added in v3.4.1

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

func NewEditOffboardingReqBodyBuilder added in v3.4.1

func NewEditOffboardingReqBodyBuilder() *EditOffboardingReqBodyBuilder

func (*EditOffboardingReqBodyBuilder) Build added in v3.4.1

func (*EditOffboardingReqBodyBuilder) OffboardingId added in v3.4.1

func (builder *EditOffboardingReqBodyBuilder) OffboardingId(offboardingId string) *EditOffboardingReqBodyBuilder

离职记录 ID

示例值:7095671727698478604

func (*EditOffboardingReqBodyBuilder) OperatorId added in v3.4.1

func (builder *EditOffboardingReqBodyBuilder) OperatorId(operatorId string) *EditOffboardingReqBodyBuilder

操作人雇佣 ID(employment_id),为空默认为系统操作。

示例值:6982509313466189341

func (*EditOffboardingReqBodyBuilder) UpdateData added in v3.4.1

编辑字段数据信息

示例值:

type EditOffboardingReqBuilder added in v3.4.1

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

func NewEditOffboardingReqBuilder added in v3.4.1

func NewEditOffboardingReqBuilder() *EditOffboardingReqBuilder

func (*EditOffboardingReqBuilder) Body added in v3.4.1

编辑离职信息

func (*EditOffboardingReqBuilder) Build added in v3.4.1

func (*EditOffboardingReqBuilder) UserIdType added in v3.4.1

func (builder *EditOffboardingReqBuilder) UserIdType(userIdType string) *EditOffboardingReqBuilder

用户 ID 类型

示例值:people_corehr_id

type EditOffboardingResp added in v3.4.1

type EditOffboardingResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *EditOffboardingRespData `json:"data"` // 业务数据
}

func (*EditOffboardingResp) Success added in v3.4.1

func (resp *EditOffboardingResp) Success() bool

type EditOffboardingRespData added in v3.4.1

type EditOffboardingRespData struct {
	Data []*ObjectFieldData `json:"data,omitempty"` // 编辑字段数据信息
}

type Education

type Education struct {
	School []*I18n `json:"school,omitempty"` // 学校

	LevelOfEducation *Enum `json:"level_of_education,omitempty"` // 学历

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期

	FieldOfStudy []*I18n `json:"field_of_study,omitempty"` // 专业

	Degree *Enum `json:"degree,omitempty"` // 学位

	SchoolName *Enum `json:"school_name,omitempty"` // 学校名称

	FieldOfStudyName *Enum `json:"field_of_study_name,omitempty"` // 专业名称

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家地区ID

	ExpectedEndDate *string `json:"expected_end_date,omitempty"` // 预期结束日期

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type EducationBuilder

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

func NewEducationBuilder

func NewEducationBuilder() *EducationBuilder

func (*EducationBuilder) Build

func (builder *EducationBuilder) Build() *Education

func (*EducationBuilder) CountryRegionId

func (builder *EducationBuilder) CountryRegionId(countryRegionId string) *EducationBuilder

国家地区ID

示例值:1

func (*EducationBuilder) CustomFields

func (builder *EducationBuilder) CustomFields(customFields []*CustomFieldData) *EducationBuilder

自定义字段

示例值:

func (*EducationBuilder) Degree

func (builder *EducationBuilder) Degree(degree *Enum) *EducationBuilder

学位

示例值:

func (*EducationBuilder) EndDate

func (builder *EducationBuilder) EndDate(endDate string) *EducationBuilder

结束日期

示例值:2015-06-30

func (*EducationBuilder) ExpectedEndDate

func (builder *EducationBuilder) ExpectedEndDate(expectedEndDate string) *EducationBuilder

预期结束日期

示例值:2011-09-01

func (*EducationBuilder) FieldOfStudy

func (builder *EducationBuilder) FieldOfStudy(fieldOfStudy []*I18n) *EducationBuilder

专业

示例值:

func (*EducationBuilder) FieldOfStudyName

func (builder *EducationBuilder) FieldOfStudyName(fieldOfStudyName *Enum) *EducationBuilder

专业名称

示例值:

func (*EducationBuilder) LevelOfEducation

func (builder *EducationBuilder) LevelOfEducation(levelOfEducation *Enum) *EducationBuilder

学历

示例值:

func (*EducationBuilder) School

func (builder *EducationBuilder) School(school []*I18n) *EducationBuilder

学校

示例值:

func (*EducationBuilder) SchoolName

func (builder *EducationBuilder) SchoolName(schoolName *Enum) *EducationBuilder

学校名称

示例值:

func (*EducationBuilder) StartDate

func (builder *EducationBuilder) StartDate(startDate string) *EducationBuilder

开始日期

示例值:2011-09-01

type EducationInfo

type EducationInfo struct {
	SchoolName *string `json:"school_name,omitempty"` // 学校名称

	Education *string `json:"education,omitempty"` // 学历

	StartTime *string `json:"start_time,omitempty"` // 开始时间

	EndTime *string `json:"end_time,omitempty"` // 结束时间

	FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type EducationInfoBuilder

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

func NewEducationInfoBuilder

func NewEducationInfoBuilder() *EducationInfoBuilder

func (*EducationInfoBuilder) Build

func (builder *EducationInfoBuilder) Build() *EducationInfo

func (*EducationInfoBuilder) CustomFields added in v3.3.7

func (builder *EducationInfoBuilder) CustomFields(customFields []*ObjectFieldData) *EducationInfoBuilder

自定义字段

示例值:

func (*EducationInfoBuilder) Education

func (builder *EducationInfoBuilder) Education(education string) *EducationInfoBuilder

学历

示例值:phd

func (*EducationInfoBuilder) EndTime

func (builder *EducationInfoBuilder) EndTime(endTime string) *EducationInfoBuilder

结束时间

示例值:2018-04-01

func (*EducationInfoBuilder) FieldOfStudy

func (builder *EducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *EducationInfoBuilder

专业

示例值:医学影像技术

func (*EducationInfoBuilder) SchoolName

func (builder *EducationInfoBuilder) SchoolName(schoolName string) *EducationInfoBuilder

学校名称

示例值:长安大学

func (*EducationInfoBuilder) StartTime

func (builder *EducationInfoBuilder) StartTime(startTime string) *EducationInfoBuilder

开始时间

示例值:2017-04-01

type Email

type Email struct {
	Email *string `json:"email,omitempty"` // 邮箱地址

	IsPrimary *bool `json:"is_primary,omitempty"` // 是否为主要邮箱

	IsPublic *bool `json:"is_public,omitempty"` // 是否为公开邮箱

	EmailUsage *Enum `json:"email_usage,omitempty"` // 邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得
}

type EmailBuilder

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

func NewEmailBuilder

func NewEmailBuilder() *EmailBuilder

func (*EmailBuilder) Build

func (builder *EmailBuilder) Build() *Email

func (*EmailBuilder) Email

func (builder *EmailBuilder) Email(email string) *EmailBuilder

邮箱地址

示例值:1234567@bytedance.com

func (*EmailBuilder) EmailUsage

func (builder *EmailBuilder) EmailUsage(emailUsage *Enum) *EmailBuilder

邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得

示例值:

func (*EmailBuilder) IsPrimary

func (builder *EmailBuilder) IsPrimary(isPrimary bool) *EmailBuilder

是否为主要邮箱

示例值:true

func (*EmailBuilder) IsPublic

func (builder *EmailBuilder) IsPublic(isPublic bool) *EmailBuilder

是否为公开邮箱

示例值:true

type EmailForUpdate added in v3.2.3

type EmailForUpdate struct {
	Email *string `json:"email,omitempty"` // 邮箱地址

	IsPrimary *bool `json:"is_primary,omitempty"` // 是否为主要邮箱,若有多个邮箱,只能有一个邮箱的「is_primary」为true

	IsPublic *bool `json:"is_public,omitempty"` // 是否为公开邮箱

	EmailUsage *string `json:"email_usage,omitempty"` // 邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得
}

type EmailForUpdateBuilder added in v3.2.3

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

func NewEmailForUpdateBuilder added in v3.2.3

func NewEmailForUpdateBuilder() *EmailForUpdateBuilder

func (*EmailForUpdateBuilder) Build added in v3.2.3

func (builder *EmailForUpdateBuilder) Build() *EmailForUpdate

func (*EmailForUpdateBuilder) Email added in v3.2.3

func (builder *EmailForUpdateBuilder) Email(email string) *EmailForUpdateBuilder

邮箱地址

示例值:1234567@bytedance.com

func (*EmailForUpdateBuilder) EmailUsage added in v3.2.3

func (builder *EmailForUpdateBuilder) EmailUsage(emailUsage string) *EmailForUpdateBuilder

邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得

示例值:work

func (*EmailForUpdateBuilder) IsPrimary added in v3.2.3

func (builder *EmailForUpdateBuilder) IsPrimary(isPrimary bool) *EmailForUpdateBuilder

是否为主要邮箱,若有多个邮箱,只能有一个邮箱的「is_primary」为true

示例值:true

func (*EmailForUpdateBuilder) IsPublic added in v3.2.3

func (builder *EmailForUpdateBuilder) IsPublic(isPublic bool) *EmailForUpdateBuilder

是否为公开邮箱

示例值:true

type EmergencyContact

type EmergencyContact struct {
	Id *string `json:"id,omitempty"` // ID

	Name *PersonName `json:"name,omitempty"` // 姓名

	Relationship *Enum `json:"relationship,omitempty"` // 关系

	PhoneIst []*Phone `json:"phone_ist,omitempty"` // 电话

	PhoneList []*Phone `json:"phone_list,omitempty"` // 电话

	LegalName *string `json:"legal_name,omitempty"` // 法定姓名

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	Address *Address `json:"address,omitempty"` // 联系地址

	Email *Email `json:"email,omitempty"` // 邮箱
}

type EmergencyContactBuilder

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

func NewEmergencyContactBuilder

func NewEmergencyContactBuilder() *EmergencyContactBuilder

func (*EmergencyContactBuilder) Address added in v3.1.3

func (builder *EmergencyContactBuilder) Address(address *Address) *EmergencyContactBuilder

联系地址

示例值:

func (*EmergencyContactBuilder) Build

func (builder *EmergencyContactBuilder) Build() *EmergencyContact

func (*EmergencyContactBuilder) CustomFields

func (builder *EmergencyContactBuilder) CustomFields(customFields []*CustomFieldData) *EmergencyContactBuilder

自定义字段

示例值:

func (*EmergencyContactBuilder) Email added in v3.1.3

func (builder *EmergencyContactBuilder) Email(email *Email) *EmergencyContactBuilder

邮箱

示例值:

func (*EmergencyContactBuilder) Id added in v3.3.4

ID

示例值:123

func (*EmergencyContactBuilder) LegalName

func (builder *EmergencyContactBuilder) LegalName(legalName string) *EmergencyContactBuilder

法定姓名

示例值:张三

func (*EmergencyContactBuilder) Name

姓名

示例值:

func (*EmergencyContactBuilder) PhoneIst

func (builder *EmergencyContactBuilder) PhoneIst(phoneIst []*Phone) *EmergencyContactBuilder

电话

示例值:

func (*EmergencyContactBuilder) PhoneList

func (builder *EmergencyContactBuilder) PhoneList(phoneList []*Phone) *EmergencyContactBuilder

电话

示例值:

func (*EmergencyContactBuilder) Relationship

func (builder *EmergencyContactBuilder) Relationship(relationship *Enum) *EmergencyContactBuilder

关系

示例值:

type EmergencyContactForUpdate added in v3.2.8

type EmergencyContactForUpdate struct {
	LegalName *string `json:"legal_name,omitempty"` // 紧急联系人姓名

	Relationship *string `json:"relationship,omitempty"` // 紧急联系人与本人亲属关系,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "emergency_contact" - custom_api_name = "relationship"

	Phones []*PhoneForUpdate `json:"phones,omitempty"` // 电话

	Address *AddressForUpdate `json:"address,omitempty"` // 地址

	Email *EmailForUpdate `json:"email,omitempty"` // 邮箱
}

type EmergencyContactForUpdateBuilder added in v3.2.8

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

func NewEmergencyContactForUpdateBuilder added in v3.2.8

func NewEmergencyContactForUpdateBuilder() *EmergencyContactForUpdateBuilder

func (*EmergencyContactForUpdateBuilder) Address added in v3.2.8

地址

示例值:

func (*EmergencyContactForUpdateBuilder) Build added in v3.2.8

func (*EmergencyContactForUpdateBuilder) Email added in v3.2.8

邮箱

示例值:

func (*EmergencyContactForUpdateBuilder) LegalName added in v3.2.8

紧急联系人姓名

示例值:王冰

func (*EmergencyContactForUpdateBuilder) Phones added in v3.2.8

电话

示例值:

func (*EmergencyContactForUpdateBuilder) Relationship added in v3.2.8

func (builder *EmergencyContactForUpdateBuilder) Relationship(relationship string) *EmergencyContactForUpdateBuilder

紧急联系人与本人亲属关系,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "emergency_contact" - custom_api_name = "relationship"

示例值:x

type EmpCustomOrgList added in v3.3.1

type EmpCustomOrgList struct {
	CustomOrgList []*CustomOrgList `json:"custom_org_list,omitempty"` // 自定义组织列表

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	StartReason *string `json:"start_reason,omitempty"` // 变动原因

	JobDataCustomOrgId *string `json:"job_data_custom_org_id,omitempty"` // ID

	VersionId *string `json:"version_id,omitempty"` // 版本号

	ObjectApiName *string `json:"object_api_name,omitempty"` // 自定义组织类型

	UserId *string `json:"user_id,omitempty"` // 用户id
}

type EmpCustomOrgListBuilder added in v3.3.1

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

func NewEmpCustomOrgListBuilder added in v3.3.1

func NewEmpCustomOrgListBuilder() *EmpCustomOrgListBuilder

func (*EmpCustomOrgListBuilder) Build added in v3.3.1

func (builder *EmpCustomOrgListBuilder) Build() *EmpCustomOrgList

func (*EmpCustomOrgListBuilder) CustomOrgList added in v3.3.1

func (builder *EmpCustomOrgListBuilder) CustomOrgList(customOrgList []*CustomOrgList) *EmpCustomOrgListBuilder

自定义组织列表

示例值:

func (*EmpCustomOrgListBuilder) EffectiveTime added in v3.3.1

func (builder *EmpCustomOrgListBuilder) EffectiveTime(effectiveTime string) *EmpCustomOrgListBuilder

生效时间

示例值:2024-06-13 00:00:00

func (*EmpCustomOrgListBuilder) JobDataCustomOrgId added in v3.3.1

func (builder *EmpCustomOrgListBuilder) JobDataCustomOrgId(jobDataCustomOrgId string) *EmpCustomOrgListBuilder

ID

示例值:7260357352426782739

func (*EmpCustomOrgListBuilder) ObjectApiName added in v3.3.1

func (builder *EmpCustomOrgListBuilder) ObjectApiName(objectApiName string) *EmpCustomOrgListBuilder

自定义组织类型

示例值:custom_org_03

func (*EmpCustomOrgListBuilder) StartReason added in v3.3.1

func (builder *EmpCustomOrgListBuilder) StartReason(startReason string) *EmpCustomOrgListBuilder

变动原因

示例值:自动打标

func (*EmpCustomOrgListBuilder) UserId added in v3.3.1

func (builder *EmpCustomOrgListBuilder) UserId(userId string) *EmpCustomOrgListBuilder

用户id

示例值:7352797725202581036

func (*EmpCustomOrgListBuilder) VersionId added in v3.3.1

func (builder *EmpCustomOrgListBuilder) VersionId(versionId string) *EmpCustomOrgListBuilder

版本号

示例值:7260357352426782749

type Employee

type Employee struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 类型与 user_id_type 一致;- 请使用 employment_id_v2

	EmploymentIdV2 *string `json:"employment_id_v2,omitempty"` // 雇佣 ID;- 类型与 user_id_type 一致,转换失败时返回空值

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘投递 ID ,详细信息可以通过【获取投递信息】接口查询获得

	PrehireId *string `json:"prehire_id,omitempty"` // 待入职 ID

	EmployeeNumber *string `json:"employee_number,omitempty"` // 工号

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID,详细信息可通过【查询单个人员类型】接口获得

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID;- 可通过 [【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致;- 请使用 department_id_v2

	DepartmentIdV2 *string `json:"department_id_v2,omitempty"` // 部门 ID;- 可通过 [【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致,转换失败时返回空值

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,详细信息可通过【查询单个职务级别】接口获得

	JobLevel *EmployeeJobLevel `json:"job_level,omitempty"` // 职级

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,详细信息可通过【查询单个地点】接口获得

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID,详细信息可通过【查询单个职务序列】接口获得

	JobFamily *EmployeeJobFamily `json:"job_family,omitempty"` // 序列

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID,详细信息可通过【查询单个岗位】接口获得

	Position *Position `json:"position,omitempty"` // 岗位

	JobId *string `json:"job_id,omitempty"` // 职务 ID,详细信息可通过【查询单个职务】接口获得

	Job *Job `json:"job,omitempty"` // 职务

	CompanyId *string `json:"company_id,omitempty"` // 所属公司 ID,详细信息可通过【查询单个公司】接口获得

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,详细信息可通过【查询单个工时制度】接口获得

	Tenure *string `json:"tenure,omitempty"` // 司龄

	SeniorityDate *string `json:"seniority_date,omitempty"` // 资历起算日期

	EffectiveDate *string `json:"effective_date,omitempty"` // 当前雇佣记录的入职日期

	PrimaryEmployment *bool `json:"primary_employment,omitempty"` // 是否是主雇佣信息

	ProbationPeriod *int `json:"probation_period,omitempty"` // 试用期时长(月)

	OnProbation *bool `json:"on_probation,omitempty"` // 是否在试用期中

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期(实际结束日期)

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直接上级的雇佣 ID;- 类型与 user_id_type 一致;- 请使用 direct_manager_id_v2

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级的雇佣 ID; - 类型与 user_id_type 一致; - 请使用 dotted_line_manager_id_v2

	DirectManagerIdV2 *string `json:"direct_manager_id_v2,omitempty"` // 直接上级的雇佣 ID;- 类型与 user_id_type 一致,转换失败返回空值

	DottedLineManagerIdV2 *string `json:"dotted_line_manager_id_v2,omitempty"` // 虚线上级的雇佣 ID;- 类型与 user_id_type 一致,转换失败返回空值

	EmploymentType *Enum `json:"employment_type,omitempty"` // 雇佣类型,枚举值可通过文档【飞书人事枚举常量】雇佣类型(employment_type)枚举定义获得

	EmploymentStatus *Enum `json:"employment_status,omitempty"` // 雇佣状态,枚举值可通过文档【飞书人事枚举常量】雇员状态(employment_status)枚举定义获得

	ExpirationDate *string `json:"expiration_date,omitempty"` // 离职日期,即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

	ReasonForOffboarding *Enum `json:"reason_for_offboarding,omitempty"` // 离职原因,枚举值可通过文档【飞书人事枚举常量】离职原因(reason_for_offboarding)枚举定义部分获得

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱地址

	UserName *string `json:"user_name,omitempty"` // 对应老People user_name字段,仅支持字节租户

	WorkEmailList []*WorkEmail `json:"work_email_list,omitempty"` // 工作邮箱列表,只有当邮箱满足下面所有条件时,才在个人信息页面可见

	CostCenterList []*JobDataCostCenter `json:"cost_center_list,omitempty"` // 成本中心列表

	Rehire *Enum `json:"rehire,omitempty"` // 是否离职重聘

	RehireEmploymentId *string `json:"rehire_employment_id,omitempty"` // 历史雇佣信息 ID,可以通过【查询单个雇佣信息】查询详细信息

	PersonInfo *PersonInfo `json:"person_info,omitempty"` // 基本个人信息

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	NoncompeteStatus *Enum `json:"noncompete_status,omitempty"` // 竞业状态,枚举值包括:1.竞业中;2.未竞业

	PastOffboarding *bool `json:"past_offboarding,omitempty"` // 是否历史离职人员

	RegularEmployeeStartDate *string `json:"regular_employee_start_date,omitempty"` // 转正式日期

	ExternalId *string `json:"external_id,omitempty"` // 外部系统 ID , 可存储租户系统中的员工 ID

	TimesEmployed *int `json:"times_employed,omitempty"` // 入职次数

	RecruitmentType *Enum `json:"recruitment_type,omitempty"` // 招聘来源,枚举值 api_name 可通过【获取自定义字段详情】接口查询

	AvatarUrl *string `json:"avatar_url,omitempty"` // 员工头像

	PrimaryContractId *string `json:"primary_contract_id,omitempty"` // 主合同 ID

	ContractStartDate *string `json:"contract_start_date,omitempty"` // 主合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 主合同到期日期

	ContractExpectedEndDate *string `json:"contract_expected_end_date,omitempty"` // 主合同预计到期日期

	PayGroupId *string `json:"pay_group_id,omitempty"` // 所属薪资组 ID

	AssignmentPayGroupId *string `json:"assignment_pay_group_id,omitempty"` // 所属外派薪资组 ID

	InternationalAssignment *bool `json:"international_assignment,omitempty"` // 是否外派

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历 ID

	Department *BasicDepartment `json:"department,omitempty"` // 部门基本信息

	DirectManager *BasicEmployee `json:"direct_manager,omitempty"` // 直接上级基本信息

	DottedLineManager *BasicEmployee `json:"dotted_line_manager,omitempty"` // 虚线上级基本信息

	TimeZone *string `json:"time_zone,omitempty"` // 时区

	PrimaryInternationalAssignment *InternationalAssignment `json:"primary_international_assignment,omitempty"` // 当前生效的外派记录

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型

	TalentPoolIdList []string `json:"talent_pool_id_list,omitempty"` // 所属人才池

	CustomOrg *string `json:"custom_org,omitempty"` // 自定义组织

	SeniorityAdjustInformationList []*SeniorityAdjustInformation `json:"seniority_adjust_information_list,omitempty"` // 司龄调整信息
}

type EmployeeBt added in v3.3.5

type EmployeeBt struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 类型与 user_id_type 一致

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘投递 ID;- 可通过[获取投递信息](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/get)获取详情

	PrehireId *string `json:"prehire_id,omitempty"` // 待入职 ID;- 可通过[查询单个待入职](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/get)获取详情

	EmployeeNumber *string `json:"employee_number,omitempty"` // 工号

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID;- 可通过[查询单个人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详情

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID;- 可通过[批量查询部门V2](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get) 或者[搜索部门信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search) 获取详情;- 类型与 department_id_type 一致

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID;- 可通过[查询单个职级](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详情

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID;- 可通过 [查询职等](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详情

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID;- 可通过[查询单个地点](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详情

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID;- 可通过[查询单个序列](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详情

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID;- 功能灰度中,有需要请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

	JobId *string `json:"job_id,omitempty"` // 职务 ID;- 可通过[查询单个职务(V2)](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/get)获取详情

	CompanyId *string `json:"company_id,omitempty"` // 所属公司 ID;- 可通过[查询单个公司](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详情

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID;- 可通过[查询单个工时制度](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详情

	Tenure *string `json:"tenure,omitempty"` // 司龄

	SeniorityDate *string `json:"seniority_date,omitempty"` // 司龄起算日期

	EffectiveDate *string `json:"effective_date,omitempty"` // 当前雇佣记录的入职日期

	PrimaryEmployment *bool `json:"primary_employment,omitempty"` // 是否是主雇佣信息

	ProbationPeriod *int `json:"probation_period,omitempty"` // 试用期时长(月)

	OnProbation *bool `json:"on_probation,omitempty"` // 是否在试用期中

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期(实际结束日期)

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直接上级的雇佣 ID;- 类型与 user_id_type 一致;- 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级的雇佣 ID; - 类型与 user_id_type 一致; - 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息

	EmploymentType *Enum `json:"employment_type,omitempty"` // 雇佣类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:employment;  - custom_api_name:employment_type

	EmploymentStatus *Enum `json:"employment_status,omitempty"` // 雇佣状态;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:employment;  - custom_api_name:employment_status

	ExpirationDate *string `json:"expiration_date,omitempty"` // 离职日期;- 即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

	ReasonForOffboarding *Enum `json:"reason_for_offboarding,omitempty"` // 离职原因;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:employment;  - custom_api_name:reason_for_offboarding

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱地址

	UserName *string `json:"user_name,omitempty"` // 对应老People user_name字段,仅支持字节租户

	WorkEmailList []*WorkEmail `json:"work_email_list,omitempty"` // 工作邮箱列表

	CostCenterList []*JobDataCostCenter `json:"cost_center_list,omitempty"` // 成本中心列表

	Rehire *Enum `json:"rehire,omitempty"` // 是否离职重聘;- 枚举如下:;  - no:否;  - yes:是;  - to_be_confirmed:待确定

	RehireEmploymentId *string `json:"rehire_employment_id,omitempty"` // 历史雇佣信息 ID;- 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息;- 类型不跟随 user_id_type

	PersonInfo *PersonInfoBt `json:"person_info,omitempty"` // 基本个人信息

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 请参考[自定义字段说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

	NoncompeteStatus *Enum `json:"noncompete_status,omitempty"` // 竞业状态;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:employment;  - custom_api_name:noncompete_status

	PastOffboarding *bool `json:"past_offboarding,omitempty"` // 是否历史离职人员

	RegularEmployeeStartDate *string `json:"regular_employee_start_date,omitempty"` // 转正式日期

	ExternalId *string `json:"external_id,omitempty"` // 外部系统 ID , 可存储租户系统中的员工 ID

	TimesEmployed *int `json:"times_employed,omitempty"` // 入职次数

	RecruitmentType *Enum `json:"recruitment_type,omitempty"` // 招聘来源;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:employment;  - custom_api_name:recruitment_type

	AvatarUrl *string `json:"avatar_url,omitempty"` // 员工头像(即飞书头像)

	PrimaryContractId *string `json:"primary_contract_id,omitempty"` // 主合同 ID;- 可通过[查询单个合同](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/get)获取详情

	ContractStartDate *string `json:"contract_start_date,omitempty"` // 主合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 主合同到期日期

	ContractExpectedEndDate *string `json:"contract_expected_end_date,omitempty"` // 主合同预计到期日期

	PayGroupId *string `json:"pay_group_id,omitempty"` // 所属薪资组 ID

	AssignmentPayGroupId *string `json:"assignment_pay_group_id,omitempty"` // 所属外派薪资组 ID

	InternationalAssignment *bool `json:"international_assignment,omitempty"` // 是否外派

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历 ID - 可通过[查询工作日历](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详情

	Department *BasicDepartment `json:"department,omitempty"` // 部门基本信息

	DirectManager *BasicEmployee `json:"direct_manager,omitempty"` // 直接上级基本信息

	DottedLineManager *BasicEmployee `json:"dotted_line_manager,omitempty"` // 虚线上级基本信息

	TimeZone *string `json:"time_zone,omitempty"` // 时区

	PrimaryInternationalAssignment *InternationalAssignment `json:"primary_international_assignment,omitempty"` // 当前生效的外派记录

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司;- 可通过[查询单个公司](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详情

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:compensation_type

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:work_shift

	TalentPoolIdList []string `json:"talent_pool_id_list,omitempty"` // 所属人才池

	CustomOrg *string `json:"custom_org,omitempty"` // 自定义组织

	SeniorityAdjustInformationList []*SeniorityAdjustInformation `json:"seniority_adjust_information_list,omitempty"` // 司龄调整信息
}

type EmployeeBtBuilder added in v3.3.5

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

func NewEmployeeBtBuilder added in v3.3.5

func NewEmployeeBtBuilder() *EmployeeBtBuilder

func (*EmployeeBtBuilder) AssignmentPayGroupId added in v3.4.0

func (builder *EmployeeBtBuilder) AssignmentPayGroupId(assignmentPayGroupId string) *EmployeeBtBuilder

所属外派薪资组 ID

示例值:7164286667866966659

func (*EmployeeBtBuilder) AtsApplicationId added in v3.3.5

func (builder *EmployeeBtBuilder) AtsApplicationId(atsApplicationId string) *EmployeeBtBuilder

招聘投递 ID;- 可通过[获取投递信息](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/get)获取详情

示例值:6838119494196871234

func (*EmployeeBtBuilder) Build added in v3.3.5

func (builder *EmployeeBtBuilder) Build() *EmployeeBt

func (*EmployeeBtBuilder) CompanyId added in v3.3.5

func (builder *EmployeeBtBuilder) CompanyId(companyId string) *EmployeeBtBuilder

所属公司 ID;- 可通过[查询单个公司](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) CompensationType added in v3.3.5

func (builder *EmployeeBtBuilder) CompensationType(compensationType *Enum) *EmployeeBtBuilder

薪资类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:compensation_type

示例值:

func (*EmployeeBtBuilder) ContractEndDate added in v3.3.5

func (builder *EmployeeBtBuilder) ContractEndDate(contractEndDate string) *EmployeeBtBuilder

主合同到期日期

示例值:2020-01-01

func (*EmployeeBtBuilder) ContractExpectedEndDate added in v3.3.5

func (builder *EmployeeBtBuilder) ContractExpectedEndDate(contractExpectedEndDate string) *EmployeeBtBuilder

主合同预计到期日期

示例值:2020-01-01

func (*EmployeeBtBuilder) ContractStartDate added in v3.3.5

func (builder *EmployeeBtBuilder) ContractStartDate(contractStartDate string) *EmployeeBtBuilder

主合同开始日期

示例值:2020-01-01

func (*EmployeeBtBuilder) CostCenterList added in v3.3.5

func (builder *EmployeeBtBuilder) CostCenterList(costCenterList []*JobDataCostCenter) *EmployeeBtBuilder

成本中心列表

示例值:

func (*EmployeeBtBuilder) CustomFields added in v3.3.5

func (builder *EmployeeBtBuilder) CustomFields(customFields []*CustomFieldData) *EmployeeBtBuilder

自定义字段;- 请参考[自定义字段说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*EmployeeBtBuilder) CustomOrg added in v3.3.7

func (builder *EmployeeBtBuilder) CustomOrg(customOrg string) *EmployeeBtBuilder

自定义组织

示例值:{"custom_org_02":[{"id":"1","rate":"99"}]}

func (*EmployeeBtBuilder) Department added in v3.3.5

func (builder *EmployeeBtBuilder) Department(department *BasicDepartment) *EmployeeBtBuilder

部门基本信息

示例值:

func (*EmployeeBtBuilder) DepartmentId added in v3.3.5

func (builder *EmployeeBtBuilder) DepartmentId(departmentId string) *EmployeeBtBuilder

部门 ID;- 可通过[批量查询部门V2](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get) 或者[搜索部门信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search) 获取详情;- 类型与 department_id_type 一致

示例值:6893014062142064135

func (*EmployeeBtBuilder) DirectManager added in v3.3.5

func (builder *EmployeeBtBuilder) DirectManager(directManager *BasicEmployee) *EmployeeBtBuilder

直接上级基本信息

示例值:

func (*EmployeeBtBuilder) DirectManagerId added in v3.3.5

func (builder *EmployeeBtBuilder) DirectManagerId(directManagerId string) *EmployeeBtBuilder

直接上级的雇佣 ID;- 类型与 user_id_type 一致;- 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息

示例值:7027024823985411287

func (*EmployeeBtBuilder) DottedLineManager added in v3.3.5

func (builder *EmployeeBtBuilder) DottedLineManager(dottedLineManager *BasicEmployee) *EmployeeBtBuilder

虚线上级基本信息

示例值:

func (*EmployeeBtBuilder) DottedLineManagerId added in v3.3.5

func (builder *EmployeeBtBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeeBtBuilder

虚线上级的雇佣 ID; - 类型与 user_id_type 一致; - 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息

示例值:7027024823985411782

func (*EmployeeBtBuilder) EffectiveDate added in v3.3.5

func (builder *EmployeeBtBuilder) EffectiveDate(effectiveDate string) *EmployeeBtBuilder

当前雇佣记录的入职日期

示例值:2021-03-16

func (*EmployeeBtBuilder) EmailAddress added in v3.3.5

func (builder *EmployeeBtBuilder) EmailAddress(emailAddress string) *EmployeeBtBuilder

邮箱地址

示例值:test@163.com

func (*EmployeeBtBuilder) EmployeeNumber added in v3.3.5

func (builder *EmployeeBtBuilder) EmployeeNumber(employeeNumber string) *EmployeeBtBuilder

工号

示例值:1000000

func (*EmployeeBtBuilder) EmployeeSubtypeId added in v3.3.5

func (builder *EmployeeBtBuilder) EmployeeSubtypeId(employeeSubtypeId string) *EmployeeBtBuilder

人员子类型 ID

示例值:6971090097697521317

func (*EmployeeBtBuilder) EmployeeTypeId added in v3.3.5

func (builder *EmployeeBtBuilder) EmployeeTypeId(employeeTypeId string) *EmployeeBtBuilder

人员类型 ID;- 可通过[查询单个人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详情

示例值:6971090097697521314

func (*EmployeeBtBuilder) EmploymentId added in v3.3.5

func (builder *EmployeeBtBuilder) EmploymentId(employmentId string) *EmployeeBtBuilder

雇佣 ID;- 类型与 user_id_type 一致

示例值:6893014062142064135

func (*EmployeeBtBuilder) EmploymentStatus added in v3.3.5

func (builder *EmployeeBtBuilder) EmploymentStatus(employmentStatus *Enum) *EmployeeBtBuilder

雇佣状态;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:employment; - custom_api_name:employment_status

示例值:

func (*EmployeeBtBuilder) EmploymentType added in v3.3.5

func (builder *EmployeeBtBuilder) EmploymentType(employmentType *Enum) *EmployeeBtBuilder

雇佣类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:employment; - custom_api_name:employment_type

示例值:

func (*EmployeeBtBuilder) ExpirationDate added in v3.3.5

func (builder *EmployeeBtBuilder) ExpirationDate(expirationDate string) *EmployeeBtBuilder

离职日期;- 即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

示例值:2022-08-16

func (*EmployeeBtBuilder) ExternalId added in v3.3.5

func (builder *EmployeeBtBuilder) ExternalId(externalId string) *EmployeeBtBuilder

外部系统 ID , 可存储租户系统中的员工 ID

示例值:10000000

func (*EmployeeBtBuilder) InternationalAssignment added in v3.3.5

func (builder *EmployeeBtBuilder) InternationalAssignment(internationalAssignment bool) *EmployeeBtBuilder

是否外派

示例值:true

func (*EmployeeBtBuilder) JobFamilyId added in v3.3.5

func (builder *EmployeeBtBuilder) JobFamilyId(jobFamilyId string) *EmployeeBtBuilder

序列 ID;- 可通过[查询单个序列](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) JobGradeId added in v3.3.5

func (builder *EmployeeBtBuilder) JobGradeId(jobGradeId string) *EmployeeBtBuilder

职等 ID;- 可通过 [查询职等](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) JobId added in v3.3.5

func (builder *EmployeeBtBuilder) JobId(jobId string) *EmployeeBtBuilder

职务 ID;- 可通过[查询单个职务(V2)](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/get)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) JobLevelId added in v3.3.5

func (builder *EmployeeBtBuilder) JobLevelId(jobLevelId string) *EmployeeBtBuilder

职级 ID;- 可通过[查询单个职级](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) NoncompeteStatus added in v3.3.5

func (builder *EmployeeBtBuilder) NoncompeteStatus(noncompeteStatus *Enum) *EmployeeBtBuilder

竞业状态;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:employment; - custom_api_name:noncompete_status

示例值:

func (*EmployeeBtBuilder) OnProbation added in v3.3.5

func (builder *EmployeeBtBuilder) OnProbation(onProbation bool) *EmployeeBtBuilder

是否在试用期中

示例值:true

func (*EmployeeBtBuilder) PastOffboarding added in v3.3.5

func (builder *EmployeeBtBuilder) PastOffboarding(pastOffboarding bool) *EmployeeBtBuilder

是否历史离职人员

示例值:true

func (*EmployeeBtBuilder) PayGroupId added in v3.3.5

func (builder *EmployeeBtBuilder) PayGroupId(payGroupId string) *EmployeeBtBuilder

所属薪资组 ID

示例值:7164286667866966659

func (*EmployeeBtBuilder) PersonInfo added in v3.3.5

func (builder *EmployeeBtBuilder) PersonInfo(personInfo *PersonInfoBt) *EmployeeBtBuilder

基本个人信息

示例值:

func (*EmployeeBtBuilder) PositionId added in v3.3.5

func (builder *EmployeeBtBuilder) PositionId(positionId string) *EmployeeBtBuilder

岗位 ID;- 功能灰度中,有需要请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

示例值:6893014062142064135

func (*EmployeeBtBuilder) PrehireId added in v3.3.5

func (builder *EmployeeBtBuilder) PrehireId(prehireId string) *EmployeeBtBuilder

待入职 ID;- 可通过[查询单个待入职](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/get)获取详情

示例值:7023239238976141133

func (*EmployeeBtBuilder) PrimaryContractId added in v3.3.5

func (builder *EmployeeBtBuilder) PrimaryContractId(primaryContractId string) *EmployeeBtBuilder

主合同 ID;- 可通过[查询单个合同](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/get)获取详情

示例值:7164286667866966659

func (*EmployeeBtBuilder) PrimaryEmployment added in v3.3.5

func (builder *EmployeeBtBuilder) PrimaryEmployment(primaryEmployment bool) *EmployeeBtBuilder

是否是主雇佣信息

示例值:true

func (*EmployeeBtBuilder) PrimaryInternationalAssignment added in v3.3.5

func (builder *EmployeeBtBuilder) PrimaryInternationalAssignment(primaryInternationalAssignment *InternationalAssignment) *EmployeeBtBuilder

当前生效的外派记录

示例值:

func (*EmployeeBtBuilder) ProbationEndDate added in v3.3.5

func (builder *EmployeeBtBuilder) ProbationEndDate(probationEndDate string) *EmployeeBtBuilder

试用期结束日期(实际结束日期)

示例值:2022-08-01

func (*EmployeeBtBuilder) ProbationPeriod added in v3.3.5

func (builder *EmployeeBtBuilder) ProbationPeriod(probationPeriod int) *EmployeeBtBuilder

试用期时长(月)

示例值:16

func (*EmployeeBtBuilder) ReasonForOffboarding added in v3.3.5

func (builder *EmployeeBtBuilder) ReasonForOffboarding(reasonForOffboarding *Enum) *EmployeeBtBuilder

离职原因;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:employment; - custom_api_name:reason_for_offboarding

示例值:

func (*EmployeeBtBuilder) RecruitmentType added in v3.3.5

func (builder *EmployeeBtBuilder) RecruitmentType(recruitmentType *Enum) *EmployeeBtBuilder

招聘来源;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:employment; - custom_api_name:recruitment_type

示例值:

func (*EmployeeBtBuilder) RegularEmployeeStartDate added in v3.3.5

func (builder *EmployeeBtBuilder) RegularEmployeeStartDate(regularEmployeeStartDate string) *EmployeeBtBuilder

转正式日期

示例值:2020-01-01

func (*EmployeeBtBuilder) Rehire added in v3.3.5

func (builder *EmployeeBtBuilder) Rehire(rehire *Enum) *EmployeeBtBuilder

是否离职重聘;- 枚举如下:; - no:否; - yes:是; - to_be_confirmed:待确定

示例值:

func (*EmployeeBtBuilder) RehireEmploymentId added in v3.3.5

func (builder *EmployeeBtBuilder) RehireEmploymentId(rehireEmploymentId string) *EmployeeBtBuilder

历史雇佣信息 ID;- 可通过[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get) 或 [搜索员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)获取详细信息;- 类型不跟随 user_id_type

示例值:7164286667866966659

func (*EmployeeBtBuilder) SeniorityAdjustInformationList added in v3.4.0

func (builder *EmployeeBtBuilder) SeniorityAdjustInformationList(seniorityAdjustInformationList []*SeniorityAdjustInformation) *EmployeeBtBuilder

司龄调整信息

示例值:

func (*EmployeeBtBuilder) SeniorityDate added in v3.3.5

func (builder *EmployeeBtBuilder) SeniorityDate(seniorityDate string) *EmployeeBtBuilder

司龄起算日期

示例值:2021-03-16

func (*EmployeeBtBuilder) ServiceCompany added in v3.3.5

func (builder *EmployeeBtBuilder) ServiceCompany(serviceCompany string) *EmployeeBtBuilder

任职公司;- 可通过[查询单个公司](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详情

示例值:7174374910734141112

func (*EmployeeBtBuilder) TalentPoolIdList added in v3.3.5

func (builder *EmployeeBtBuilder) TalentPoolIdList(talentPoolIdList []string) *EmployeeBtBuilder

所属人才池

示例值:

func (*EmployeeBtBuilder) Tenure added in v3.3.5

func (builder *EmployeeBtBuilder) Tenure(tenure string) *EmployeeBtBuilder

司龄

示例值:0.01

func (*EmployeeBtBuilder) TimeZone added in v3.3.5

func (builder *EmployeeBtBuilder) TimeZone(timeZone string) *EmployeeBtBuilder

时区

示例值:Asia/Shanghai

func (*EmployeeBtBuilder) TimesEmployed added in v3.3.5

func (builder *EmployeeBtBuilder) TimesEmployed(timesEmployed int) *EmployeeBtBuilder

入职次数

示例值:16

func (*EmployeeBtBuilder) UserName added in v3.3.5

func (builder *EmployeeBtBuilder) UserName(userName string) *EmployeeBtBuilder

对应老People user_name字段,仅支持字节租户

示例值:test

func (*EmployeeBtBuilder) WorkCalendarId added in v3.3.5

func (builder *EmployeeBtBuilder) WorkCalendarId(workCalendarId string) *EmployeeBtBuilder

工作日历 ID - 可通过[查询工作日历](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详情

示例值:7164286667866966659

func (*EmployeeBtBuilder) WorkEmailList added in v3.3.5

func (builder *EmployeeBtBuilder) WorkEmailList(workEmailList []*WorkEmail) *EmployeeBtBuilder

工作邮箱列表

示例值:

func (*EmployeeBtBuilder) WorkLocationId added in v3.3.5

func (builder *EmployeeBtBuilder) WorkLocationId(workLocationId string) *EmployeeBtBuilder

工作地点 ID;- 可通过[查询单个地点](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详情

示例值:6893014062142064135

func (*EmployeeBtBuilder) WorkShift added in v3.3.5

func (builder *EmployeeBtBuilder) WorkShift(workShift *Enum) *EmployeeBtBuilder

排班类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:work_shift

示例值:

func (*EmployeeBtBuilder) WorkingHoursTypeId added in v3.3.5

func (builder *EmployeeBtBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeeBtBuilder

工时制度 ID;- 可通过[查询单个工时制度](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详情

示例值:6893014062142064135

type EmployeeBuilder

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

func NewEmployeeBuilder

func NewEmployeeBuilder() *EmployeeBuilder

func (*EmployeeBuilder) AssignmentPayGroupId added in v3.4.0

func (builder *EmployeeBuilder) AssignmentPayGroupId(assignmentPayGroupId string) *EmployeeBuilder

所属外派薪资组 ID

示例值:7164286667866966659

func (*EmployeeBuilder) AtsApplicationId

func (builder *EmployeeBuilder) AtsApplicationId(atsApplicationId string) *EmployeeBuilder

招聘投递 ID ,详细信息可以通过【获取投递信息】接口查询获得

示例值:6838119494196871234

func (*EmployeeBuilder) Build

func (builder *EmployeeBuilder) Build() *Employee

func (*EmployeeBuilder) CompanyId

func (builder *EmployeeBuilder) CompanyId(companyId string) *EmployeeBuilder

所属公司 ID,详细信息可通过【查询单个公司】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) CompensationType added in v3.2.2

func (builder *EmployeeBuilder) CompensationType(compensationType *Enum) *EmployeeBuilder

薪资类型

示例值:

func (*EmployeeBuilder) ContractEndDate

func (builder *EmployeeBuilder) ContractEndDate(contractEndDate string) *EmployeeBuilder

主合同到期日期

示例值:2020-01-01

func (*EmployeeBuilder) ContractExpectedEndDate

func (builder *EmployeeBuilder) ContractExpectedEndDate(contractExpectedEndDate string) *EmployeeBuilder

主合同预计到期日期

示例值:2020-01-01

func (*EmployeeBuilder) ContractStartDate

func (builder *EmployeeBuilder) ContractStartDate(contractStartDate string) *EmployeeBuilder

主合同开始日期

示例值:2020-01-01

func (*EmployeeBuilder) CostCenterList

func (builder *EmployeeBuilder) CostCenterList(costCenterList []*JobDataCostCenter) *EmployeeBuilder

成本中心列表

示例值:

func (*EmployeeBuilder) CustomFields

func (builder *EmployeeBuilder) CustomFields(customFields []*CustomFieldData) *EmployeeBuilder

自定义字段

示例值:

func (*EmployeeBuilder) CustomOrg added in v3.3.7

func (builder *EmployeeBuilder) CustomOrg(customOrg string) *EmployeeBuilder

自定义组织

示例值:{"custom_org_02":[{"id":"1","rate":"99"}]}

func (*EmployeeBuilder) Department

func (builder *EmployeeBuilder) Department(department *BasicDepartment) *EmployeeBuilder

部门基本信息

示例值:

func (*EmployeeBuilder) DepartmentId

func (builder *EmployeeBuilder) DepartmentId(departmentId string) *EmployeeBuilder

部门 ID;- 可通过 [【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致;- 请使用 department_id_v2

示例值:6893014062142064135

func (*EmployeeBuilder) DepartmentIdV2 added in v3.3.3

func (builder *EmployeeBuilder) DepartmentIdV2(departmentIdV2 string) *EmployeeBuilder

部门 ID;- 可通过 [【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致,转换失败时返回空值

示例值:6893014062142064135

func (*EmployeeBuilder) DirectManager

func (builder *EmployeeBuilder) DirectManager(directManager *BasicEmployee) *EmployeeBuilder

直接上级基本信息

示例值:

func (*EmployeeBuilder) DirectManagerId

func (builder *EmployeeBuilder) DirectManagerId(directManagerId string) *EmployeeBuilder

直接上级的雇佣 ID;- 类型与 user_id_type 一致;- 请使用 direct_manager_id_v2

示例值:7027024823985411287

func (*EmployeeBuilder) DirectManagerIdV2 added in v3.3.3

func (builder *EmployeeBuilder) DirectManagerIdV2(directManagerIdV2 string) *EmployeeBuilder

直接上级的雇佣 ID;- 类型与 user_id_type 一致,转换失败返回空值

示例值:7027024823985411287

func (*EmployeeBuilder) DottedLineManager

func (builder *EmployeeBuilder) DottedLineManager(dottedLineManager *BasicEmployee) *EmployeeBuilder

虚线上级基本信息

示例值:

func (*EmployeeBuilder) DottedLineManagerId

func (builder *EmployeeBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeeBuilder

虚线上级的雇佣 ID; - 类型与 user_id_type 一致; - 请使用 dotted_line_manager_id_v2

示例值:7027024823985411782

func (*EmployeeBuilder) DottedLineManagerIdV2 added in v3.3.3

func (builder *EmployeeBuilder) DottedLineManagerIdV2(dottedLineManagerIdV2 string) *EmployeeBuilder

虚线上级的雇佣 ID;- 类型与 user_id_type 一致,转换失败返回空值

示例值:7027024823985411782

func (*EmployeeBuilder) EffectiveDate

func (builder *EmployeeBuilder) EffectiveDate(effectiveDate string) *EmployeeBuilder

当前雇佣记录的入职日期

示例值:2021-03-16

func (*EmployeeBuilder) EmailAddress

func (builder *EmployeeBuilder) EmailAddress(emailAddress string) *EmployeeBuilder

邮箱地址

示例值:test@163.com

func (*EmployeeBuilder) EmployeeNumber

func (builder *EmployeeBuilder) EmployeeNumber(employeeNumber string) *EmployeeBuilder

工号

示例值:1000000

func (*EmployeeBuilder) EmployeeSubtypeId added in v3.3.4

func (builder *EmployeeBuilder) EmployeeSubtypeId(employeeSubtypeId string) *EmployeeBuilder

人员子类型 ID

示例值:6971090097697521317

func (*EmployeeBuilder) EmployeeTypeId

func (builder *EmployeeBuilder) EmployeeTypeId(employeeTypeId string) *EmployeeBuilder

人员类型 ID,详细信息可通过【查询单个人员类型】接口获得

示例值:6971090097697521314

func (*EmployeeBuilder) EmploymentId

func (builder *EmployeeBuilder) EmploymentId(employmentId string) *EmployeeBuilder

雇佣 ID;- 类型与 user_id_type 一致;- 请使用 employment_id_v2

示例值:6893014062142064135

func (*EmployeeBuilder) EmploymentIdV2 added in v3.3.3

func (builder *EmployeeBuilder) EmploymentIdV2(employmentIdV2 string) *EmployeeBuilder

雇佣 ID;- 类型与 user_id_type 一致,转换失败时返回空值

示例值:6893014062142064135

func (*EmployeeBuilder) EmploymentStatus

func (builder *EmployeeBuilder) EmploymentStatus(employmentStatus *Enum) *EmployeeBuilder

雇佣状态,枚举值可通过文档【飞书人事枚举常量】雇员状态(employment_status)枚举定义获得

示例值:

func (*EmployeeBuilder) EmploymentType

func (builder *EmployeeBuilder) EmploymentType(employmentType *Enum) *EmployeeBuilder

雇佣类型,枚举值可通过文档【飞书人事枚举常量】雇佣类型(employment_type)枚举定义获得

示例值:

func (*EmployeeBuilder) ExpirationDate

func (builder *EmployeeBuilder) ExpirationDate(expirationDate string) *EmployeeBuilder

离职日期,即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

示例值:2022-08-16

func (*EmployeeBuilder) ExternalId

func (builder *EmployeeBuilder) ExternalId(externalId string) *EmployeeBuilder

外部系统 ID , 可存储租户系统中的员工 ID

示例值:10000000

func (*EmployeeBuilder) InternationalAssignment

func (builder *EmployeeBuilder) InternationalAssignment(internationalAssignment bool) *EmployeeBuilder

是否外派

示例值:true

func (*EmployeeBuilder) Job added in v3.2.2

func (builder *EmployeeBuilder) Job(job *Job) *EmployeeBuilder

职务

示例值:

func (*EmployeeBuilder) JobFamily added in v3.2.2

func (builder *EmployeeBuilder) JobFamily(jobFamily *EmployeeJobFamily) *EmployeeBuilder

序列

示例值:

func (*EmployeeBuilder) JobFamilyId

func (builder *EmployeeBuilder) JobFamilyId(jobFamilyId string) *EmployeeBuilder

序列 ID,详细信息可通过【查询单个职务序列】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) JobGradeId

func (builder *EmployeeBuilder) JobGradeId(jobGradeId string) *EmployeeBuilder

职等 ID

示例值:6893014062142064135

func (*EmployeeBuilder) JobId

func (builder *EmployeeBuilder) JobId(jobId string) *EmployeeBuilder

职务 ID,详细信息可通过【查询单个职务】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) JobLevel added in v3.2.2

func (builder *EmployeeBuilder) JobLevel(jobLevel *EmployeeJobLevel) *EmployeeBuilder

职级

示例值:

func (*EmployeeBuilder) JobLevelId

func (builder *EmployeeBuilder) JobLevelId(jobLevelId string) *EmployeeBuilder

职级 ID,详细信息可通过【查询单个职务级别】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) NoncompeteStatus

func (builder *EmployeeBuilder) NoncompeteStatus(noncompeteStatus *Enum) *EmployeeBuilder

竞业状态,枚举值包括:1.竞业中;2.未竞业

示例值:

func (*EmployeeBuilder) OnProbation

func (builder *EmployeeBuilder) OnProbation(onProbation bool) *EmployeeBuilder

是否在试用期中

示例值:true

func (*EmployeeBuilder) PastOffboarding

func (builder *EmployeeBuilder) PastOffboarding(pastOffboarding bool) *EmployeeBuilder

是否历史离职人员

示例值:true

func (*EmployeeBuilder) PayGroupId

func (builder *EmployeeBuilder) PayGroupId(payGroupId string) *EmployeeBuilder

所属薪资组 ID

示例值:7164286667866966659

func (*EmployeeBuilder) PersonInfo

func (builder *EmployeeBuilder) PersonInfo(personInfo *PersonInfo) *EmployeeBuilder

基本个人信息

示例值:

func (*EmployeeBuilder) Position added in v3.2.8

func (builder *EmployeeBuilder) Position(position *Position) *EmployeeBuilder

岗位

示例值:

func (*EmployeeBuilder) PositionId added in v3.2.8

func (builder *EmployeeBuilder) PositionId(positionId string) *EmployeeBuilder

岗位 ID,详细信息可通过【查询单个岗位】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) PrehireId

func (builder *EmployeeBuilder) PrehireId(prehireId string) *EmployeeBuilder

待入职 ID

示例值:7023239238976141133

func (*EmployeeBuilder) PrimaryContractId

func (builder *EmployeeBuilder) PrimaryContractId(primaryContractId string) *EmployeeBuilder

主合同 ID

示例值:7164286667866966659

func (*EmployeeBuilder) PrimaryEmployment

func (builder *EmployeeBuilder) PrimaryEmployment(primaryEmployment bool) *EmployeeBuilder

是否是主雇佣信息

示例值:true

func (*EmployeeBuilder) PrimaryInternationalAssignment added in v3.4.2

func (builder *EmployeeBuilder) PrimaryInternationalAssignment(primaryInternationalAssignment *InternationalAssignment) *EmployeeBuilder

当前生效的外派记录

示例值:

func (*EmployeeBuilder) ProbationEndDate

func (builder *EmployeeBuilder) ProbationEndDate(probationEndDate string) *EmployeeBuilder

试用期结束日期(实际结束日期)

示例值:2022-08-01

func (*EmployeeBuilder) ProbationPeriod

func (builder *EmployeeBuilder) ProbationPeriod(probationPeriod int) *EmployeeBuilder

试用期时长(月)

示例值:16

func (*EmployeeBuilder) ReasonForOffboarding

func (builder *EmployeeBuilder) ReasonForOffboarding(reasonForOffboarding *Enum) *EmployeeBuilder

离职原因,枚举值可通过文档【飞书人事枚举常量】离职原因(reason_for_offboarding)枚举定义部分获得

示例值:

func (*EmployeeBuilder) RecruitmentType

func (builder *EmployeeBuilder) RecruitmentType(recruitmentType *Enum) *EmployeeBuilder

招聘来源,枚举值 api_name 可通过【获取自定义字段详情】接口查询

示例值:

func (*EmployeeBuilder) RegularEmployeeStartDate

func (builder *EmployeeBuilder) RegularEmployeeStartDate(regularEmployeeStartDate string) *EmployeeBuilder

转正式日期

示例值:2020-01-01

func (*EmployeeBuilder) Rehire

func (builder *EmployeeBuilder) Rehire(rehire *Enum) *EmployeeBuilder

是否离职重聘

示例值:

func (*EmployeeBuilder) RehireEmploymentId

func (builder *EmployeeBuilder) RehireEmploymentId(rehireEmploymentId string) *EmployeeBuilder

历史雇佣信息 ID,可以通过【查询单个雇佣信息】查询详细信息

示例值:7164286667866966659

func (*EmployeeBuilder) SeniorityAdjustInformationList added in v3.4.1

func (builder *EmployeeBuilder) SeniorityAdjustInformationList(seniorityAdjustInformationList []*SeniorityAdjustInformation) *EmployeeBuilder

司龄调整信息

示例值:

func (*EmployeeBuilder) SeniorityDate

func (builder *EmployeeBuilder) SeniorityDate(seniorityDate string) *EmployeeBuilder

资历起算日期

示例值:2021-03-16

func (*EmployeeBuilder) ServiceCompany added in v3.2.2

func (builder *EmployeeBuilder) ServiceCompany(serviceCompany string) *EmployeeBuilder

任职公司

示例值:7174374910734141112

func (*EmployeeBuilder) TalentPoolIdList added in v3.4.2

func (builder *EmployeeBuilder) TalentPoolIdList(talentPoolIdList []string) *EmployeeBuilder

所属人才池

示例值:

func (*EmployeeBuilder) Tenure

func (builder *EmployeeBuilder) Tenure(tenure string) *EmployeeBuilder

司龄

示例值:0.01

func (*EmployeeBuilder) TimeZone

func (builder *EmployeeBuilder) TimeZone(timeZone string) *EmployeeBuilder

时区

示例值:Asia/Shanghai

func (*EmployeeBuilder) TimesEmployed

func (builder *EmployeeBuilder) TimesEmployed(timesEmployed int) *EmployeeBuilder

入职次数

示例值:16

func (*EmployeeBuilder) UserName added in v3.4.2

func (builder *EmployeeBuilder) UserName(userName string) *EmployeeBuilder

对应老People user_name字段,仅支持字节租户

示例值:test

func (*EmployeeBuilder) WorkCalendarId

func (builder *EmployeeBuilder) WorkCalendarId(workCalendarId string) *EmployeeBuilder

工作日历 ID

示例值:7164286667866966659

func (*EmployeeBuilder) WorkEmailList

func (builder *EmployeeBuilder) WorkEmailList(workEmailList []*WorkEmail) *EmployeeBuilder

工作邮箱列表,只有当邮箱满足下面所有条件时,才在个人信息页面可见

示例值:

func (*EmployeeBuilder) WorkLocationId

func (builder *EmployeeBuilder) WorkLocationId(workLocationId string) *EmployeeBuilder

工作地点 ID,详细信息可通过【查询单个地点】接口获得

示例值:6893014062142064135

func (*EmployeeBuilder) WorkShift added in v3.2.2

func (builder *EmployeeBuilder) WorkShift(workShift *Enum) *EmployeeBuilder

排班类型

示例值:

func (*EmployeeBuilder) WorkingHoursTypeId

func (builder *EmployeeBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeeBuilder

工时制度 ID,详细信息可通过【查询单个工时制度】接口获得

示例值:6893014062142064135

type EmployeeDomainEventData added in v3.2.2

type EmployeeDomainEventData struct {
	Id *string `json:"id,omitempty"` // 变更实体的ID

	Entity *string `json:"entity,omitempty"` // 变更实体标识,ObjAPIName

	AggEntity *string `json:"agg_entity,omitempty"` // 聚合实体标识,父对象 ObjAPIName

	AggEntityId *string `json:"agg_entity_id,omitempty"` // 聚合实体ID 父对象ID

	OptType *int `json:"opt_type,omitempty"` // 操作类型

	Fields []string `json:"fields,omitempty"` // 字段标识,ApiName
}

type EmployeeDomainEventDataBuilder added in v3.2.2

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

func NewEmployeeDomainEventDataBuilder added in v3.2.2

func NewEmployeeDomainEventDataBuilder() *EmployeeDomainEventDataBuilder

func (*EmployeeDomainEventDataBuilder) AggEntity added in v3.2.2

聚合实体标识,父对象 ObjAPIName

示例值:person

func (*EmployeeDomainEventDataBuilder) AggEntityId added in v3.2.2

func (builder *EmployeeDomainEventDataBuilder) AggEntityId(aggEntityId string) *EmployeeDomainEventDataBuilder

聚合实体ID 父对象ID

示例值:7291273149417948716

func (*EmployeeDomainEventDataBuilder) Build added in v3.2.2

func (*EmployeeDomainEventDataBuilder) Entity added in v3.2.2

变更实体标识,ObjAPIName

示例值:email

func (*EmployeeDomainEventDataBuilder) Fields added in v3.2.2

字段标识,ApiName

示例值:

func (*EmployeeDomainEventDataBuilder) Id added in v3.2.2

变更实体的ID

示例值:7291573441955235372

func (*EmployeeDomainEventDataBuilder) OptType added in v3.2.2

操作类型

示例值:1

type EmployeeInternationalAssignment

type EmployeeInternationalAssignment struct {
	EmploymentId *string `json:"employment_id,omitempty"` // Employment ID

	InternationalAssignments []*InternationalAssignmentV2 `json:"international_assignments,omitempty"` // 派驻信息列表
}

type EmployeeInternationalAssignmentBuilder

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

func NewEmployeeInternationalAssignmentBuilder

func NewEmployeeInternationalAssignmentBuilder() *EmployeeInternationalAssignmentBuilder

func (*EmployeeInternationalAssignmentBuilder) Build

func (*EmployeeInternationalAssignmentBuilder) EmploymentId

Employment ID

示例值:6893014062142064135

func (*EmployeeInternationalAssignmentBuilder) InternationalAssignments

func (builder *EmployeeInternationalAssignmentBuilder) InternationalAssignments(internationalAssignments []*InternationalAssignmentV2) *EmployeeInternationalAssignmentBuilder

派驻信息列表

示例值:

type EmployeeJobData

type EmployeeJobData struct {
	EmploymentId *string `json:"employment_id,omitempty"` // Employment ID

	JobDatas []*JobData `json:"job_datas,omitempty"` // 实体在 CoreHR 内部的唯一键
}

type EmployeeJobDataBuilder

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

func NewEmployeeJobDataBuilder

func NewEmployeeJobDataBuilder() *EmployeeJobDataBuilder

func (*EmployeeJobDataBuilder) Build

func (builder *EmployeeJobDataBuilder) Build() *EmployeeJobData

func (*EmployeeJobDataBuilder) EmploymentId

func (builder *EmployeeJobDataBuilder) EmploymentId(employmentId string) *EmployeeJobDataBuilder

Employment ID

示例值:6893014062142064135

func (*EmployeeJobDataBuilder) JobDatas

func (builder *EmployeeJobDataBuilder) JobDatas(jobDatas []*JobData) *EmployeeJobDataBuilder

实体在 CoreHR 内部的唯一键

示例值:6890452208593372679

type EmployeeJobFamily added in v3.2.9

type EmployeeJobFamily struct {
	Id *string `json:"id,omitempty"` // 序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	Name []*I18n `json:"name,omitempty"` // 名称

	Active *bool `json:"active,omitempty"` // 是否启用

	ParentId *string `json:"parent_id,omitempty"` // 上级序列,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	Code *string `json:"code,omitempty"` // 编码

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type EmployeeJobFamilyBuilder added in v3.2.9

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

func NewEmployeeJobFamilyBuilder added in v3.2.9

func NewEmployeeJobFamilyBuilder() *EmployeeJobFamilyBuilder

func (*EmployeeJobFamilyBuilder) Active added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) Active(active bool) *EmployeeJobFamilyBuilder

是否启用

示例值:true

func (*EmployeeJobFamilyBuilder) Build added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) Build() *EmployeeJobFamily

func (*EmployeeJobFamilyBuilder) Code added in v3.2.9

编码

示例值:123456

func (*EmployeeJobFamilyBuilder) CustomFields added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) CustomFields(customFields []*CustomFieldData) *EmployeeJobFamilyBuilder

自定义字段

示例值:

func (*EmployeeJobFamilyBuilder) EffectiveTime added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) EffectiveTime(effectiveTime string) *EmployeeJobFamilyBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*EmployeeJobFamilyBuilder) ExpirationTime added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) ExpirationTime(expirationTime string) *EmployeeJobFamilyBuilder

失效时间

示例值:2020-05-02 00:00:00

func (*EmployeeJobFamilyBuilder) Id added in v3.2.9

序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:4698019107896524633

func (*EmployeeJobFamilyBuilder) Name added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) Name(name []*I18n) *EmployeeJobFamilyBuilder

名称

示例值:

func (*EmployeeJobFamilyBuilder) ParentId added in v3.2.9

func (builder *EmployeeJobFamilyBuilder) ParentId(parentId string) *EmployeeJobFamilyBuilder

上级序列,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:4698020757495316313

type EmployeeJobLevel added in v3.2.9

type EmployeeJobLevel struct {
	Id *string `json:"id,omitempty"` // 职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

	LevelOrder *int `json:"level_order,omitempty"` // 职级数值

	Code *string `json:"code,omitempty"` // 编码

	Name []*I18n `json:"name,omitempty"` // 名称

	Description []*I18n `json:"description,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 启用

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type EmployeeJobLevelBuilder added in v3.2.9

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

func NewEmployeeJobLevelBuilder added in v3.2.9

func NewEmployeeJobLevelBuilder() *EmployeeJobLevelBuilder

func (*EmployeeJobLevelBuilder) Active added in v3.2.9

func (builder *EmployeeJobLevelBuilder) Active(active bool) *EmployeeJobLevelBuilder

启用

示例值:true

func (*EmployeeJobLevelBuilder) Build added in v3.2.9

func (builder *EmployeeJobLevelBuilder) Build() *EmployeeJobLevel

func (*EmployeeJobLevelBuilder) Code added in v3.2.9

编码

示例值:VQzo/BSonp8l6PmcZ+VlDhkd2595LMkhyBAGX6HAlCY=

func (*EmployeeJobLevelBuilder) CustomFields added in v3.2.9

func (builder *EmployeeJobLevelBuilder) CustomFields(customFields []*CustomFieldData) *EmployeeJobLevelBuilder

自定义字段

示例值:

func (*EmployeeJobLevelBuilder) Description added in v3.2.9

func (builder *EmployeeJobLevelBuilder) Description(description []*I18n) *EmployeeJobLevelBuilder

描述

示例值:

func (*EmployeeJobLevelBuilder) Id added in v3.2.9

职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

示例值:4692446793125560154

func (*EmployeeJobLevelBuilder) LevelOrder added in v3.2.9

func (builder *EmployeeJobLevelBuilder) LevelOrder(levelOrder int) *EmployeeJobLevelBuilder

职级数值

示例值:9999

func (*EmployeeJobLevelBuilder) Name added in v3.2.9

func (builder *EmployeeJobLevelBuilder) Name(name []*I18n) *EmployeeJobLevelBuilder

名称

示例值:

type EmployeesAdditionalJob added in v3.2.8

type EmployeesAdditionalJob struct {
	Id *string `json:"id,omitempty"` // 兼职记录ID

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID,可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;类型与department_id_type一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID,可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	StartDate *string `json:"start_date,omitempty"` // 兼职开始日期

	EndDate *string `json:"end_date,omitempty"` // 兼职结束日期

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司,可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

	WeeklyWorkingHours *string `json:"weekly_working_hours,omitempty"` // 周工作时长【0~168】

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID
}

type EmployeesAdditionalJobBatchReqDate added in v3.2.8

type EmployeesAdditionalJobBatchReqDate struct {
	Start *string `json:"start,omitempty"` // 开始

	End *string `json:"end,omitempty"` // 结束
}

type EmployeesAdditionalJobBatchReqDateBuilder added in v3.2.8

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

func NewEmployeesAdditionalJobBatchReqDateBuilder added in v3.2.8

func NewEmployeesAdditionalJobBatchReqDateBuilder() *EmployeesAdditionalJobBatchReqDateBuilder

func (*EmployeesAdditionalJobBatchReqDateBuilder) Build added in v3.2.8

func (*EmployeesAdditionalJobBatchReqDateBuilder) End added in v3.2.8

结束

示例值:2024-01-01

func (*EmployeesAdditionalJobBatchReqDateBuilder) Start added in v3.2.8

开始

示例值:2024-01-01

type EmployeesAdditionalJobBuilder added in v3.2.8

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

func NewEmployeesAdditionalJobBuilder added in v3.2.8

func NewEmployeesAdditionalJobBuilder() *EmployeesAdditionalJobBuilder

func (*EmployeesAdditionalJobBuilder) Build added in v3.2.8

func (*EmployeesAdditionalJobBuilder) CompensationType added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) CompensationType(compensationType *Enum) *EmployeesAdditionalJobBuilder

薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

示例值:

func (*EmployeesAdditionalJobBuilder) DepartmentId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) DepartmentId(departmentId string) *EmployeesAdditionalJobBuilder

部门 ID,可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;类型与department_id_type一致

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) DirectManagerId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) DirectManagerId(directManagerId string) *EmployeesAdditionalJobBuilder

直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) DottedLineManagerId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesAdditionalJobBuilder

虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) EmployeeSubtypeId added in v3.3.5

func (builder *EmployeesAdditionalJobBuilder) EmployeeSubtypeId(employeeSubtypeId string) *EmployeesAdditionalJobBuilder

人员子类型 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) EmployeeTypeId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) EmployeeTypeId(employeeTypeId string) *EmployeesAdditionalJobBuilder

人员类型 ID,可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) EmploymentId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) EmploymentId(employmentId string) *EmployeesAdditionalJobBuilder

雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6893014062142064135

func (*EmployeesAdditionalJobBuilder) EndDate added in v3.2.8

兼职结束日期

示例值:2020-05-02

func (*EmployeesAdditionalJobBuilder) Id added in v3.2.8

兼职记录ID

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) JobFamilyId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) JobFamilyId(jobFamilyId string) *EmployeesAdditionalJobBuilder

序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:1245678

func (*EmployeesAdditionalJobBuilder) JobId added in v3.2.8

职务 ID,可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) JobLevelId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) JobLevelId(jobLevelId string) *EmployeesAdditionalJobBuilder

职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) PositionId added in v3.3.4

func (builder *EmployeesAdditionalJobBuilder) PositionId(positionId string) *EmployeesAdditionalJobBuilder

岗位 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) ServiceCompany added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) ServiceCompany(serviceCompany string) *EmployeesAdditionalJobBuilder

任职公司,可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) StartDate added in v3.2.8

兼职开始日期

示例值:2020-05-01

func (*EmployeesAdditionalJobBuilder) WeeklyWorkingHours added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) WeeklyWorkingHours(weeklyWorkingHours string) *EmployeesAdditionalJobBuilder

周工作时长【0~168】

示例值:5

func (*EmployeesAdditionalJobBuilder) WorkCalendarId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) WorkCalendarId(workCalendarId string) *EmployeesAdditionalJobBuilder

工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobBuilder) WorkLocationId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) WorkLocationId(workLocationId string) *EmployeesAdditionalJobBuilder

工作地点 ID,可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobBuilder) WorkShift added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) WorkShift(workShift *Enum) *EmployeesAdditionalJobBuilder

排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

示例值:

func (*EmployeesAdditionalJobBuilder) WorkingHoursTypeId added in v3.2.8

func (builder *EmployeesAdditionalJobBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeesAdditionalJobBuilder

工时制度 ID,可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

示例值:6890452208593372679

type EmployeesAdditionalJobEdit added in v3.2.8

type EmployeesAdditionalJobEdit struct {
	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID,可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID,可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,可通过[【批量查询职级】](https://open.feishu.cn/document//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID,可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	StartDate *string `json:"start_date,omitempty"` // 兼职开始日期

	EndDate *string `json:"end_date,omitempty"` // 兼职结束日期,不可清空

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司,可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息

	WeeklyWorkingHours *string `json:"weekly_working_hours,omitempty"` // 周工作时长【0~168】

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID
}

type EmployeesAdditionalJobEditBuilder added in v3.2.8

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

func NewEmployeesAdditionalJobEditBuilder added in v3.2.8

func NewEmployeesAdditionalJobEditBuilder() *EmployeesAdditionalJobEditBuilder

func (*EmployeesAdditionalJobEditBuilder) Build added in v3.2.8

func (*EmployeesAdditionalJobEditBuilder) CompensationType added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) CompensationType(compensationType *Enum) *EmployeesAdditionalJobEditBuilder

薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

示例值:

func (*EmployeesAdditionalJobEditBuilder) DepartmentId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) DepartmentId(departmentId string) *EmployeesAdditionalJobEditBuilder

部门 ID,可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致

示例值:6890452208593372679

func (*EmployeesAdditionalJobEditBuilder) DirectManagerId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) DirectManagerId(directManagerId string) *EmployeesAdditionalJobEditBuilder

直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) DottedLineManagerId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesAdditionalJobEditBuilder

虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) EmployeeSubtypeId added in v3.3.5

func (builder *EmployeesAdditionalJobEditBuilder) EmployeeSubtypeId(employeeSubtypeId string) *EmployeesAdditionalJobEditBuilder

人员子类型 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) EmployeeTypeId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) EmployeeTypeId(employeeTypeId string) *EmployeesAdditionalJobEditBuilder

人员类型 ID,可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取

示例值:6890452208593372679

func (*EmployeesAdditionalJobEditBuilder) EmploymentId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) EmploymentId(employmentId string) *EmployeesAdditionalJobEditBuilder

雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6893014062142064135

func (*EmployeesAdditionalJobEditBuilder) EndDate added in v3.2.8

兼职结束日期,不可清空

示例值:2020-05-02

func (*EmployeesAdditionalJobEditBuilder) JobFamilyId added in v3.2.8

序列 ID,可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息

示例值:1245678

func (*EmployeesAdditionalJobEditBuilder) JobId added in v3.2.8

职务 ID,可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobEditBuilder) JobLevelId added in v3.2.8

职级 ID,可通过[【批量查询职级】](https://open.feishu.cn/document//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobEditBuilder) PositionId added in v3.3.5

岗位 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) ServiceCompany added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) ServiceCompany(serviceCompany string) *EmployeesAdditionalJobEditBuilder

任职公司,可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) StartDate added in v3.2.8

兼职开始日期

示例值:2020-05-01

func (*EmployeesAdditionalJobEditBuilder) WeeklyWorkingHours added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) WeeklyWorkingHours(weeklyWorkingHours string) *EmployeesAdditionalJobEditBuilder

周工作时长【0~168】

示例值:5

func (*EmployeesAdditionalJobEditBuilder) WorkCalendarId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) WorkCalendarId(workCalendarId string) *EmployeesAdditionalJobEditBuilder

工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobEditBuilder) WorkLocationId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) WorkLocationId(workLocationId string) *EmployeesAdditionalJobEditBuilder

工作地点 ID,可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobEditBuilder) WorkShift added in v3.2.8

排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

示例值:

func (*EmployeesAdditionalJobEditBuilder) WorkingHoursTypeId added in v3.2.8

func (builder *EmployeesAdditionalJobEditBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeesAdditionalJobEditBuilder

工时制度 ID,可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息

示例值:6890452208593372679

type EmployeesAdditionalJobWriteResp added in v3.2.9

type EmployeesAdditionalJobWriteResp struct {
	Id *string `json:"id,omitempty"` // 兼职记录ID

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID,可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;类型与department_id_type一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID,可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	StartDate *string `json:"start_date,omitempty"` // 兼职开始日期

	EndDate *string `json:"end_date,omitempty"` // 兼职结束日期

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司,可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

	WeeklyWorkingHours *string `json:"weekly_working_hours,omitempty"` // 周工作时长【0~168】

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID
}

type EmployeesAdditionalJobWriteRespBuilder added in v3.2.9

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

func NewEmployeesAdditionalJobWriteRespBuilder added in v3.2.9

func NewEmployeesAdditionalJobWriteRespBuilder() *EmployeesAdditionalJobWriteRespBuilder

func (*EmployeesAdditionalJobWriteRespBuilder) Build added in v3.2.9

func (*EmployeesAdditionalJobWriteRespBuilder) CompensationType added in v3.2.9

func (builder *EmployeesAdditionalJobWriteRespBuilder) CompensationType(compensationType *Enum) *EmployeesAdditionalJobWriteRespBuilder

薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "compensation_type"

示例值:

func (*EmployeesAdditionalJobWriteRespBuilder) DepartmentId added in v3.2.9

部门 ID,可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;类型与department_id_type一致

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) DirectManagerId added in v3.2.9

直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) DottedLineManagerId added in v3.2.9

func (builder *EmployeesAdditionalJobWriteRespBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesAdditionalJobWriteRespBuilder

虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) EmployeeSubtypeId added in v3.3.5

func (builder *EmployeesAdditionalJobWriteRespBuilder) EmployeeSubtypeId(employeeSubtypeId string) *EmployeesAdditionalJobWriteRespBuilder

人员子类型 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) EmployeeTypeId added in v3.2.9

人员类型 ID,可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) EmploymentId added in v3.2.9

雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致

示例值:6893014062142064135

func (*EmployeesAdditionalJobWriteRespBuilder) EndDate added in v3.2.9

兼职结束日期

示例值:2020-05-02

func (*EmployeesAdditionalJobWriteRespBuilder) Id added in v3.2.9

兼职记录ID

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) JobFamilyId added in v3.2.9

序列 ID,可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:1245678

func (*EmployeesAdditionalJobWriteRespBuilder) JobId added in v3.2.9

职务 ID,可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) JobLevelId added in v3.2.9

职级 ID,可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) PositionId added in v3.3.5

岗位 ID

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) ServiceCompany added in v3.2.9

任职公司,可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) StartDate added in v3.2.9

兼职开始日期

示例值:2020-05-01

func (*EmployeesAdditionalJobWriteRespBuilder) WeeklyWorkingHours added in v3.2.9

func (builder *EmployeesAdditionalJobWriteRespBuilder) WeeklyWorkingHours(weeklyWorkingHours string) *EmployeesAdditionalJobWriteRespBuilder

周工作时长【0~168】

示例值:5

func (*EmployeesAdditionalJobWriteRespBuilder) WorkCalendarId added in v3.2.9

工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

示例值:6890452208593372680

func (*EmployeesAdditionalJobWriteRespBuilder) WorkLocationId added in v3.2.9

工作地点 ID,可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

示例值:6890452208593372679

func (*EmployeesAdditionalJobWriteRespBuilder) WorkShift added in v3.2.9

排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;- object_api_name = "job_data";- custom_api_name = "work_shift"

示例值:

func (*EmployeesAdditionalJobWriteRespBuilder) WorkingHoursTypeId added in v3.2.9

func (builder *EmployeesAdditionalJobWriteRespBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeesAdditionalJobWriteRespBuilder

工时制度 ID,可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

示例值:6890452208593372679

type EmployeesInternationalAssignment added in v3.3.4

type EmployeesInternationalAssignment struct {
	WorkLocationId *string `json:"work_location_id,omitempty"` // 外派工作地点 ID;  - 可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

	ServiceCompany *string `json:"service_company,omitempty"` // 外派任职公司 ID;- 可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:work_shift

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度ID;-  可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型ID;- 可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

	WeeklyWorkingHoursV2 *float64 `json:"weekly_working_hours_v2,omitempty"` // 周工作时长

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID;- 可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID;- 可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID;- 可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID;- 可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详细信息

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型; - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:compensation_type

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

	InternationalAssignmentReason *string `json:"international_assignment_reason,omitempty"` // 外派原因说明

	Description *string `json:"description,omitempty"` // 备注

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期;- 格式:yyyy-mm-dd

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // 外派状态;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:international_assignment;  - custom_api_name:international_assignment_status

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // 外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:international_assignment;  - custom_api_name:international_assignment_type

	EffectiveTime *string `json:"effective_time,omitempty"` // 开始日期;- 格式:yyyy-mm-dd

	ExpirationTime *string `json:"expiration_time,omitempty"` // 结束日期;- 格式:yyyy-mm-dd;- 在外派未结束时,该值默认为 9999-12-31

	Id *string `json:"id,omitempty"` // 外派ID
}

type EmployeesInternationalAssignmentBuilder added in v3.3.4

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

func NewEmployeesInternationalAssignmentBuilder added in v3.3.4

func NewEmployeesInternationalAssignmentBuilder() *EmployeesInternationalAssignmentBuilder

func (*EmployeesInternationalAssignmentBuilder) Build added in v3.3.4

func (*EmployeesInternationalAssignmentBuilder) CompensationType added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) CompensationType(compensationType *Enum) *EmployeesInternationalAssignmentBuilder

薪资类型; - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:compensation_type

示例值:

func (*EmployeesInternationalAssignmentBuilder) CustomFields added in v3.3.4

自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*EmployeesInternationalAssignmentBuilder) DepartmentId added in v3.3.4

部门 ID;- 可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) Description added in v3.3.4

备注

示例值:xxx 项目

func (*EmployeesInternationalAssignmentBuilder) DirectManagerId added in v3.3.4

直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) DottedLineManagerId added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesInternationalAssignmentBuilder

虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) EffectiveTime added in v3.3.4

开始日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentBuilder) EmployeeTypeId added in v3.3.4

人员类型ID;- 可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) EmploymentId added in v3.3.4

雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) ExpirationTime added in v3.3.4

结束日期;- 格式:yyyy-mm-dd;- 在外派未结束时,该值默认为 9999-12-31

示例值:2024-01-02

func (*EmployeesInternationalAssignmentBuilder) Id added in v3.3.4

外派ID

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) InternationalAssignmentExpectedEndDate added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *EmployeesInternationalAssignmentBuilder

预计结束日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentBuilder) InternationalAssignmentReason added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) InternationalAssignmentReason(internationalAssignmentReason string) *EmployeesInternationalAssignmentBuilder

外派原因说明

示例值:xxx 项目派遣

func (*EmployeesInternationalAssignmentBuilder) InternationalAssignmentStatus added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *EmployeesInternationalAssignmentBuilder

外派状态;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:international_assignment; - custom_api_name:international_assignment_status

示例值:

func (*EmployeesInternationalAssignmentBuilder) InternationalAssignmentType added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) InternationalAssignmentType(internationalAssignmentType *Enum) *EmployeesInternationalAssignmentBuilder

外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:international_assignment; - custom_api_name:international_assignment_type

示例值:

func (*EmployeesInternationalAssignmentBuilder) JobFamilyId added in v3.3.4

序列 ID;- 可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) JobGradeId added in v3.3.4

职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) JobId added in v3.3.4

职务 ID;- 可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) JobLevelId added in v3.3.4

职级 ID;- 可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) PositionId added in v3.3.4

岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) ServiceCompany added in v3.3.4

外派任职公司 ID;- 可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) WeeklyWorkingHoursV2 added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) WeeklyWorkingHoursV2(weeklyWorkingHoursV2 float64) *EmployeesInternationalAssignmentBuilder

周工作时长

示例值:8

func (*EmployeesInternationalAssignmentBuilder) WorkCalendarId added in v3.3.4

工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) WorkLocationId added in v3.3.4

外派工作地点 ID; - 可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentBuilder) WorkShift added in v3.3.4

排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:work_shift

示例值:

func (*EmployeesInternationalAssignmentBuilder) WorkingHoursTypeId added in v3.3.4

func (builder *EmployeesInternationalAssignmentBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeesInternationalAssignmentBuilder

工时制度ID;- 可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

示例值:7127921432117937708

type EmployeesInternationalAssignmentReq added in v3.3.4

type EmployeesInternationalAssignmentReq struct {
	WorkLocationId *string `json:"work_location_id,omitempty"` // 外派工作地点 ID;  - 可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取

	ServiceCompany *string `json:"service_company,omitempty"` // 外派任职公司 ID;- 可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取

	WorkShift *string `json:"work_shift,omitempty"` // 排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:work_shift

	WeeklyWorkingHoursV2 *float64 `json:"weekly_working_hours_v2,omitempty"` // 周工作时长;- 限制两位小数

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度ID;-  可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型ID;- 可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID;- 可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取;- 类型与 department_id_type 一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID;- 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID;- 可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID;- 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取

	CompensationType *string `json:"compensation_type,omitempty"` // 薪资类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:compensation_type

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

	InternationalAssignmentReason *string `json:"international_assignment_reason,omitempty"` // 外派原因说明

	Description *string `json:"description,omitempty"` // 备注

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期;- 格式:yyyy-mm-dd

	InternationalAssignmentType *string `json:"international_assignment_type,omitempty"` // 外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:international_assignment;  - custom_api_name:international_assignment_type

	EffectiveTime *string `json:"effective_time,omitempty"` // 开始日期;- 格式:yyyy-mm-dd

	ExpirationTime *string `json:"expiration_time,omitempty"` // 结束日期;- 格式:yyyy-mm-dd
}

type EmployeesInternationalAssignmentReqBuilder added in v3.3.4

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

func NewEmployeesInternationalAssignmentReqBuilder added in v3.3.4

func NewEmployeesInternationalAssignmentReqBuilder() *EmployeesInternationalAssignmentReqBuilder

func (*EmployeesInternationalAssignmentReqBuilder) Build added in v3.3.4

func (*EmployeesInternationalAssignmentReqBuilder) CompensationType added in v3.3.4

薪资类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:compensation_type

示例值:daily

func (*EmployeesInternationalAssignmentReqBuilder) CustomFields added in v3.3.4

自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*EmployeesInternationalAssignmentReqBuilder) DepartmentId added in v3.3.4

部门 ID;- 可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取;- 类型与 department_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) Description added in v3.3.4

备注

示例值:xxx 项目

func (*EmployeesInternationalAssignmentReqBuilder) DirectManagerId added in v3.3.4

直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) DottedLineManagerId added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesInternationalAssignmentReqBuilder

虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) EffectiveTime added in v3.3.4

开始日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentReqBuilder) EmployeeTypeId added in v3.3.4

人员类型ID;- 可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) EmploymentId added in v3.3.4

雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) ExpirationTime added in v3.3.4

结束日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentExpectedEndDate added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *EmployeesInternationalAssignmentReqBuilder

预计结束日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentReason added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentReason(internationalAssignmentReason string) *EmployeesInternationalAssignmentReqBuilder

外派原因说明

示例值:xxx 项目派遣

func (*EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentType added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) InternationalAssignmentType(internationalAssignmentType string) *EmployeesInternationalAssignmentReqBuilder

外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:international_assignment; - custom_api_name:international_assignment_type

示例值:global_assignment

func (*EmployeesInternationalAssignmentReqBuilder) JobFamilyId added in v3.3.4

序列 ID;- 可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) JobGradeId added in v3.3.4

职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) JobId added in v3.3.4

职务 ID;- 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) JobLevelId added in v3.3.4

职级 ID;- 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) PositionId added in v3.3.4

岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) ServiceCompany added in v3.3.4

外派任职公司 ID;- 可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) WeeklyWorkingHoursV2 added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) WeeklyWorkingHoursV2(weeklyWorkingHoursV2 float64) *EmployeesInternationalAssignmentReqBuilder

周工作时长;- 限制两位小数

示例值:8

func (*EmployeesInternationalAssignmentReqBuilder) WorkCalendarId added in v3.3.4

工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) WorkLocationId added in v3.3.4

外派工作地点 ID; - 可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentReqBuilder) WorkShift added in v3.3.4

排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:work_shift

示例值:work_shift

func (*EmployeesInternationalAssignmentReqBuilder) WorkingHoursTypeId added in v3.3.4

func (builder *EmployeesInternationalAssignmentReqBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmployeesInternationalAssignmentReqBuilder

工时制度ID;- 可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取

示例值:7127921432117937708

type EmployeesInternationalAssignmentResp added in v3.3.4

type EmployeesInternationalAssignmentResp struct {
	WorkLocationId *string `json:"work_location_id,omitempty"` // 外派工作地点 ID;  - 可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

	ServiceCompany *string `json:"service_company,omitempty"` // 外派任职公司 ID;- 可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:work_shift

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度ID;-  可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型ID;- 可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

	WeeklyWorkingHoursV2 *float64 `json:"weekly_working_hours_v2,omitempty"` // 周工作时长

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID;- 可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致

	JobId *string `json:"job_id,omitempty"` // 职务 ID;- 可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID;- 可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID;- 可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详细信息

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型; - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:compensation_type

	DirectManagerId *string `json:"direct_manager_id,omitempty"` // 直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	WorkCalendarId *string `json:"work_calendar_id,omitempty"` // 工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

	InternationalAssignmentReason *string `json:"international_assignment_reason,omitempty"` // 外派原因说明

	Description *string `json:"description,omitempty"` // 备注

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期;- 格式:yyyy-mm-dd

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // 外派状态;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:international_assignment;  - custom_api_name:international_assignment_status

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // 外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:international_assignment;  - custom_api_name:international_assignment_type

	EffectiveTime *string `json:"effective_time,omitempty"` // 开始日期;- 格式:yyyy-mm-dd

	ExpirationTime *string `json:"expiration_time,omitempty"` // 结束日期;- 格式:yyyy-mm-dd;- 在外派未结束时,该值默认为 9999-12-31

	Id *string `json:"id,omitempty"` // 外派ID
}

type EmployeesInternationalAssignmentRespBuilder added in v3.3.4

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

func NewEmployeesInternationalAssignmentRespBuilder added in v3.3.4

func NewEmployeesInternationalAssignmentRespBuilder() *EmployeesInternationalAssignmentRespBuilder

func (*EmployeesInternationalAssignmentRespBuilder) Build added in v3.3.4

func (*EmployeesInternationalAssignmentRespBuilder) CompensationType added in v3.3.4

薪资类型; - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:compensation_type

示例值:

func (*EmployeesInternationalAssignmentRespBuilder) CustomFields added in v3.3.4

自定义字段;- 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*EmployeesInternationalAssignmentRespBuilder) DepartmentId added in v3.3.4

部门 ID;- 可通过[【查询单个部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get)获取详细信息;- 类型与 department_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) Description added in v3.3.4

备注

示例值:xxx 项目

func (*EmployeesInternationalAssignmentRespBuilder) DirectManagerId added in v3.3.4

直属上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) DottedLineManagerId added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) DottedLineManagerId(dottedLineManagerId string) *EmployeesInternationalAssignmentRespBuilder

虚线上级雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) EffectiveTime added in v3.3.4

开始日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentRespBuilder) EmployeeTypeId added in v3.3.4

人员类型ID;- 可通过[【查询单个人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) EmploymentId added in v3.3.4

雇佣 ID;- 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;- 类型与 user_id_type 一致

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) ExpirationTime added in v3.3.4

结束日期;- 格式:yyyy-mm-dd;- 在外派未结束时,该值默认为 9999-12-31

示例值:2024-01-02

func (*EmployeesInternationalAssignmentRespBuilder) Id added in v3.3.4

外派ID

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentExpectedEndDate added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *EmployeesInternationalAssignmentRespBuilder

预计结束日期;- 格式:yyyy-mm-dd

示例值:2024-01-02

func (*EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentReason added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentReason(internationalAssignmentReason string) *EmployeesInternationalAssignmentRespBuilder

外派原因说明

示例值:xxx 项目派遣

func (*EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentStatus added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *EmployeesInternationalAssignmentRespBuilder

外派状态;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:international_assignment; - custom_api_name:international_assignment_status

示例值:

func (*EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentType added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) InternationalAssignmentType(internationalAssignmentType *Enum) *EmployeesInternationalAssignmentRespBuilder

外派类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:international_assignment; - custom_api_name:international_assignment_type

示例值:

func (*EmployeesInternationalAssignmentRespBuilder) JobFamilyId added in v3.3.4

序列 ID;- 可通过[【查询单个序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) JobGradeId added in v3.3.4

职等 ID;- 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) JobId added in v3.3.4

职务 ID;- 可通过[【查询单个职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) JobLevelId added in v3.3.4

职级 ID;- 可通过[【查询单个职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) PositionId added in v3.3.4

岗位 ID;- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) ServiceCompany added in v3.3.4

外派任职公司 ID;- 可通过[【查询单个公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) WeeklyWorkingHoursV2 added in v3.3.4

func (builder *EmployeesInternationalAssignmentRespBuilder) WeeklyWorkingHoursV2(weeklyWorkingHoursV2 float64) *EmployeesInternationalAssignmentRespBuilder

周工作时长

示例值:8

func (*EmployeesInternationalAssignmentRespBuilder) WorkCalendarId added in v3.3.4

工作日历 ID;- 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) WorkLocationId added in v3.3.4

外派工作地点 ID; - 可通过[【查询单个地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get)获取详细信息

示例值:7127921432117937708

func (*EmployeesInternationalAssignmentRespBuilder) WorkShift added in v3.3.4

排班类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:work_shift

示例值:

func (*EmployeesInternationalAssignmentRespBuilder) WorkingHoursTypeId added in v3.3.4

工时制度ID;- 可通过[【查询单个工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get)获取详细信息

示例值:7127921432117937708

type Employment

type Employment struct {
	PrehireId *string `json:"prehire_id,omitempty"` // 待入职 ID

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型

	Tenure *string `json:"tenure,omitempty"` // 司龄

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,枚举值及详细信息可通过【批量查询部门】接口查询获得

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,枚举值及详细信息可通过【批量查询职务级别】接口查询获得

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,枚举值及详细信息可通过【批量查询地点】接口查询获得

	JobFamilyId *string `json:"job_family_id,omitempty"` // 职务序列 ID,枚举值及详细信息可通过【批量查询职务序列】接口查询获得

	JobId *string `json:"job_id,omitempty"` // 职务 ID,枚举值及详细信息可通过【批量查询职务】接口查询获得

	CompanyId *string `json:"company_id,omitempty"` // 法人主体 ID,枚举值及详细信息可通过【批量查询公司】接口查询获得

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,枚举值及详细信息可通过【批量查询工时制度】接口查询获得

	Id *string `json:"id,omitempty"` // 实体在飞书人事(企业版)内部的唯一键

	SeniorityDate *string `json:"seniority_date,omitempty"` // 资历起算日期

	EmployeeNumber *string `json:"employee_number,omitempty"` // 员工编号

	EffectiveDate *string `json:"effective_date,omitempty"` // 当前雇佣记录的入职日期

	ExpirationDate *string `json:"expiration_date,omitempty"` // 离职日期,即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

	EmploymentType *Enum `json:"employment_type,omitempty"` // 雇佣类型

	PersonId *string `json:"person_id,omitempty"` // 人员信息,引用 Person 的 ID

	ProbationPeriod *int `json:"probation_period,omitempty"` // 试用期时长(月),试用期结束日期 - 试用期开始日期后取月数

	OnProbation *string `json:"on_probation,omitempty"` // 是否在试用期中

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期

	PrimaryEmployment *bool `json:"primary_employment,omitempty"` // 是否是主雇佣信息

	EmploymentStatus *Enum `json:"employment_status,omitempty"` // 雇员状态

	WorkEmailList []*Email `json:"work_email_list,omitempty"` // 工作邮箱列表

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱

	ReasonForOffboarding *Enum `json:"reason_for_offboarding,omitempty"` // 离职原因

	CostCenterList []*JobDataCostCenter `json:"cost_center_list,omitempty"` // 成本中心列表

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘应用 ID

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type EmploymentBp

type EmploymentBp struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 员工雇佣 ID

	HrbpIds []string `json:"hrbp_ids,omitempty"` // 部门 hrbp 雇佣 ID 列表

	LocationBpIds []string `json:"location_bp_ids,omitempty"` // 属地 bp 雇佣 ID 列表
}

type EmploymentBpBuilder

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

func NewEmploymentBpBuilder

func NewEmploymentBpBuilder() *EmploymentBpBuilder

func (*EmploymentBpBuilder) Build

func (builder *EmploymentBpBuilder) Build() *EmploymentBp

func (*EmploymentBpBuilder) EmploymentId

func (builder *EmploymentBpBuilder) EmploymentId(employmentId string) *EmploymentBpBuilder

员工雇佣 ID

示例值:6863326262618752123

func (*EmploymentBpBuilder) HrbpIds

func (builder *EmploymentBpBuilder) HrbpIds(hrbpIds []string) *EmploymentBpBuilder

部门 hrbp 雇佣 ID 列表

示例值:

func (*EmploymentBpBuilder) LocationBpIds

func (builder *EmploymentBpBuilder) LocationBpIds(locationBpIds []string) *EmploymentBpBuilder

属地 bp 雇佣 ID 列表

示例值:

type EmploymentBuilder

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

func NewEmploymentBuilder

func NewEmploymentBuilder() *EmploymentBuilder

func (*EmploymentBuilder) AtsApplicationId

func (builder *EmploymentBuilder) AtsApplicationId(atsApplicationId string) *EmploymentBuilder

招聘应用 ID

示例值:6838119494196871234

func (*EmploymentBuilder) Build

func (builder *EmploymentBuilder) Build() *Employment

func (*EmploymentBuilder) CompanyId

func (builder *EmploymentBuilder) CompanyId(companyId string) *EmploymentBuilder

法人主体 ID,枚举值及详细信息可通过【批量查询公司】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) CostCenterList

func (builder *EmploymentBuilder) CostCenterList(costCenterList []*JobDataCostCenter) *EmploymentBuilder

成本中心列表

示例值:

func (*EmploymentBuilder) CustomFields

func (builder *EmploymentBuilder) CustomFields(customFields []*ObjectFieldData) *EmploymentBuilder

自定义字段

示例值:

func (*EmploymentBuilder) DepartmentId

func (builder *EmploymentBuilder) DepartmentId(departmentId string) *EmploymentBuilder

部门 ID,枚举值及详细信息可通过【批量查询部门】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) EffectiveDate

func (builder *EmploymentBuilder) EffectiveDate(effectiveDate string) *EmploymentBuilder

当前雇佣记录的入职日期

示例值:2020-01-01

func (*EmploymentBuilder) EmailAddress

func (builder *EmploymentBuilder) EmailAddress(emailAddress string) *EmploymentBuilder

邮箱

示例值:test@163.com

func (*EmploymentBuilder) EmployeeNumber

func (builder *EmploymentBuilder) EmployeeNumber(employeeNumber string) *EmploymentBuilder

员工编号

示例值:1000000

func (*EmploymentBuilder) EmployeeTypeId

func (builder *EmploymentBuilder) EmployeeTypeId(employeeTypeId string) *EmploymentBuilder

人员类型

示例值:1

func (*EmploymentBuilder) EmploymentStatus

func (builder *EmploymentBuilder) EmploymentStatus(employmentStatus *Enum) *EmploymentBuilder

雇员状态

示例值:

func (*EmploymentBuilder) EmploymentType

func (builder *EmploymentBuilder) EmploymentType(employmentType *Enum) *EmploymentBuilder

雇佣类型

示例值:

func (*EmploymentBuilder) ExpirationDate

func (builder *EmploymentBuilder) ExpirationDate(expirationDate string) *EmploymentBuilder

离职日期,即员工的最后一个工作日,最后一个工作日时员工的雇佣状态仍为“在职”,次日凌晨将更改为“离职”

示例值:2021-01-01

func (*EmploymentBuilder) Id

func (builder *EmploymentBuilder) Id(id string) *EmploymentBuilder

实体在飞书人事(企业版)内部的唯一键

示例值:6893014062142064135

func (*EmploymentBuilder) JobFamilyId

func (builder *EmploymentBuilder) JobFamilyId(jobFamilyId string) *EmploymentBuilder

职务序列 ID,枚举值及详细信息可通过【批量查询职务序列】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) JobId

func (builder *EmploymentBuilder) JobId(jobId string) *EmploymentBuilder

职务 ID,枚举值及详细信息可通过【批量查询职务】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) JobLevelId

func (builder *EmploymentBuilder) JobLevelId(jobLevelId string) *EmploymentBuilder

职级 ID,枚举值及详细信息可通过【批量查询职务级别】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) OnProbation

func (builder *EmploymentBuilder) OnProbation(onProbation string) *EmploymentBuilder

是否在试用期中

示例值:true

func (*EmploymentBuilder) PersonId

func (builder *EmploymentBuilder) PersonId(personId string) *EmploymentBuilder

人员信息,引用 Person 的 ID

示例值:6919733936050406926

func (*EmploymentBuilder) PrehireId

func (builder *EmploymentBuilder) PrehireId(prehireId string) *EmploymentBuilder

待入职 ID

示例值:1

func (*EmploymentBuilder) PrimaryEmployment

func (builder *EmploymentBuilder) PrimaryEmployment(primaryEmployment bool) *EmploymentBuilder

是否是主雇佣信息

示例值:true

func (*EmploymentBuilder) ProbationEndDate

func (builder *EmploymentBuilder) ProbationEndDate(probationEndDate string) *EmploymentBuilder

试用期结束日期

示例值:2022-01-01

func (*EmploymentBuilder) ProbationPeriod

func (builder *EmploymentBuilder) ProbationPeriod(probationPeriod int) *EmploymentBuilder

试用期时长(月),试用期结束日期 - 试用期开始日期后取月数

示例值:9999

func (*EmploymentBuilder) ReasonForOffboarding

func (builder *EmploymentBuilder) ReasonForOffboarding(reasonForOffboarding *Enum) *EmploymentBuilder

离职原因

示例值:

func (*EmploymentBuilder) SeniorityDate

func (builder *EmploymentBuilder) SeniorityDate(seniorityDate string) *EmploymentBuilder

资历起算日期

示例值:2020-01-01

func (*EmploymentBuilder) Tenure

func (builder *EmploymentBuilder) Tenure(tenure string) *EmploymentBuilder

司龄

示例值:1

func (*EmploymentBuilder) WorkEmailList

func (builder *EmploymentBuilder) WorkEmailList(workEmailList []*Email) *EmploymentBuilder

工作邮箱列表

示例值:

func (*EmploymentBuilder) WorkLocationId

func (builder *EmploymentBuilder) WorkLocationId(workLocationId string) *EmploymentBuilder

工作地点 ID,枚举值及详细信息可通过【批量查询地点】接口查询获得

示例值:6893014062142064135

func (*EmploymentBuilder) WorkingHoursTypeId

func (builder *EmploymentBuilder) WorkingHoursTypeId(workingHoursTypeId string) *EmploymentBuilder

工时制度 ID,枚举值及详细信息可通过【批量查询工时制度】接口查询获得

示例值:6893014062142064135

type EmploymentLeaveBalance added in v3.2.5

type EmploymentLeaveBalance struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣信息ID

	EmploymentName []*I18n `json:"employment_name,omitempty"` // 员工姓名

	AsOfDate *string `json:"as_of_date,omitempty"` // 余额查看日期

	LeaveBalanceList []*LeaveBalance `json:"leave_balance_list,omitempty"` // 假期余额列表
}

type EmploymentLeaveBalanceBuilder added in v3.2.5

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

func NewEmploymentLeaveBalanceBuilder added in v3.2.5

func NewEmploymentLeaveBalanceBuilder() *EmploymentLeaveBalanceBuilder

func (*EmploymentLeaveBalanceBuilder) AsOfDate added in v3.2.5

余额查看日期

示例值:0

func (*EmploymentLeaveBalanceBuilder) Build added in v3.2.5

func (*EmploymentLeaveBalanceBuilder) EmploymentId added in v3.2.5

func (builder *EmploymentLeaveBalanceBuilder) EmploymentId(employmentId string) *EmploymentLeaveBalanceBuilder

雇佣信息ID

示例值:4718803945687580505

func (*EmploymentLeaveBalanceBuilder) EmploymentName added in v3.2.5

func (builder *EmploymentLeaveBalanceBuilder) EmploymentName(employmentName []*I18n) *EmploymentLeaveBalanceBuilder

员工姓名

示例值:

func (*EmploymentLeaveBalanceBuilder) LeaveBalanceList added in v3.2.5

func (builder *EmploymentLeaveBalanceBuilder) LeaveBalanceList(leaveBalanceList []*LeaveBalance) *EmploymentLeaveBalanceBuilder

假期余额列表

示例值:

type EnableDisableAssessmentProbationPathReqBodyBuilder

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

func NewEnableDisableAssessmentProbationPathReqBodyBuilder

func NewEnableDisableAssessmentProbationPathReqBodyBuilder() *EnableDisableAssessmentProbationPathReqBodyBuilder

func (*EnableDisableAssessmentProbationPathReqBodyBuilder) Active

启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。

示例值:true

func (*EnableDisableAssessmentProbationPathReqBodyBuilder) Build

type EnableDisableAssessmentProbationReq

type EnableDisableAssessmentProbationReq struct {
	Body *EnableDisableAssessmentProbationReqBody `body:""`
	// contains filtered or unexported fields
}

type EnableDisableAssessmentProbationReqBody

type EnableDisableAssessmentProbationReqBody struct {
	Active *bool `json:"active,omitempty"` // 启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。

	AppUrl *string `json:"app_url,omitempty"` // 试用期考核系统入口链接,当启用功能时该字段必填。
}

type EnableDisableAssessmentProbationReqBodyBuilder

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

func NewEnableDisableAssessmentProbationReqBodyBuilder

func NewEnableDisableAssessmentProbationReqBodyBuilder() *EnableDisableAssessmentProbationReqBodyBuilder

func (*EnableDisableAssessmentProbationReqBodyBuilder) Active

启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。

示例值:true

func (*EnableDisableAssessmentProbationReqBodyBuilder) Build

type EnableDisableAssessmentProbationReqBuilder

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

func NewEnableDisableAssessmentProbationReqBuilder

func NewEnableDisableAssessmentProbationReqBuilder() *EnableDisableAssessmentProbationReqBuilder

func (*EnableDisableAssessmentProbationReqBuilder) Body

func (*EnableDisableAssessmentProbationReqBuilder) Build

type EnableDisableAssessmentProbationResp

type EnableDisableAssessmentProbationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*EnableDisableAssessmentProbationResp) Success

type Enum

type Enum struct {
	EnumName *string `json:"enum_name,omitempty"` // 枚举值

	Display []*I18n `json:"display,omitempty"` // 枚举多语展示
}

type EnumBuilder

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

func NewEnumBuilder

func NewEnumBuilder() *EnumBuilder

func (*EnumBuilder) Build

func (builder *EnumBuilder) Build() *Enum

func (*EnumBuilder) Display

func (builder *EnumBuilder) Display(display []*I18n) *EnumBuilder

枚举多语展示

示例值:

func (*EnumBuilder) EnumName

func (builder *EnumBuilder) EnumName(enumName string) *EnumBuilder

枚举值

示例值:phone_type

type EnumField added in v3.4.0

type EnumField struct {
	ApiName *string `json:"api_name,omitempty"` // ApiName

	Name []*I18n `json:"name,omitempty"` // 枚举值名

	Description []*I18n `json:"description,omitempty"` // 枚举值描述

	EnumApiName *string `json:"enum_api_name,omitempty"` // 所属枚举常量ApiName

	Order *int `json:"order,omitempty"` // 顺序

	Status *int `json:"status,omitempty"` // 状态
}

type EnumFieldBuilder added in v3.4.0

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

func NewEnumFieldBuilder added in v3.4.0

func NewEnumFieldBuilder() *EnumFieldBuilder

func (*EnumFieldBuilder) ApiName added in v3.4.0

func (builder *EnumFieldBuilder) ApiName(apiName string) *EnumFieldBuilder

ApiName

示例值:special_day

func (*EnumFieldBuilder) Build added in v3.4.0

func (builder *EnumFieldBuilder) Build() *EnumField

func (*EnumFieldBuilder) Description added in v3.4.0

func (builder *EnumFieldBuilder) Description(description []*I18n) *EnumFieldBuilder

枚举值描述

示例值:

func (*EnumFieldBuilder) EnumApiName added in v3.4.0

func (builder *EnumFieldBuilder) EnumApiName(enumApiName string) *EnumFieldBuilder

所属枚举常量ApiName

示例值:overtime_date_type

func (*EnumFieldBuilder) Name added in v3.4.0

func (builder *EnumFieldBuilder) Name(name []*I18n) *EnumFieldBuilder

枚举值名

示例值:

func (*EnumFieldBuilder) Order added in v3.4.0

func (builder *EnumFieldBuilder) Order(order int) *EnumFieldBuilder

顺序

示例值:1

func (*EnumFieldBuilder) Status added in v3.4.0

func (builder *EnumFieldBuilder) Status(status int) *EnumFieldBuilder

状态

示例值:1

type Enums added in v3.4.0

type Enums struct {
	EnumApiname *string `json:"enum_apiname,omitempty"` // 枚举名称

	EnumItems []*EnumField `json:"enum_items,omitempty"` // 枚举值
}

type EnumsBuilder added in v3.4.0

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

func NewEnumsBuilder added in v3.4.0

func NewEnumsBuilder() *EnumsBuilder

func (*EnumsBuilder) Build added in v3.4.0

func (builder *EnumsBuilder) Build() *Enums

func (*EnumsBuilder) EnumApiname added in v3.4.0

func (builder *EnumsBuilder) EnumApiname(enumApiname string) *EnumsBuilder

枚举名称

示例值:overtime_date_type

func (*EnumsBuilder) EnumItems added in v3.4.0

func (builder *EnumsBuilder) EnumItems(enumItems []*EnumField) *EnumsBuilder

枚举值

示例值:

type FieldVariableSubVlaue added in v3.2.5

type FieldVariableSubVlaue struct {
	Key *string `json:"key,omitempty"` // 用于关联list和record类型变量值中的key

	Value *FieldVariableValueTo `json:"value,omitempty"` // 变量值
}

type FieldVariableSubVlaueBuilder added in v3.2.5

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

func NewFieldVariableSubVlaueBuilder added in v3.2.5

func NewFieldVariableSubVlaueBuilder() *FieldVariableSubVlaueBuilder

func (*FieldVariableSubVlaueBuilder) Build added in v3.2.5

func (*FieldVariableSubVlaueBuilder) Key added in v3.2.5

用于关联list和record类型变量值中的key

示例值:key1

func (*FieldVariableSubVlaueBuilder) Value added in v3.2.5

变量值

示例值:

type FieldVariableSubVlaueForReview added in v3.2.5

type FieldVariableSubVlaueForReview struct {
	Key *string `json:"key,omitempty"` // 用于关联list和record类型变量值中的key

	Value *FieldVariableValueToForReview `json:"value,omitempty"` // 变量值
}

type FieldVariableSubVlaueForReviewBuilder added in v3.2.5

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

func NewFieldVariableSubVlaueForReviewBuilder added in v3.2.5

func NewFieldVariableSubVlaueForReviewBuilder() *FieldVariableSubVlaueForReviewBuilder

func (*FieldVariableSubVlaueForReviewBuilder) Build added in v3.2.5

func (*FieldVariableSubVlaueForReviewBuilder) Key added in v3.2.5

用于关联list和record类型变量值中的key

示例值:key1

func (*FieldVariableSubVlaueForReviewBuilder) Value added in v3.2.5

变量值

示例值:

type FieldVariableValue added in v3.2.5

type FieldVariableValue struct {
	VariableApiName *string `json:"variable_api_name,omitempty"` // 变量唯一标识

	VariableName *FieldVariableValueI18n `json:"variable_name,omitempty"` // 变量名称

	VariableValue *FieldVariableValueTo `json:"variable_value,omitempty"` // 变量值

	SubValues []*FieldVariableSubVlaue `json:"sub_values,omitempty"` // 在list_values和record_values中引用的变量
}

type FieldVariableValueBuilder added in v3.2.5

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

func NewFieldVariableValueBuilder added in v3.2.5

func NewFieldVariableValueBuilder() *FieldVariableValueBuilder

func (*FieldVariableValueBuilder) Build added in v3.2.5

func (*FieldVariableValueBuilder) SubValues added in v3.2.5

在list_values和record_values中引用的变量

示例值:

func (*FieldVariableValueBuilder) VariableApiName added in v3.2.5

func (builder *FieldVariableValueBuilder) VariableApiName(variableApiName string) *FieldVariableValueBuilder

变量唯一标识

示例值:custom123

func (*FieldVariableValueBuilder) VariableName added in v3.2.5

func (builder *FieldVariableValueBuilder) VariableName(variableName *FieldVariableValueI18n) *FieldVariableValueBuilder

变量名称

示例值:日期

func (*FieldVariableValueBuilder) VariableValue added in v3.2.5

func (builder *FieldVariableValueBuilder) VariableValue(variableValue *FieldVariableValueTo) *FieldVariableValueBuilder

变量值

示例值:aa

type FieldVariableValueI18n added in v3.2.5

type FieldVariableValueI18n struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文值

	EnUs *string `json:"en_us,omitempty"` // 英文值
}

type FieldVariableValueI18nBuilder added in v3.2.5

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

func NewFieldVariableValueI18nBuilder added in v3.2.5

func NewFieldVariableValueI18nBuilder() *FieldVariableValueI18nBuilder

func (*FieldVariableValueI18nBuilder) Build added in v3.2.5

func (*FieldVariableValueI18nBuilder) EnUs added in v3.2.5

英文值

示例值:Beijing

func (*FieldVariableValueI18nBuilder) ZhCn added in v3.2.5

中文值

示例值:北京

type FieldVariableValueTo added in v3.2.5

type FieldVariableValueTo struct {
	TextValue *string `json:"text_value,omitempty"` // 文本值

	BoolValue *bool `json:"bool_value,omitempty"` // 布尔值

	NumberValue *string `json:"number_value,omitempty"` // 数字值

	EnumValue *string `json:"enum_value,omitempty"` // 枚举值,这里是枚举的id

	DateValue *string `json:"date_value,omitempty"` // 从 1970 开始的天数

	DateTimeValue *string `json:"date_time_value,omitempty"` // 时间戳,毫秒

	I18nValue *FieldVariableValueI18n `json:"i18n_value,omitempty"` // 多语字段值

	ObjectValue *FieldVariableValueToObject `json:"object_value,omitempty"` // 对象值,包括对象id和对象类型

	UserValue *string `json:"user_value,omitempty"` // 用户id,根据user_type选择对应的用户id

	DepartmentValue *string `json:"department_value,omitempty"` // 部门id,根据入参选择对应的部门id

	RecordValues []*FieldVariableValueToRecord `json:"record_values,omitempty"` // 记录类型字段值

	EmploymentValue *string `json:"employment_value,omitempty"` // 员工类型字段值,为用户id,根据入参选择返回的用户id

	ListValues []string `json:"list_values,omitempty"` // 数组类型值,里面包含多个值,每个元素都对应subValues中的数组下标

	FileValue *FieldVariableValueToFile `json:"file_value,omitempty"` // 文件类型字段值,可通过主数据的文件下载Open API下载
}

type FieldVariableValueToBuilder added in v3.2.5

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

func NewFieldVariableValueToBuilder added in v3.2.5

func NewFieldVariableValueToBuilder() *FieldVariableValueToBuilder

func (*FieldVariableValueToBuilder) BoolValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) BoolValue(boolValue bool) *FieldVariableValueToBuilder

布尔值

示例值:true

func (*FieldVariableValueToBuilder) Build added in v3.2.5

func (*FieldVariableValueToBuilder) DateTimeValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) DateTimeValue(dateTimeValue string) *FieldVariableValueToBuilder

时间戳,毫秒

示例值:1714013877512

func (*FieldVariableValueToBuilder) DateValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) DateValue(dateValue string) *FieldVariableValueToBuilder

从 1970 开始的天数

示例值:19838

func (*FieldVariableValueToBuilder) DepartmentValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) DepartmentValue(departmentValue string) *FieldVariableValueToBuilder

部门id,根据入参选择对应的部门id

示例值:od-a761814f6bc3f14bd3b00905ec1d7c6f

func (*FieldVariableValueToBuilder) EmploymentValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) EmploymentValue(employmentValue string) *FieldVariableValueToBuilder

员工类型字段值,为用户id,根据入参选择返回的用户id

示例值:ou_c57053dad6eea0aea4696c48433d8562

func (*FieldVariableValueToBuilder) EnumValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) EnumValue(enumValue string) *FieldVariableValueToBuilder

枚举值,这里是枚举的id

示例值:home_address

func (*FieldVariableValueToBuilder) FileValue added in v3.3.1

文件类型字段值,可通过主数据的文件下载Open API下载

示例值:

func (*FieldVariableValueToBuilder) I18nValue added in v3.2.5

多语字段值

示例值:

func (*FieldVariableValueToBuilder) ListValues added in v3.2.5

func (builder *FieldVariableValueToBuilder) ListValues(listValues []string) *FieldVariableValueToBuilder

数组类型值,里面包含多个值,每个元素都对应subValues中的数组下标

示例值:

func (*FieldVariableValueToBuilder) NumberValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) NumberValue(numberValue string) *FieldVariableValueToBuilder

数字值

示例值:100

func (*FieldVariableValueToBuilder) ObjectValue added in v3.2.5

对象值,包括对象id和对象类型

示例值:1

func (*FieldVariableValueToBuilder) RecordValues added in v3.3.4

记录类型字段值

示例值:1

func (*FieldVariableValueToBuilder) TextValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) TextValue(textValue string) *FieldVariableValueToBuilder

文本值

示例值:测试测试

func (*FieldVariableValueToBuilder) UserValue added in v3.2.5

func (builder *FieldVariableValueToBuilder) UserValue(userValue string) *FieldVariableValueToBuilder

用户id,根据user_type选择对应的用户id

示例值:ou_c57053dad6eea0aea4696c48433d8562

type FieldVariableValueToEnum added in v3.2.5

type FieldVariableValueToEnum struct {
	Value *string `json:"value,omitempty"` // 枚举项唯一id

	Name *FieldVariableValueI18n `json:"name,omitempty"` // 枚举项名称
}

type FieldVariableValueToEnumBuilder added in v3.2.5

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

func NewFieldVariableValueToEnumBuilder added in v3.2.5

func NewFieldVariableValueToEnumBuilder() *FieldVariableValueToEnumBuilder

func (*FieldVariableValueToEnumBuilder) Build added in v3.2.5

func (*FieldVariableValueToEnumBuilder) Name added in v3.2.5

枚举项名称

示例值:

func (*FieldVariableValueToEnumBuilder) Value added in v3.2.5

枚举项唯一id

示例值:home_address

type FieldVariableValueToFile added in v3.3.1

type FieldVariableValueToFile struct {
	OpenFileId *string `json:"open_file_id,omitempty"` // 用于主数据文件下载接口的id

	FileName *string `json:"file_name,omitempty"` // 文件名称

	Length *string `json:"length,omitempty"` // 文件大小,单位:Byte

	MimeType *string `json:"mime_type,omitempty"` // 文件类型,如`application/pdf`
}

type FieldVariableValueToFileBuilder added in v3.3.1

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

func NewFieldVariableValueToFileBuilder added in v3.3.1

func NewFieldVariableValueToFileBuilder() *FieldVariableValueToFileBuilder

func (*FieldVariableValueToFileBuilder) Build added in v3.3.1

func (*FieldVariableValueToFileBuilder) FileName added in v3.3.1

文件名称

示例值:file_name

func (*FieldVariableValueToFileBuilder) Length added in v3.3.1

文件大小,单位:Byte

示例值:65535

func (*FieldVariableValueToFileBuilder) MimeType added in v3.3.1

文件类型,如`application/pdf`

示例值:application/pdf

func (*FieldVariableValueToFileBuilder) OpenFileId added in v3.3.1

用于主数据文件下载接口的id

示例值:66867ed00740ddd4a0bad4a5_c99b5322dc744fe4b99b76426ffe5d53

type FieldVariableValueToForReview added in v3.2.5

type FieldVariableValueToForReview struct {
	TextValue *string `json:"text_value,omitempty"` // 文本值

	BoolValue *bool `json:"bool_value,omitempty"` // 布尔值

	NumberValue *string `json:"number_value,omitempty"` // 数字值

	EnumValue *string `json:"enum_value,omitempty"` // 枚举值,这里是枚举的id

	DateValue *string `json:"date_value,omitempty"` // 从 1970 开始的天数

	DateTimeValue *string `json:"date_time_value,omitempty"` // 时间戳,毫秒

	I18nValue *FieldVariableValueI18n `json:"i18n_value,omitempty"` // 多语字段值

	ObjectValue *FieldVariableValueToObject `json:"object_value,omitempty"` // 对象值,包括对象id和对象类型

	DepartmentValue *string `json:"department_value,omitempty"` // 部门id,根据入参选择对应的部门id

	EmploymentValue *string `json:"employment_value,omitempty"` // 员工类型字段值,为用户id,根据入参选择返回的用户id

	ListValues []string `json:"list_values,omitempty"` // 数组类型值,里面包含多个值,每个元素都对应subValues中的key
}

type FieldVariableValueToForReviewBuilder added in v3.2.5

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

func NewFieldVariableValueToForReviewBuilder added in v3.2.5

func NewFieldVariableValueToForReviewBuilder() *FieldVariableValueToForReviewBuilder

func (*FieldVariableValueToForReviewBuilder) BoolValue added in v3.2.5

布尔值

示例值:true

func (*FieldVariableValueToForReviewBuilder) Build added in v3.2.5

func (*FieldVariableValueToForReviewBuilder) DateTimeValue added in v3.2.5

时间戳,毫秒

示例值:1714013877512

func (*FieldVariableValueToForReviewBuilder) DateValue added in v3.2.5

从 1970 开始的天数

示例值:19838

func (*FieldVariableValueToForReviewBuilder) DepartmentValue added in v3.2.5

func (builder *FieldVariableValueToForReviewBuilder) DepartmentValue(departmentValue string) *FieldVariableValueToForReviewBuilder

部门id,根据入参选择对应的部门id

示例值:od-a761814f6bc3f14bd3b00905ec1d7c6f

func (*FieldVariableValueToForReviewBuilder) EmploymentValue added in v3.2.5

func (builder *FieldVariableValueToForReviewBuilder) EmploymentValue(employmentValue string) *FieldVariableValueToForReviewBuilder

员工类型字段值,为用户id,根据入参选择返回的用户id

示例值:ou_c57053dad6eea0aea4696c48433d8562

func (*FieldVariableValueToForReviewBuilder) EnumValue added in v3.2.5

枚举值,这里是枚举的id

示例值:home_address

func (*FieldVariableValueToForReviewBuilder) I18nValue added in v3.2.5

多语字段值

示例值:ou_c57053dad6eea0aea4696c48433d8562

func (*FieldVariableValueToForReviewBuilder) ListValues added in v3.2.5

数组类型值,里面包含多个值,每个元素都对应subValues中的key

示例值:

func (*FieldVariableValueToForReviewBuilder) NumberValue added in v3.2.5

数字值

示例值:100

func (*FieldVariableValueToForReviewBuilder) ObjectValue added in v3.2.5

对象值,包括对象id和对象类型

示例值:od-a761814f6bc3f14bd3b00905ec1d7c6f

func (*FieldVariableValueToForReviewBuilder) TextValue added in v3.2.5

文本值

示例值:测试测试

type FieldVariableValueToObject added in v3.2.5

type FieldVariableValueToObject struct {
	WkId *string `json:"wk_id,omitempty"` // wukong的对象唯一标识

	WkApiName *string `json:"wk_api_name,omitempty"` // wukong的元数据唯一标识
}

type FieldVariableValueToObjectBuilder added in v3.2.5

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

func NewFieldVariableValueToObjectBuilder added in v3.2.5

func NewFieldVariableValueToObjectBuilder() *FieldVariableValueToObjectBuilder

func (*FieldVariableValueToObjectBuilder) Build added in v3.2.5

func (*FieldVariableValueToObjectBuilder) WkApiName added in v3.2.5

wukong的元数据唯一标识

示例值:country_region_subdivision

func (*FieldVariableValueToObjectBuilder) WkId added in v3.2.5

wukong的对象唯一标识

示例值:6863326263210149383

type FieldVariableValueToRecord added in v3.2.5

type FieldVariableValueToRecord struct {
	VariableApiName *string `json:"variable_api_name,omitempty"` // 变量唯一标识

	SubValueKey *string `json:"sub_value_key,omitempty"` // 变量值,对应subValues中的key
}

type FieldVariableValueToRecordBuilder added in v3.2.5

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

func NewFieldVariableValueToRecordBuilder added in v3.2.5

func NewFieldVariableValueToRecordBuilder() *FieldVariableValueToRecordBuilder

func (*FieldVariableValueToRecordBuilder) Build added in v3.2.5

func (*FieldVariableValueToRecordBuilder) SubValueKey added in v3.3.4

变量值,对应subValues中的key

示例值:key1

func (*FieldVariableValueToRecordBuilder) VariableApiName added in v3.2.5

func (builder *FieldVariableValueToRecordBuilder) VariableApiName(variableApiName string) *FieldVariableValueToRecordBuilder

变量唯一标识

示例值:city_v2

type File

type File struct {
	Id *string `json:"id,omitempty"` // 上传文件ID

	Name *string `json:"name,omitempty"` // 文件名
}

type FileBuilder

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

func NewFileBuilder

func NewFileBuilder() *FileBuilder

func (*FileBuilder) Build

func (builder *FileBuilder) Build() *File

func (*FileBuilder) Id

func (builder *FileBuilder) Id(id string) *FileBuilder

上传文件ID

示例值:150018109586e8ea745e47ae8feb3722dbe1d03a181336393633393133303431393831343930373235150200

func (*FileBuilder) Name added in v3.2.5

func (builder *FileBuilder) Name(name string) *FileBuilder

文件名

示例值:document.txt

type FormFieldVariableBoolValue added in v3.2.1

type FormFieldVariableBoolValue struct {
	Value *bool `json:"value,omitempty"` // 布尔变量的值
}

type FormFieldVariableBoolValueBuilder added in v3.2.1

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

func NewFormFieldVariableBoolValueBuilder added in v3.2.1

func NewFormFieldVariableBoolValueBuilder() *FormFieldVariableBoolValueBuilder

func (*FormFieldVariableBoolValueBuilder) Build added in v3.2.1

func (*FormFieldVariableBoolValueBuilder) Value added in v3.2.1

布尔变量的值

示例值:true

type FormFieldVariableI18nValue added in v3.2.1

type FormFieldVariableI18nValue struct {
	Value *BpmDataengineI18n `json:"value,omitempty"` // 多语参数
}

type FormFieldVariableI18nValueBuilder added in v3.2.1

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

func NewFormFieldVariableI18nValueBuilder added in v3.2.1

func NewFormFieldVariableI18nValueBuilder() *FormFieldVariableI18nValueBuilder

func (*FormFieldVariableI18nValueBuilder) Build added in v3.2.1

func (*FormFieldVariableI18nValueBuilder) Value added in v3.2.1

多语参数

示例值:

type FormFieldVariableNullValue added in v3.2.1

type FormFieldVariableNullValue struct {
}

type FormFieldVariableNumberValue added in v3.2.1

type FormFieldVariableNumberValue struct {
	Value *int `json:"value,omitempty"` // 数值类型变量的值
}

type FormFieldVariableNumberValueBuilder added in v3.2.1

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

func NewFormFieldVariableNumberValueBuilder added in v3.2.1

func NewFormFieldVariableNumberValueBuilder() *FormFieldVariableNumberValueBuilder

func (*FormFieldVariableNumberValueBuilder) Build added in v3.2.1

func (*FormFieldVariableNumberValueBuilder) Value added in v3.2.1

数值类型变量的值

示例值:1

type FormFieldVariableStringValue added in v3.2.1

type FormFieldVariableStringValue struct {
	Value *string `json:"value,omitempty"` // 文本类型变量的值
}

type FormFieldVariableStringValueBuilder added in v3.2.1

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

func NewFormFieldVariableStringValueBuilder added in v3.2.1

func NewFormFieldVariableStringValueBuilder() *FormFieldVariableStringValueBuilder

func (*FormFieldVariableStringValueBuilder) Build added in v3.2.1

func (*FormFieldVariableStringValueBuilder) Value added in v3.2.1

文本类型变量的值

示例值:字符串

type FormVariableValueInfo added in v3.2.1

type FormVariableValueInfo struct {
	TextValue *FormFieldVariableStringValue `json:"text_value,omitempty"` // 文本变量对象

	NumberValue *FormFieldVariableStringValue `json:"number_value,omitempty"` // 数值变量对象(这里的value必须传入一个合法的数字,常见非法值:"" 和 null)

	DateValue *FormFieldVariableNumberValue `json:"date_value,omitempty"` // 日期变量对象(这里的value为从1970年1月1日(UTC/GMT的午夜)开始所经过的天数)

	EmploymentValue *FormFieldVariableStringValue `json:"employment_value,omitempty"` // 员工变量对象(值传入employmentID)

	DateTimeValue *FormFieldVariableNumberValue `json:"date_time_value,omitempty"` // 日期时间变量对象(从1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数。)

	EnumValue *FormFieldVariableStringValue `json:"enum_value,omitempty"` // 枚举变量对象(客户需要传入 枚举的枚举项key作为enum_value.value的值)

	NullValue *FormFieldVariableNullValue `json:"null_value,omitempty"` // 空变量对象

	BoolValue *FormFieldVariableBoolValue `json:"bool_value,omitempty"` // 布尔变量对象

	DepartmentValue *FormFieldVariableStringValue `json:"department_value,omitempty"` // 部门变量对象(值传入departmentID)

	I18nValue *FormFieldVariableI18nValue `json:"i18n_value,omitempty"` // i18n变量对象(中英文为可选,但不能出现中英文均为空的数据。)

	ObjectValue *FormFieldVariableStringValue `json:"object_value,omitempty"` // 对象变量(对于所有引用wukong数据的Value,object_value.value中传入wukong中的wkID。)
}

type FormVariableValueInfoBuilder added in v3.2.1

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

func NewFormVariableValueInfoBuilder added in v3.2.1

func NewFormVariableValueInfoBuilder() *FormVariableValueInfoBuilder

func (*FormVariableValueInfoBuilder) BoolValue added in v3.2.1

布尔变量对象

示例值:

func (*FormVariableValueInfoBuilder) Build added in v3.2.1

func (*FormVariableValueInfoBuilder) DateTimeValue added in v3.2.1

日期时间变量对象(从1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数。)

示例值:

func (*FormVariableValueInfoBuilder) DateValue added in v3.2.1

日期变量对象(这里的value为从1970年1月1日(UTC/GMT的午夜)开始所经过的天数)

示例值:

func (*FormVariableValueInfoBuilder) DepartmentValue added in v3.2.1

部门变量对象(值传入departmentID)

示例值:

func (*FormVariableValueInfoBuilder) EmploymentValue added in v3.2.1

员工变量对象(值传入employmentID)

示例值:

func (*FormVariableValueInfoBuilder) EnumValue added in v3.2.1

枚举变量对象(客户需要传入 枚举的枚举项key作为enum_value.value的值)

示例值:

func (*FormVariableValueInfoBuilder) I18nValue added in v3.2.1

i18n变量对象(中英文为可选,但不能出现中英文均为空的数据。)

示例值:

func (*FormVariableValueInfoBuilder) NullValue added in v3.2.1

空变量对象

示例值:

func (*FormVariableValueInfoBuilder) NumberValue added in v3.2.1

数值变量对象(这里的value必须传入一个合法的数字,常见非法值:"" 和 null)

示例值:

func (*FormVariableValueInfoBuilder) ObjectValue added in v3.2.1

对象变量(对于所有引用wukong数据的Value,object_value.value中传入wukong中的wkID。)

示例值:

func (*FormVariableValueInfoBuilder) TextValue added in v3.2.1

文本变量对象

示例值:

type GetApprovalGroupsReq added in v3.4.1

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

type GetApprovalGroupsReqBuilder added in v3.4.1

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

func NewGetApprovalGroupsReqBuilder added in v3.4.1

func NewGetApprovalGroupsReqBuilder() *GetApprovalGroupsReqBuilder

func (*GetApprovalGroupsReqBuilder) Build added in v3.4.1

func (*GetApprovalGroupsReqBuilder) ProcessId added in v3.4.1

func (builder *GetApprovalGroupsReqBuilder) ProcessId(processId string) *GetApprovalGroupsReqBuilder

组织架构调整流程 ID

示例值:6893014062142064111

func (*GetApprovalGroupsReqBuilder) UserIdType added in v3.4.1

func (builder *GetApprovalGroupsReqBuilder) UserIdType(userIdType string) *GetApprovalGroupsReqBuilder

用户 ID 类型

示例值:open_id

type GetApprovalGroupsResp added in v3.4.1

type GetApprovalGroupsResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetApprovalGroupsRespData `json:"data"` // 业务数据
}

func (*GetApprovalGroupsResp) Success added in v3.4.1

func (resp *GetApprovalGroupsResp) Success() bool

type GetApprovalGroupsRespData added in v3.4.1

type GetApprovalGroupsRespData struct {
	ApprovalGroup *ApprovalGroup `json:"approval_group,omitempty"` // 组织架构调整流程信息
}

type GetByDepartmentBpPathReqBodyBuilder

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

func NewGetByDepartmentBpPathReqBodyBuilder

func NewGetByDepartmentBpPathReqBodyBuilder() *GetByDepartmentBpPathReqBodyBuilder

func (*GetByDepartmentBpPathReqBodyBuilder) Build

func (*GetByDepartmentBpPathReqBodyBuilder) DepartmentId

部门 ID

示例值:6893014062142064111

type GetByDepartmentBpReq

type GetByDepartmentBpReq struct {
	Body *GetByDepartmentBpReqBody `body:""`
	// contains filtered or unexported fields
}

type GetByDepartmentBpReqBody

type GetByDepartmentBpReqBody struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID
}

type GetByDepartmentBpReqBodyBuilder

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

func NewGetByDepartmentBpReqBodyBuilder

func NewGetByDepartmentBpReqBodyBuilder() *GetByDepartmentBpReqBodyBuilder

func (*GetByDepartmentBpReqBodyBuilder) Build

func (*GetByDepartmentBpReqBodyBuilder) DepartmentId

func (builder *GetByDepartmentBpReqBodyBuilder) DepartmentId(departmentId string) *GetByDepartmentBpReqBodyBuilder

部门 ID

示例值:6893014062142064111

type GetByDepartmentBpReqBuilder

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

func NewGetByDepartmentBpReqBuilder

func NewGetByDepartmentBpReqBuilder() *GetByDepartmentBpReqBuilder

func (*GetByDepartmentBpReqBuilder) Body

func (*GetByDepartmentBpReqBuilder) Build

func (*GetByDepartmentBpReqBuilder) DepartmentIdType

func (builder *GetByDepartmentBpReqBuilder) DepartmentIdType(departmentIdType string) *GetByDepartmentBpReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*GetByDepartmentBpReqBuilder) UserIdType

func (builder *GetByDepartmentBpReqBuilder) UserIdType(userIdType string) *GetByDepartmentBpReqBuilder

用户 ID 类型

示例值:open_id

type GetByDepartmentBpResp

type GetByDepartmentBpResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetByDepartmentBpRespData `json:"data"` // 业务数据
}

func (*GetByDepartmentBpResp) Success

func (resp *GetByDepartmentBpResp) Success() bool

type GetByDepartmentBpRespData

type GetByDepartmentBpRespData struct {
	Items []*DepartmentHrbp `json:"items,omitempty"` // 部门 HRBP 信息,依次为部门及各层级上级部门
}

type GetJobReq

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

type GetJobReqBuilder

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

func NewGetJobReqBuilder

func NewGetJobReqBuilder() *GetJobReqBuilder

func (*GetJobReqBuilder) Build

func (builder *GetJobReqBuilder) Build() *GetJobReq

func (*GetJobReqBuilder) JobId

func (builder *GetJobReqBuilder) JobId(jobId string) *GetJobReqBuilder

序列级别ID

示例值:151515

type GetJobResp

type GetJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetJobRespData `json:"data"` // 业务数据
}

func (*GetJobResp) Success

func (resp *GetJobResp) Success() bool

type GetJobRespData

type GetJobRespData struct {
	Job *Job `json:"job,omitempty"` // 职务信息
}

type GetProcessFormVariableDataReq added in v3.2.5

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

type GetProcessFormVariableDataReqBuilder added in v3.2.5

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

func NewGetProcessFormVariableDataReqBuilder added in v3.2.5

func NewGetProcessFormVariableDataReqBuilder() *GetProcessFormVariableDataReqBuilder

func (*GetProcessFormVariableDataReqBuilder) Build added in v3.2.5

func (*GetProcessFormVariableDataReqBuilder) DepartmentIdType added in v3.2.5

func (builder *GetProcessFormVariableDataReqBuilder) DepartmentIdType(departmentIdType string) *GetProcessFormVariableDataReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*GetProcessFormVariableDataReqBuilder) ProcessId added in v3.2.5

流程实例id

示例值:7341373094948242956

func (*GetProcessFormVariableDataReqBuilder) UserIdType added in v3.2.5

用户 ID 类型

示例值:people_corehr_id

type GetProcessFormVariableDataResp added in v3.2.5

type GetProcessFormVariableDataResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetProcessFormVariableDataRespData `json:"data"` // 业务数据
}

func (*GetProcessFormVariableDataResp) Success added in v3.2.5

func (resp *GetProcessFormVariableDataResp) Success() bool

type GetProcessFormVariableDataRespData added in v3.2.5

type GetProcessFormVariableDataRespData struct {
	FieldVariableValues []*FieldVariableValue `json:"field_variable_values,omitempty"` // 表单数据

	ProcessId *string `json:"process_id,omitempty"` // 流程实例id
}

type GetProcessReq

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

type GetProcessReqBuilder

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

func NewGetProcessReqBuilder

func NewGetProcessReqBuilder() *GetProcessReqBuilder

func (*GetProcessReqBuilder) Build

func (builder *GetProcessReqBuilder) Build() *GetProcessReq

func (*GetProcessReqBuilder) ProcessId

func (builder *GetProcessReqBuilder) ProcessId(processId string) *GetProcessReqBuilder

流程ID

示例值:7278949005675988535

func (*GetProcessReqBuilder) UserIdType

func (builder *GetProcessReqBuilder) UserIdType(userIdType string) *GetProcessReqBuilder

用户 ID 类型

示例值:open_id

type GetProcessResp

type GetProcessResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetProcessRespData `json:"data"` // 业务数据
}

func (*GetProcessResp) Success

func (resp *GetProcessResp) Success() bool

type GetProcessRespData

type GetProcessRespData struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程实例ID

	Status *int `json:"status,omitempty"` // 流程状态

	FlowTemplateId *string `json:"flow_template_id,omitempty"` // 业务类型ID

	FlowTemplateName *DataengineI18n `json:"flow_template_name,omitempty"` // 业务类型名称

	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义ID

	FlowDefinitionName *DataengineI18n `json:"flow_definition_name,omitempty"` // 流程定义名称

	InitiatorId *string `json:"initiator_id,omitempty"` // 流程发起人ID

	InitiatorName *DataengineI18n `json:"initiator_name,omitempty"` // 流程发起人姓名

	CreateTime *string `json:"create_time,omitempty"` // 流程发起时间,Unix毫秒时间戳

	CompleteTime *string `json:"complete_time,omitempty"` // 流程结束时间,Unix毫秒时间戳

	StartLinks *ProcessLink `json:"start_links,omitempty"` // 发起单据地址

	Abstracts []*ProcessAbstractItem `json:"abstracts,omitempty"` // 流程摘要,会随着流程流转发生变化

	Todos []*ProcessTodoItem `json:"todos,omitempty"` // 待办列表

	CcList []*ProcessCcItem `json:"cc_list,omitempty"` // 抄送列表

	DoneList []*ProcessDoneItem `json:"done_list,omitempty"` // 已办列表

	Properties *int `json:"properties,omitempty"` // 普通流程或撤销流程等

	SystemTodos []*ProcessSystemTodoItem `json:"system_todos,omitempty"` // 系统待办列表

	SystemDoneList []*ProcessSystemDoneItem `json:"system_done_list,omitempty"` // 系统已办列表

	CommentInfos []*ProcessCommentInfo `json:"comment_infos,omitempty"` // 评论列表

	OriginalProcessId *string `json:"original_process_id,omitempty"` // 更正流程原流程ID

	IsLastCompletedCorrectProcess *bool `json:"is_last_completed_correct_process,omitempty"` // 是否最新的「已完成」的更正流程
}

type HiberarchyCommon

type HiberarchyCommon struct {
	ParentId *string `json:"parent_id,omitempty"` // 上级组织

	Name []*I18n `json:"name,omitempty"` // 名称

	Type *Enum `json:"type,omitempty"` // 组织类型

	Active *bool `json:"active,omitempty"` // 启用

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	Code *string `json:"code,omitempty"` // 编码

	Description []*I18n `json:"description,omitempty"` // 描述

	TreeOrder *string `json:"tree_order,omitempty"` // 树形排序,代表同层级的部门排序序号

	ListOrder *string `json:"list_order,omitempty"` // 列表排序,代表所有部门的混排序号

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type HiberarchyCommonBuilder

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

func NewHiberarchyCommonBuilder

func NewHiberarchyCommonBuilder() *HiberarchyCommonBuilder

func (*HiberarchyCommonBuilder) Active

func (builder *HiberarchyCommonBuilder) Active(active bool) *HiberarchyCommonBuilder

启用

示例值:true

func (*HiberarchyCommonBuilder) Build

func (builder *HiberarchyCommonBuilder) Build() *HiberarchyCommon

func (*HiberarchyCommonBuilder) Code

编码

示例值:12456

func (*HiberarchyCommonBuilder) CustomFields

func (builder *HiberarchyCommonBuilder) CustomFields(customFields []*ObjectFieldData) *HiberarchyCommonBuilder

自定义字段

示例值:

func (*HiberarchyCommonBuilder) Description

func (builder *HiberarchyCommonBuilder) Description(description []*I18n) *HiberarchyCommonBuilder

描述

示例值:

func (*HiberarchyCommonBuilder) EffectiveTime

func (builder *HiberarchyCommonBuilder) EffectiveTime(effectiveTime string) *HiberarchyCommonBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*HiberarchyCommonBuilder) ExpirationTime

func (builder *HiberarchyCommonBuilder) ExpirationTime(expirationTime string) *HiberarchyCommonBuilder

失效时间

示例值:2020-05-02 00:00:00

func (*HiberarchyCommonBuilder) ListOrder

func (builder *HiberarchyCommonBuilder) ListOrder(listOrder string) *HiberarchyCommonBuilder

列表排序,代表所有部门的混排序号

示例值:123

func (*HiberarchyCommonBuilder) Name

func (builder *HiberarchyCommonBuilder) Name(name []*I18n) *HiberarchyCommonBuilder

名称

示例值:

func (*HiberarchyCommonBuilder) ParentId

func (builder *HiberarchyCommonBuilder) ParentId(parentId string) *HiberarchyCommonBuilder

上级组织

示例值:4719168654814483759

func (*HiberarchyCommonBuilder) TreeOrder

func (builder *HiberarchyCommonBuilder) TreeOrder(treeOrder string) *HiberarchyCommonBuilder

树形排序,代表同层级的部门排序序号

示例值:123

func (*HiberarchyCommonBuilder) Type

func (builder *HiberarchyCommonBuilder) Type(type_ *Enum) *HiberarchyCommonBuilder

组织类型

示例值:

type I18n

type I18n struct {
	Lang *string `json:"lang,omitempty"` // 语言编码(IETF BCP 47)

	Value *string `json:"value,omitempty"` // 文本内容
}

type I18nBuilder

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

func NewI18nBuilder

func NewI18nBuilder() *I18nBuilder

func (*I18nBuilder) Build

func (builder *I18nBuilder) Build() *I18n

func (*I18nBuilder) Lang

func (builder *I18nBuilder) Lang(lang string) *I18nBuilder

语言编码(IETF BCP 47)

示例值:zh-CN

func (*I18nBuilder) Value

func (builder *I18nBuilder) Value(value string) *I18nBuilder

文本内容

示例值:中文示例

type I18nV2

type I18nV2 struct {
	ZhCn *string `json:"zh_cn,omitempty"` // zh-CN

	EnUs *string `json:"en_us,omitempty"` // en-US
}

type I18nV2Builder

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

func NewI18nV2Builder

func NewI18nV2Builder() *I18nV2Builder

func (*I18nV2Builder) Build

func (builder *I18nV2Builder) Build() *I18nV2

func (*I18nV2Builder) EnUs

func (builder *I18nV2Builder) EnUs(enUs string) *I18nV2Builder

en-US

示例值:Bob

func (*I18nV2Builder) ZhCn

func (builder *I18nV2Builder) ZhCn(zhCn string) *I18nV2Builder

zh-CN

示例值:王冰

type InternationalAssignment

type InternationalAssignment struct {
	Id *string `json:"id,omitempty"` // 当前生效的外派记录ID

	AssignmentCityId *string `json:"assignment_city_id,omitempty"` // 当前生效外派记录的外派城市(派驻地)ID

	AssignmentCompanyId *string `json:"assignment_company_id,omitempty"` // 当前生效外派记录的外派公司ID

	AssignmentCountryId *string `json:"assignment_country_id,omitempty"` // 当前生效外派记录的外派国家ID

	AssignmentReason *I18n `json:"assignment_reason,omitempty"` // 当前生效外派记录的外派原因

	EffectiveTime *string `json:"effective_time,omitempty"` // 当前生效外派记录的生效时间

	StartAssignmentProcessId *string `json:"start_assignment_process_id,omitempty"` // 当前生效外派记录的开始外派流程 ID

	EndAssignmentProcessId *string `json:"end_assignment_process_id,omitempty"` // 当前生效外派记录的结束外派流程 ID

	ExpirationTime *string `json:"expiration_time,omitempty"` // 当前生效外派记录的失效时间

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // -| 当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // -| 当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment
}

type InternationalAssignmentBuilder

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

func NewInternationalAssignmentBuilder

func NewInternationalAssignmentBuilder() *InternationalAssignmentBuilder

func (*InternationalAssignmentBuilder) AssignmentCityId

func (builder *InternationalAssignmentBuilder) AssignmentCityId(assignmentCityId string) *InternationalAssignmentBuilder

当前生效外派记录的外派城市(派驻地)ID

示例值:7046599238679447084

func (*InternationalAssignmentBuilder) AssignmentCompanyId

func (builder *InternationalAssignmentBuilder) AssignmentCompanyId(assignmentCompanyId string) *InternationalAssignmentBuilder

当前生效外派记录的外派公司ID

示例值:7046599238679447084

func (*InternationalAssignmentBuilder) AssignmentCountryId

func (builder *InternationalAssignmentBuilder) AssignmentCountryId(assignmentCountryId string) *InternationalAssignmentBuilder

当前生效外派记录的外派国家ID

示例值:7046599238679447084

func (*InternationalAssignmentBuilder) AssignmentReason

func (builder *InternationalAssignmentBuilder) AssignmentReason(assignmentReason *I18n) *InternationalAssignmentBuilder

当前生效外派记录的外派原因

示例值:

func (*InternationalAssignmentBuilder) Build

func (*InternationalAssignmentBuilder) EffectiveTime

func (builder *InternationalAssignmentBuilder) EffectiveTime(effectiveTime string) *InternationalAssignmentBuilder

当前生效外派记录的生效时间

示例值:2023-08-29

func (*InternationalAssignmentBuilder) EndAssignmentProcessId

func (builder *InternationalAssignmentBuilder) EndAssignmentProcessId(endAssignmentProcessId string) *InternationalAssignmentBuilder

当前生效外派记录的结束外派流程 ID

示例值:1111111

func (*InternationalAssignmentBuilder) ExpirationTime

func (builder *InternationalAssignmentBuilder) ExpirationTime(expirationTime string) *InternationalAssignmentBuilder

当前生效外派记录的失效时间

示例值:2023-12-29

func (*InternationalAssignmentBuilder) Id

当前生效的外派记录ID

示例值:7046599238679447000

func (*InternationalAssignmentBuilder) InternationalAssignmentStatus

func (builder *InternationalAssignmentBuilder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *InternationalAssignmentBuilder

-| 当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentBuilder) InternationalAssignmentType

func (builder *InternationalAssignmentBuilder) InternationalAssignmentType(internationalAssignmentType *Enum) *InternationalAssignmentBuilder

-| 当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentBuilder) StartAssignmentProcessId

func (builder *InternationalAssignmentBuilder) StartAssignmentProcessId(startAssignmentProcessId string) *InternationalAssignmentBuilder

当前生效外派记录的开始外派流程 ID

示例值:111111

type InternationalAssignmentV2

type InternationalAssignmentV2 struct {
	Id *string `json:"id,omitempty"` // 派驻信息ID

	EmploymentId *string `json:"employment_id,omitempty"` // Employment ID

	CreatedBy *string `json:"created_by,omitempty"` // 创建人

	CreatedAt *string `json:"created_at,omitempty"` // 创建时间

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	DeletedAt *string `json:"deleted_at,omitempty"` // 删除时间

	UpdatedAt *string `json:"updated_at,omitempty"` // 更新时间

	UpdatedBy *string `json:"updated_by,omitempty"` // 更新人

	AssignmentCountry *string `json:"assignment_country,omitempty"` // 外派国家ID

	AssignmentCity *string `json:"assignment_city,omitempty"` // 外派城市ID

	AssignmentCompany *string `json:"assignment_company,omitempty"` // 外派公司ID

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // 当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // 当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

	InternationalAssignmentAllowance *bool `json:"international_assignment_allowance,omitempty"` // 是否享有派驻津贴

	Accommodation *bool `json:"accommodation,omitempty"` // 是否提供住宿

	Description *string `json:"description,omitempty"` // 描述
}

type InternationalAssignmentV2Builder

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

func NewInternationalAssignmentV2Builder

func NewInternationalAssignmentV2Builder() *InternationalAssignmentV2Builder

func (*InternationalAssignmentV2Builder) Accommodation

func (builder *InternationalAssignmentV2Builder) Accommodation(accommodation bool) *InternationalAssignmentV2Builder

是否提供住宿

示例值:false

func (*InternationalAssignmentV2Builder) AssignmentCity

func (builder *InternationalAssignmentV2Builder) AssignmentCity(assignmentCity string) *InternationalAssignmentV2Builder

外派城市ID

示例值:7046599238679447084

func (*InternationalAssignmentV2Builder) AssignmentCompany

func (builder *InternationalAssignmentV2Builder) AssignmentCompany(assignmentCompany string) *InternationalAssignmentV2Builder

外派公司ID

示例值:7046599238679447084

func (*InternationalAssignmentV2Builder) AssignmentCountry

func (builder *InternationalAssignmentV2Builder) AssignmentCountry(assignmentCountry string) *InternationalAssignmentV2Builder

外派国家ID

示例值:7046599238679447084

func (*InternationalAssignmentV2Builder) Build

func (*InternationalAssignmentV2Builder) CreatedAt

创建时间

示例值:2021-08-18 16:04:21

func (*InternationalAssignmentV2Builder) CreatedBy

创建人

示例值:7046599238679447000

func (*InternationalAssignmentV2Builder) DeletedAt

删除时间

示例值:2021-08-18 16:04:21

func (*InternationalAssignmentV2Builder) Description

描述

示例值:外派信息的描述

func (*InternationalAssignmentV2Builder) EffectiveTime

func (builder *InternationalAssignmentV2Builder) EffectiveTime(effectiveTime string) *InternationalAssignmentV2Builder

生效时间

示例值:2023-08-29

func (*InternationalAssignmentV2Builder) EmploymentId

func (builder *InternationalAssignmentV2Builder) EmploymentId(employmentId string) *InternationalAssignmentV2Builder

Employment ID

示例值:7046599238679447000

func (*InternationalAssignmentV2Builder) ExpirationTime

func (builder *InternationalAssignmentV2Builder) ExpirationTime(expirationTime string) *InternationalAssignmentV2Builder

失效时间

示例值:2023-12-29

func (*InternationalAssignmentV2Builder) Id

派驻信息ID

示例值:7046599238679447000

func (*InternationalAssignmentV2Builder) InternationalAssignmentAllowance

func (builder *InternationalAssignmentV2Builder) InternationalAssignmentAllowance(internationalAssignmentAllowance bool) *InternationalAssignmentV2Builder

是否享有派驻津贴

示例值:false

func (*InternationalAssignmentV2Builder) InternationalAssignmentExpectedEndDate

func (builder *InternationalAssignmentV2Builder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *InternationalAssignmentV2Builder

预计结束日期

示例值:2023-12-29

func (*InternationalAssignmentV2Builder) InternationalAssignmentStatus

func (builder *InternationalAssignmentV2Builder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *InternationalAssignmentV2Builder

当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentV2Builder) InternationalAssignmentType

func (builder *InternationalAssignmentV2Builder) InternationalAssignmentType(internationalAssignmentType *Enum) *InternationalAssignmentV2Builder

当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentV2Builder) UpdatedAt

更新时间

示例值:2021-08-18 16:04:21

func (*InternationalAssignmentV2Builder) UpdatedBy

更新人

示例值:7046599238679447000

type InternationalAssignmentV2ForCreate

type InternationalAssignmentV2ForCreate struct {
	EmploymentId *string `json:"employment_id,omitempty"` // Employment ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	AssignmentCountry *string `json:"assignment_country,omitempty"` // 外派国家ID

	AssignmentCity *string `json:"assignment_city,omitempty"` // 外派城市ID

	AssignmentCompany *string `json:"assignment_company,omitempty"` // 外派公司ID

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // 当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // 当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

	InternationalAssignmentAllowance *bool `json:"international_assignment_allowance,omitempty"` // 是否享有派驻津贴

	Accommodation *bool `json:"accommodation,omitempty"` // 是否提供住宿

	Description *string `json:"description,omitempty"` // 描述
}

type InternationalAssignmentV2ForCreateBuilder

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

func NewInternationalAssignmentV2ForCreateBuilder

func NewInternationalAssignmentV2ForCreateBuilder() *InternationalAssignmentV2ForCreateBuilder

func (*InternationalAssignmentV2ForCreateBuilder) Accommodation

是否提供住宿

示例值:true

func (*InternationalAssignmentV2ForCreateBuilder) AssignmentCity

外派城市ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForCreateBuilder) AssignmentCompany

外派公司ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForCreateBuilder) AssignmentCountry

外派国家ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForCreateBuilder) Build

func (*InternationalAssignmentV2ForCreateBuilder) Description

描述

示例值:外派信息的描述

func (*InternationalAssignmentV2ForCreateBuilder) EffectiveTime

生效时间

示例值:2023-08-29

func (*InternationalAssignmentV2ForCreateBuilder) EmploymentId

Employment ID

示例值:7046599238679447000

func (*InternationalAssignmentV2ForCreateBuilder) ExpirationTime

失效时间

示例值:2023-12-29

func (*InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentAllowance

func (builder *InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentAllowance(internationalAssignmentAllowance bool) *InternationalAssignmentV2ForCreateBuilder

是否享有派驻津贴

示例值:true

func (*InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentExpectedEndDate

func (builder *InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *InternationalAssignmentV2ForCreateBuilder

预计结束日期

示例值:2023-12-29

func (*InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentStatus

func (builder *InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *InternationalAssignmentV2ForCreateBuilder

当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentType

func (builder *InternationalAssignmentV2ForCreateBuilder) InternationalAssignmentType(internationalAssignmentType *Enum) *InternationalAssignmentV2ForCreateBuilder

当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

示例值:

type InternationalAssignmentV2ForPatch

type InternationalAssignmentV2ForPatch struct {
	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	InternationalAssignmentExpectedEndDate *string `json:"international_assignment_expected_end_date,omitempty"` // 预计结束日期

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	AssignmentCountry *string `json:"assignment_country,omitempty"` // 外派国家ID

	AssignmentCity *string `json:"assignment_city,omitempty"` // 外派城市ID

	AssignmentCompany *string `json:"assignment_company,omitempty"` // 外派公司ID

	InternationalAssignmentStatus *Enum `json:"international_assignment_status,omitempty"` // 当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

	InternationalAssignmentType *Enum `json:"international_assignment_type,omitempty"` // 当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

	InternationalAssignmentAllowance *bool `json:"international_assignment_allowance,omitempty"` // 是否享有派驻津贴

	Accommodation *bool `json:"accommodation,omitempty"` // 是否提供住宿

	Description *string `json:"description,omitempty"` // 描述
}

type InternationalAssignmentV2ForPatchBuilder

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

func NewInternationalAssignmentV2ForPatchBuilder

func NewInternationalAssignmentV2ForPatchBuilder() *InternationalAssignmentV2ForPatchBuilder

func (*InternationalAssignmentV2ForPatchBuilder) Accommodation

是否提供住宿

示例值:true

func (*InternationalAssignmentV2ForPatchBuilder) AssignmentCity

外派城市ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForPatchBuilder) AssignmentCompany

func (builder *InternationalAssignmentV2ForPatchBuilder) AssignmentCompany(assignmentCompany string) *InternationalAssignmentV2ForPatchBuilder

外派公司ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForPatchBuilder) AssignmentCountry

func (builder *InternationalAssignmentV2ForPatchBuilder) AssignmentCountry(assignmentCountry string) *InternationalAssignmentV2ForPatchBuilder

外派国家ID

示例值:7046599238679447084

func (*InternationalAssignmentV2ForPatchBuilder) Build

func (*InternationalAssignmentV2ForPatchBuilder) Description

描述

示例值:外派信息的描述

func (*InternationalAssignmentV2ForPatchBuilder) EffectiveTime

生效时间

示例值:2023-08-29

func (*InternationalAssignmentV2ForPatchBuilder) ExpirationTime

失效时间

示例值:2023-12-29

func (*InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentAllowance

func (builder *InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentAllowance(internationalAssignmentAllowance bool) *InternationalAssignmentV2ForPatchBuilder

是否享有派驻津贴

示例值:true

func (*InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentExpectedEndDate

func (builder *InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentExpectedEndDate(internationalAssignmentExpectedEndDate string) *InternationalAssignmentV2ForPatchBuilder

预计结束日期

示例值:2023-12-29

func (*InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentStatus

func (builder *InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentStatus(internationalAssignmentStatus *Enum) *InternationalAssignmentV2ForPatchBuilder

当前生效外派记录的外派状态 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_status - object_api_name:international_assignment

示例值:

func (*InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentType

func (builder *InternationalAssignmentV2ForPatchBuilder) InternationalAssignmentType(internationalAssignmentType *Enum) *InternationalAssignmentV2ForPatchBuilder

当前生效外派记录的外派类型 - 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:international_assignment_type - object_api_name:international_assignment

示例值:

type Job

type Job struct {
	Id *string `json:"id,omitempty"` // 实体在CoreHR内部的唯一键

	Code *string `json:"code,omitempty"` // 编码

	Name []*I18n `json:"name,omitempty"` // 名称

	Description []*I18n `json:"description,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 启用

	JobTitle []*I18n `json:"job_title,omitempty"` // 职务头衔

	JobFamilyIdList []string `json:"job_family_id_list,omitempty"` // 序列

	JobLevelIdList []string `json:"job_level_id_list,omitempty"` // 职级

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度,引用WorkingHoursType的ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type JobBuilder

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

func NewJobBuilder

func NewJobBuilder() *JobBuilder

func (*JobBuilder) Active

func (builder *JobBuilder) Active(active bool) *JobBuilder

启用

示例值:true

func (*JobBuilder) Build

func (builder *JobBuilder) Build() *Job

func (*JobBuilder) Code

func (builder *JobBuilder) Code(code string) *JobBuilder

编码

示例值:JP422119

func (*JobBuilder) CustomFields

func (builder *JobBuilder) CustomFields(customFields []*ObjectFieldData) *JobBuilder

自定义字段

示例值:

func (*JobBuilder) Description

func (builder *JobBuilder) Description(description []*I18n) *JobBuilder

描述

示例值:

func (*JobBuilder) EffectiveTime

func (builder *JobBuilder) EffectiveTime(effectiveTime string) *JobBuilder

生效时间

示例值:2020-01-01 00:00:00

func (*JobBuilder) ExpirationTime

func (builder *JobBuilder) ExpirationTime(expirationTime string) *JobBuilder

失效时间

示例值:2021-01-01 00:00:00

func (*JobBuilder) Id

func (builder *JobBuilder) Id(id string) *JobBuilder

实体在CoreHR内部的唯一键

示例值:4698040628992333549

func (*JobBuilder) JobFamilyIdList

func (builder *JobBuilder) JobFamilyIdList(jobFamilyIdList []string) *JobBuilder

序列

示例值:

func (*JobBuilder) JobLevelIdList

func (builder *JobBuilder) JobLevelIdList(jobLevelIdList []string) *JobBuilder

职级

示例值:

func (*JobBuilder) JobTitle

func (builder *JobBuilder) JobTitle(jobTitle []*I18n) *JobBuilder

职务头衔

示例值:

func (*JobBuilder) Name

func (builder *JobBuilder) Name(name []*I18n) *JobBuilder

名称

示例值:

func (*JobBuilder) WorkingHoursTypeId

func (builder *JobBuilder) WorkingHoursTypeId(workingHoursTypeId string) *JobBuilder

工时制度,引用WorkingHoursType的ID

示例值:6890452208593372679

type JobChange

type JobChange struct {
	JobChangeId *string `json:"job_change_id,omitempty"` // 异动记录 id

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员 id

	Status *string `json:"status,omitempty"` // 异动状态

	TransferTypeUniqueIdentifier *string `json:"transfer_type_unique_identifier,omitempty"` // 异动类型

	TransferReasonUniqueIdentifier *string `json:"transfer_reason_unique_identifier,omitempty"` // 异动原因

	ProcessId *string `json:"process_id,omitempty"` // 异动流程 id

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效时间

	CreatedTime *string `json:"created_time,omitempty"` // 创建时间

	UpdatedTime *string `json:"updated_time,omitempty"` // 更新时间

	TransferInfo *TransferInfo `json:"transfer_info,omitempty"` // 异动详细信息

	IsAdjustSalary *bool `json:"is_adjust_salary,omitempty"` // 是否调整薪酬

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 异动自定义字段
}

type JobChangeBuilder

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

func NewJobChangeBuilder

func NewJobChangeBuilder() *JobChangeBuilder

func (*JobChangeBuilder) Build

func (builder *JobChangeBuilder) Build() *JobChange

func (*JobChangeBuilder) CreatedTime

func (builder *JobChangeBuilder) CreatedTime(createdTime string) *JobChangeBuilder

创建时间

示例值:1627899724000

func (*JobChangeBuilder) CustomFields added in v3.3.3

func (builder *JobChangeBuilder) CustomFields(customFields []*CustomFieldData) *JobChangeBuilder

异动自定义字段

示例值:

func (*JobChangeBuilder) EffectiveDate

func (builder *JobChangeBuilder) EffectiveDate(effectiveDate string) *JobChangeBuilder

生效时间

示例值:2022-03-01

func (*JobChangeBuilder) EmploymentId

func (builder *JobChangeBuilder) EmploymentId(employmentId string) *JobChangeBuilder

雇员 id

示例值:ou_a294793e8fa21529f2a60e3e9de45520

func (*JobChangeBuilder) IsAdjustSalary added in v3.3.3

func (builder *JobChangeBuilder) IsAdjustSalary(isAdjustSalary bool) *JobChangeBuilder

是否调整薪酬

示例值:true

func (*JobChangeBuilder) JobChangeId

func (builder *JobChangeBuilder) JobChangeId(jobChangeId string) *JobChangeBuilder

异动记录 id

示例值:6991776076699549697

func (*JobChangeBuilder) ProcessId

func (builder *JobChangeBuilder) ProcessId(processId string) *JobChangeBuilder

异动流程 id

示例值:6991776078461142564

func (*JobChangeBuilder) Status

func (builder *JobChangeBuilder) Status(status string) *JobChangeBuilder

异动状态

示例值:Approved

func (*JobChangeBuilder) TransferInfo

func (builder *JobChangeBuilder) TransferInfo(transferInfo *TransferInfo) *JobChangeBuilder

异动详细信息

示例值:

func (*JobChangeBuilder) TransferReasonUniqueIdentifier

func (builder *JobChangeBuilder) TransferReasonUniqueIdentifier(transferReasonUniqueIdentifier string) *JobChangeBuilder

异动原因

示例值:involuntary_transfer

func (*JobChangeBuilder) TransferTypeUniqueIdentifier

func (builder *JobChangeBuilder) TransferTypeUniqueIdentifier(transferTypeUniqueIdentifier string) *JobChangeBuilder

异动类型

示例值:direct_leader_change

func (*JobChangeBuilder) UpdatedTime

func (builder *JobChangeBuilder) UpdatedTime(updatedTime string) *JobChangeBuilder

更新时间

示例值:1647434443000

type JobData

type JobData struct {
	JobDataId *string `json:"job_data_id,omitempty"` // 任职信息 ID

	VersionId *string `json:"version_id,omitempty"` // 任职记录版本 ID

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID,枚举值及详细信息可通过【查询单个人员类型】接口查询获得

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID,枚举值及详细信息可通过【查询单个工时制度】接口查询获得

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点 ID,枚举值及详细信息可通过【查询单个地点】接口查询获得

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,枚举值及详细信息可通过【查询单个部门】接口查询获得

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID,枚举值及详细信息可通过【查询单个岗位】接口查询获得

	JobId *string `json:"job_id,omitempty"` // 职务 ID,枚举值及详细信息可通过【查询单个职务】接口查询获得

	JobLevelId *string `json:"job_level_id,omitempty"` // 职务级别 ID,枚举值及详细信息可通过【查询单个职务级别】接口查询获得

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID

	JobFamilyId *string `json:"job_family_id,omitempty"` // 职务序列 ID,枚举值及详细信息可通过【查询单个职务序列】接口查询获得

	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期(实际结束日期)

	PrimaryJobData *bool `json:"primary_job_data,omitempty"` // 是否为主任职

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	AssignmentStartReason *Enum `json:"assignment_start_reason,omitempty"` // 任职原因,枚举值可通过文档【飞书人事枚举常量】任职原因(assignment_start_reason)枚举定义部分获得

	ProbationExpectedEndDate *string `json:"probation_expected_end_date,omitempty"` // 预计试用期结束日期

	ProbationOutcome *Enum `json:"probation_outcome,omitempty"` // 试用期结果,枚举值可通过文档【飞书人事枚举常量】试用期结果(probation_outcome)枚举定义部分获得

	DirectManager *BasicJobData `json:"direct_manager,omitempty"` // 直属上级

	DottedLineManagers []*BasicJobData `json:"dotted_line_managers,omitempty"` // 虚线上级

	SecondDirectManager *BasicJobData `json:"second_direct_manager,omitempty"` // 第二实线主管

	CostCenterRates []*JobDataCostCenter `json:"cost_center_rates,omitempty"` // 成本中心分摊信息

	WorkShift *Enum `json:"work_shift,omitempty"` // 排班类型

	CompensationType *Enum `json:"compensation_type,omitempty"` // 薪资类型

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	CreatedAt *string `json:"created_at,omitempty"` // 创建时间

	WeeklyWorkingHoursV2 *float64 `json:"weekly_working_hours_v2,omitempty"` // 周工作时长

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID
}

type JobDataBuilder

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

func NewJobDataBuilder

func NewJobDataBuilder() *JobDataBuilder

func (*JobDataBuilder) AssignmentStartReason

func (builder *JobDataBuilder) AssignmentStartReason(assignmentStartReason *Enum) *JobDataBuilder

任职原因,枚举值可通过文档【飞书人事枚举常量】任职原因(assignment_start_reason)枚举定义部分获得

示例值:onboarding

func (*JobDataBuilder) Build

func (builder *JobDataBuilder) Build() *JobData

func (*JobDataBuilder) CompensationType added in v3.2.2

func (builder *JobDataBuilder) CompensationType(compensationType *Enum) *JobDataBuilder

薪资类型

示例值:

func (*JobDataBuilder) CostCenterRates

func (builder *JobDataBuilder) CostCenterRates(costCenterRates []*JobDataCostCenter) *JobDataBuilder

成本中心分摊信息

示例值:

func (*JobDataBuilder) CreatedAt added in v3.2.6

func (builder *JobDataBuilder) CreatedAt(createdAt string) *JobDataBuilder

创建时间

示例值:2020-05-02 00:00:00

func (*JobDataBuilder) CustomFields

func (builder *JobDataBuilder) CustomFields(customFields []*CustomFieldData) *JobDataBuilder

自定义字段

示例值:

func (*JobDataBuilder) DepartmentId

func (builder *JobDataBuilder) DepartmentId(departmentId string) *JobDataBuilder

部门 ID,枚举值及详细信息可通过【查询单个部门】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) DirectManager

func (builder *JobDataBuilder) DirectManager(directManager *BasicJobData) *JobDataBuilder

直属上级

示例值:

func (*JobDataBuilder) DottedLineManagers

func (builder *JobDataBuilder) DottedLineManagers(dottedLineManagers []*BasicJobData) *JobDataBuilder

虚线上级

示例值:

func (*JobDataBuilder) EffectiveTime

func (builder *JobDataBuilder) EffectiveTime(effectiveTime string) *JobDataBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*JobDataBuilder) EmployeeSubtypeId added in v3.3.5

func (builder *JobDataBuilder) EmployeeSubtypeId(employeeSubtypeId string) *JobDataBuilder

人员子类型 ID

示例值:6890452208593372680

func (*JobDataBuilder) EmployeeTypeId

func (builder *JobDataBuilder) EmployeeTypeId(employeeTypeId string) *JobDataBuilder

人员类型 ID,枚举值及详细信息可通过【查询单个人员类型】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) EmploymentId

func (builder *JobDataBuilder) EmploymentId(employmentId string) *JobDataBuilder

雇佣 ID

示例值:6893014062142064135

func (*JobDataBuilder) ExpirationTime

func (builder *JobDataBuilder) ExpirationTime(expirationTime string) *JobDataBuilder

失效时间

示例值:2020-05-02 00:00:00

func (*JobDataBuilder) JobDataId

func (builder *JobDataBuilder) JobDataId(jobDataId string) *JobDataBuilder

任职信息 ID

示例值:6890452208593372679

func (*JobDataBuilder) JobFamilyId

func (builder *JobDataBuilder) JobFamilyId(jobFamilyId string) *JobDataBuilder

职务序列 ID,枚举值及详细信息可通过【查询单个职务序列】接口查询获得

示例值:1245678

func (*JobDataBuilder) JobGradeId

func (builder *JobDataBuilder) JobGradeId(jobGradeId string) *JobDataBuilder

职等 ID

示例值:6890452208593372679

func (*JobDataBuilder) JobId

func (builder *JobDataBuilder) JobId(jobId string) *JobDataBuilder

职务 ID,枚举值及详细信息可通过【查询单个职务】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) JobLevelId

func (builder *JobDataBuilder) JobLevelId(jobLevelId string) *JobDataBuilder

职务级别 ID,枚举值及详细信息可通过【查询单个职务级别】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) PositionId added in v3.2.8

func (builder *JobDataBuilder) PositionId(positionId string) *JobDataBuilder

岗位 ID,枚举值及详细信息可通过【查询单个岗位】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) PrimaryJobData

func (builder *JobDataBuilder) PrimaryJobData(primaryJobData bool) *JobDataBuilder

是否为主任职

示例值:true

func (*JobDataBuilder) ProbationEndDate

func (builder *JobDataBuilder) ProbationEndDate(probationEndDate string) *JobDataBuilder

试用期结束日期(实际结束日期)

示例值:2019-05-24T00:00:00

func (*JobDataBuilder) ProbationExpectedEndDate

func (builder *JobDataBuilder) ProbationExpectedEndDate(probationExpectedEndDate string) *JobDataBuilder

预计试用期结束日期

示例值:2006-01-02

func (*JobDataBuilder) ProbationOutcome

func (builder *JobDataBuilder) ProbationOutcome(probationOutcome *Enum) *JobDataBuilder

试用期结果,枚举值可通过文档【飞书人事枚举常量】试用期结果(probation_outcome)枚举定义部分获得

示例值:passed

func (*JobDataBuilder) ProbationStartDate

func (builder *JobDataBuilder) ProbationStartDate(probationStartDate string) *JobDataBuilder

试用期开始日期

示例值:2018-03-16T00:00:00

func (*JobDataBuilder) SecondDirectManager

func (builder *JobDataBuilder) SecondDirectManager(secondDirectManager *BasicJobData) *JobDataBuilder

第二实线主管

示例值:6890452208593372679

func (*JobDataBuilder) ServiceCompany added in v3.2.2

func (builder *JobDataBuilder) ServiceCompany(serviceCompany string) *JobDataBuilder

任职公司

示例值:6890452208593372680

func (*JobDataBuilder) VersionId

func (builder *JobDataBuilder) VersionId(versionId string) *JobDataBuilder

任职记录版本 ID

示例值:6890452208593372697

func (*JobDataBuilder) WeeklyWorkingHoursV2 added in v3.3.5

func (builder *JobDataBuilder) WeeklyWorkingHoursV2(weeklyWorkingHoursV2 float64) *JobDataBuilder

周工作时长

示例值:10.1

func (*JobDataBuilder) WorkLocationId

func (builder *JobDataBuilder) WorkLocationId(workLocationId string) *JobDataBuilder

工作地点 ID,枚举值及详细信息可通过【查询单个地点】接口查询获得

示例值:6890452208593372679

func (*JobDataBuilder) WorkShift added in v3.2.2

func (builder *JobDataBuilder) WorkShift(workShift *Enum) *JobDataBuilder

排班类型

示例值:

func (*JobDataBuilder) WorkingHoursTypeId

func (builder *JobDataBuilder) WorkingHoursTypeId(workingHoursTypeId string) *JobDataBuilder

工时制度 ID,枚举值及详细信息可通过【查询单个工时制度】接口查询获得

示例值:6890452208593372679

type JobDataCostCenter

type JobDataCostCenter struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心 ID,可以通过【查询单个成本中心信息】接口获取对应的成本中心信息

	Rate *int `json:"rate,omitempty"` // 分摊比例
}

type JobDataCostCenterBuilder

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

func NewJobDataCostCenterBuilder

func NewJobDataCostCenterBuilder() *JobDataCostCenterBuilder

func (*JobDataCostCenterBuilder) Build

func (builder *JobDataCostCenterBuilder) Build() *JobDataCostCenter

func (*JobDataCostCenterBuilder) CostCenterId

func (builder *JobDataCostCenterBuilder) CostCenterId(costCenterId string) *JobDataCostCenterBuilder

成本中心 ID,可以通过【查询单个成本中心信息】接口获取对应的成本中心信息

示例值:6950635856373745165

func (*JobDataCostCenterBuilder) Rate

分摊比例

示例值:100

type JobDataCustomOrg added in v3.3.1

type JobDataCustomOrg struct {
	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	StartReason *string `json:"start_reason,omitempty"` // 原因

	CustomOrgWithRates []*CreateEmpCustomOrg `json:"custom_org_with_rates,omitempty"` // 自定义组织列表

	ObjectApiName *string `json:"object_api_name,omitempty"` // 自定义组织类型
}

type JobDataCustomOrgBuilder added in v3.3.1

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

func NewJobDataCustomOrgBuilder added in v3.3.1

func NewJobDataCustomOrgBuilder() *JobDataCustomOrgBuilder

func (*JobDataCustomOrgBuilder) Build added in v3.3.1

func (builder *JobDataCustomOrgBuilder) Build() *JobDataCustomOrg

func (*JobDataCustomOrgBuilder) CustomOrgWithRates added in v3.3.1

func (builder *JobDataCustomOrgBuilder) CustomOrgWithRates(customOrgWithRates []*CreateEmpCustomOrg) *JobDataCustomOrgBuilder

自定义组织列表

示例值:

func (*JobDataCustomOrgBuilder) EffectiveTime added in v3.3.1

func (builder *JobDataCustomOrgBuilder) EffectiveTime(effectiveTime string) *JobDataCustomOrgBuilder

生效时间

示例值:2024-07-02

func (*JobDataCustomOrgBuilder) ObjectApiName added in v3.3.1

func (builder *JobDataCustomOrgBuilder) ObjectApiName(objectApiName string) *JobDataCustomOrgBuilder

自定义组织类型

示例值:custom_org_01

func (*JobDataCustomOrgBuilder) StartReason added in v3.3.1

func (builder *JobDataCustomOrgBuilder) StartReason(startReason string) *JobDataCustomOrgBuilder

原因

示例值:新增人员

type JobFamily

type JobFamily struct {
	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID

	Name []*I18n `json:"name,omitempty"` // 名称

	Active *bool `json:"active,omitempty"` // 启用

	ParentId *string `json:"parent_id,omitempty"` // 上级序列

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	Code *string `json:"code,omitempty"` // 编码

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type JobFamilyBuilder

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

func NewJobFamilyBuilder

func NewJobFamilyBuilder() *JobFamilyBuilder

func (*JobFamilyBuilder) Active

func (builder *JobFamilyBuilder) Active(active bool) *JobFamilyBuilder

启用

示例值:true

func (*JobFamilyBuilder) Build

func (builder *JobFamilyBuilder) Build() *JobFamily

func (*JobFamilyBuilder) Code

func (builder *JobFamilyBuilder) Code(code string) *JobFamilyBuilder

编码

示例值:123456

func (*JobFamilyBuilder) CustomFields

func (builder *JobFamilyBuilder) CustomFields(customFields []*CustomFieldData) *JobFamilyBuilder

自定义字段

示例值:

func (*JobFamilyBuilder) EffectiveTime

func (builder *JobFamilyBuilder) EffectiveTime(effectiveTime string) *JobFamilyBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*JobFamilyBuilder) ExpirationTime

func (builder *JobFamilyBuilder) ExpirationTime(expirationTime string) *JobFamilyBuilder

失效时间

示例值:2020-05-02 00:00:00

func (*JobFamilyBuilder) JobFamilyId

func (builder *JobFamilyBuilder) JobFamilyId(jobFamilyId string) *JobFamilyBuilder

序列 ID

示例值:4698019107896524633

func (*JobFamilyBuilder) Name

func (builder *JobFamilyBuilder) Name(name []*I18n) *JobFamilyBuilder

名称

示例值:

func (*JobFamilyBuilder) ParentId

func (builder *JobFamilyBuilder) ParentId(parentId string) *JobFamilyBuilder

上级序列

示例值:4698020757495316313

type JobGrade added in v3.2.5

type JobGrade struct {
	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID

	GradeOrder *int `json:"grade_order,omitempty"` // 职等数值

	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 启用
}

type JobGradeBuilder added in v3.2.5

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

func NewJobGradeBuilder added in v3.2.5

func NewJobGradeBuilder() *JobGradeBuilder

func (*JobGradeBuilder) Active added in v3.2.5

func (builder *JobGradeBuilder) Active(active bool) *JobGradeBuilder

启用

示例值:true

func (*JobGradeBuilder) Build added in v3.2.5

func (builder *JobGradeBuilder) Build() *JobGrade

func (*JobGradeBuilder) Code added in v3.2.5

func (builder *JobGradeBuilder) Code(code string) *JobGradeBuilder

编码

示例值:A01234

func (*JobGradeBuilder) Descriptions added in v3.2.5

func (builder *JobGradeBuilder) Descriptions(descriptions []*I18n) *JobGradeBuilder

描述

示例值:

func (*JobGradeBuilder) GradeOrder added in v3.2.5

func (builder *JobGradeBuilder) GradeOrder(gradeOrder int) *JobGradeBuilder

职等数值

示例值:9999

func (*JobGradeBuilder) JobGradeId added in v3.2.5

func (builder *JobGradeBuilder) JobGradeId(jobGradeId string) *JobGradeBuilder

职等 ID

示例值:4692446793125560154

func (*JobGradeBuilder) Names added in v3.2.5

func (builder *JobGradeBuilder) Names(names []*I18n) *JobGradeBuilder

名称

示例值:

type JobGradeCreate added in v3.3.4

type JobGradeCreate struct {
	GradeOrder *int `json:"grade_order,omitempty"` // 职等数值

	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述
}

type JobGradeCreateBuilder added in v3.3.4

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

func NewJobGradeCreateBuilder added in v3.3.4

func NewJobGradeCreateBuilder() *JobGradeCreateBuilder

func (*JobGradeCreateBuilder) Build added in v3.3.4

func (builder *JobGradeCreateBuilder) Build() *JobGradeCreate

func (*JobGradeCreateBuilder) Code added in v3.3.4

func (builder *JobGradeCreateBuilder) Code(code string) *JobGradeCreateBuilder

编码

示例值:A01234

func (*JobGradeCreateBuilder) Descriptions added in v3.3.4

func (builder *JobGradeCreateBuilder) Descriptions(descriptions []*I18n) *JobGradeCreateBuilder

描述

示例值:

func (*JobGradeCreateBuilder) GradeOrder added in v3.3.4

func (builder *JobGradeCreateBuilder) GradeOrder(gradeOrder int) *JobGradeCreateBuilder

职等数值

示例值:9999

func (*JobGradeCreateBuilder) Names added in v3.3.4

func (builder *JobGradeCreateBuilder) Names(names []*I18n) *JobGradeCreateBuilder

名称

示例值:

type JobGradeUpdate added in v3.3.4

type JobGradeUpdate struct {
	GradeOrder *int `json:"grade_order,omitempty"` // 职等数值

	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 启用
}

type JobGradeUpdateBuilder added in v3.3.4

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

func NewJobGradeUpdateBuilder added in v3.3.4

func NewJobGradeUpdateBuilder() *JobGradeUpdateBuilder

func (*JobGradeUpdateBuilder) Active added in v3.3.4

func (builder *JobGradeUpdateBuilder) Active(active bool) *JobGradeUpdateBuilder

启用

示例值:true

func (*JobGradeUpdateBuilder) Build added in v3.3.4

func (builder *JobGradeUpdateBuilder) Build() *JobGradeUpdate

func (*JobGradeUpdateBuilder) Code added in v3.3.4

func (builder *JobGradeUpdateBuilder) Code(code string) *JobGradeUpdateBuilder

编码

示例值:A01234

func (*JobGradeUpdateBuilder) Descriptions added in v3.3.4

func (builder *JobGradeUpdateBuilder) Descriptions(descriptions []*I18n) *JobGradeUpdateBuilder

描述

示例值:

func (*JobGradeUpdateBuilder) GradeOrder added in v3.3.4

func (builder *JobGradeUpdateBuilder) GradeOrder(gradeOrder int) *JobGradeUpdateBuilder

职等数值

示例值:9999

func (*JobGradeUpdateBuilder) Names added in v3.3.4

func (builder *JobGradeUpdateBuilder) Names(names []*I18n) *JobGradeUpdateBuilder

名称

示例值:

type JobLevel

type JobLevel struct {
	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID

	LevelOrder *int `json:"level_order,omitempty"` // 职级数值

	Code *string `json:"code,omitempty"` // 编码

	Name []*I18n `json:"name,omitempty"` // 名称

	Description []*I18n `json:"description,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 启用

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	JobGrade []string `json:"job_grade,omitempty"` // 职等 ID 列表
}

type JobLevelBuilder

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

func NewJobLevelBuilder

func NewJobLevelBuilder() *JobLevelBuilder

func (*JobLevelBuilder) Active

func (builder *JobLevelBuilder) Active(active bool) *JobLevelBuilder

启用

示例值:true

func (*JobLevelBuilder) Build

func (builder *JobLevelBuilder) Build() *JobLevel

func (*JobLevelBuilder) Code

func (builder *JobLevelBuilder) Code(code string) *JobLevelBuilder

编码

示例值:VQzo/BSonp8l6PmcZ+VlDhkd2595LMkhyBAGX6HAlCY=

func (*JobLevelBuilder) CustomFields

func (builder *JobLevelBuilder) CustomFields(customFields []*CustomFieldData) *JobLevelBuilder

自定义字段

示例值:

func (*JobLevelBuilder) Description

func (builder *JobLevelBuilder) Description(description []*I18n) *JobLevelBuilder

描述

示例值:

func (*JobLevelBuilder) JobGrade added in v3.3.4

func (builder *JobLevelBuilder) JobGrade(jobGrade []string) *JobLevelBuilder

职等 ID 列表

示例值:

func (*JobLevelBuilder) JobLevelId

func (builder *JobLevelBuilder) JobLevelId(jobLevelId string) *JobLevelBuilder

职级 ID

示例值:4692446793125560154

func (*JobLevelBuilder) LevelOrder

func (builder *JobLevelBuilder) LevelOrder(levelOrder int) *JobLevelBuilder

职级数值

示例值:9999

func (*JobLevelBuilder) Name

func (builder *JobLevelBuilder) Name(name []*I18n) *JobLevelBuilder

名称

示例值:

type LangText added in v3.2.5

type LangText struct {
	Lang *string `json:"lang,omitempty"` // 语言码

	Value *string `json:"value,omitempty"` // 语言码对应的文本阿
}

type LangTextBuilder added in v3.2.5

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

func NewLangTextBuilder added in v3.2.5

func NewLangTextBuilder() *LangTextBuilder

func (*LangTextBuilder) Build added in v3.2.5

func (builder *LangTextBuilder) Build() *LangText

func (*LangTextBuilder) Lang added in v3.2.5

func (builder *LangTextBuilder) Lang(lang string) *LangTextBuilder

语言码

示例值:cn_zh

func (*LangTextBuilder) Value added in v3.2.5

func (builder *LangTextBuilder) Value(value string) *LangTextBuilder

语言码对应的文本阿

示例值:test

type Language added in v3.3.5

type Language struct {
	LanguageId *string `json:"language_id,omitempty"` // 语言 ID

	Name []*I18n `json:"name,omitempty"` // 语言名称

	IetfLanguageTag *string `json:"ietf_language_tag,omitempty"` // IETF 编码

	Status *int `json:"status,omitempty"` // 状态
}

type LanguageBuilder added in v3.3.5

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

func NewLanguageBuilder added in v3.3.5

func NewLanguageBuilder() *LanguageBuilder

func (*LanguageBuilder) Build added in v3.3.5

func (builder *LanguageBuilder) Build() *Language

func (*LanguageBuilder) IetfLanguageTag added in v3.3.5

func (builder *LanguageBuilder) IetfLanguageTag(ietfLanguageTag string) *LanguageBuilder

IETF 编码

示例值:en-UK

func (*LanguageBuilder) LanguageId added in v3.3.5

func (builder *LanguageBuilder) LanguageId(languageId string) *LanguageBuilder

语言 ID

示例值:6863323445740963342

func (*LanguageBuilder) Name added in v3.3.5

func (builder *LanguageBuilder) Name(name []*I18n) *LanguageBuilder

语言名称

示例值:

func (*LanguageBuilder) Status added in v3.3.5

func (builder *LanguageBuilder) Status(status int) *LanguageBuilder

状态

示例值:1

type LeaveAccrualRecord added in v3.2.5

type LeaveAccrualRecord struct {
	Id *string `json:"id,omitempty"` // 授予记录唯一ID

	EmploymentId *string `json:"employment_id,omitempty"` // 员工ID

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	GrantingQuantity *string `json:"granting_quantity,omitempty"` // 授予数量

	GrantingUnit *int `json:"granting_unit,omitempty"` // 授予单位,1表示天,2表示小时

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期,格式"2020-01-01"

	ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期,格式"2020-01-01"

	GrantedBy *int `json:"granted_by,omitempty"` // 授予来源,1:系统授予;2:手动授予;3:外部系统授予

	Reason []*LangText `json:"reason,omitempty"` // 授予原因

	CreatedAt *string `json:"created_at,omitempty"` // 授予记录的创建时间,unix时间戳

	CreatedBy *string `json:"created_by,omitempty"` // 授予记录的创建人的ID

	UpdatedAt *string `json:"updated_at,omitempty"` // 授予记录的更新时间,unix时间戳

	UpdatedBy *string `json:"updated_by,omitempty"` // 授予记录的更新人的ID
}

type LeaveAccrualRecordBuilder added in v3.2.5

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

func NewLeaveAccrualRecordBuilder added in v3.2.5

func NewLeaveAccrualRecordBuilder() *LeaveAccrualRecordBuilder

func (*LeaveAccrualRecordBuilder) Build added in v3.2.5

func (*LeaveAccrualRecordBuilder) CreatedAt added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) CreatedAt(createdAt string) *LeaveAccrualRecordBuilder

授予记录的创建时间,unix时间戳

示例值:1

func (*LeaveAccrualRecordBuilder) CreatedBy added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) CreatedBy(createdBy string) *LeaveAccrualRecordBuilder

授予记录的创建人的ID

示例值:1

func (*LeaveAccrualRecordBuilder) EffectiveDate added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) EffectiveDate(effectiveDate string) *LeaveAccrualRecordBuilder

生效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveAccrualRecordBuilder) EmploymentId added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) EmploymentId(employmentId string) *LeaveAccrualRecordBuilder

员工ID

示例值:1

func (*LeaveAccrualRecordBuilder) ExpirationDate added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) ExpirationDate(expirationDate string) *LeaveAccrualRecordBuilder

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveAccrualRecordBuilder) GrantedBy added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) GrantedBy(grantedBy int) *LeaveAccrualRecordBuilder

授予来源,1:系统授予;2:手动授予;3:外部系统授予

示例值:1

func (*LeaveAccrualRecordBuilder) GrantingQuantity added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveAccrualRecordBuilder

授予数量

示例值:1

func (*LeaveAccrualRecordBuilder) GrantingUnit added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) GrantingUnit(grantingUnit int) *LeaveAccrualRecordBuilder

授予单位,1表示天,2表示小时

示例值:1

func (*LeaveAccrualRecordBuilder) Id added in v3.2.5

授予记录唯一ID

示例值:1

func (*LeaveAccrualRecordBuilder) LeaveTypeId added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveAccrualRecordBuilder

假期类型ID

示例值:1

func (*LeaveAccrualRecordBuilder) Reason added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) Reason(reason []*LangText) *LeaveAccrualRecordBuilder

授予原因

示例值:

func (*LeaveAccrualRecordBuilder) UpdatedAt added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) UpdatedAt(updatedAt string) *LeaveAccrualRecordBuilder

授予记录的更新时间,unix时间戳

示例值:1

func (*LeaveAccrualRecordBuilder) UpdatedBy added in v3.2.5

func (builder *LeaveAccrualRecordBuilder) UpdatedBy(updatedBy string) *LeaveAccrualRecordBuilder

授予记录的更新人的ID

示例值:1

type LeaveBalance added in v3.2.5

type LeaveBalance struct {
	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	LeaveTypeName []*I18n `json:"leave_type_name,omitempty"` // 假期类型名称

	HistoricalCyclesLeft *string `json:"historical_cycles_left,omitempty"` // 结转的历史周期授予时长

	ThisCycleTotal *string `json:"this_cycle_total,omitempty"` // 本周期授予时长

	ThisCycleTaken *string `json:"this_cycle_taken,omitempty"` // 本周期已休时长

	LeaveBalance *string `json:"leave_balance,omitempty"` // 假期余额

	LeaveDurationUnit *int `json:"leave_duration_unit,omitempty"` // 假期时长的单位
}

type LeaveBalanceBuilder added in v3.2.5

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

func NewLeaveBalanceBuilder added in v3.2.5

func NewLeaveBalanceBuilder() *LeaveBalanceBuilder

func (*LeaveBalanceBuilder) Build added in v3.2.5

func (builder *LeaveBalanceBuilder) Build() *LeaveBalance

func (*LeaveBalanceBuilder) HistoricalCyclesLeft added in v3.2.5

func (builder *LeaveBalanceBuilder) HistoricalCyclesLeft(historicalCyclesLeft string) *LeaveBalanceBuilder

结转的历史周期授予时长

示例值:0

func (*LeaveBalanceBuilder) LeaveBalance added in v3.2.5

func (builder *LeaveBalanceBuilder) LeaveBalance(leaveBalance string) *LeaveBalanceBuilder

假期余额

示例值:0

func (*LeaveBalanceBuilder) LeaveDurationUnit added in v3.2.5

func (builder *LeaveBalanceBuilder) LeaveDurationUnit(leaveDurationUnit int) *LeaveBalanceBuilder

假期时长的单位

示例值:0

func (*LeaveBalanceBuilder) LeaveTypeId added in v3.2.5

func (builder *LeaveBalanceBuilder) LeaveTypeId(leaveTypeId string) *LeaveBalanceBuilder

假期类型ID

示例值:4718803945687580505

func (*LeaveBalanceBuilder) LeaveTypeName added in v3.2.5

func (builder *LeaveBalanceBuilder) LeaveTypeName(leaveTypeName []*I18n) *LeaveBalanceBuilder

假期类型名称

示例值:

func (*LeaveBalanceBuilder) ThisCycleTaken added in v3.2.5

func (builder *LeaveBalanceBuilder) ThisCycleTaken(thisCycleTaken string) *LeaveBalanceBuilder

本周期已休时长

示例值:0

func (*LeaveBalanceBuilder) ThisCycleTotal added in v3.2.5

func (builder *LeaveBalanceBuilder) ThisCycleTotal(thisCycleTotal string) *LeaveBalanceBuilder

本周期授予时长

示例值:0

type LeaveEmployExpireRecord added in v3.2.5

type LeaveEmployExpireRecord struct {
	Id *string `json:"id,omitempty"` // record id

	EmploymentId *string `json:"employment_id,omitempty"` // 员工ID

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	GrantingQuantity *string `json:"granting_quantity,omitempty"` // 授予余额数量

	LeftGrantingQuantity *string `json:"left_granting_quantity,omitempty"` // 授予数量 扣减完后的授予数量

	GrantingUnit *int `json:"granting_unit,omitempty"` // 授予单位,1表示天,2表示小时

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期,格式"2020-01-01"

	ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期,格式"2020-01-01"

	Reason []*LangText `json:"reason,omitempty"` // 授予原因

	IsUpdateByExternal *bool `json:"is_update_by_external,omitempty"` // 是否已经被外部系统更改过

	AccrualSource *int `json:"accrual_source,omitempty"` // 授予来源

	LeaveSubTypeId *string `json:"leave_sub_type_id,omitempty"` // 假期子类型id
}

type LeaveEmployExpireRecordBuilder added in v3.2.5

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

func NewLeaveEmployExpireRecordBuilder added in v3.2.5

func NewLeaveEmployExpireRecordBuilder() *LeaveEmployExpireRecordBuilder

func (*LeaveEmployExpireRecordBuilder) AccrualSource added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) AccrualSource(accrualSource int) *LeaveEmployExpireRecordBuilder

授予来源

示例值:1

func (*LeaveEmployExpireRecordBuilder) Build added in v3.2.5

func (*LeaveEmployExpireRecordBuilder) EffectiveDate added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) EffectiveDate(effectiveDate string) *LeaveEmployExpireRecordBuilder

生效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveEmployExpireRecordBuilder) EmploymentId added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) EmploymentId(employmentId string) *LeaveEmployExpireRecordBuilder

员工ID

示例值:1

func (*LeaveEmployExpireRecordBuilder) ExpirationDate added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) ExpirationDate(expirationDate string) *LeaveEmployExpireRecordBuilder

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveEmployExpireRecordBuilder) GrantingQuantity added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveEmployExpireRecordBuilder

授予余额数量

示例值:1

func (*LeaveEmployExpireRecordBuilder) GrantingUnit added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) GrantingUnit(grantingUnit int) *LeaveEmployExpireRecordBuilder

授予单位,1表示天,2表示小时

示例值:1

func (*LeaveEmployExpireRecordBuilder) Id added in v3.2.5

record id

示例值:1

func (*LeaveEmployExpireRecordBuilder) IsUpdateByExternal added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) IsUpdateByExternal(isUpdateByExternal bool) *LeaveEmployExpireRecordBuilder

是否已经被外部系统更改过

示例值:true

func (*LeaveEmployExpireRecordBuilder) LeaveSubTypeId added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) LeaveSubTypeId(leaveSubTypeId string) *LeaveEmployExpireRecordBuilder

假期子类型id

示例值:1

func (*LeaveEmployExpireRecordBuilder) LeaveTypeId added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveEmployExpireRecordBuilder

假期类型ID

示例值:1

func (*LeaveEmployExpireRecordBuilder) LeftGrantingQuantity added in v3.2.5

func (builder *LeaveEmployExpireRecordBuilder) LeftGrantingQuantity(leftGrantingQuantity string) *LeaveEmployExpireRecordBuilder

授予数量 扣减完后的授予数量

示例值:1

func (*LeaveEmployExpireRecordBuilder) Reason added in v3.2.5

授予原因

示例值:

type LeaveGrantingRecord added in v3.2.5

type LeaveGrantingRecord struct {
	Id *string `json:"id,omitempty"` // 假期授予记录 ID

	EmploymentId *string `json:"employment_id,omitempty"` // 员工 ID

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型 ID

	GrantingQuantity *string `json:"granting_quantity,omitempty"` // 授予数量

	GrantingUnit *int `json:"granting_unit,omitempty"` // 授予时长单位

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效时间

	ExpirationDate *string `json:"expiration_date,omitempty"` // 失效时间(根据休假规则自动计算)

	GrantedBy *int `json:"granted_by,omitempty"` // 授予来源

	Reason []*I18n `json:"reason,omitempty"` // 授予原因

	CreatedAt *string `json:"created_at,omitempty"` // 授予记录的创建时间,毫秒级unix时间戳

	CreatedBy *string `json:"created_by,omitempty"` // 授予记录的创建人,值为创建人的员工 ID

	UpdatedAt *string `json:"updated_at,omitempty"` // 授予记录的更新时间

	UpdatedBy *string `json:"updated_by,omitempty"` // 授予记录的更新人,值为更新人的员工 ID

	SectionType *int `json:"section_type,omitempty"` // 是否参与折算
}

type LeaveGrantingRecordBuilder added in v3.2.5

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

func NewLeaveGrantingRecordBuilder added in v3.2.5

func NewLeaveGrantingRecordBuilder() *LeaveGrantingRecordBuilder

func (*LeaveGrantingRecordBuilder) Build added in v3.2.5

func (*LeaveGrantingRecordBuilder) CreatedAt added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) CreatedAt(createdAt string) *LeaveGrantingRecordBuilder

授予记录的创建时间,毫秒级unix时间戳

示例值:4718803945687580505

func (*LeaveGrantingRecordBuilder) CreatedBy added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) CreatedBy(createdBy string) *LeaveGrantingRecordBuilder

授予记录的创建人,值为创建人的员工 ID

示例值:1

func (*LeaveGrantingRecordBuilder) EffectiveDate added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) EffectiveDate(effectiveDate string) *LeaveGrantingRecordBuilder

生效时间

示例值:2022-01-01

func (*LeaveGrantingRecordBuilder) EmploymentId added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) EmploymentId(employmentId string) *LeaveGrantingRecordBuilder

员工 ID

示例值:4718803945687580505

func (*LeaveGrantingRecordBuilder) ExpirationDate added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) ExpirationDate(expirationDate string) *LeaveGrantingRecordBuilder

失效时间(根据休假规则自动计算)

示例值:2022-01-01

func (*LeaveGrantingRecordBuilder) GrantedBy added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) GrantedBy(grantedBy int) *LeaveGrantingRecordBuilder

授予来源

示例值:1

func (*LeaveGrantingRecordBuilder) GrantingQuantity added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveGrantingRecordBuilder

授予数量

示例值:4718803945687580505

func (*LeaveGrantingRecordBuilder) GrantingUnit added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) GrantingUnit(grantingUnit int) *LeaveGrantingRecordBuilder

授予时长单位

示例值:1

func (*LeaveGrantingRecordBuilder) Id added in v3.2.5

假期授予记录 ID

示例值:4718803945687580505

func (*LeaveGrantingRecordBuilder) LeaveTypeId added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveGrantingRecordBuilder

假期类型 ID

示例值:4718803945687580505

func (*LeaveGrantingRecordBuilder) Reason added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) Reason(reason []*I18n) *LeaveGrantingRecordBuilder

授予原因

示例值:

func (*LeaveGrantingRecordBuilder) SectionType added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) SectionType(sectionType int) *LeaveGrantingRecordBuilder

是否参与折算

示例值:1

func (*LeaveGrantingRecordBuilder) UpdatedAt added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) UpdatedAt(updatedAt string) *LeaveGrantingRecordBuilder

授予记录的更新时间

示例值:2020-05-02 00:00:00

func (*LeaveGrantingRecordBuilder) UpdatedBy added in v3.2.5

func (builder *LeaveGrantingRecordBuilder) UpdatedBy(updatedBy string) *LeaveGrantingRecordBuilder

授予记录的更新人,值为更新人的员工 ID

示例值:123456789

type LeaveProcessInfo added in v3.3.7

type LeaveProcessInfo struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程id

	ProcessStatus *string `json:"process_status,omitempty"` // 流程状态

	ProcessApplyTime *string `json:"process_apply_time,omitempty"` // 流程发起时间
}

type LeaveProcessInfoBuilder added in v3.3.7

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

func NewLeaveProcessInfoBuilder added in v3.3.7

func NewLeaveProcessInfoBuilder() *LeaveProcessInfoBuilder

func (*LeaveProcessInfoBuilder) Build added in v3.3.7

func (builder *LeaveProcessInfoBuilder) Build() *LeaveProcessInfo

func (*LeaveProcessInfoBuilder) ProcessApplyTime added in v3.3.7

func (builder *LeaveProcessInfoBuilder) ProcessApplyTime(processApplyTime string) *LeaveProcessInfoBuilder

流程发起时间

示例值:2024-01-01 00:00:00

func (*LeaveProcessInfoBuilder) ProcessId added in v3.3.7

func (builder *LeaveProcessInfoBuilder) ProcessId(processId string) *LeaveProcessInfoBuilder

流程id

示例值:4718803945687580505

func (*LeaveProcessInfoBuilder) ProcessStatus added in v3.3.7

func (builder *LeaveProcessInfoBuilder) ProcessStatus(processStatus string) *LeaveProcessInfoBuilder

流程状态

示例值:passed

type LeaveRequest added in v3.2.5

type LeaveRequest struct {
	LeaveRequestId *string `json:"leave_request_id,omitempty"` // 请假记录ID

	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣信息ID

	EmploymentName []*I18n `json:"employment_name,omitempty"` // 员工姓名

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	LeaveTypeName []*I18n `json:"leave_type_name,omitempty"` // 假期类型名称

	StartTime *string `json:"start_time,omitempty"` // 假期开始时间

	EndTime *string `json:"end_time,omitempty"` // 假期结束时间

	LeaveDuration *string `json:"leave_duration,omitempty"` // 假期时长

	LeaveDurationUnit *int `json:"leave_duration_unit,omitempty"` // 假期时长的单位

	LeaveRequestStatus *int `json:"leave_request_status,omitempty"` // 请假记录的状态

	GrantSource *string `json:"grant_source,omitempty"` // 数据来源

	ReturnTime *string `json:"return_time,omitempty"` // 返岗时间

	SubmittedAt *string `json:"submitted_at,omitempty"` // 发起时间

	SubmittedBy *string `json:"submitted_by,omitempty"` // 发起人

	Notes *string `json:"notes,omitempty"` // 备注

	ApprovalDate *string `json:"approval_date,omitempty"` // 审批通过日期

	IsDeducted *bool `json:"is_deducted,omitempty"` // 是否带薪

	Detail []*LeaveRequestDetail `json:"detail,omitempty"` // 请假详情

	LeaveTypeCode *string `json:"leave_type_code,omitempty"` // 假期类型枚举

	ActualEndDate *string `json:"actual_end_date,omitempty"` // 实际结束日期

	EstimatedEndDate *string `json:"estimated_end_date,omitempty"` // 预估结束日期

	TimeZone *string `json:"time_zone,omitempty"` // 时区

	DataSource *int `json:"data_source,omitempty"` // 请假记录数据来源

	LeaveProcessId []string `json:"leave_process_id,omitempty"` // 请假申请流程ID

	LeaveCorrectProcessId []string `json:"leave_correct_process_id,omitempty"` // 请假更正流程ID

	LeaveCancelProcessId []string `json:"leave_cancel_process_id,omitempty"` // 请假取消流程ID

	LeaveReturnProcessId []string `json:"leave_return_process_id,omitempty"` // 请假返岗流程ID

	WdPaidType *int `json:"wd_paid_type,omitempty"` // workDay算薪类型

	LeaveCorrectProcessInfo []*LeaveProcessInfo `json:"leave_correct_process_info,omitempty"` // 请假更正流程信息
}

type LeaveRequestBuilder added in v3.2.5

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

func NewLeaveRequestBuilder added in v3.2.5

func NewLeaveRequestBuilder() *LeaveRequestBuilder

func (*LeaveRequestBuilder) ActualEndDate added in v3.2.5

func (builder *LeaveRequestBuilder) ActualEndDate(actualEndDate string) *LeaveRequestBuilder

实际结束日期

示例值:2022-08-02

func (*LeaveRequestBuilder) ApprovalDate added in v3.2.5

func (builder *LeaveRequestBuilder) ApprovalDate(approvalDate string) *LeaveRequestBuilder

审批通过日期

示例值:2022-09-09

func (*LeaveRequestBuilder) Build added in v3.2.5

func (builder *LeaveRequestBuilder) Build() *LeaveRequest

func (*LeaveRequestBuilder) DataSource added in v3.2.5

func (builder *LeaveRequestBuilder) DataSource(dataSource int) *LeaveRequestBuilder

请假记录数据来源

示例值:1

func (*LeaveRequestBuilder) Detail added in v3.2.5

func (builder *LeaveRequestBuilder) Detail(detail []*LeaveRequestDetail) *LeaveRequestBuilder

请假详情

示例值:

func (*LeaveRequestBuilder) EmploymentId added in v3.2.5

func (builder *LeaveRequestBuilder) EmploymentId(employmentId string) *LeaveRequestBuilder

雇佣信息ID

示例值:4718803945687580505

func (*LeaveRequestBuilder) EmploymentName added in v3.2.5

func (builder *LeaveRequestBuilder) EmploymentName(employmentName []*I18n) *LeaveRequestBuilder

员工姓名

示例值:

func (*LeaveRequestBuilder) EndTime added in v3.2.5

func (builder *LeaveRequestBuilder) EndTime(endTime string) *LeaveRequestBuilder

假期结束时间

示例值:2022-09-09

func (*LeaveRequestBuilder) EstimatedEndDate added in v3.2.5

func (builder *LeaveRequestBuilder) EstimatedEndDate(estimatedEndDate string) *LeaveRequestBuilder

预估结束日期

示例值:2022-08-02

func (*LeaveRequestBuilder) GrantSource added in v3.2.5

func (builder *LeaveRequestBuilder) GrantSource(grantSource string) *LeaveRequestBuilder

数据来源

示例值:manual

func (*LeaveRequestBuilder) IsDeducted added in v3.2.5

func (builder *LeaveRequestBuilder) IsDeducted(isDeducted bool) *LeaveRequestBuilder

是否带薪

示例值:false

func (*LeaveRequestBuilder) LeaveCancelProcessId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveCancelProcessId(leaveCancelProcessId []string) *LeaveRequestBuilder

请假取消流程ID

示例值:

func (*LeaveRequestBuilder) LeaveCorrectProcessId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveCorrectProcessId(leaveCorrectProcessId []string) *LeaveRequestBuilder

请假更正流程ID

示例值:

func (*LeaveRequestBuilder) LeaveCorrectProcessInfo added in v3.3.7

func (builder *LeaveRequestBuilder) LeaveCorrectProcessInfo(leaveCorrectProcessInfo []*LeaveProcessInfo) *LeaveRequestBuilder

请假更正流程信息

示例值:

func (*LeaveRequestBuilder) LeaveDuration added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveDuration(leaveDuration string) *LeaveRequestBuilder

假期时长

示例值:2

func (*LeaveRequestBuilder) LeaveDurationUnit added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveDurationUnit(leaveDurationUnit int) *LeaveRequestBuilder

假期时长的单位

示例值:2

func (*LeaveRequestBuilder) LeaveProcessId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveProcessId(leaveProcessId []string) *LeaveRequestBuilder

请假申请流程ID

示例值:

func (*LeaveRequestBuilder) LeaveRequestId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveRequestId(leaveRequestId string) *LeaveRequestBuilder

请假记录ID

示例值:4718803945687580505

func (*LeaveRequestBuilder) LeaveRequestStatus added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveRequestStatus(leaveRequestStatus int) *LeaveRequestBuilder

请假记录的状态

示例值:2

func (*LeaveRequestBuilder) LeaveReturnProcessId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveReturnProcessId(leaveReturnProcessId []string) *LeaveRequestBuilder

请假返岗流程ID

示例值:

func (*LeaveRequestBuilder) LeaveTypeCode added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveTypeCode(leaveTypeCode string) *LeaveRequestBuilder

假期类型枚举

示例值:Annual Leave

func (*LeaveRequestBuilder) LeaveTypeId added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveTypeId(leaveTypeId string) *LeaveRequestBuilder

假期类型ID

示例值:0

func (*LeaveRequestBuilder) LeaveTypeName added in v3.2.5

func (builder *LeaveRequestBuilder) LeaveTypeName(leaveTypeName []*I18n) *LeaveRequestBuilder

假期类型名称

示例值:

func (*LeaveRequestBuilder) Notes added in v3.2.5

func (builder *LeaveRequestBuilder) Notes(notes string) *LeaveRequestBuilder

备注

示例值:备注

func (*LeaveRequestBuilder) ReturnTime added in v3.2.5

func (builder *LeaveRequestBuilder) ReturnTime(returnTime string) *LeaveRequestBuilder

返岗时间

示例值:2022-09-09

func (*LeaveRequestBuilder) StartTime added in v3.2.5

func (builder *LeaveRequestBuilder) StartTime(startTime string) *LeaveRequestBuilder

假期开始时间

示例值:2022-09-09

func (*LeaveRequestBuilder) SubmittedAt added in v3.2.5

func (builder *LeaveRequestBuilder) SubmittedAt(submittedAt string) *LeaveRequestBuilder

发起时间

示例值:2022-09-09

func (*LeaveRequestBuilder) SubmittedBy added in v3.2.5

func (builder *LeaveRequestBuilder) SubmittedBy(submittedBy string) *LeaveRequestBuilder

发起人

示例值:kk

func (*LeaveRequestBuilder) TimeZone added in v3.2.5

func (builder *LeaveRequestBuilder) TimeZone(timeZone string) *LeaveRequestBuilder

时区

示例值:Asia/Shanghai

func (*LeaveRequestBuilder) WdPaidType added in v3.2.5

func (builder *LeaveRequestBuilder) WdPaidType(wdPaidType int) *LeaveRequestBuilder

workDay算薪类型

示例值:1

type LeaveRequestDetail added in v3.2.5

type LeaveRequestDetail struct {
	LeaveRequestId *string `json:"leave_request_id,omitempty"` // 请假记录id

	LeaveDate *string `json:"leave_date,omitempty"` // 假期发生日期

	LeaveDuration *string `json:"leave_duration,omitempty"` // 假期时长

	LeaveDurationUnit *int `json:"leave_duration_unit,omitempty"` // 假期时长单位,1:天,2:小时

	PaidType *int `json:"paid_type,omitempty"` // 是否影响算薪,1:不参与算薪计算, 非对应的日期类型或者无对应的假期计划,2:影响算薪,3:不影响算薪
}

type LeaveRequestDetailBuilder added in v3.2.5

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

func NewLeaveRequestDetailBuilder added in v3.2.5

func NewLeaveRequestDetailBuilder() *LeaveRequestDetailBuilder

func (*LeaveRequestDetailBuilder) Build added in v3.2.5

func (*LeaveRequestDetailBuilder) LeaveDate added in v3.2.5

func (builder *LeaveRequestDetailBuilder) LeaveDate(leaveDate string) *LeaveRequestDetailBuilder

假期发生日期

示例值:2022-07-07

func (*LeaveRequestDetailBuilder) LeaveDuration added in v3.2.5

func (builder *LeaveRequestDetailBuilder) LeaveDuration(leaveDuration string) *LeaveRequestDetailBuilder

假期时长

示例值:1

func (*LeaveRequestDetailBuilder) LeaveDurationUnit added in v3.2.5

func (builder *LeaveRequestDetailBuilder) LeaveDurationUnit(leaveDurationUnit int) *LeaveRequestDetailBuilder

假期时长单位,1:天,2:小时

示例值:1

func (*LeaveRequestDetailBuilder) LeaveRequestId added in v3.2.5

func (builder *LeaveRequestDetailBuilder) LeaveRequestId(leaveRequestId string) *LeaveRequestDetailBuilder

请假记录id

示例值:4718803945687580505

func (*LeaveRequestDetailBuilder) PaidType added in v3.2.5

func (builder *LeaveRequestDetailBuilder) PaidType(paidType int) *LeaveRequestDetailBuilder

是否影响算薪,1:不参与算薪计算, 非对应的日期类型或者无对应的假期计划,2:影响算薪,3:不影响算薪

示例值:1

type ListApproverIterator added in v3.3.7

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

func (*ListApproverIterator) Next added in v3.3.7

func (iterator *ListApproverIterator) Next() (bool, *ApproverInfo, error)

func (*ListApproverIterator) NextPageToken added in v3.3.7

func (iterator *ListApproverIterator) NextPageToken() *string

type ListApproverReq added in v3.3.7

type ListApproverReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListApproverReqBuilder added in v3.3.7

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

func NewListApproverReqBuilder added in v3.3.7

func NewListApproverReqBuilder() *ListApproverReqBuilder

func (*ListApproverReqBuilder) ApproverStatus added in v3.3.7

func (builder *ListApproverReqBuilder) ApproverStatus(approverStatus int) *ListApproverReqBuilder

任务状态

示例值:1

func (*ListApproverReqBuilder) Build added in v3.3.7

func (builder *ListApproverReqBuilder) Build() *ListApproverReq

func (*ListApproverReqBuilder) Limit added in v3.3.7

func (builder *ListApproverReqBuilder) Limit(limit int) *ListApproverReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*ListApproverReqBuilder) PageSize added in v3.3.7

func (builder *ListApproverReqBuilder) PageSize(pageSize int) *ListApproverReqBuilder

分页大小

示例值:20

func (*ListApproverReqBuilder) PageToken added in v3.3.7

func (builder *ListApproverReqBuilder) PageToken(pageToken string) *ListApproverReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:1

func (*ListApproverReqBuilder) UserId added in v3.3.7

func (builder *ListApproverReqBuilder) UserId(userId string) *ListApproverReqBuilder

按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。

示例值:ou_91791271921729102012

func (*ListApproverReqBuilder) UserIdType added in v3.3.7

func (builder *ListApproverReqBuilder) UserIdType(userIdType string) *ListApproverReqBuilder

用户 ID 类型

示例值:open_id

type ListApproverResp added in v3.3.7

type ListApproverResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListApproverRespData `json:"data"` // 业务数据
}

func (*ListApproverResp) Success added in v3.3.7

func (resp *ListApproverResp) Success() bool

type ListApproverRespData added in v3.3.7

type ListApproverRespData struct {
	PageToken *string `json:"page_token,omitempty"` // 分页键

	HasMore *bool `json:"has_more,omitempty"` // 是否有更多数据

	ApproverList []*ApproverInfo `json:"approver_list,omitempty"` // 审批任务列表
}

type ListBpIterator

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

func (*ListBpIterator) Next

func (iterator *ListBpIterator) Next() (bool, *Bp, error)

func (*ListBpIterator) NextPageToken

func (iterator *ListBpIterator) NextPageToken() *string

type ListBpReq

type ListBpReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListBpReqBuilder

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

func NewListBpReqBuilder

func NewListBpReqBuilder() *ListBpReqBuilder

func (*ListBpReqBuilder) Build

func (builder *ListBpReqBuilder) Build() *ListBpReq

func (*ListBpReqBuilder) DepartmentIdType

func (builder *ListBpReqBuilder) DepartmentIdType(departmentIdType string) *ListBpReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*ListBpReqBuilder) Limit

func (builder *ListBpReqBuilder) Limit(limit int) *ListBpReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*ListBpReqBuilder) PageSize

func (builder *ListBpReqBuilder) PageSize(pageSize int) *ListBpReqBuilder

分页大小,最大 500

示例值:500

func (*ListBpReqBuilder) PageToken

func (builder *ListBpReqBuilder) PageToken(pageToken string) *ListBpReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*ListBpReqBuilder) UserIdType

func (builder *ListBpReqBuilder) UserIdType(userIdType string) *ListBpReqBuilder

用户 ID 类型

示例值:open_id

type ListBpResp

type ListBpResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListBpRespData `json:"data"` // 业务数据
}

func (*ListBpResp) Success

func (resp *ListBpResp) Success() bool

type ListBpRespData

type ListBpRespData struct {
	Items []*Bp `json:"items,omitempty"` // HRBP 信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type ListJobReq

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

type ListJobReqBuilder

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

func NewListJobReqBuilder

func NewListJobReqBuilder() *ListJobReqBuilder

func (*ListJobReqBuilder) Build

func (builder *ListJobReqBuilder) Build() *ListJobReq

func (*ListJobReqBuilder) Name

func (builder *ListJobReqBuilder) Name(name string) *ListJobReqBuilder

名称

示例值:keyword

func (*ListJobReqBuilder) PageSize

func (builder *ListJobReqBuilder) PageSize(pageSize string) *ListJobReqBuilder

每页获取记录数量,最大100

示例值:100

func (*ListJobReqBuilder) PageToken

func (builder *ListJobReqBuilder) PageToken(pageToken string) *ListJobReqBuilder

页码标识,获取第一页传空,每次查询会返回下一页的page_token

示例值:1231231987

func (*ListJobReqBuilder) QueryLanguage

func (builder *ListJobReqBuilder) QueryLanguage(queryLanguage string) *ListJobReqBuilder

语言

示例值:zh

type ListJobResp

type ListJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListJobRespData `json:"data"` // 业务数据
}

func (*ListJobResp) Success

func (resp *ListJobResp) Success() bool

type ListJobRespData

type ListJobRespData struct {
	Items []*Job `json:"items,omitempty"` // 查询的职务信息

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页

	PageToken *string `json:"page_token,omitempty"` // 下一页页码
}

type ListProcessIterator

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

func (*ListProcessIterator) Next

func (iterator *ListProcessIterator) Next() (bool, string, error)

func (*ListProcessIterator) NextPageToken

func (iterator *ListProcessIterator) NextPageToken() *string

type ListProcessReq

type ListProcessReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListProcessReqBuilder

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

func NewListProcessReqBuilder

func NewListProcessReqBuilder() *ListProcessReqBuilder

func (*ListProcessReqBuilder) Build

func (builder *ListProcessReqBuilder) Build() *ListProcessReq

func (*ListProcessReqBuilder) FlowDefinitionId

func (builder *ListProcessReqBuilder) FlowDefinitionId(flowDefinitionId string) *ListProcessReqBuilder

流程定义ID

示例值:people_6961286846093788680_7081951411982077732

func (*ListProcessReqBuilder) Limit

func (builder *ListProcessReqBuilder) Limit(limit int) *ListProcessReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*ListProcessReqBuilder) ModifyTimeFrom

func (builder *ListProcessReqBuilder) ModifyTimeFrom(modifyTimeFrom string) *ListProcessReqBuilder

查询开始时间(unix毫秒时间戳),闭区间,开始时间和结束时间跨度不能超过31天

示例值:1547654251506

func (*ListProcessReqBuilder) ModifyTimeTo

func (builder *ListProcessReqBuilder) ModifyTimeTo(modifyTimeTo string) *ListProcessReqBuilder

1. 任务查询结束时间,闭区间 2. 单位:ms。从1970年1月1日(UTC/GMT的午夜) 开始经过的毫秒数 3. 注意:开始时间和结束时间跨度不能超过31天 4. 示例值:1719549169735

示例值:1547654251506

func (*ListProcessReqBuilder) PageSize

func (builder *ListProcessReqBuilder) PageSize(pageSize int) *ListProcessReqBuilder

分页大小

示例值:100

func (*ListProcessReqBuilder) PageToken

func (builder *ListProcessReqBuilder) PageToken(pageToken string) *ListProcessReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:7278949005675988535

func (*ListProcessReqBuilder) Statuses

func (builder *ListProcessReqBuilder) Statuses(statuses []int) *ListProcessReqBuilder

查询流程状态列表。

示例值:

type ListProcessResp

type ListProcessResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListProcessRespData `json:"data"` // 业务数据
}

func (*ListProcessResp) Success

func (resp *ListProcessResp) Success() bool

type ListProcessRespData

type ListProcessRespData struct {
	ProcessIds []string `json:"process_ids,omitempty"` // 流程实例ID列表

	HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项

	PageToken *string `json:"page_token,omitempty"` // 有更多项时的分页键
}

type ListWorkforcePlanReq added in v3.3.7

type ListWorkforcePlanReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListWorkforcePlanReqBuilder added in v3.3.7

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

func NewListWorkforcePlanReqBuilder added in v3.3.7

func NewListWorkforcePlanReqBuilder() *ListWorkforcePlanReqBuilder

func (*ListWorkforcePlanReqBuilder) Active added in v3.3.7

是否只获取已启用的方案,true 获取已启用编制规划方案,false 获取所有编制规划方案,默认为 true示例值:true

示例值:

func (*ListWorkforcePlanReqBuilder) Build added in v3.3.7

func (*ListWorkforcePlanReqBuilder) GetAllPlan added in v3.3.7

func (builder *ListWorkforcePlanReqBuilder) GetAllPlan(getAllPlan bool) *ListWorkforcePlanReqBuilder

是否获取所有编制规划方案,true 所有编制规划方案列表,false 为仅获取当前生效的编制规划方案,默认为 false示例值:false

示例值:

func (*ListWorkforcePlanReqBuilder) Limit added in v3.4.0

查询数量

示例值:1

func (*ListWorkforcePlanReqBuilder) Offset added in v3.4.0

跳过数量

示例值:1

func (*ListWorkforcePlanReqBuilder) PageSize added in v3.3.7

func (builder *ListWorkforcePlanReqBuilder) PageSize(pageSize int) *ListWorkforcePlanReqBuilder

每页数量

示例值:100

func (*ListWorkforcePlanReqBuilder) PageToken added in v3.3.7

func (builder *ListWorkforcePlanReqBuilder) PageToken(pageToken string) *ListWorkforcePlanReqBuilder

分页标识

示例值:34523459

type ListWorkforcePlanResp added in v3.3.7

type ListWorkforcePlanResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListWorkforcePlanRespData `json:"data"` // 业务数据
}

func (*ListWorkforcePlanResp) Success added in v3.3.7

func (resp *ListWorkforcePlanResp) Success() bool

type ListWorkforcePlanRespData added in v3.3.7

type ListWorkforcePlanRespData struct {
	Items []*WorkforcePlan `json:"items,omitempty"` // 方案列表

	Total *int `json:"total,omitempty"` // 方案总数

	PageToken *string `json:"page_token,omitempty"` // 分页标识

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type Location

type Location struct {
	LocationId *string `json:"location_id,omitempty"` // 地点 ID

	HiberarchyCommon *HiberarchyCommon `json:"hiberarchy_common,omitempty"` // 地点基本信息

	LocationUsageList []*Enum `json:"location_usage_list,omitempty"` // 地点用途

	Address []*Address `json:"address,omitempty"` // 地址

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	Locale *Enum `json:"locale,omitempty"` // 区域设置

	TimeZoneId *string `json:"time_zone_id,omitempty"` // 时区

	DisplayLanguageId *string `json:"display_language_id,omitempty"` // 默认显示语言
}

type LocationAddressCreate added in v3.3.4

type LocationAddressCreate struct {
	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	RegionId *string `json:"region_id,omitempty"` // 主要行政区

	CityId *string `json:"city_id,omitempty"` // 城市

	DistinctId *string `json:"distinct_id,omitempty"` // 区 / 县

	LocalAddressLine1 *string `json:"local_address_line1,omitempty"` // 地址行 1(非拉丁语系的本地文字)

	LocalAddressLine2 *string `json:"local_address_line2,omitempty"` // 地址行 2(非拉丁语系的本地文字)

	LocalAddressLine3 *string `json:"local_address_line3,omitempty"` // 地址行 3(非拉丁语系的本地文字)

	LocalAddressLine4 *string `json:"local_address_line4,omitempty"` // 地址行 4(非拉丁语系的本地文字)

	LocalAddressLine5 *string `json:"local_address_line5,omitempty"` // 地址行 5(非拉丁语系的本地文字)

	LocalAddressLine6 *string `json:"local_address_line6,omitempty"` // 地址行 6(非拉丁语系的本地文字)

	LocalAddressLine7 *string `json:"local_address_line7,omitempty"` // 地址行 7(非拉丁语系的本地文字)

	LocalAddressLine8 *string `json:"local_address_line8,omitempty"` // 地址行 8(非拉丁语系的本地文字)

	LocalAddressLine9 *string `json:"local_address_line9,omitempty"` // 地址行 9(非拉丁语系的本地文字)

	PostalCode *string `json:"postal_code,omitempty"` // 邮政编码

	AddressTypes []*Enum `json:"address_types,omitempty"` // 地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得

	IsPrimary *bool `json:"is_primary,omitempty"` // 是否主要地址

	IsPublic *bool `json:"is_public,omitempty"` // 是否公开地址
}

type LocationAddressCreateBuilder added in v3.3.4

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

func NewLocationAddressCreateBuilder added in v3.3.4

func NewLocationAddressCreateBuilder() *LocationAddressCreateBuilder

func (*LocationAddressCreateBuilder) AddressTypes added in v3.3.4

func (builder *LocationAddressCreateBuilder) AddressTypes(addressTypes []*Enum) *LocationAddressCreateBuilder

地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得

示例值:

func (*LocationAddressCreateBuilder) Build added in v3.3.4

func (*LocationAddressCreateBuilder) CityId added in v3.3.4

城市

示例值:6863333555859097096

func (*LocationAddressCreateBuilder) CountryRegionId added in v3.3.4

func (builder *LocationAddressCreateBuilder) CountryRegionId(countryRegionId string) *LocationAddressCreateBuilder

国家 / 地区

示例值:6862995757234914824

func (*LocationAddressCreateBuilder) DistinctId added in v3.3.4

func (builder *LocationAddressCreateBuilder) DistinctId(distinctId string) *LocationAddressCreateBuilder

区 / 县

示例值:6863333556291110408

func (*LocationAddressCreateBuilder) IsPrimary added in v3.3.4

func (builder *LocationAddressCreateBuilder) IsPrimary(isPrimary bool) *LocationAddressCreateBuilder

是否主要地址

示例值:true

func (*LocationAddressCreateBuilder) IsPublic added in v3.3.4

func (builder *LocationAddressCreateBuilder) IsPublic(isPublic bool) *LocationAddressCreateBuilder

是否公开地址

示例值:true

func (*LocationAddressCreateBuilder) LocalAddressLine1 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine1(localAddressLine1 string) *LocationAddressCreateBuilder

地址行 1(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine2 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine2(localAddressLine2 string) *LocationAddressCreateBuilder

地址行 2(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine3 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine3(localAddressLine3 string) *LocationAddressCreateBuilder

地址行 3(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine4 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine4(localAddressLine4 string) *LocationAddressCreateBuilder

地址行 4(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine5 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine5(localAddressLine5 string) *LocationAddressCreateBuilder

地址行 5(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine6 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine6(localAddressLine6 string) *LocationAddressCreateBuilder

地址行 6(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine7 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine7(localAddressLine7 string) *LocationAddressCreateBuilder

地址行 7(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine8 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine8(localAddressLine8 string) *LocationAddressCreateBuilder

地址行 8(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) LocalAddressLine9 added in v3.3.4

func (builder *LocationAddressCreateBuilder) LocalAddressLine9(localAddressLine9 string) *LocationAddressCreateBuilder

地址行 9(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressCreateBuilder) PostalCode added in v3.3.4

func (builder *LocationAddressCreateBuilder) PostalCode(postalCode string) *LocationAddressCreateBuilder

邮政编码

示例值:611530

func (*LocationAddressCreateBuilder) RegionId added in v3.3.4

主要行政区

示例值:6863326264296474119

type LocationAddressUpdate added in v3.3.4

type LocationAddressUpdate struct {
	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	RegionId *string `json:"region_id,omitempty"` // 主要行政区

	CityId *string `json:"city_id,omitempty"` // 城市

	DistinctId *string `json:"distinct_id,omitempty"` // 区 / 县

	LocalAddressLine1 *string `json:"local_address_line1,omitempty"` // 地址行 1(非拉丁语系的本地文字)

	LocalAddressLine2 *string `json:"local_address_line2,omitempty"` // 地址行 2(非拉丁语系的本地文字)

	LocalAddressLine3 *string `json:"local_address_line3,omitempty"` // 地址行 3(非拉丁语系的本地文字)

	LocalAddressLine4 *string `json:"local_address_line4,omitempty"` // 地址行 4(非拉丁语系的本地文字)

	LocalAddressLine5 *string `json:"local_address_line5,omitempty"` // 地址行 5(非拉丁语系的本地文字)

	LocalAddressLine6 *string `json:"local_address_line6,omitempty"` // 地址行 6(非拉丁语系的本地文字)

	LocalAddressLine7 *string `json:"local_address_line7,omitempty"` // 地址行 7(非拉丁语系的本地文字)

	LocalAddressLine8 *string `json:"local_address_line8,omitempty"` // 地址行 8(非拉丁语系的本地文字)

	LocalAddressLine9 *string `json:"local_address_line9,omitempty"` // 地址行 9(非拉丁语系的本地文字)

	PostalCode *string `json:"postal_code,omitempty"` // 邮政编码

	AddressTypes []*Enum `json:"address_types,omitempty"` // 地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得

	IsPrimary *bool `json:"is_primary,omitempty"` // 是否主要地址

	IsPublic *bool `json:"is_public,omitempty"` // 是否公开地址
}

type LocationAddressUpdateBuilder added in v3.3.4

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

func NewLocationAddressUpdateBuilder added in v3.3.4

func NewLocationAddressUpdateBuilder() *LocationAddressUpdateBuilder

func (*LocationAddressUpdateBuilder) AddressTypes added in v3.3.4

func (builder *LocationAddressUpdateBuilder) AddressTypes(addressTypes []*Enum) *LocationAddressUpdateBuilder

地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得

示例值:

func (*LocationAddressUpdateBuilder) Build added in v3.3.4

func (*LocationAddressUpdateBuilder) CityId added in v3.3.4

城市

示例值:6863333555859097096

func (*LocationAddressUpdateBuilder) CountryRegionId added in v3.3.4

func (builder *LocationAddressUpdateBuilder) CountryRegionId(countryRegionId string) *LocationAddressUpdateBuilder

国家 / 地区

示例值:6862995757234914824

func (*LocationAddressUpdateBuilder) DistinctId added in v3.3.4

func (builder *LocationAddressUpdateBuilder) DistinctId(distinctId string) *LocationAddressUpdateBuilder

区 / 县

示例值:6863333556291110408

func (*LocationAddressUpdateBuilder) IsPrimary added in v3.3.4

func (builder *LocationAddressUpdateBuilder) IsPrimary(isPrimary bool) *LocationAddressUpdateBuilder

是否主要地址

示例值:true

func (*LocationAddressUpdateBuilder) IsPublic added in v3.3.4

func (builder *LocationAddressUpdateBuilder) IsPublic(isPublic bool) *LocationAddressUpdateBuilder

是否公开地址

示例值:true

func (*LocationAddressUpdateBuilder) LocalAddressLine1 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine1(localAddressLine1 string) *LocationAddressUpdateBuilder

地址行 1(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine2 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine2(localAddressLine2 string) *LocationAddressUpdateBuilder

地址行 2(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine3 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine3(localAddressLine3 string) *LocationAddressUpdateBuilder

地址行 3(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine4 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine4(localAddressLine4 string) *LocationAddressUpdateBuilder

地址行 4(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine5 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine5(localAddressLine5 string) *LocationAddressUpdateBuilder

地址行 5(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine6 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine6(localAddressLine6 string) *LocationAddressUpdateBuilder

地址行 6(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine7 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine7(localAddressLine7 string) *LocationAddressUpdateBuilder

地址行 7(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine8 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine8(localAddressLine8 string) *LocationAddressUpdateBuilder

地址行 8(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) LocalAddressLine9 added in v3.3.4

func (builder *LocationAddressUpdateBuilder) LocalAddressLine9(localAddressLine9 string) *LocationAddressUpdateBuilder

地址行 9(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*LocationAddressUpdateBuilder) PostalCode added in v3.3.4

func (builder *LocationAddressUpdateBuilder) PostalCode(postalCode string) *LocationAddressUpdateBuilder

邮政编码

示例值:611530

func (*LocationAddressUpdateBuilder) RegionId added in v3.3.4

主要行政区

示例值:6863326264296474119

type LocationBuilder

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

func NewLocationBuilder

func NewLocationBuilder() *LocationBuilder

func (*LocationBuilder) Address

func (builder *LocationBuilder) Address(address []*Address) *LocationBuilder

地址

示例值:

func (*LocationBuilder) Build

func (builder *LocationBuilder) Build() *Location

func (*LocationBuilder) CustomFields

func (builder *LocationBuilder) CustomFields(customFields []*CustomFieldData) *LocationBuilder

自定义字段

示例值:

func (*LocationBuilder) DisplayLanguageId

func (builder *LocationBuilder) DisplayLanguageId(displayLanguageId string) *LocationBuilder

默认显示语言

示例值:123456789

func (*LocationBuilder) EffectiveTime

func (builder *LocationBuilder) EffectiveTime(effectiveTime string) *LocationBuilder

生效时间

示例值:2020-05-01 00:00:00

func (*LocationBuilder) ExpirationTime

func (builder *LocationBuilder) ExpirationTime(expirationTime string) *LocationBuilder

失效时间

示例值:2020-05-02 00:00:00

func (*LocationBuilder) HiberarchyCommon

func (builder *LocationBuilder) HiberarchyCommon(hiberarchyCommon *HiberarchyCommon) *LocationBuilder

地点基本信息

示例值:

func (*LocationBuilder) Locale

func (builder *LocationBuilder) Locale(locale *Enum) *LocationBuilder

区域设置

示例值:zh_cn

func (*LocationBuilder) LocationId

func (builder *LocationBuilder) LocationId(locationId string) *LocationBuilder

地点 ID

示例值:4718803945687580505

func (*LocationBuilder) LocationUsageList

func (builder *LocationBuilder) LocationUsageList(locationUsageList []*Enum) *LocationBuilder

地点用途

示例值:

func (*LocationBuilder) TimeZoneId

func (builder *LocationBuilder) TimeZoneId(timeZoneId string) *LocationBuilder

时区

示例值:123456789

func (*LocationBuilder) WorkingHoursTypeId

func (builder *LocationBuilder) WorkingHoursTypeId(workingHoursTypeId string) *LocationBuilder

工时制度

示例值:4690238309151997779

type LocationUpdate added in v3.3.4

type LocationUpdate struct {
	ParentId *string `json:"parent_id,omitempty"` // 上级地点 ID

	Names []*I18n `json:"names,omitempty"` // 地点名称

	Active *bool `json:"active,omitempty"` // 是否启用

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	Code *string `json:"code,omitempty"` // 地点编码

	Descriptions []*I18n `json:"descriptions,omitempty"` // 地点描述

	LocationUsages []*Enum `json:"location_usages,omitempty"` // 地点用途

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度 ID

	Locale *Enum `json:"locale,omitempty"` // 区域设置

	TimeZoneId *string `json:"time_zone_id,omitempty"` // 时区 ID

	DisplayLanguageId *string `json:"display_language_id,omitempty"` // 默认显示语言 ID
}

type LocationUpdateBuilder added in v3.3.4

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

func NewLocationUpdateBuilder added in v3.3.4

func NewLocationUpdateBuilder() *LocationUpdateBuilder

func (*LocationUpdateBuilder) Active added in v3.3.4

func (builder *LocationUpdateBuilder) Active(active bool) *LocationUpdateBuilder

是否启用

示例值:true

func (*LocationUpdateBuilder) Build added in v3.3.4

func (builder *LocationUpdateBuilder) Build() *LocationUpdate

func (*LocationUpdateBuilder) Code added in v3.3.4

func (builder *LocationUpdateBuilder) Code(code string) *LocationUpdateBuilder

地点编码

示例值:12456

func (*LocationUpdateBuilder) Descriptions added in v3.3.4

func (builder *LocationUpdateBuilder) Descriptions(descriptions []*I18n) *LocationUpdateBuilder

地点描述

示例值:

func (*LocationUpdateBuilder) DisplayLanguageId added in v3.3.4

func (builder *LocationUpdateBuilder) DisplayLanguageId(displayLanguageId string) *LocationUpdateBuilder

默认显示语言 ID

示例值:123456789

func (*LocationUpdateBuilder) EffectiveTime added in v3.3.4

func (builder *LocationUpdateBuilder) EffectiveTime(effectiveTime string) *LocationUpdateBuilder

生效时间

示例值:2020-05-02

func (*LocationUpdateBuilder) Locale added in v3.3.4

func (builder *LocationUpdateBuilder) Locale(locale *Enum) *LocationUpdateBuilder

区域设置

示例值:zh_cn

func (*LocationUpdateBuilder) LocationUsages added in v3.3.4

func (builder *LocationUpdateBuilder) LocationUsages(locationUsages []*Enum) *LocationUpdateBuilder

地点用途

示例值:

func (*LocationUpdateBuilder) Names added in v3.3.4

func (builder *LocationUpdateBuilder) Names(names []*I18n) *LocationUpdateBuilder

地点名称

示例值:

func (*LocationUpdateBuilder) ParentId added in v3.3.4

func (builder *LocationUpdateBuilder) ParentId(parentId string) *LocationUpdateBuilder

上级地点 ID

示例值:4719168654814483759

func (*LocationUpdateBuilder) TimeZoneId added in v3.3.4

func (builder *LocationUpdateBuilder) TimeZoneId(timeZoneId string) *LocationUpdateBuilder

时区 ID

示例值:123456789

func (*LocationUpdateBuilder) WorkingHoursTypeId added in v3.3.4

func (builder *LocationUpdateBuilder) WorkingHoursTypeId(workingHoursTypeId string) *LocationUpdateBuilder

工时制度 ID

示例值:4690238309151997779

type LocationV2

type LocationV2 struct {
	LocationId *string `json:"location_id,omitempty"` // 地点 ID

	ParentLocationId *string `json:"parent_location_id,omitempty"` // 上级地点ID

	Names []*I18n `json:"names,omitempty"` // 名称

	Code *string `json:"code,omitempty"` // 编码

	Active *bool `json:"active,omitempty"` // 启用状态

	LocationUsages []*Enum `json:"location_usages,omitempty"` // 地点用途

	Addresses []*Address `json:"addresses,omitempty"` // 地址

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效时间

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	Locale *Enum `json:"locale,omitempty"` // 区域设置

	TimeZoneId *string `json:"time_zone_id,omitempty"` // 时区

	DisplayLanguageId *string `json:"display_language_id,omitempty"` // 默认显示语言
}

type LocationV2Builder

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

func NewLocationV2Builder

func NewLocationV2Builder() *LocationV2Builder

func (*LocationV2Builder) Active

func (builder *LocationV2Builder) Active(active bool) *LocationV2Builder

启用状态

示例值:true

func (*LocationV2Builder) Addresses

func (builder *LocationV2Builder) Addresses(addresses []*Address) *LocationV2Builder

地址

示例值:

func (*LocationV2Builder) Build

func (builder *LocationV2Builder) Build() *LocationV2

func (*LocationV2Builder) Code

func (builder *LocationV2Builder) Code(code string) *LocationV2Builder

编码

示例值:LO_CountryRegion_CHN

func (*LocationV2Builder) CustomFields

func (builder *LocationV2Builder) CustomFields(customFields []*CustomFieldData) *LocationV2Builder

自定义字段

示例值:

func (*LocationV2Builder) DisplayLanguageId

func (builder *LocationV2Builder) DisplayLanguageId(displayLanguageId string) *LocationV2Builder

默认显示语言

示例值:123456789

func (*LocationV2Builder) EffectiveTime

func (builder *LocationV2Builder) EffectiveTime(effectiveTime string) *LocationV2Builder

生效时间

示例值:2020-05-01 00:00:00

func (*LocationV2Builder) ExpirationTime

func (builder *LocationV2Builder) ExpirationTime(expirationTime string) *LocationV2Builder

失效时间

示例值:2020-05-02 00:00:00

func (*LocationV2Builder) Locale

func (builder *LocationV2Builder) Locale(locale *Enum) *LocationV2Builder

区域设置

示例值:zh_cn

func (*LocationV2Builder) LocationId

func (builder *LocationV2Builder) LocationId(locationId string) *LocationV2Builder

地点 ID

示例值:4718803945687580505

func (*LocationV2Builder) LocationUsages

func (builder *LocationV2Builder) LocationUsages(locationUsages []*Enum) *LocationV2Builder

地点用途

示例值:

func (*LocationV2Builder) Names

func (builder *LocationV2Builder) Names(names []*I18n) *LocationV2Builder

名称

示例值:

func (*LocationV2Builder) ParentLocationId

func (builder *LocationV2Builder) ParentLocationId(parentLocationId string) *LocationV2Builder

上级地点ID

示例值:4719168654814483759

func (*LocationV2Builder) TimeZoneId

func (builder *LocationV2Builder) TimeZoneId(timeZoneId string) *LocationV2Builder

时区

示例值:123456789

func (*LocationV2Builder) WorkingHoursTypeId

func (builder *LocationV2Builder) WorkingHoursTypeId(workingHoursTypeId string) *LocationV2Builder

工时制度

示例值:4690238309151997779

type MatchRule added in v3.2.3

type MatchRule struct {
	LeftValue *string `json:"left_value,omitempty"` // 左值

	Operator *string `json:"operator,omitempty"` // 操作符

	RightValues []string `json:"right_values,omitempty"` // 右值
}

type MatchRuleBuilder added in v3.2.3

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

func NewMatchRuleBuilder added in v3.2.3

func NewMatchRuleBuilder() *MatchRuleBuilder

func (*MatchRuleBuilder) Build added in v3.2.3

func (builder *MatchRuleBuilder) Build() *MatchRule

func (*MatchRuleBuilder) LeftValue added in v3.2.3

func (builder *MatchRuleBuilder) LeftValue(leftValue string) *MatchRuleBuilder

左值

示例值:department

func (*MatchRuleBuilder) Operator added in v3.2.3

func (builder *MatchRuleBuilder) Operator(operator string) *MatchRuleBuilder

操作符

示例值:contains

func (*MatchRuleBuilder) RightValues added in v3.2.3

func (builder *MatchRuleBuilder) RightValues(rightValues []string) *MatchRuleBuilder

右值

示例值:

type MatchRules added in v3.2.3

type MatchRules struct {
	MatchRules []*MatchRule `json:"match_rules,omitempty"` // 匹配规则组,组内取交集
}

type MatchRulesBuilder added in v3.2.3

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

func NewMatchRulesBuilder added in v3.2.3

func NewMatchRulesBuilder() *MatchRulesBuilder

func (*MatchRulesBuilder) Build added in v3.2.3

func (builder *MatchRulesBuilder) Build() *MatchRules

func (*MatchRulesBuilder) MatchRules added in v3.2.3

func (builder *MatchRulesBuilder) MatchRules(matchRules []*MatchRule) *MatchRulesBuilder

匹配规则组,组内取交集

示例值:

type Name

type Name struct {
	FullName *string `json:"full_name,omitempty"` // 全名

	FirstName *string `json:"first_name,omitempty"` // 名

	MiddleName *string `json:"middle_name,omitempty"` // 中间名

	NamePrimary *string `json:"name_primary,omitempty"` // 姓

	LocalFirstName *string `json:"local_first_name,omitempty"` // 名 - 本地文字

	LocalMiddleName *string `json:"local_middle_name,omitempty"` // 本地中间名

	LocalPrimary *string `json:"local_primary,omitempty"` // 姓 - 本地文字

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	CustomLocalName *string `json:"custom_local_name,omitempty"` // 本地文字的自定义姓名

	CustomWesternName *string `json:"custom_western_name,omitempty"` // 西方文字的自定义姓名
}

type NameBuilder

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

func NewNameBuilder

func NewNameBuilder() *NameBuilder

func (*NameBuilder) Build

func (builder *NameBuilder) Build() *Name

func (*NameBuilder) CountryRegionId added in v3.2.3

func (builder *NameBuilder) CountryRegionId(countryRegionId string) *NameBuilder

国家 / 地区

示例值:6862995757234914824

func (*NameBuilder) CustomLocalName added in v3.2.3

func (builder *NameBuilder) CustomLocalName(customLocalName string) *NameBuilder

本地文字的自定义姓名

示例值:李一一

func (*NameBuilder) CustomWesternName added in v3.2.3

func (builder *NameBuilder) CustomWesternName(customWesternName string) *NameBuilder

西方文字的自定义姓名

示例值:YiyiLi

func (*NameBuilder) FirstName

func (builder *NameBuilder) FirstName(firstName string) *NameBuilder

示例值:一

func (*NameBuilder) FullName

func (builder *NameBuilder) FullName(fullName string) *NameBuilder

全名

示例值:李一一

func (*NameBuilder) LocalFirstName

func (builder *NameBuilder) LocalFirstName(localFirstName string) *NameBuilder

名 - 本地文字

示例值:一

func (*NameBuilder) LocalMiddleName

func (builder *NameBuilder) LocalMiddleName(localMiddleName string) *NameBuilder

本地中间名

示例值:一

func (*NameBuilder) LocalPrimary

func (builder *NameBuilder) LocalPrimary(localPrimary string) *NameBuilder

姓 - 本地文字

示例值:李

func (*NameBuilder) MiddleName

func (builder *NameBuilder) MiddleName(middleName string) *NameBuilder

中间名

示例值:一

func (*NameBuilder) NamePrimary

func (builder *NameBuilder) NamePrimary(namePrimary string) *NameBuilder

示例值:李

type NameForUpdate added in v3.2.3

type NameForUpdate struct {
	FullName *string `json:"full_name,omitempty"` // 全名

	FirstName *string `json:"first_name,omitempty"` // 名

	MiddleName *string `json:"middle_name,omitempty"` // 中间名

	NamePrimary *string `json:"name_primary,omitempty"` // 姓

	LocalFirstName *string `json:"local_first_name,omitempty"` // 名 - 本地文字

	LocalMiddleName *string `json:"local_middle_name,omitempty"` // 本地中间名

	LocalPrimary *string `json:"local_primary,omitempty"` // 姓 - 本地文字

	CustomLocalName *string `json:"custom_local_name,omitempty"` // 自定义姓名(本地文字)

	CustomWesternName *string `json:"custom_western_name,omitempty"` // 自定义姓名(西方文字)

	CountryRegion *string `json:"country_region,omitempty"` // 国家/地区

	NameType *string `json:"name_type,omitempty"` // 姓名类型,枚举值
}

type NameForUpdateBuilder added in v3.2.3

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

func NewNameForUpdateBuilder added in v3.2.3

func NewNameForUpdateBuilder() *NameForUpdateBuilder

func (*NameForUpdateBuilder) Build added in v3.2.3

func (builder *NameForUpdateBuilder) Build() *NameForUpdate

func (*NameForUpdateBuilder) CountryRegion added in v3.2.3

func (builder *NameForUpdateBuilder) CountryRegion(countryRegion string) *NameForUpdateBuilder

国家/地区

示例值:6862995757234914824

func (*NameForUpdateBuilder) CustomLocalName added in v3.2.3

func (builder *NameForUpdateBuilder) CustomLocalName(customLocalName string) *NameForUpdateBuilder

自定义姓名(本地文字)

示例值:李一一

func (*NameForUpdateBuilder) CustomWesternName added in v3.2.3

func (builder *NameForUpdateBuilder) CustomWesternName(customWesternName string) *NameForUpdateBuilder

自定义姓名(西方文字)

示例值:YiyiLi

func (*NameForUpdateBuilder) FirstName added in v3.2.3

func (builder *NameForUpdateBuilder) FirstName(firstName string) *NameForUpdateBuilder

示例值:一

func (*NameForUpdateBuilder) FullName added in v3.2.3

func (builder *NameForUpdateBuilder) FullName(fullName string) *NameForUpdateBuilder

全名

示例值:李一一

func (*NameForUpdateBuilder) LocalFirstName added in v3.2.3

func (builder *NameForUpdateBuilder) LocalFirstName(localFirstName string) *NameForUpdateBuilder

名 - 本地文字

示例值:一

func (*NameForUpdateBuilder) LocalMiddleName added in v3.2.3

func (builder *NameForUpdateBuilder) LocalMiddleName(localMiddleName string) *NameForUpdateBuilder

本地中间名

示例值:一

func (*NameForUpdateBuilder) LocalPrimary added in v3.2.3

func (builder *NameForUpdateBuilder) LocalPrimary(localPrimary string) *NameForUpdateBuilder

姓 - 本地文字

示例值:李

func (*NameForUpdateBuilder) MiddleName added in v3.2.3

func (builder *NameForUpdateBuilder) MiddleName(middleName string) *NameForUpdateBuilder

中间名

示例值:一

func (*NameForUpdateBuilder) NamePrimary added in v3.2.3

func (builder *NameForUpdateBuilder) NamePrimary(namePrimary string) *NameForUpdateBuilder

示例值:李

func (*NameForUpdateBuilder) NameType added in v3.2.3

func (builder *NameForUpdateBuilder) NameType(nameType string) *NameForUpdateBuilder

姓名类型,枚举值

示例值:legal_name,preferred_name

type NationalId

type NationalId struct {
	NationalIdTypeId *string `json:"national_id_type_id,omitempty"` // 国家证件类型

	NationalIdNumber *string `json:"national_id_number,omitempty"` // 证件号码

	IssueDate *string `json:"issue_date,omitempty"` // 证件签发日期

	ExpirationDate *string `json:"expiration_date,omitempty"` // 证件到期日期

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	IssuedBy *string `json:"issued_by,omitempty"` // 证件签发机构

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type NationalIdBuilder

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

func NewNationalIdBuilder

func NewNationalIdBuilder() *NationalIdBuilder

func (*NationalIdBuilder) Build

func (builder *NationalIdBuilder) Build() *NationalId

func (*NationalIdBuilder) CountryRegionId

func (builder *NationalIdBuilder) CountryRegionId(countryRegionId string) *NationalIdBuilder

国家 / 地区

示例值:6862995757234914824

func (*NationalIdBuilder) CustomFields

func (builder *NationalIdBuilder) CustomFields(customFields []*CustomFieldData) *NationalIdBuilder

自定义字段

示例值:

func (*NationalIdBuilder) ExpirationDate

func (builder *NationalIdBuilder) ExpirationDate(expirationDate string) *NationalIdBuilder

证件到期日期

示例值:2020-05-21

func (*NationalIdBuilder) IssueDate

func (builder *NationalIdBuilder) IssueDate(issueDate string) *NationalIdBuilder

证件签发日期

示例值:2020-04-01

func (*NationalIdBuilder) IssuedBy

func (builder *NationalIdBuilder) IssuedBy(issuedBy string) *NationalIdBuilder

证件签发机构

示例值:北京市公安局

func (*NationalIdBuilder) NationalIdNumber

func (builder *NationalIdBuilder) NationalIdNumber(nationalIdNumber string) *NationalIdBuilder

证件号码

示例值:1231131333

func (*NationalIdBuilder) NationalIdTypeId

func (builder *NationalIdBuilder) NationalIdTypeId(nationalIdTypeId string) *NationalIdBuilder

国家证件类型

示例值:6863330041896371725

type NationalIdForUpdate added in v3.2.8

type NationalIdForUpdate struct {
	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区

	NationalIdTypeId *string `json:"national_id_type_id,omitempty"` // 国家证件类型

	NationalIdNumber *string `json:"national_id_number,omitempty"` // 证件号码

	IssueDate *string `json:"issue_date,omitempty"` // 证件签发日期

	ExpirationDate *string `json:"expiration_date,omitempty"` // 证件到期日期

	IssuedBy *string `json:"issued_by,omitempty"` // 证件签发机构
}

type NationalIdForUpdateBuilder added in v3.2.8

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

func NewNationalIdForUpdateBuilder added in v3.2.8

func NewNationalIdForUpdateBuilder() *NationalIdForUpdateBuilder

func (*NationalIdForUpdateBuilder) Build added in v3.2.8

func (*NationalIdForUpdateBuilder) CountryRegionId added in v3.2.8

func (builder *NationalIdForUpdateBuilder) CountryRegionId(countryRegionId string) *NationalIdForUpdateBuilder

国家 / 地区

示例值:6862995757234914824

func (*NationalIdForUpdateBuilder) ExpirationDate added in v3.2.8

func (builder *NationalIdForUpdateBuilder) ExpirationDate(expirationDate string) *NationalIdForUpdateBuilder

证件到期日期

示例值:2020-05-21

func (*NationalIdForUpdateBuilder) IssueDate added in v3.2.8

func (builder *NationalIdForUpdateBuilder) IssueDate(issueDate string) *NationalIdForUpdateBuilder

证件签发日期

示例值:2020-04-01

func (*NationalIdForUpdateBuilder) IssuedBy added in v3.2.8

func (builder *NationalIdForUpdateBuilder) IssuedBy(issuedBy string) *NationalIdForUpdateBuilder

证件签发机构

示例值:北京市公安局

func (*NationalIdForUpdateBuilder) NationalIdNumber added in v3.2.8

func (builder *NationalIdForUpdateBuilder) NationalIdNumber(nationalIdNumber string) *NationalIdForUpdateBuilder

证件号码

示例值:1231131333

func (*NationalIdForUpdateBuilder) NationalIdTypeId added in v3.2.8

func (builder *NationalIdForUpdateBuilder) NationalIdTypeId(nationalIdTypeId string) *NationalIdForUpdateBuilder

国家证件类型

示例值:6863330041896371725

type Nationality

type Nationality struct {
	NationalityId *string `json:"nationality_id,omitempty"` // 国籍 ID,对应[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)等接口返回的 `nationality_id_v2` 字段

	Name []*I18n `json:"name,omitempty"` // 名称

	Alpha2Code *string `json:"alpha_2_code,omitempty"` // 国家/地区两位字母编码(ISO 3166-1)

	Alpha3Code *string `json:"alpha_3_code,omitempty"` // 国家/地区三位字母编码(ISO 3166-1)

	NumericCode *int `json:"numeric_code,omitempty"` // 数字代码

	CountryRegionId *string `json:"country_region_id,omitempty"` // 所属国家/地区 ID,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

	Status *int `json:"status,omitempty"` // 状态
}

type NationalityBuilder

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

func NewNationalityBuilder

func NewNationalityBuilder() *NationalityBuilder

func (*NationalityBuilder) Alpha2Code

func (builder *NationalityBuilder) Alpha2Code(alpha2Code string) *NationalityBuilder

国家/地区两位字母编码(ISO 3166-1)

示例值:CN

func (*NationalityBuilder) Alpha3Code

func (builder *NationalityBuilder) Alpha3Code(alpha3Code string) *NationalityBuilder

国家/地区三位字母编码(ISO 3166-1)

示例值:CHN

func (*NationalityBuilder) Build

func (builder *NationalityBuilder) Build() *Nationality

func (*NationalityBuilder) CountryRegionId

func (builder *NationalityBuilder) CountryRegionId(countryRegionId string) *NationalityBuilder

所属国家/地区 ID,详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

示例值:6862995757234914824

func (*NationalityBuilder) Name

func (builder *NationalityBuilder) Name(name []*I18n) *NationalityBuilder

名称

示例值:

func (*NationalityBuilder) NationalityId

func (builder *NationalityBuilder) NationalityId(nationalityId string) *NationalityBuilder

国籍 ID,对应[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)等接口返回的 `nationality_id_v2` 字段

示例值:7075702736045475372

func (*NationalityBuilder) NumericCode

func (builder *NationalityBuilder) NumericCode(numericCode int) *NationalityBuilder

数字代码

示例值:156

func (*NationalityBuilder) Status

func (builder *NationalityBuilder) Status(status int) *NationalityBuilder

状态

示例值:1

type ObjectFieldData

type ObjectFieldData struct {
	FieldName *string `json:"field_name,omitempty"` // 字段名

	Value *string `json:"value,omitempty"` // 字段值,是json转义后的字符串,根据元数据定义不同,字段格式不同(123, 123.23, true, [\"id1\",\"id2\], 2006-01-02 15:04:05])
}

type ObjectFieldDataBuilder

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

func NewObjectFieldDataBuilder

func NewObjectFieldDataBuilder() *ObjectFieldDataBuilder

func (*ObjectFieldDataBuilder) Build

func (builder *ObjectFieldDataBuilder) Build() *ObjectFieldData

func (*ObjectFieldDataBuilder) FieldName

func (builder *ObjectFieldDataBuilder) FieldName(fieldName string) *ObjectFieldDataBuilder

字段名

示例值:name

func (*ObjectFieldDataBuilder) Value

func (builder *ObjectFieldDataBuilder) Value(value string) *ObjectFieldDataBuilder

字段值,是json转义后的字符串,根据元数据定义不同,字段格式不同(123, 123.23, true, [\"id1\",\"id2\], 2006-01-02 15:04:05])

示例值:Sandy

type OfferInfo

type OfferInfo struct {
	OfferId *string `json:"offer_id,omitempty"` // Offer id

	OfferHrId *string `json:"offer_hr_id,omitempty"` // Offer hr id

	DepartmentId *string `json:"department_id,omitempty"` // 部门 id

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属领导id

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级id

	JobId *string `json:"job_id,omitempty"` // 职务id

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列id

	JobLevelId *string `json:"job_level_id,omitempty"` // 级别id

	JobTitle *string `json:"job_title,omitempty"` // 职务头衔id

	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期

	ContractStartDate *string `json:"contract_start_date,omitempty"` // 合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 合同结束日期

	DurationPeriod *float64 `json:"duration_period,omitempty"` // 合同期限时长

	DurationUnit *string `json:"duration_unit,omitempty"` // 合同期限单位

	OnboardingDate *string `json:"onboarding_date,omitempty"` // 入职日期

	OnboardingLocationId *string `json:"onboarding_location_id,omitempty"` // 入职地点id

	OfficeLocationId *string `json:"office_location_id,omitempty"` // 办公地点id

	RecruitmentTypeId *string `json:"recruitment_type_id,omitempty"` // 招聘来源id

	ProbationPeriod *string `json:"probation_period,omitempty"` // 试用期时长

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型id

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型id

	EmploymentTypeId *string `json:"employment_type_id,omitempty"` // 雇佣类型id

	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱

	DurationTypeId *string `json:"duration_type_id,omitempty"` // 期限类型id

	SigningTypeId *string `json:"signing_type_id,omitempty"` // 签订类型id

	EntryMode *string `json:"entry_mode,omitempty"` // 入职方式

	SocialSecurityCityId *string `json:"social_security_city_id,omitempty"` // 社保城市id

	ContractType *string `json:"contract_type,omitempty"` // 合同类型

	Company *string `json:"company,omitempty"` // 公司

	CostCenterRate []*JobDataCostCenter `json:"cost_center_rate,omitempty"` // 成本中心分摊信息

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等ID

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段

	ServiceCompany *string `json:"service_company,omitempty"` // 任职公司

	WorkShift *string `json:"work_shift,omitempty"` // 排班

	CompensationType *string `json:"compensation_type,omitempty"` // 薪资类型

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点id

	OnboardingAddressId *string `json:"onboarding_address_id,omitempty"` // 入职地址id

	OfficeAddressId *string `json:"office_address_id,omitempty"` // 办公地址id

	PositionId *string `json:"position_id,omitempty"` // 岗位id

	WorkingCalendarId *string `json:"working_calendar_id,omitempty"` // 工作日历id

	WorkingHoursType *string `json:"working_hours_type,omitempty"` // 工时制度

	PayGroupId *string `json:"pay_group_id,omitempty"` // 薪资组

	FlowId *string `json:"flow_id,omitempty"` // 入职流程ID

	CheckInTime *string `json:"check_in_time,omitempty"` // 签到日期

	CheckInMethod *string `json:"check_in_method,omitempty"` // 签到方式

	SeniorityDate *string `json:"seniority_date,omitempty"` // 司龄起算日期

	SeniorityAdjustInformationList []*PrehireSeniorityAdjustInformation `json:"seniority_adjust_information_list,omitempty"` // 司龄调整信息
}

type OfferInfoBuilder

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

func NewOfferInfoBuilder

func NewOfferInfoBuilder() *OfferInfoBuilder

func (*OfferInfoBuilder) Build

func (builder *OfferInfoBuilder) Build() *OfferInfo

func (*OfferInfoBuilder) CheckInMethod added in v3.2.8

func (builder *OfferInfoBuilder) CheckInMethod(checkInMethod string) *OfferInfoBuilder

签到方式

示例值:6977976687350924833

func (*OfferInfoBuilder) CheckInTime added in v3.2.8

func (builder *OfferInfoBuilder) CheckInTime(checkInTime string) *OfferInfoBuilder

签到日期

示例值:2024-08-01

func (*OfferInfoBuilder) Company

func (builder *OfferInfoBuilder) Company(company string) *OfferInfoBuilder

公司

示例值:6738317738688661772

func (*OfferInfoBuilder) CompensationType added in v3.2.2

func (builder *OfferInfoBuilder) CompensationType(compensationType string) *OfferInfoBuilder

薪资类型

示例值:hourly

func (*OfferInfoBuilder) ContractEndDate

func (builder *OfferInfoBuilder) ContractEndDate(contractEndDate string) *OfferInfoBuilder

合同结束日期

示例值:2025-10-07

func (*OfferInfoBuilder) ContractStartDate

func (builder *OfferInfoBuilder) ContractStartDate(contractStartDate string) *OfferInfoBuilder

合同开始日期

示例值:2022-10-08

func (*OfferInfoBuilder) ContractType

func (builder *OfferInfoBuilder) ContractType(contractType string) *OfferInfoBuilder

合同类型

示例值:6738317738688661772

func (*OfferInfoBuilder) CostCenterRate

func (builder *OfferInfoBuilder) CostCenterRate(costCenterRate []*JobDataCostCenter) *OfferInfoBuilder

成本中心分摊信息

示例值:

func (*OfferInfoBuilder) CustomFields

func (builder *OfferInfoBuilder) CustomFields(customFields []*ObjectFieldData) *OfferInfoBuilder

自定义字段

示例值:

func (*OfferInfoBuilder) DepartmentId

func (builder *OfferInfoBuilder) DepartmentId(departmentId string) *OfferInfoBuilder

部门 id

示例值:7147562782945478177

func (*OfferInfoBuilder) DirectLeaderId

func (builder *OfferInfoBuilder) DirectLeaderId(directLeaderId string) *OfferInfoBuilder

直属领导id

示例值:7032210902531327521

func (*OfferInfoBuilder) DottedLineManagerId added in v3.3.5

func (builder *OfferInfoBuilder) DottedLineManagerId(dottedLineManagerId string) *OfferInfoBuilder

虚线上级id

示例值:7032210902531327521

func (*OfferInfoBuilder) DurationPeriod added in v3.2.0

func (builder *OfferInfoBuilder) DurationPeriod(durationPeriod float64) *OfferInfoBuilder

合同期限时长

示例值:3

func (*OfferInfoBuilder) DurationTypeId

func (builder *OfferInfoBuilder) DurationTypeId(durationTypeId string) *OfferInfoBuilder

期限类型id

示例值:6977973225846343171

func (*OfferInfoBuilder) DurationUnit added in v3.2.0

func (builder *OfferInfoBuilder) DurationUnit(durationUnit string) *OfferInfoBuilder

合同期限单位

示例值:年

func (*OfferInfoBuilder) EmployeeSubtypeId added in v3.3.4

func (builder *OfferInfoBuilder) EmployeeSubtypeId(employeeSubtypeId string) *OfferInfoBuilder

人员子类型id

示例值:6977973225846343171

func (*OfferInfoBuilder) EmployeeTypeId

func (builder *OfferInfoBuilder) EmployeeTypeId(employeeTypeId string) *OfferInfoBuilder

人员类型id

示例值:6977973225846343171

func (*OfferInfoBuilder) EmploymentTypeId

func (builder *OfferInfoBuilder) EmploymentTypeId(employmentTypeId string) *OfferInfoBuilder

雇佣类型id

示例值:6977973225846343171

func (*OfferInfoBuilder) EntryMode

func (builder *OfferInfoBuilder) EntryMode(entryMode string) *OfferInfoBuilder

入职方式

示例值:1

func (*OfferInfoBuilder) FlowId added in v3.2.8

func (builder *OfferInfoBuilder) FlowId(flowId string) *OfferInfoBuilder

入职流程ID

示例值:6977976687350924833

func (*OfferInfoBuilder) JobFamilyId

func (builder *OfferInfoBuilder) JobFamilyId(jobFamilyId string) *OfferInfoBuilder

序列id

示例值:6977972856625939999

func (*OfferInfoBuilder) JobGradeId

func (builder *OfferInfoBuilder) JobGradeId(jobGradeId string) *OfferInfoBuilder

职等ID

示例值:6738317738688661772

func (*OfferInfoBuilder) JobId

func (builder *OfferInfoBuilder) JobId(jobId string) *OfferInfoBuilder

职务id

示例值:6977976735715378724

func (*OfferInfoBuilder) JobLevelId

func (builder *OfferInfoBuilder) JobLevelId(jobLevelId string) *OfferInfoBuilder

级别id

示例值:6977971894960145950

func (*OfferInfoBuilder) JobTitle

func (builder *OfferInfoBuilder) JobTitle(jobTitle string) *OfferInfoBuilder

职务头衔id

示例值:java

func (*OfferInfoBuilder) OfferHrId

func (builder *OfferInfoBuilder) OfferHrId(offerHrId string) *OfferInfoBuilder

Offer hr id

示例值:7032210902531327521

func (*OfferInfoBuilder) OfferId

func (builder *OfferInfoBuilder) OfferId(offerId string) *OfferInfoBuilder

Offer id

示例值:7032210902531327521

func (*OfferInfoBuilder) OfficeAddressId added in v3.2.3

func (builder *OfferInfoBuilder) OfficeAddressId(officeAddressId string) *OfferInfoBuilder

办公地址id

示例值:6977976687350924833

func (*OfferInfoBuilder) OfficeLocationId

func (builder *OfferInfoBuilder) OfficeLocationId(officeLocationId string) *OfferInfoBuilder

办公地点id

示例值:6977976687350924832

func (*OfferInfoBuilder) OnboardingAddressId added in v3.2.3

func (builder *OfferInfoBuilder) OnboardingAddressId(onboardingAddressId string) *OfferInfoBuilder

入职地址id

示例值:6977976687350924833

func (*OfferInfoBuilder) OnboardingDate

func (builder *OfferInfoBuilder) OnboardingDate(onboardingDate string) *OfferInfoBuilder

入职日期

示例值:2022-10-08

func (*OfferInfoBuilder) OnboardingLocationId

func (builder *OfferInfoBuilder) OnboardingLocationId(onboardingLocationId string) *OfferInfoBuilder

入职地点id

示例值:6977976687350924832

func (*OfferInfoBuilder) PayGroupId added in v3.2.8

func (builder *OfferInfoBuilder) PayGroupId(payGroupId string) *OfferInfoBuilder

薪资组

示例值:6977976687350924833

func (*OfferInfoBuilder) PositionId added in v3.2.8

func (builder *OfferInfoBuilder) PositionId(positionId string) *OfferInfoBuilder

岗位id

示例值:6977976687350924833

func (*OfferInfoBuilder) ProbationEndDate

func (builder *OfferInfoBuilder) ProbationEndDate(probationEndDate string) *OfferInfoBuilder

试用期结束日期

示例值:2023-04-07

func (*OfferInfoBuilder) ProbationPeriod

func (builder *OfferInfoBuilder) ProbationPeriod(probationPeriod string) *OfferInfoBuilder

试用期时长

示例值:6

func (*OfferInfoBuilder) ProbationStartDate

func (builder *OfferInfoBuilder) ProbationStartDate(probationStartDate string) *OfferInfoBuilder

试用期开始日期

示例值:2022-07-29

func (*OfferInfoBuilder) RecruitmentTypeId

func (builder *OfferInfoBuilder) RecruitmentTypeId(recruitmentTypeId string) *OfferInfoBuilder

招聘来源id

示例值:experienced_professionals

func (*OfferInfoBuilder) SeniorityAdjustInformationList added in v3.4.1

func (builder *OfferInfoBuilder) SeniorityAdjustInformationList(seniorityAdjustInformationList []*PrehireSeniorityAdjustInformation) *OfferInfoBuilder

司龄调整信息

示例值:

func (*OfferInfoBuilder) SeniorityDate added in v3.3.2

func (builder *OfferInfoBuilder) SeniorityDate(seniorityDate string) *OfferInfoBuilder

司龄起算日期

示例值:2024-08-01

func (*OfferInfoBuilder) ServiceCompany added in v3.2.2

func (builder *OfferInfoBuilder) ServiceCompany(serviceCompany string) *OfferInfoBuilder

任职公司

示例值:6738317738688661772

func (*OfferInfoBuilder) SigningTypeId

func (builder *OfferInfoBuilder) SigningTypeId(signingTypeId string) *OfferInfoBuilder

签订类型id

示例值:6738317738688661772

func (*OfferInfoBuilder) SocialSecurityCityId

func (builder *OfferInfoBuilder) SocialSecurityCityId(socialSecurityCityId string) *OfferInfoBuilder

社保城市id

示例值:xxx

func (*OfferInfoBuilder) WorkEmail

func (builder *OfferInfoBuilder) WorkEmail(workEmail string) *OfferInfoBuilder

工作邮箱

示例值:joshua@bytedance.com

func (*OfferInfoBuilder) WorkLocationId added in v3.2.3

func (builder *OfferInfoBuilder) WorkLocationId(workLocationId string) *OfferInfoBuilder

工作地点id

示例值:6977976687350924833

func (*OfferInfoBuilder) WorkShift added in v3.2.2

func (builder *OfferInfoBuilder) WorkShift(workShift string) *OfferInfoBuilder

排班

示例值:work_shift

func (*OfferInfoBuilder) WorkingCalendarId added in v3.2.8

func (builder *OfferInfoBuilder) WorkingCalendarId(workingCalendarId string) *OfferInfoBuilder

工作日历id

示例值:6977976687350924833

func (*OfferInfoBuilder) WorkingHoursType added in v3.2.8

func (builder *OfferInfoBuilder) WorkingHoursType(workingHoursType string) *OfferInfoBuilder

工时制度

示例值:6977976687350924833

type OfferInfoUpdate added in v3.2.3

type OfferInfoUpdate struct {
	OnboardingDate *string `json:"onboarding_date,omitempty"` // 入职日期

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘应用ID

	OnboardingLocationId *string `json:"onboarding_location_id,omitempty"` // 入职地点ID,详细信息可通过【批量查询地点】接口获得

	OnboardingAddressId *string `json:"onboarding_address_id,omitempty"` // 入职地址ID,详细信息可通过【批量查询地址】接口获得

	OfficeLocationId *string `json:"office_location_id,omitempty"` // 办公地点ID,详细信息可通过【批量查询地点】接口获得

	OfficeAddressId *string `json:"office_address_id,omitempty"` // 办公地址ID,详细信息可通过【批量查询地址】接口获得

	EmploymentType *string `json:"employment_type,omitempty"` // 雇佣类型,通过查询枚举集【employment_type】获得枚举apiName

	OnboardingMethod *string `json:"onboarding_method,omitempty"` // 入职方式,通过查询枚举集【onboarding_method】获得枚举apiName

	WorkEmails []*EmailForUpdate `json:"work_emails,omitempty"` // 工作邮箱

	CostCenterRates []*JobDataCostCenter `json:"cost_center_rates,omitempty"` // 成本中心分摊信息,只支持商业化租户

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID,

	ProbationPeriod *int `json:"probation_period,omitempty"` // 试用期时长

	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期

	ContractStartDate *string `json:"contract_start_date,omitempty"` // 合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 合同结束日期

	ContractType *string `json:"contract_type,omitempty"` // 合同类型

	DurationTypeId *string `json:"duration_type_id,omitempty"` // 期限类型

	SigningTypeId *string `json:"signing_type_id,omitempty"` // 签订类型

	WorkerId *string `json:"worker_id,omitempty"` // 工号

	CheckInTime *string `json:"check_in_time,omitempty"` // 签到时间

	CheckInMethod *string `json:"check_in_method,omitempty"` // 签到方式

	Company *string `json:"company,omitempty"` // 公司主体

	WorkShift *string `json:"work_shift,omitempty"` // 排班

	RecruitmentTypeId *string `json:"recruitment_type_id,omitempty"` // 招聘类型

	CompensationType *string `json:"compensation_type,omitempty"` // 薪资类型

	PayGroupId *string `json:"pay_group_id,omitempty"` // 薪资组

	OfferHrId *string `json:"offer_hr_id,omitempty"` // offer HR

	JobId *string `json:"job_id,omitempty"` // 职务

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属上级

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级

	DepartmentId *string `json:"department_id,omitempty"` // 部门

	SocialSecurityCity *string `json:"social_security_city,omitempty"` // 社保城市

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作城市

	WorkingCalendar *string `json:"working_calendar,omitempty"` // 工作日历

	WorkingHoursType *string `json:"working_hours_type,omitempty"` // 工时制度

	SeniorityDate *string `json:"seniority_date,omitempty"` // 司龄起算日期

	SeniorityAdjustInformationList []*PrehireSeniorityAdjustInformationUpdate `json:"seniority_adjust_information_list,omitempty"` // 司龄调整信息
}

type OfferInfoUpdateBuilder added in v3.2.3

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

func NewOfferInfoUpdateBuilder added in v3.2.3

func NewOfferInfoUpdateBuilder() *OfferInfoUpdateBuilder

func (*OfferInfoUpdateBuilder) AtsApplicationId added in v3.2.3

func (builder *OfferInfoUpdateBuilder) AtsApplicationId(atsApplicationId string) *OfferInfoUpdateBuilder

招聘应用ID

示例值:7140946969586010375

func (*OfferInfoUpdateBuilder) Build added in v3.2.3

func (builder *OfferInfoUpdateBuilder) Build() *OfferInfoUpdate

func (*OfferInfoUpdateBuilder) CheckInMethod added in v3.2.8

func (builder *OfferInfoUpdateBuilder) CheckInMethod(checkInMethod string) *OfferInfoUpdateBuilder

签到方式

示例值:xxx

func (*OfferInfoUpdateBuilder) CheckInTime added in v3.2.8

func (builder *OfferInfoUpdateBuilder) CheckInTime(checkInTime string) *OfferInfoUpdateBuilder

签到时间

示例值:xxx

func (*OfferInfoUpdateBuilder) Company added in v3.2.8

func (builder *OfferInfoUpdateBuilder) Company(company string) *OfferInfoUpdateBuilder

公司主体

示例值:xxx

func (*OfferInfoUpdateBuilder) CompensationType added in v3.2.8

func (builder *OfferInfoUpdateBuilder) CompensationType(compensationType string) *OfferInfoUpdateBuilder

薪资类型

示例值:xxx

func (*OfferInfoUpdateBuilder) ContractEndDate added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ContractEndDate(contractEndDate string) *OfferInfoUpdateBuilder

合同结束日期

示例值:xxx

func (*OfferInfoUpdateBuilder) ContractStartDate added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ContractStartDate(contractStartDate string) *OfferInfoUpdateBuilder

合同开始日期

示例值:xxx

func (*OfferInfoUpdateBuilder) ContractType added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ContractType(contractType string) *OfferInfoUpdateBuilder

合同类型

示例值:xxx

func (*OfferInfoUpdateBuilder) CostCenterRates added in v3.2.3

func (builder *OfferInfoUpdateBuilder) CostCenterRates(costCenterRates []*JobDataCostCenter) *OfferInfoUpdateBuilder

成本中心分摊信息,只支持商业化租户

示例值:

func (*OfferInfoUpdateBuilder) CustomFields added in v3.2.3

func (builder *OfferInfoUpdateBuilder) CustomFields(customFields []*ObjectFieldData) *OfferInfoUpdateBuilder

自定义字段

示例值:

func (*OfferInfoUpdateBuilder) DepartmentId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) DepartmentId(departmentId string) *OfferInfoUpdateBuilder

部门

示例值:xxx

func (*OfferInfoUpdateBuilder) DirectLeaderId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) DirectLeaderId(directLeaderId string) *OfferInfoUpdateBuilder

直属上级

示例值:xxx

func (*OfferInfoUpdateBuilder) DottedLineManagerId added in v3.3.5

func (builder *OfferInfoUpdateBuilder) DottedLineManagerId(dottedLineManagerId string) *OfferInfoUpdateBuilder

虚线上级

示例值:xxx

func (*OfferInfoUpdateBuilder) DurationTypeId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) DurationTypeId(durationTypeId string) *OfferInfoUpdateBuilder

期限类型

示例值:xxx

func (*OfferInfoUpdateBuilder) EmployeeSubtypeId added in v3.3.4

func (builder *OfferInfoUpdateBuilder) EmployeeSubtypeId(employeeSubtypeId string) *OfferInfoUpdateBuilder

人员子类型

示例值:xxx

func (*OfferInfoUpdateBuilder) EmployeeTypeId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) EmployeeTypeId(employeeTypeId string) *OfferInfoUpdateBuilder

人员类型

示例值:xxx

func (*OfferInfoUpdateBuilder) EmploymentType added in v3.2.3

func (builder *OfferInfoUpdateBuilder) EmploymentType(employmentType string) *OfferInfoUpdateBuilder

雇佣类型,通过查询枚举集【employment_type】获得枚举apiName

示例值:employee(员工);contingent_worker(临时工)

func (*OfferInfoUpdateBuilder) JobFamilyId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) JobFamilyId(jobFamilyId string) *OfferInfoUpdateBuilder

序列

示例值:xxx

func (*OfferInfoUpdateBuilder) JobGradeId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) JobGradeId(jobGradeId string) *OfferInfoUpdateBuilder

职等

示例值:xxx

func (*OfferInfoUpdateBuilder) JobId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) JobId(jobId string) *OfferInfoUpdateBuilder

职务

示例值:xxx

func (*OfferInfoUpdateBuilder) JobLevelId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) JobLevelId(jobLevelId string) *OfferInfoUpdateBuilder

职级

示例值:xxx

func (*OfferInfoUpdateBuilder) OfferHrId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) OfferHrId(offerHrId string) *OfferInfoUpdateBuilder

offer HR

示例值:xxx

func (*OfferInfoUpdateBuilder) OfficeAddressId added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OfficeAddressId(officeAddressId string) *OfferInfoUpdateBuilder

办公地址ID,详细信息可通过【批量查询地址】接口获得

示例值:6977976687350924832

func (*OfferInfoUpdateBuilder) OfficeLocationId added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OfficeLocationId(officeLocationId string) *OfferInfoUpdateBuilder

办公地点ID,详细信息可通过【批量查询地点】接口获得

示例值:6977976687350924833

func (*OfferInfoUpdateBuilder) OnboardingAddressId added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OnboardingAddressId(onboardingAddressId string) *OfferInfoUpdateBuilder

入职地址ID,详细信息可通过【批量查询地址】接口获得

示例值:6977976687350924832

func (*OfferInfoUpdateBuilder) OnboardingDate added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OnboardingDate(onboardingDate string) *OfferInfoUpdateBuilder

入职日期

示例值:2022-10-08

func (*OfferInfoUpdateBuilder) OnboardingLocationId added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OnboardingLocationId(onboardingLocationId string) *OfferInfoUpdateBuilder

入职地点ID,详细信息可通过【批量查询地点】接口获得

示例值:6977976687350924832

func (*OfferInfoUpdateBuilder) OnboardingMethod added in v3.2.3

func (builder *OfferInfoUpdateBuilder) OnboardingMethod(onboardingMethod string) *OfferInfoUpdateBuilder

入职方式,通过查询枚举集【onboarding_method】获得枚举apiName

示例值:onsite(现场入职);remote(远程入职)

func (*OfferInfoUpdateBuilder) PayGroupId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) PayGroupId(payGroupId string) *OfferInfoUpdateBuilder

薪资组

示例值:xxx

func (*OfferInfoUpdateBuilder) PositionId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) PositionId(positionId string) *OfferInfoUpdateBuilder

岗位 ID,

示例值:697797668735092768

func (*OfferInfoUpdateBuilder) ProbationEndDate added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ProbationEndDate(probationEndDate string) *OfferInfoUpdateBuilder

试用期结束日期

示例值:xxx

func (*OfferInfoUpdateBuilder) ProbationPeriod added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ProbationPeriod(probationPeriod int) *OfferInfoUpdateBuilder

试用期时长

示例值:697797668735092768

func (*OfferInfoUpdateBuilder) ProbationStartDate added in v3.2.8

func (builder *OfferInfoUpdateBuilder) ProbationStartDate(probationStartDate string) *OfferInfoUpdateBuilder

试用期开始日期

示例值:xxx

func (*OfferInfoUpdateBuilder) RecruitmentTypeId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) RecruitmentTypeId(recruitmentTypeId string) *OfferInfoUpdateBuilder

招聘类型

示例值:xxx

func (*OfferInfoUpdateBuilder) SeniorityAdjustInformationList added in v3.4.1

func (builder *OfferInfoUpdateBuilder) SeniorityAdjustInformationList(seniorityAdjustInformationList []*PrehireSeniorityAdjustInformationUpdate) *OfferInfoUpdateBuilder

司龄调整信息

示例值:

func (*OfferInfoUpdateBuilder) SeniorityDate added in v3.3.2

func (builder *OfferInfoUpdateBuilder) SeniorityDate(seniorityDate string) *OfferInfoUpdateBuilder

司龄起算日期

示例值:2022-10-08

func (*OfferInfoUpdateBuilder) SigningTypeId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) SigningTypeId(signingTypeId string) *OfferInfoUpdateBuilder

签订类型

示例值:xxx

func (*OfferInfoUpdateBuilder) SocialSecurityCity added in v3.2.8

func (builder *OfferInfoUpdateBuilder) SocialSecurityCity(socialSecurityCity string) *OfferInfoUpdateBuilder

社保城市

示例值:xxx

func (*OfferInfoUpdateBuilder) WorkEmails added in v3.2.3

func (builder *OfferInfoUpdateBuilder) WorkEmails(workEmails []*EmailForUpdate) *OfferInfoUpdateBuilder

工作邮箱

示例值:

func (*OfferInfoUpdateBuilder) WorkLocationId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) WorkLocationId(workLocationId string) *OfferInfoUpdateBuilder

工作城市

示例值:xxx

func (*OfferInfoUpdateBuilder) WorkShift added in v3.2.8

func (builder *OfferInfoUpdateBuilder) WorkShift(workShift string) *OfferInfoUpdateBuilder

排班

示例值:xxx

func (*OfferInfoUpdateBuilder) WorkerId added in v3.2.8

func (builder *OfferInfoUpdateBuilder) WorkerId(workerId string) *OfferInfoUpdateBuilder

工号

示例值:xxx

func (*OfferInfoUpdateBuilder) WorkingCalendar added in v3.2.8

func (builder *OfferInfoUpdateBuilder) WorkingCalendar(workingCalendar string) *OfferInfoUpdateBuilder

工作日历

示例值:xxx

func (*OfferInfoUpdateBuilder) WorkingHoursType added in v3.2.8

func (builder *OfferInfoUpdateBuilder) WorkingHoursType(workingHoursType string) *OfferInfoUpdateBuilder

工时制度

示例值:xxx

type OnboardingFlow added in v3.2.3

type OnboardingFlow struct {
	Id *string `json:"id,omitempty"` // 流程id

	Name *I18nV2 `json:"name,omitempty"` // 流程名称
}

type OnboardingFlowBuilder added in v3.2.3

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

func NewOnboardingFlowBuilder added in v3.2.3

func NewOnboardingFlowBuilder() *OnboardingFlowBuilder

func (*OnboardingFlowBuilder) Build added in v3.2.3

func (builder *OnboardingFlowBuilder) Build() *OnboardingFlow

func (*OnboardingFlowBuilder) Id added in v3.2.3

流程id

示例值:628caefb0eb4ac9c806982ee

func (*OnboardingFlowBuilder) Name added in v3.2.3

func (builder *OnboardingFlowBuilder) Name(name *I18nV2) *OnboardingFlowBuilder

流程名称

示例值:

type OnboardingFlowChange added in v3.2.5

type OnboardingFlowChange struct {
	AfterStatus *string `json:"after_status,omitempty"` // 入职流程状态变更
}

type OnboardingFlowChangeBuilder added in v3.2.5

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

func NewOnboardingFlowChangeBuilder added in v3.2.5

func NewOnboardingFlowChangeBuilder() *OnboardingFlowChangeBuilder

func (*OnboardingFlowChangeBuilder) AfterStatus added in v3.2.5

func (builder *OnboardingFlowChangeBuilder) AfterStatus(afterStatus string) *OnboardingFlowChangeBuilder

入职流程状态变更

示例值:in_progress

func (*OnboardingFlowChangeBuilder) Build added in v3.2.5

type OnboardingQrCode added in v3.2.3

type OnboardingQrCode struct {
	Id *string `json:"id,omitempty"` // 唯一键

	Pngs []string `json:"pngs,omitempty"` // 二维码图片链接,文件名区分语言

	Url *string `json:"url,omitempty"` // 二维码值链接

	Active *bool `json:"active,omitempty"` // 有效性

	CreatedBy *string `json:"created_by,omitempty"` // 创建人

	UpdatedBy *string `json:"updated_by,omitempty"` // 更新人

	CreatedAt *int `json:"created_at,omitempty"` // 创建时间

	UpdatedAt *int `json:"updated_at,omitempty"` // 更新时间

	DimensionValues []*QrCodeDimensionValue `json:"dimension_values,omitempty"` // 维度值列表
}

type OnboardingQrCodeBuilder added in v3.2.3

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

func NewOnboardingQrCodeBuilder added in v3.2.3

func NewOnboardingQrCodeBuilder() *OnboardingQrCodeBuilder

func (*OnboardingQrCodeBuilder) Active added in v3.2.3

func (builder *OnboardingQrCodeBuilder) Active(active bool) *OnboardingQrCodeBuilder

有效性

示例值:xxx

func (*OnboardingQrCodeBuilder) Build added in v3.2.3

func (builder *OnboardingQrCodeBuilder) Build() *OnboardingQrCode

func (*OnboardingQrCodeBuilder) CreatedAt added in v3.2.3

func (builder *OnboardingQrCodeBuilder) CreatedAt(createdAt int) *OnboardingQrCodeBuilder

创建时间

示例值:xxxxxx

func (*OnboardingQrCodeBuilder) CreatedBy added in v3.2.3

func (builder *OnboardingQrCodeBuilder) CreatedBy(createdBy string) *OnboardingQrCodeBuilder

创建人

示例值:xxxxx

func (*OnboardingQrCodeBuilder) DimensionValues added in v3.2.3

func (builder *OnboardingQrCodeBuilder) DimensionValues(dimensionValues []*QrCodeDimensionValue) *OnboardingQrCodeBuilder

维度值列表

示例值:

func (*OnboardingQrCodeBuilder) Id added in v3.2.3

唯一键

示例值:345241

func (*OnboardingQrCodeBuilder) Pngs added in v3.2.3

二维码图片链接,文件名区分语言

示例值:

func (*OnboardingQrCodeBuilder) UpdatedAt added in v3.2.3

func (builder *OnboardingQrCodeBuilder) UpdatedAt(updatedAt int) *OnboardingQrCodeBuilder

更新时间

示例值:xxxxx

func (*OnboardingQrCodeBuilder) UpdatedBy added in v3.2.3

func (builder *OnboardingQrCodeBuilder) UpdatedBy(updatedBy string) *OnboardingQrCodeBuilder

更新人

示例值:xxxxx

func (*OnboardingQrCodeBuilder) Url added in v3.2.3

二维码值链接

示例值:xxxxx

type OnboardingTask

type OnboardingTask struct {
	TaskName *string `json:"task_name,omitempty"` // 任务名称

	TaskStatus *string `json:"task_status,omitempty"` // 任务名称

	OperatorId *string `json:"operator_id,omitempty"` // 当前操作人雇佣 ID

	TaskCode *string `json:"task_code,omitempty"` // 任务code
}

type OnboardingTaskBuilder

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

func NewOnboardingTaskBuilder

func NewOnboardingTaskBuilder() *OnboardingTaskBuilder

func (*OnboardingTaskBuilder) Build

func (builder *OnboardingTaskBuilder) Build() *OnboardingTask

func (*OnboardingTaskBuilder) OperatorId

func (builder *OnboardingTaskBuilder) OperatorId(operatorId string) *OnboardingTaskBuilder

当前操作人雇佣 ID

示例值:7032210902531327521

func (*OnboardingTaskBuilder) TaskCode added in v3.1.2

func (builder *OnboardingTaskBuilder) TaskCode(taskCode string) *OnboardingTaskBuilder

任务code

示例值:task_11

func (*OnboardingTaskBuilder) TaskName

func (builder *OnboardingTaskBuilder) TaskName(taskName string) *OnboardingTaskBuilder

任务名称

示例值:task_1

func (*OnboardingTaskBuilder) TaskStatus

func (builder *OnboardingTaskBuilder) TaskStatus(taskStatus string) *OnboardingTaskBuilder

任务名称

示例值:

type OnboardingTaskChange added in v3.2.5

type OnboardingTaskChange struct {
	AfterStatus *string `json:"after_status,omitempty"` // 变更后任务状态

	TaskCode *string `json:"task_code,omitempty"` // 任务标识
}

type OnboardingTaskChangeBuilder added in v3.2.5

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

func NewOnboardingTaskChangeBuilder added in v3.2.5

func NewOnboardingTaskChangeBuilder() *OnboardingTaskChangeBuilder

func (*OnboardingTaskChangeBuilder) AfterStatus added in v3.2.5

func (builder *OnboardingTaskChangeBuilder) AfterStatus(afterStatus string) *OnboardingTaskChangeBuilder

变更后任务状态

示例值:in_progress

func (*OnboardingTaskChangeBuilder) Build added in v3.2.5

func (*OnboardingTaskChangeBuilder) TaskCode added in v3.2.5

func (builder *OnboardingTaskChangeBuilder) TaskCode(taskCode string) *OnboardingTaskChangeBuilder

任务标识

示例值:2

type OpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder added in v3.4.1

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

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder added in v3.4.1

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder() *OpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder) Build added in v3.4.1

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder) DepartmentChangeIds added in v3.4.1

部门调整记录 ID List

示例值:

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsPathReqBodyBuilder) NeedDepartmentPath added in v3.4.1

是否返回部门全路径

示例值:false

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReq added in v3.4.1

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReq struct {
	Body *OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBody `body:""`
	// contains filtered or unexported fields
}

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBody added in v3.4.1

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBody struct {
	DepartmentChangeIds []string `json:"department_change_ids,omitempty"` // 部门调整记录 ID List

	NeedDepartmentPath *bool `json:"need_department_path,omitempty"` // 是否返回部门全路径
}

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder added in v3.4.1

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

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder added in v3.4.1

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder() *OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder) Build added in v3.4.1

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder) DepartmentChangeIds added in v3.4.1

部门调整记录 ID List

示例值:

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBodyBuilder) NeedDepartmentPath added in v3.4.1

是否返回部门全路径

示例值:false

type OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder added in v3.4.1

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

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder added in v3.4.1

func NewOpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder() *OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder) Body added in v3.4.1

获取部门调整信息详情

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder) Build added in v3.4.1

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder) DepartmentIdType added in v3.4.1

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder) ProcessId added in v3.4.1

组织架构调整流程 ID

示例值:6893014062142064111

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsReqBuilder) UserIdType added in v3.4.1

用户 ID 类型

示例值:open_id

type OpenQueryDepartmentChangeListByIdsApprovalGroupsResp added in v3.4.1

type OpenQueryDepartmentChangeListByIdsApprovalGroupsResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *OpenQueryDepartmentChangeListByIdsApprovalGroupsRespData `json:"data"` // 业务数据
}

func (*OpenQueryDepartmentChangeListByIdsApprovalGroupsResp) Success added in v3.4.1

type OpenQueryDepartmentChangeListByIdsApprovalGroupsRespData added in v3.4.1

type OpenQueryDepartmentChangeListByIdsApprovalGroupsRespData struct {
	DepartmentChanges []*DepartmentChange `json:"department_changes,omitempty"` // 部门调整记录信息列表
}

type OpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder added in v3.4.1

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

func NewOpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder added in v3.4.1

func NewOpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder() *OpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder

func (*OpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder) Build added in v3.4.1

func (*OpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder) JobChangeIds added in v3.4.1

人员异动记录 ID List

示例值:

func (*OpenQueryJobChangeListByIdsApprovalGroupsPathReqBodyBuilder) NeedDepartmentPath added in v3.4.1

是否返回部门全路径

示例值:false

type OpenQueryJobChangeListByIdsApprovalGroupsReq added in v3.4.1

type OpenQueryJobChangeListByIdsApprovalGroupsReq struct {
	Body *OpenQueryJobChangeListByIdsApprovalGroupsReqBody `body:""`
	// contains filtered or unexported fields
}

type OpenQueryJobChangeListByIdsApprovalGroupsReqBody added in v3.4.1

type OpenQueryJobChangeListByIdsApprovalGroupsReqBody struct {
	JobChangeIds []string `json:"job_change_ids,omitempty"` // 人员异动记录 ID List

	NeedDepartmentPath *bool `json:"need_department_path,omitempty"` // 是否返回部门全路径
}

type OpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder added in v3.4.1

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

func NewOpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder added in v3.4.1

func NewOpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder() *OpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder) Build added in v3.4.1

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder) JobChangeIds added in v3.4.1

人员异动记录 ID List

示例值:

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBodyBuilder) NeedDepartmentPath added in v3.4.1

是否返回部门全路径

示例值:false

type OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder added in v3.4.1

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

func NewOpenQueryJobChangeListByIdsApprovalGroupsReqBuilder added in v3.4.1

func NewOpenQueryJobChangeListByIdsApprovalGroupsReqBuilder() *OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder) Body added in v3.4.1

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder) Build added in v3.4.1

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder) DepartmentIdType added in v3.4.1

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder) ProcessId added in v3.4.1

组织架构调整流程 ID

示例值:6991776076699549697

func (*OpenQueryJobChangeListByIdsApprovalGroupsReqBuilder) UserIdType added in v3.4.1

用户 ID 类型

示例值:open_id

type OpenQueryJobChangeListByIdsApprovalGroupsResp added in v3.4.1

type OpenQueryJobChangeListByIdsApprovalGroupsResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *OpenQueryJobChangeListByIdsApprovalGroupsRespData `json:"data"` // 业务数据
}

func (*OpenQueryJobChangeListByIdsApprovalGroupsResp) Success added in v3.4.1

type OpenQueryJobChangeListByIdsApprovalGroupsRespData added in v3.4.1

type OpenQueryJobChangeListByIdsApprovalGroupsRespData struct {
	JobChanges []*JobChange `json:"job_changes,omitempty"` // 人员异动记录信息列表
}

type OperationLogEntity added in v3.2.7

type OperationLogEntity struct {
	OptType *string `json:"opt_type,omitempty"` // 操作类型(create、update、delete)

	Fields []*OperationLogEntityField `json:"fields,omitempty"` // 变更字段

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员ID
}

type OperationLogEntityBuilder added in v3.2.7

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

func NewOperationLogEntityBuilder added in v3.2.7

func NewOperationLogEntityBuilder() *OperationLogEntityBuilder

func (*OperationLogEntityBuilder) Build added in v3.2.7

func (*OperationLogEntityBuilder) EmploymentId added in v3.2.7

func (builder *OperationLogEntityBuilder) EmploymentId(employmentId string) *OperationLogEntityBuilder

雇员ID

示例值:7373878233473271340

func (*OperationLogEntityBuilder) Fields added in v3.2.7

变更字段

示例值:

func (*OperationLogEntityBuilder) OptType added in v3.2.7

func (builder *OperationLogEntityBuilder) OptType(optType string) *OperationLogEntityBuilder

操作类型(create、update、delete)

示例值:update

type OperationLogEntityField added in v3.2.7

type OperationLogEntityField struct {
	Field *string `json:"field,omitempty"` // 变更字段

	Before *string `json:"before,omitempty"` // 旧值

	After *string `json:"after,omitempty"` // 新值
}

type OperationLogEntityFieldBuilder added in v3.2.7

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

func NewOperationLogEntityFieldBuilder added in v3.2.7

func NewOperationLogEntityFieldBuilder() *OperationLogEntityFieldBuilder

func (*OperationLogEntityFieldBuilder) After added in v3.2.7

新值

示例值:{\"type\":\"text\",\"value\":\"1\"}

func (*OperationLogEntityFieldBuilder) Before added in v3.2.7

旧值

示例值:{\"type\":\"text\",\"value\":\"null\"}

func (*OperationLogEntityFieldBuilder) Build added in v3.2.7

func (*OperationLogEntityFieldBuilder) Field added in v3.2.7

变更字段

示例值:personal_profile.profile_type_2_201_20101

type OperationLogListReq added in v3.2.7

type OperationLogListReq struct {
	StartTime *string `json:"start_time,omitempty"` // 开始时间,默认当天往前 6*30 天

	EndTime *string `json:"end_time,omitempty"` // 结束时间,默认当天

	OperatorIds []string `json:"operator_ids,omitempty"` // 操作人ID

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员ID

	FilterFields []string `json:"filter_fields,omitempty"` // 查询变更的字段
}

type OperationLogListReqBuilder added in v3.2.7

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

func NewOperationLogListReqBuilder added in v3.2.7

func NewOperationLogListReqBuilder() *OperationLogListReqBuilder

func (*OperationLogListReqBuilder) Build added in v3.2.7

func (*OperationLogListReqBuilder) EmploymentId added in v3.2.7

func (builder *OperationLogListReqBuilder) EmploymentId(employmentId string) *OperationLogListReqBuilder

雇员ID

示例值:7140964208476371111

func (*OperationLogListReqBuilder) EndTime added in v3.2.7

结束时间,默认当天

示例值:2024-01-02 00:00:00

func (*OperationLogListReqBuilder) FilterFields added in v3.2.7

func (builder *OperationLogListReqBuilder) FilterFields(filterFields []string) *OperationLogListReqBuilder

查询变更的字段

示例值:

func (*OperationLogListReqBuilder) OperatorIds added in v3.2.7

func (builder *OperationLogListReqBuilder) OperatorIds(operatorIds []string) *OperationLogListReqBuilder

操作人ID

示例值:7140964208476371111

func (*OperationLogListReqBuilder) StartTime added in v3.2.7

func (builder *OperationLogListReqBuilder) StartTime(startTime string) *OperationLogListReqBuilder

开始时间,默认当天往前 6*30 天

示例值:2024-01-02 00:00:00

type OperationLogListRespItem added in v3.2.7

type OperationLogListRespItem struct {
	OperatorId *string `json:"operator_id,omitempty"` // 操作人ID

	OptTime *string `json:"opt_time,omitempty"` // 操作时间

	Entities []*OperationLogEntity `json:"entities,omitempty"` // 操作记录
}

type OperationLogListRespItemBuilder added in v3.2.7

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

func NewOperationLogListRespItemBuilder added in v3.2.7

func NewOperationLogListRespItemBuilder() *OperationLogListRespItemBuilder

func (*OperationLogListRespItemBuilder) Build added in v3.2.7

func (*OperationLogListRespItemBuilder) Entities added in v3.2.7

操作记录

示例值:

func (*OperationLogListRespItemBuilder) OperatorId added in v3.2.7

操作人ID

示例值:7373878233473271340

func (*OperationLogListRespItemBuilder) OptTime added in v3.2.7

操作时间

示例值:2024-01-01 12:12:12

type OrgRole added in v3.2.3

type OrgRole struct {
	ApiName *string `json:"api_name,omitempty"` // 唯一标识

	EmploymentIds []string `json:"employment_ids,omitempty"` // 授权员工列表

	InheritEmploymentIds []string `json:"inherit_employment_ids,omitempty"` // 继承至上级授权员工列表
}

type OrgRoleBuilder added in v3.2.3

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

func NewOrgRoleBuilder added in v3.2.3

func NewOrgRoleBuilder() *OrgRoleBuilder

func (*OrgRoleBuilder) ApiName added in v3.2.3

func (builder *OrgRoleBuilder) ApiName(apiName string) *OrgRoleBuilder

唯一标识

示例值:hrbp

func (*OrgRoleBuilder) Build added in v3.2.3

func (builder *OrgRoleBuilder) Build() *OrgRole

func (*OrgRoleBuilder) EmploymentIds added in v3.2.3

func (builder *OrgRoleBuilder) EmploymentIds(employmentIds []string) *OrgRoleBuilder

授权员工列表

示例值:

func (*OrgRoleBuilder) InheritEmploymentIds added in v3.2.3

func (builder *OrgRoleBuilder) InheritEmploymentIds(inheritEmploymentIds []string) *OrgRoleBuilder

继承至上级授权员工列表

示例值:

type OrgRoleUpdate added in v3.2.3

type OrgRoleUpdate struct {
	ApiName *string `json:"api_name,omitempty"` // 唯一标识

	EmploymentIds []string `json:"employment_ids,omitempty"` // 授权员工列表
}

type OrgRoleUpdateBuilder added in v3.2.3

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

func NewOrgRoleUpdateBuilder added in v3.2.3

func NewOrgRoleUpdateBuilder() *OrgRoleUpdateBuilder

func (*OrgRoleUpdateBuilder) ApiName added in v3.2.3

func (builder *OrgRoleUpdateBuilder) ApiName(apiName string) *OrgRoleUpdateBuilder

唯一标识

示例值:hrbp

func (*OrgRoleUpdateBuilder) Build added in v3.2.3

func (builder *OrgRoleUpdateBuilder) Build() *OrgRoleUpdate

func (*OrgRoleUpdateBuilder) EmploymentIds added in v3.2.3

func (builder *OrgRoleUpdateBuilder) EmploymentIds(employmentIds []string) *OrgRoleUpdateBuilder

授权员工列表

示例值:

type OrganizationDomainEventData added in v3.3.4

type OrganizationDomainEventData struct {
	Id *string `json:"id,omitempty"` // 变更实体的ID

	Entity *string `json:"entity,omitempty"` // 变更实体标识,ObjAPIName

	AggEntity *string `json:"agg_entity,omitempty"` // 聚合实体标识,父对象 ObjAPIName

	AggEntityId *string `json:"agg_entity_id,omitempty"` // 聚合实体ID 父对象ID

	AggEntityField *string `json:"agg_entity_field,omitempty"` // 所属聚合实体字段, FieldAPIName

	OptType *int `json:"opt_type,omitempty"` // 操作类型

	FieldChanges []string `json:"field_changes,omitempty"` // 变更字段列表
}

type OrganizationDomainEventDataBuilder added in v3.3.4

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

func NewOrganizationDomainEventDataBuilder added in v3.3.4

func NewOrganizationDomainEventDataBuilder() *OrganizationDomainEventDataBuilder

func (*OrganizationDomainEventDataBuilder) AggEntity added in v3.3.4

聚合实体标识,父对象 ObjAPIName

示例值:location

func (*OrganizationDomainEventDataBuilder) AggEntityField added in v3.3.4

func (builder *OrganizationDomainEventDataBuilder) AggEntityField(aggEntityField string) *OrganizationDomainEventDataBuilder

所属聚合实体字段, FieldAPIName

示例值:address

func (*OrganizationDomainEventDataBuilder) AggEntityId added in v3.3.4

聚合实体ID 父对象ID

示例值:7291273149417948716

func (*OrganizationDomainEventDataBuilder) Build added in v3.3.4

func (*OrganizationDomainEventDataBuilder) Entity added in v3.3.4

变更实体标识,ObjAPIName

示例值:address

func (*OrganizationDomainEventDataBuilder) FieldChanges added in v3.3.4

func (builder *OrganizationDomainEventDataBuilder) FieldChanges(fieldChanges []string) *OrganizationDomainEventDataBuilder

变更字段列表

示例值:

func (*OrganizationDomainEventDataBuilder) Id added in v3.3.4

变更实体的ID

示例值:7818231238918192

func (*OrganizationDomainEventDataBuilder) OptType added in v3.3.4

操作类型

示例值:1

type OrganizationOpLog added in v3.4.0

type OrganizationOpLog struct {
	ObjectId *string `json:"object_id,omitempty"` // 业务对象ID

	Changes []*OperationLogEntityField `json:"changes,omitempty"` // 字段变化列表

	Operator *string `json:"operator,omitempty"` // 操作人

	OperationType *int `json:"operation_type,omitempty"` // 操作类型

	OperationTime *string `json:"operation_time,omitempty"` // 操作时间

	EffectiveTime *string `json:"effective_time,omitempty"` // 操作生效时间

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因说明

	ChangeReasons []string `json:"change_reasons,omitempty"` // 调整原因列表
}

type OrganizationOpLogBuilder added in v3.4.0

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

func NewOrganizationOpLogBuilder added in v3.4.0

func NewOrganizationOpLogBuilder() *OrganizationOpLogBuilder

func (*OrganizationOpLogBuilder) Build added in v3.4.0

func (builder *OrganizationOpLogBuilder) Build() *OrganizationOpLog

func (*OrganizationOpLogBuilder) ChangeReasons added in v3.4.0

func (builder *OrganizationOpLogBuilder) ChangeReasons(changeReasons []string) *OrganizationOpLogBuilder

调整原因列表

示例值:

func (*OrganizationOpLogBuilder) Changes added in v3.4.0

字段变化列表

示例值:

func (*OrganizationOpLogBuilder) EffectiveTime added in v3.4.0

func (builder *OrganizationOpLogBuilder) EffectiveTime(effectiveTime string) *OrganizationOpLogBuilder

操作生效时间

示例值:2020-06-02

func (*OrganizationOpLogBuilder) ObjectId added in v3.4.0

func (builder *OrganizationOpLogBuilder) ObjectId(objectId string) *OrganizationOpLogBuilder

业务对象ID

示例值:7094136522860922111

func (*OrganizationOpLogBuilder) OperationReason added in v3.4.0

func (builder *OrganizationOpLogBuilder) OperationReason(operationReason string) *OrganizationOpLogBuilder

操作原因说明

示例值:因人员调整,变更部门负责人为某某

func (*OrganizationOpLogBuilder) OperationTime added in v3.4.0

func (builder *OrganizationOpLogBuilder) OperationTime(operationTime string) *OrganizationOpLogBuilder

操作时间

示例值:2020-05-02 12:00:00

func (*OrganizationOpLogBuilder) OperationType added in v3.4.0

func (builder *OrganizationOpLogBuilder) OperationType(operationType int) *OrganizationOpLogBuilder

操作类型

示例值:10

func (*OrganizationOpLogBuilder) Operator added in v3.4.1

func (builder *OrganizationOpLogBuilder) Operator(operator string) *OrganizationOpLogBuilder

操作人

示例值:工号001

type OrgdraftDepartmentId added in v3.2.3

type OrgdraftDepartmentId struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID ,新建部门审批通过前会返回空值

	DraftDepartmentId *string `json:"draft_department_id,omitempty"` // 调整部门 ID ,新建部门审批通过前会返回格式为 td_xxx 的临时 ID
}

type OrgdraftDepartmentIdBuilder added in v3.2.3

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

func NewOrgdraftDepartmentIdBuilder added in v3.2.3

func NewOrgdraftDepartmentIdBuilder() *OrgdraftDepartmentIdBuilder

func (*OrgdraftDepartmentIdBuilder) Build added in v3.2.3

func (*OrgdraftDepartmentIdBuilder) DepartmentId added in v3.2.3

func (builder *OrgdraftDepartmentIdBuilder) DepartmentId(departmentId string) *OrgdraftDepartmentIdBuilder

部门 ID ,新建部门审批通过前会返回空值

示例值:6974659700705068581

func (*OrgdraftDepartmentIdBuilder) DraftDepartmentId added in v3.2.3

func (builder *OrgdraftDepartmentIdBuilder) DraftDepartmentId(draftDepartmentId string) *OrgdraftDepartmentIdBuilder

调整部门 ID ,新建部门审批通过前会返回格式为 td_xxx 的临时 ID

示例值:6974659700705068581

type P2ApprovalGroupsUpdatedV2 added in v3.4.1

type P2ApprovalGroupsUpdatedV2 struct {
	*larkevent.EventV2Base                                // 事件基础数据
	*larkevent.EventReq                                   // 请求原生数据
	Event                  *P2ApprovalGroupsUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ApprovalGroupsUpdatedV2) RawReq added in v3.4.1

func (m *P2ApprovalGroupsUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ApprovalGroupsUpdatedV2Data added in v3.4.1

type P2ApprovalGroupsUpdatedV2Data struct {
	ApprovalGroupId *string `json:"approval_group_id,omitempty"` // 组织架构调整审批组 ID

	ProcessId *string `json:"process_id,omitempty"` // 组织架构调整流程 ID

	ApprovalGroupStatus *int `json:"approval_group_status,omitempty"` // 组织架构调整流程状态

	Topic *string `json:"topic,omitempty"` // 调整主题

	AdjustReason *string `json:"adjust_reason,omitempty"` // 调整原因

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	CreatedBy *string `json:"created_by,omitempty"` // 发起人

	DraftId *string `json:"draft_id,omitempty"` // 组织架构调整任务 ID

	DraftStatus *int `json:"draft_status,omitempty"` // 组织架构调整任务状态
}

type P2ApprovalGroupsUpdatedV2Handler added in v3.4.1

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

消息处理器定义

func NewP2ApprovalGroupsUpdatedV2Handler added in v3.4.1

func NewP2ApprovalGroupsUpdatedV2Handler(handler func(context.Context, *P2ApprovalGroupsUpdatedV2) error) *P2ApprovalGroupsUpdatedV2Handler

func (*P2ApprovalGroupsUpdatedV2Handler) Event added in v3.4.1

func (h *P2ApprovalGroupsUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApprovalGroupsUpdatedV2Handler) Handle added in v3.4.1

func (h *P2ApprovalGroupsUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CompanyCreatedV2 added in v3.3.5

type P2CompanyCreatedV2 struct {
	*larkevent.EventV2Base                         // 事件基础数据
	*larkevent.EventReq                            // 请求原生数据
	Event                  *P2CompanyCreatedV2Data `json:"event"` // 事件内容
}

func (*P2CompanyCreatedV2) RawReq added in v3.3.5

func (m *P2CompanyCreatedV2) RawReq(req *larkevent.EventReq)

type P2CompanyCreatedV2Data added in v3.3.5

type P2CompanyCreatedV2Data struct {
	CompanyId *string `json:"company_id,omitempty"` // 公司ID
}

type P2CompanyCreatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CompanyCreatedV2Handler added in v3.3.5

func NewP2CompanyCreatedV2Handler(handler func(context.Context, *P2CompanyCreatedV2) error) *P2CompanyCreatedV2Handler

func (*P2CompanyCreatedV2Handler) Event added in v3.3.5

func (h *P2CompanyCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CompanyCreatedV2Handler) Handle added in v3.3.5

func (h *P2CompanyCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CompanyDeletedV2 added in v3.3.5

type P2CompanyDeletedV2 struct {
	*larkevent.EventV2Base                         // 事件基础数据
	*larkevent.EventReq                            // 请求原生数据
	Event                  *P2CompanyDeletedV2Data `json:"event"` // 事件内容
}

func (*P2CompanyDeletedV2) RawReq added in v3.3.5

func (m *P2CompanyDeletedV2) RawReq(req *larkevent.EventReq)

type P2CompanyDeletedV2Data added in v3.3.5

type P2CompanyDeletedV2Data struct {
	CompanyId *string `json:"company_id,omitempty"` // 公司ID
}

type P2CompanyDeletedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CompanyDeletedV2Handler added in v3.3.5

func NewP2CompanyDeletedV2Handler(handler func(context.Context, *P2CompanyDeletedV2) error) *P2CompanyDeletedV2Handler

func (*P2CompanyDeletedV2Handler) Event added in v3.3.5

func (h *P2CompanyDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CompanyDeletedV2Handler) Handle added in v3.3.5

func (h *P2CompanyDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CompanyUpdatedV2 added in v3.3.5

type P2CompanyUpdatedV2 struct {
	*larkevent.EventV2Base                         // 事件基础数据
	*larkevent.EventReq                            // 请求原生数据
	Event                  *P2CompanyUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2CompanyUpdatedV2) RawReq added in v3.3.5

func (m *P2CompanyUpdatedV2) RawReq(req *larkevent.EventReq)

type P2CompanyUpdatedV2Data added in v3.3.5

type P2CompanyUpdatedV2Data struct {
	CompanyId *string `json:"company_id,omitempty"` // 公司ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段

	SubEvents *OrganizationDomainEventData `json:"sub_events,omitempty"` // 子变更事件
}

type P2CompanyUpdatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CompanyUpdatedV2Handler added in v3.3.5

func NewP2CompanyUpdatedV2Handler(handler func(context.Context, *P2CompanyUpdatedV2) error) *P2CompanyUpdatedV2Handler

func (*P2CompanyUpdatedV2Handler) Event added in v3.3.5

func (h *P2CompanyUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CompanyUpdatedV2Handler) Handle added in v3.3.5

func (h *P2CompanyUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CostCenterCreatedV2 added in v3.3.5

type P2CostCenterCreatedV2 struct {
	*larkevent.EventV2Base                            // 事件基础数据
	*larkevent.EventReq                               // 请求原生数据
	Event                  *P2CostCenterCreatedV2Data `json:"event"` // 事件内容
}

func (*P2CostCenterCreatedV2) RawReq added in v3.3.5

func (m *P2CostCenterCreatedV2) RawReq(req *larkevent.EventReq)

type P2CostCenterCreatedV2Data added in v3.3.5

type P2CostCenterCreatedV2Data struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心ID
}

type P2CostCenterCreatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CostCenterCreatedV2Handler added in v3.3.5

func NewP2CostCenterCreatedV2Handler(handler func(context.Context, *P2CostCenterCreatedV2) error) *P2CostCenterCreatedV2Handler

func (*P2CostCenterCreatedV2Handler) Event added in v3.3.5

func (h *P2CostCenterCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CostCenterCreatedV2Handler) Handle added in v3.3.5

func (h *P2CostCenterCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CostCenterDeletedV2 added in v3.3.5

type P2CostCenterDeletedV2 struct {
	*larkevent.EventV2Base                            // 事件基础数据
	*larkevent.EventReq                               // 请求原生数据
	Event                  *P2CostCenterDeletedV2Data `json:"event"` // 事件内容
}

func (*P2CostCenterDeletedV2) RawReq added in v3.3.5

func (m *P2CostCenterDeletedV2) RawReq(req *larkevent.EventReq)

type P2CostCenterDeletedV2Data added in v3.3.5

type P2CostCenterDeletedV2Data struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心ID
}

type P2CostCenterDeletedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CostCenterDeletedV2Handler added in v3.3.5

func NewP2CostCenterDeletedV2Handler(handler func(context.Context, *P2CostCenterDeletedV2) error) *P2CostCenterDeletedV2Handler

func (*P2CostCenterDeletedV2Handler) Event added in v3.3.5

func (h *P2CostCenterDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CostCenterDeletedV2Handler) Handle added in v3.3.5

func (h *P2CostCenterDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CostCenterUpdatedV2 added in v3.3.5

type P2CostCenterUpdatedV2 struct {
	*larkevent.EventV2Base                            // 事件基础数据
	*larkevent.EventReq                               // 请求原生数据
	Event                  *P2CostCenterUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2CostCenterUpdatedV2) RawReq added in v3.3.5

func (m *P2CostCenterUpdatedV2) RawReq(req *larkevent.EventReq)

type P2CostCenterUpdatedV2Data added in v3.3.5

type P2CostCenterUpdatedV2Data struct {
	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段
}

type P2CostCenterUpdatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2CostCenterUpdatedV2Handler added in v3.3.5

func NewP2CostCenterUpdatedV2Handler(handler func(context.Context, *P2CostCenterUpdatedV2) error) *P2CostCenterUpdatedV2Handler

func (*P2CostCenterUpdatedV2Handler) Event added in v3.3.5

func (h *P2CostCenterUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CostCenterUpdatedV2Handler) Handle added in v3.3.5

func (h *P2CostCenterUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2EmployeeDomainEventV2 added in v3.2.8

type P2EmployeeDomainEventV2 struct {
	*larkevent.EventV2Base                              // 事件基础数据
	*larkevent.EventReq                                 // 请求原生数据
	Event                  *P2EmployeeDomainEventV2Data `json:"event"` // 事件内容
}

func (*P2EmployeeDomainEventV2) RawReq added in v3.2.8

func (m *P2EmployeeDomainEventV2) RawReq(req *larkevent.EventReq)

type P2EmployeeDomainEventV2Data added in v3.2.8

type P2EmployeeDomainEventV2Data struct {
	EventType *int `json:"event_type,omitempty"` // 事件类型

	SubEventType *int `json:"sub_event_type,omitempty"` // 子事件类型

	OperatorUserId *string `json:"operator_user_id,omitempty"` // 操作用户 ID

	OptScene *string `json:"opt_scene,omitempty"` // 业务场景

	OptDesc *string `json:"opt_desc,omitempty"` // 操作描述

	OptTime *string `json:"opt_time,omitempty"` // 操作时间

	OptId *string `json:"opt_id,omitempty"` // 操作ID

	EmploymentId *string `json:"employment_id,omitempty"` // 被操作人的雇佣 ID

	Data []*EmployeeDomainEventData `json:"data,omitempty"` // 变更数据
}

type P2EmployeeDomainEventV2Handler added in v3.2.8

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

消息处理器定义

func NewP2EmployeeDomainEventV2Handler added in v3.2.8

func NewP2EmployeeDomainEventV2Handler(handler func(context.Context, *P2EmployeeDomainEventV2) error) *P2EmployeeDomainEventV2Handler

func (*P2EmployeeDomainEventV2Handler) Event added in v3.2.8

func (h *P2EmployeeDomainEventV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2EmployeeDomainEventV2Handler) Handle added in v3.2.8

func (h *P2EmployeeDomainEventV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobChangeStatusUpdatedV2 added in v3.3.3

type P2JobChangeStatusUpdatedV2 struct {
	*larkevent.EventV2Base                                 // 事件基础数据
	*larkevent.EventReq                                    // 请求原生数据
	Event                  *P2JobChangeStatusUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2JobChangeStatusUpdatedV2) RawReq added in v3.3.3

func (m *P2JobChangeStatusUpdatedV2) RawReq(req *larkevent.EventReq)

type P2JobChangeStatusUpdatedV2Data added in v3.3.3

type P2JobChangeStatusUpdatedV2Data struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇员ID

	TargetUserId *UserId `json:"target_user_id,omitempty"` // 员工的飞书用户 ID

	JobChangeId *string `json:"job_change_id,omitempty"` // 异动记录 id

	TransferMode *int `json:"transfer_mode,omitempty"` // 异动属性/方式

	TransferTypeUniqueIdentifier *string `json:"transfer_type_unique_identifier,omitempty"` // 异动类型唯一标识

	TransferReasonUniqueIdentifier *string `json:"transfer_reason_unique_identifier,omitempty"` // 异动原因唯一标识

	ProcessId *string `json:"process_id,omitempty"` // 异动关联流程 id,如果是直接异动,则不需要关联流程

	EffectiveDate *string `json:"effective_date,omitempty"` // 异动生效日期

	Status *int `json:"status,omitempty"` // 异动状态

	TransferKey *string `json:"transfer_key,omitempty"` // 异动记录标识符
}

type P2JobChangeStatusUpdatedV2Handler added in v3.3.3

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

消息处理器定义

func NewP2JobChangeStatusUpdatedV2Handler added in v3.3.3

func NewP2JobChangeStatusUpdatedV2Handler(handler func(context.Context, *P2JobChangeStatusUpdatedV2) error) *P2JobChangeStatusUpdatedV2Handler

func (*P2JobChangeStatusUpdatedV2Handler) Event added in v3.3.3

func (h *P2JobChangeStatusUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobChangeStatusUpdatedV2Handler) Handle added in v3.3.3

func (h *P2JobChangeStatusUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobChangeUpdatedV2 added in v3.2.7

type P2JobChangeUpdatedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2JobChangeUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2JobChangeUpdatedV2) RawReq added in v3.2.7

func (m *P2JobChangeUpdatedV2) RawReq(req *larkevent.EventReq)

type P2JobChangeUpdatedV2Data added in v3.2.7

type P2JobChangeUpdatedV2Data struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 异动员工雇员ID

	TenantId *string `json:"tenant_id,omitempty"` // Saas租户ID

	ProcessId *string `json:"process_id,omitempty"` // 流程ID

	Initiator *string `json:"initiator,omitempty"` // 发起人雇员ID

	Operator *string `json:"operator,omitempty"` // 操作人雇员ID

	UpdatedTime *string `json:"updated_time,omitempty"` // 更新时间毫秒时间戳

	JobChangeId *string `json:"job_change_id,omitempty"` // 异动记录ID

	Status *int `json:"status,omitempty"` // 变更后异动状态

	OperateReason *string `json:"operate_reason,omitempty"` // 操作原因

	TransferType *int `json:"transfer_type,omitempty"` // 变更类型

	UpdatedFields []string `json:"updated_fields,omitempty"` // 所有更新过的字段,异动字段为元数据定义的字段api name,工作信息字段为"target_employment_change." + 元数据定义的字段api name

	TransformType *string `json:"transform_type,omitempty"` // 异动类型

	TransformReason *string `json:"transform_reason,omitempty"` // 异动原因
}

type P2JobChangeUpdatedV2Handler added in v3.2.7

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

消息处理器定义

func NewP2JobChangeUpdatedV2Handler added in v3.2.7

func NewP2JobChangeUpdatedV2Handler(handler func(context.Context, *P2JobChangeUpdatedV2) error) *P2JobChangeUpdatedV2Handler

func (*P2JobChangeUpdatedV2Handler) Event added in v3.2.7

func (h *P2JobChangeUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobChangeUpdatedV2Handler) Handle added in v3.2.7

func (h *P2JobChangeUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobFamilyCreatedV2 added in v3.3.4

type P2JobFamilyCreatedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2JobFamilyCreatedV2Data `json:"event"` // 事件内容
}

func (*P2JobFamilyCreatedV2) RawReq added in v3.3.4

func (m *P2JobFamilyCreatedV2) RawReq(req *larkevent.EventReq)

type P2JobFamilyCreatedV2Data added in v3.3.4

type P2JobFamilyCreatedV2Data struct {
	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列ID
}

type P2JobFamilyCreatedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobFamilyCreatedV2Handler added in v3.3.4

func NewP2JobFamilyCreatedV2Handler(handler func(context.Context, *P2JobFamilyCreatedV2) error) *P2JobFamilyCreatedV2Handler

func (*P2JobFamilyCreatedV2Handler) Event added in v3.3.4

func (h *P2JobFamilyCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobFamilyCreatedV2Handler) Handle added in v3.3.4

func (h *P2JobFamilyCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobFamilyDeletedV2 added in v3.3.4

type P2JobFamilyDeletedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2JobFamilyDeletedV2Data `json:"event"` // 事件内容
}

func (*P2JobFamilyDeletedV2) RawReq added in v3.3.4

func (m *P2JobFamilyDeletedV2) RawReq(req *larkevent.EventReq)

type P2JobFamilyDeletedV2Data added in v3.3.4

type P2JobFamilyDeletedV2Data struct {
	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列ID
}

type P2JobFamilyDeletedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobFamilyDeletedV2Handler added in v3.3.4

func NewP2JobFamilyDeletedV2Handler(handler func(context.Context, *P2JobFamilyDeletedV2) error) *P2JobFamilyDeletedV2Handler

func (*P2JobFamilyDeletedV2Handler) Event added in v3.3.4

func (h *P2JobFamilyDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobFamilyDeletedV2Handler) Handle added in v3.3.4

func (h *P2JobFamilyDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobFamilyUpdatedV2 added in v3.3.4

type P2JobFamilyUpdatedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2JobFamilyUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2JobFamilyUpdatedV2) RawReq added in v3.3.4

func (m *P2JobFamilyUpdatedV2) RawReq(req *larkevent.EventReq)

type P2JobFamilyUpdatedV2Data added in v3.3.4

type P2JobFamilyUpdatedV2Data struct {
	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段
}

type P2JobFamilyUpdatedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobFamilyUpdatedV2Handler added in v3.3.4

func NewP2JobFamilyUpdatedV2Handler(handler func(context.Context, *P2JobFamilyUpdatedV2) error) *P2JobFamilyUpdatedV2Handler

func (*P2JobFamilyUpdatedV2Handler) Event added in v3.3.4

func (h *P2JobFamilyUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobFamilyUpdatedV2Handler) Handle added in v3.3.4

func (h *P2JobFamilyUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobGradeCreatedV2 added in v3.3.5

type P2JobGradeCreatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobGradeCreatedV2Data `json:"event"` // 事件内容
}

func (*P2JobGradeCreatedV2) RawReq added in v3.3.5

func (m *P2JobGradeCreatedV2) RawReq(req *larkevent.EventReq)

type P2JobGradeCreatedV2Data added in v3.3.5

type P2JobGradeCreatedV2Data struct {
	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等ID
}

type P2JobGradeCreatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2JobGradeCreatedV2Handler added in v3.3.5

func NewP2JobGradeCreatedV2Handler(handler func(context.Context, *P2JobGradeCreatedV2) error) *P2JobGradeCreatedV2Handler

func (*P2JobGradeCreatedV2Handler) Event added in v3.3.5

func (h *P2JobGradeCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobGradeCreatedV2Handler) Handle added in v3.3.5

func (h *P2JobGradeCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobGradeDeletedV2 added in v3.3.5

type P2JobGradeDeletedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobGradeDeletedV2Data `json:"event"` // 事件内容
}

func (*P2JobGradeDeletedV2) RawReq added in v3.3.5

func (m *P2JobGradeDeletedV2) RawReq(req *larkevent.EventReq)

type P2JobGradeDeletedV2Data added in v3.3.5

type P2JobGradeDeletedV2Data struct {
	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等ID
}

type P2JobGradeDeletedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2JobGradeDeletedV2Handler added in v3.3.5

func NewP2JobGradeDeletedV2Handler(handler func(context.Context, *P2JobGradeDeletedV2) error) *P2JobGradeDeletedV2Handler

func (*P2JobGradeDeletedV2Handler) Event added in v3.3.5

func (h *P2JobGradeDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobGradeDeletedV2Handler) Handle added in v3.3.5

func (h *P2JobGradeDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobGradeUpdatedV2 added in v3.3.5

type P2JobGradeUpdatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobGradeUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2JobGradeUpdatedV2) RawReq added in v3.3.5

func (m *P2JobGradeUpdatedV2) RawReq(req *larkevent.EventReq)

type P2JobGradeUpdatedV2Data added in v3.3.5

type P2JobGradeUpdatedV2Data struct {
	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段
}

type P2JobGradeUpdatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2JobGradeUpdatedV2Handler added in v3.3.5

func NewP2JobGradeUpdatedV2Handler(handler func(context.Context, *P2JobGradeUpdatedV2) error) *P2JobGradeUpdatedV2Handler

func (*P2JobGradeUpdatedV2Handler) Event added in v3.3.5

func (h *P2JobGradeUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobGradeUpdatedV2Handler) Handle added in v3.3.5

func (h *P2JobGradeUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobLevelCreatedV2 added in v3.3.4

type P2JobLevelCreatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobLevelCreatedV2Data `json:"event"` // 事件内容
}

func (*P2JobLevelCreatedV2) RawReq added in v3.3.4

func (m *P2JobLevelCreatedV2) RawReq(req *larkevent.EventReq)

type P2JobLevelCreatedV2Data added in v3.3.4

type P2JobLevelCreatedV2Data struct {
	JobLevelId *string `json:"job_level_id,omitempty"` // 职级ID
}

type P2JobLevelCreatedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobLevelCreatedV2Handler added in v3.3.4

func NewP2JobLevelCreatedV2Handler(handler func(context.Context, *P2JobLevelCreatedV2) error) *P2JobLevelCreatedV2Handler

func (*P2JobLevelCreatedV2Handler) Event added in v3.3.4

func (h *P2JobLevelCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobLevelCreatedV2Handler) Handle added in v3.3.4

func (h *P2JobLevelCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobLevelDeletedV2 added in v3.3.4

type P2JobLevelDeletedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobLevelDeletedV2Data `json:"event"` // 事件内容
}

func (*P2JobLevelDeletedV2) RawReq added in v3.3.4

func (m *P2JobLevelDeletedV2) RawReq(req *larkevent.EventReq)

type P2JobLevelDeletedV2Data added in v3.3.4

type P2JobLevelDeletedV2Data struct {
	JobLevelId *string `json:"job_level_id,omitempty"` // 职级ID
}

type P2JobLevelDeletedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobLevelDeletedV2Handler added in v3.3.4

func NewP2JobLevelDeletedV2Handler(handler func(context.Context, *P2JobLevelDeletedV2) error) *P2JobLevelDeletedV2Handler

func (*P2JobLevelDeletedV2Handler) Event added in v3.3.4

func (h *P2JobLevelDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobLevelDeletedV2Handler) Handle added in v3.3.4

func (h *P2JobLevelDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2JobLevelUpdatedV2 added in v3.3.4

type P2JobLevelUpdatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2JobLevelUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2JobLevelUpdatedV2) RawReq added in v3.3.4

func (m *P2JobLevelUpdatedV2) RawReq(req *larkevent.EventReq)

type P2JobLevelUpdatedV2Data added in v3.3.4

type P2JobLevelUpdatedV2Data struct {
	JobLevelId *string `json:"job_level_id,omitempty"` // 职级ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段
}

type P2JobLevelUpdatedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2JobLevelUpdatedV2Handler added in v3.3.4

func NewP2JobLevelUpdatedV2Handler(handler func(context.Context, *P2JobLevelUpdatedV2) error) *P2JobLevelUpdatedV2Handler

func (*P2JobLevelUpdatedV2Handler) Event added in v3.3.4

func (h *P2JobLevelUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2JobLevelUpdatedV2Handler) Handle added in v3.3.4

func (h *P2JobLevelUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2LocationCreatedV2 added in v3.3.5

type P2LocationCreatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2LocationCreatedV2Data `json:"event"` // 事件内容
}

func (*P2LocationCreatedV2) RawReq added in v3.3.5

func (m *P2LocationCreatedV2) RawReq(req *larkevent.EventReq)

type P2LocationCreatedV2Data added in v3.3.5

type P2LocationCreatedV2Data struct {
	LocationId *string `json:"location_id,omitempty"` // 地点ID
}

type P2LocationCreatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2LocationCreatedV2Handler added in v3.3.5

func NewP2LocationCreatedV2Handler(handler func(context.Context, *P2LocationCreatedV2) error) *P2LocationCreatedV2Handler

func (*P2LocationCreatedV2Handler) Event added in v3.3.5

func (h *P2LocationCreatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2LocationCreatedV2Handler) Handle added in v3.3.5

func (h *P2LocationCreatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2LocationDeletedV2 added in v3.3.5

type P2LocationDeletedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2LocationDeletedV2Data `json:"event"` // 事件内容
}

func (*P2LocationDeletedV2) RawReq added in v3.3.5

func (m *P2LocationDeletedV2) RawReq(req *larkevent.EventReq)

type P2LocationDeletedV2Data added in v3.3.5

type P2LocationDeletedV2Data struct {
	LocationId *string `json:"location_id,omitempty"` // 地点ID
}

type P2LocationDeletedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2LocationDeletedV2Handler added in v3.3.5

func NewP2LocationDeletedV2Handler(handler func(context.Context, *P2LocationDeletedV2) error) *P2LocationDeletedV2Handler

func (*P2LocationDeletedV2Handler) Event added in v3.3.5

func (h *P2LocationDeletedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2LocationDeletedV2Handler) Handle added in v3.3.5

func (h *P2LocationDeletedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2LocationUpdatedV2 added in v3.3.5

type P2LocationUpdatedV2 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2LocationUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2LocationUpdatedV2) RawReq added in v3.3.5

func (m *P2LocationUpdatedV2) RawReq(req *larkevent.EventReq)

type P2LocationUpdatedV2Data added in v3.3.5

type P2LocationUpdatedV2Data struct {
	LocationId *string `json:"location_id,omitempty"` // 地点ID

	FieldChanges []string `json:"field_changes,omitempty"` // 发生变更的字段

	SubEvents *OrganizationDomainEventData `json:"sub_events,omitempty"` // 子变更事件
}

type P2LocationUpdatedV2Handler added in v3.3.5

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

消息处理器定义

func NewP2LocationUpdatedV2Handler added in v3.3.5

func NewP2LocationUpdatedV2Handler(handler func(context.Context, *P2LocationUpdatedV2) error) *P2LocationUpdatedV2Handler

func (*P2LocationUpdatedV2Handler) Event added in v3.3.5

func (h *P2LocationUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2LocationUpdatedV2Handler) Handle added in v3.3.5

func (h *P2LocationUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2OffboardingChecklistUpdatedV2 added in v3.2.6

type P2OffboardingChecklistUpdatedV2 struct {
	*larkevent.EventV2Base                                      // 事件基础数据
	*larkevent.EventReq                                         // 请求原生数据
	Event                  *P2OffboardingChecklistUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2OffboardingChecklistUpdatedV2) RawReq added in v3.2.6

func (m *P2OffboardingChecklistUpdatedV2) RawReq(req *larkevent.EventReq)

type P2OffboardingChecklistUpdatedV2Data added in v3.2.6

type P2OffboardingChecklistUpdatedV2Data struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 员工 ID

	TargetUserId *UserId `json:"target_user_id,omitempty"` // 员工的飞书用户 ID

	OffboardingId *string `json:"offboarding_id,omitempty"` // 离职记录 ID

	ChecklistProcessId *string `json:"checklist_process_id,omitempty"` // 离职流转流程发起后的审批流程实例 ID

	ChecklistStatus *int `json:"checklist_status,omitempty"` // 离职流转状态
}

type P2OffboardingChecklistUpdatedV2Handler added in v3.2.6

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

消息处理器定义

func NewP2OffboardingChecklistUpdatedV2Handler added in v3.2.6

func NewP2OffboardingChecklistUpdatedV2Handler(handler func(context.Context, *P2OffboardingChecklistUpdatedV2) error) *P2OffboardingChecklistUpdatedV2Handler

func (*P2OffboardingChecklistUpdatedV2Handler) Event added in v3.2.6

func (h *P2OffboardingChecklistUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2OffboardingChecklistUpdatedV2Handler) Handle added in v3.2.6

func (h *P2OffboardingChecklistUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2OffboardingStatusUpdatedV2 added in v3.2.6

type P2OffboardingStatusUpdatedV2 struct {
	*larkevent.EventV2Base                                   // 事件基础数据
	*larkevent.EventReq                                      // 请求原生数据
	Event                  *P2OffboardingStatusUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2OffboardingStatusUpdatedV2) RawReq added in v3.2.6

func (m *P2OffboardingStatusUpdatedV2) RawReq(req *larkevent.EventReq)

type P2OffboardingStatusUpdatedV2Data added in v3.2.6

type P2OffboardingStatusUpdatedV2Data struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 员工 ID

	TargetUserId *UserId `json:"target_user_id,omitempty"` // 员工的飞书用户 ID

	OffboardingId *string `json:"offboarding_id,omitempty"` // 离职记录 ID

	ProcessId *string `json:"process_id,omitempty"` // 离职发起后的审批流程实例 ID

	Status *int `json:"status,omitempty"` // 离职状态
}

type P2OffboardingStatusUpdatedV2Handler added in v3.2.6

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

消息处理器定义

func NewP2OffboardingStatusUpdatedV2Handler added in v3.2.6

func NewP2OffboardingStatusUpdatedV2Handler(handler func(context.Context, *P2OffboardingStatusUpdatedV2) error) *P2OffboardingStatusUpdatedV2Handler

func (*P2OffboardingStatusUpdatedV2Handler) Event added in v3.2.6

func (h *P2OffboardingStatusUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2OffboardingStatusUpdatedV2Handler) Handle added in v3.2.6

func (h *P2OffboardingStatusUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2OffboardingUpdatedV2 added in v3.2.6

type P2OffboardingUpdatedV2 struct {
	*larkevent.EventV2Base                             // 事件基础数据
	*larkevent.EventReq                                // 请求原生数据
	Event                  *P2OffboardingUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2OffboardingUpdatedV2) RawReq added in v3.2.6

func (m *P2OffboardingUpdatedV2) RawReq(req *larkevent.EventReq)

type P2OffboardingUpdatedV2Data added in v3.2.6

type P2OffboardingUpdatedV2Data struct {
	TenantId *string `json:"tenant_id,omitempty"` // Saas租户ID

	OffboardingInfoId *string `json:"offboarding_info_id,omitempty"` // 离职记录ID

	ProcessId *string `json:"process_id,omitempty"` // 离职流程ID

	ChecklistProcessId *string `json:"checklist_process_id,omitempty"` // 离职手续办了流程ID

	EmploymentId *string `json:"employment_id,omitempty"` // 离职员工雇佣ID

	Operator *string `json:"operator,omitempty"` // 操作人雇佣ID

	Status *int `json:"status,omitempty"` // 变更后的离职状态

	ChecklistStatus *int `json:"checklist_status,omitempty"` // 变更后的离职手续办理状态

	UpdatedTime *string `json:"updated_time,omitempty"` // 更新时间毫秒时间戳

	UpdatedFields []string `json:"updated_fields,omitempty"` // 所有变更的离职信息字段

	TargetUserId *UserId `json:"target_user_id,omitempty"` // 员工的飞书用户 ID
}

type P2OffboardingUpdatedV2Handler added in v3.2.6

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

消息处理器定义

func NewP2OffboardingUpdatedV2Handler added in v3.2.6

func NewP2OffboardingUpdatedV2Handler(handler func(context.Context, *P2OffboardingUpdatedV2) error) *P2OffboardingUpdatedV2Handler

func (*P2OffboardingUpdatedV2Handler) Event added in v3.2.6

func (h *P2OffboardingUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2OffboardingUpdatedV2Handler) Handle added in v3.2.6

func (h *P2OffboardingUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2PreHireOnboardingTaskChangedV2 added in v3.3.4

type P2PreHireOnboardingTaskChangedV2 struct {
	*larkevent.EventV2Base                                       // 事件基础数据
	*larkevent.EventReq                                          // 请求原生数据
	Event                  *P2PreHireOnboardingTaskChangedV2Data `json:"event"` // 事件内容
}

func (*P2PreHireOnboardingTaskChangedV2) RawReq added in v3.3.4

func (m *P2PreHireOnboardingTaskChangedV2) RawReq(req *larkevent.EventReq)

type P2PreHireOnboardingTaskChangedV2Data added in v3.3.4

type P2PreHireOnboardingTaskChangedV2Data struct {
	TenantId *string `json:"tenant_id,omitempty"` // 飞书人事租户ID

	PreHireId *string `json:"pre_hire_id,omitempty"` // 待入职ID

	OnboardingTaskChanges []*OnboardingTaskChange `json:"onboarding_task_changes,omitempty"` // 入职任务状态变更

	OnboardingFlowChange *OnboardingFlowChange `json:"onboarding_flow_change,omitempty"` // 入职流程状态变更

	OnboardingFlowId *string `json:"onboarding_flow_id,omitempty"` // 待入职流程ID
}

type P2PreHireOnboardingTaskChangedV2Handler added in v3.3.4

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

消息处理器定义

func NewP2PreHireOnboardingTaskChangedV2Handler added in v3.3.4

func NewP2PreHireOnboardingTaskChangedV2Handler(handler func(context.Context, *P2PreHireOnboardingTaskChangedV2) error) *P2PreHireOnboardingTaskChangedV2Handler

func (*P2PreHireOnboardingTaskChangedV2Handler) Event added in v3.3.4

func (h *P2PreHireOnboardingTaskChangedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2PreHireOnboardingTaskChangedV2Handler) Handle added in v3.3.4

func (h *P2PreHireOnboardingTaskChangedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProbationUpdatedV2

type P2ProbationUpdatedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2ProbationUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ProbationUpdatedV2) RawReq

func (m *P2ProbationUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ProbationUpdatedV2Data

type P2ProbationUpdatedV2Data struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID

	ProbationStatus *string `json:"probation_status,omitempty"` // 试用期状态

	ActualProbationEndDate *string `json:"actual_probation_end_date,omitempty"` // 试用期实际结束日期
}

type P2ProbationUpdatedV2Handler

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

消息处理器定义

func NewP2ProbationUpdatedV2Handler

func NewP2ProbationUpdatedV2Handler(handler func(context.Context, *P2ProbationUpdatedV2) error) *P2ProbationUpdatedV2Handler

func (*P2ProbationUpdatedV2Handler) Event

func (h *P2ProbationUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProbationUpdatedV2Handler) Handle

func (h *P2ProbationUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProcessApproverUpdatedV2

type P2ProcessApproverUpdatedV2 struct {
	*larkevent.EventV2Base                                 // 事件基础数据
	*larkevent.EventReq                                    // 请求原生数据
	Event                  *P2ProcessApproverUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ProcessApproverUpdatedV2) RawReq

func (m *P2ProcessApproverUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ProcessApproverUpdatedV2Data

type P2ProcessApproverUpdatedV2Data struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程实例ID

	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Type *int `json:"type,omitempty"` // 单据类型

	Status *int `json:"status,omitempty"` // 单据状态

	BizType *string `json:"biz_type,omitempty"` // 业务类型

	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义id

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义id

	NodeId *string `json:"node_id,omitempty"` // 节点id
}

type P2ProcessApproverUpdatedV2Handler

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

消息处理器定义

func (*P2ProcessApproverUpdatedV2Handler) Event

func (h *P2ProcessApproverUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProcessApproverUpdatedV2Handler) Handle

func (h *P2ProcessApproverUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProcessCcUpdatedV2

type P2ProcessCcUpdatedV2 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2ProcessCcUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ProcessCcUpdatedV2) RawReq

func (m *P2ProcessCcUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ProcessCcUpdatedV2Data

type P2ProcessCcUpdatedV2Data struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程实例ID

	ApproverId *string `json:"approver_id,omitempty"` // 抄送单据ID

	Status *int `json:"status,omitempty"` // 单据状态

	BizType *string `json:"biz_type,omitempty"` // 业务类型
}

type P2ProcessCcUpdatedV2Handler

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

消息处理器定义

func NewP2ProcessCcUpdatedV2Handler

func NewP2ProcessCcUpdatedV2Handler(handler func(context.Context, *P2ProcessCcUpdatedV2) error) *P2ProcessCcUpdatedV2Handler

func (*P2ProcessCcUpdatedV2Handler) Event

func (h *P2ProcessCcUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProcessCcUpdatedV2Handler) Handle

func (h *P2ProcessCcUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProcessNodeUpdatedV2 added in v3.2.2

type P2ProcessNodeUpdatedV2 struct {
	*larkevent.EventV2Base                             // 事件基础数据
	*larkevent.EventReq                                // 请求原生数据
	Event                  *P2ProcessNodeUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ProcessNodeUpdatedV2) RawReq added in v3.2.2

func (m *P2ProcessNodeUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ProcessNodeUpdatedV2Data added in v3.2.2

type P2ProcessNodeUpdatedV2Data struct {
	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义id

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义id

	ProcessId *string `json:"process_id,omitempty"` // 流程运行实例id

	ProcessNodeId *string `json:"process_node_id,omitempty"` // 节点运行实例id

	NodeType *int `json:"node_type,omitempty"` // 节点类型

	NodeStatus *int `json:"node_status,omitempty"` // 单据状态

	BizType *string `json:"biz_type,omitempty"` // 业务类型
}

type P2ProcessNodeUpdatedV2Handler added in v3.2.2

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

消息处理器定义

func NewP2ProcessNodeUpdatedV2Handler added in v3.2.2

func NewP2ProcessNodeUpdatedV2Handler(handler func(context.Context, *P2ProcessNodeUpdatedV2) error) *P2ProcessNodeUpdatedV2Handler

func (*P2ProcessNodeUpdatedV2Handler) Event added in v3.2.2

func (h *P2ProcessNodeUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProcessNodeUpdatedV2Handler) Handle added in v3.2.2

func (h *P2ProcessNodeUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProcessStatusUpdateV2 added in v3.3.5

type P2ProcessStatusUpdateV2 struct {
	*larkevent.EventV2Base                              // 事件基础数据
	*larkevent.EventReq                                 // 请求原生数据
	Event                  *P2ProcessStatusUpdateV2Data `json:"event"` // 事件内容
}

func (*P2ProcessStatusUpdateV2) RawReq added in v3.3.5

func (m *P2ProcessStatusUpdateV2) RawReq(req *larkevent.EventReq)

type P2ProcessStatusUpdateV2Data added in v3.3.5

type P2ProcessStatusUpdateV2Data struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程实例ID

	Status *int `json:"status,omitempty"` // 变更后状态:1 发起/进行中,9 完成,2拒绝,4 撤回,8 撤销

	BizType *string `json:"biz_type,omitempty"` // 业务类型

	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义ID

	Properties *int `json:"properties,omitempty"` // 流程属性
}

type P2ProcessStatusUpdateV2Handler added in v3.3.5

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

消息处理器定义

func NewP2ProcessStatusUpdateV2Handler added in v3.3.5

func NewP2ProcessStatusUpdateV2Handler(handler func(context.Context, *P2ProcessStatusUpdateV2) error) *P2ProcessStatusUpdateV2Handler

func (*P2ProcessStatusUpdateV2Handler) Event added in v3.3.5

func (h *P2ProcessStatusUpdateV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProcessStatusUpdateV2Handler) Handle added in v3.3.5

func (h *P2ProcessStatusUpdateV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ProcessUpdatedV2

type P2ProcessUpdatedV2 struct {
	*larkevent.EventV2Base                         // 事件基础数据
	*larkevent.EventReq                            // 请求原生数据
	Event                  *P2ProcessUpdatedV2Data `json:"event"` // 事件内容
}

func (*P2ProcessUpdatedV2) RawReq

func (m *P2ProcessUpdatedV2) RawReq(req *larkevent.EventReq)

type P2ProcessUpdatedV2Data

type P2ProcessUpdatedV2Data struct {
	ProcessId *string `json:"process_id,omitempty"` // 流程实例ID

	Status *int `json:"status,omitempty"` // 变更后状态:1 发起/进行中,9 完成,2拒绝,4 撤回,8 撤销

	BizType *string `json:"biz_type,omitempty"` // 业务类型

	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义ID

	Properties *int `json:"properties,omitempty"` // 流程属性
}

type P2ProcessUpdatedV2Handler

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

消息处理器定义

func NewP2ProcessUpdatedV2Handler

func NewP2ProcessUpdatedV2Handler(handler func(context.Context, *P2ProcessUpdatedV2) error) *P2ProcessUpdatedV2Handler

func (*P2ProcessUpdatedV2Handler) Event

func (h *P2ProcessUpdatedV2Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ProcessUpdatedV2Handler) Handle

func (h *P2ProcessUpdatedV2Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type ParentsDepartmentPathReqBodyBuilder

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

func NewParentsDepartmentPathReqBodyBuilder

func NewParentsDepartmentPathReqBodyBuilder() *ParentsDepartmentPathReqBodyBuilder

func (*ParentsDepartmentPathReqBodyBuilder) Build

func (*ParentsDepartmentPathReqBodyBuilder) DepartmentIdList

func (builder *ParentsDepartmentPathReqBodyBuilder) DepartmentIdList(departmentIdList []string) *ParentsDepartmentPathReqBodyBuilder

部门 ID 列表,一次性最多传入 100 个部门 ID

示例值:

type ParentsDepartmentReq

type ParentsDepartmentReq struct {
	Body *ParentsDepartmentReqBody `body:""`
	// contains filtered or unexported fields
}

type ParentsDepartmentReqBody

type ParentsDepartmentReqBody struct {
	DepartmentIdList []string `json:"department_id_list,omitempty"` // 部门 ID 列表,一次性最多传入 100 个部门 ID
}

type ParentsDepartmentReqBodyBuilder

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

func NewParentsDepartmentReqBodyBuilder

func NewParentsDepartmentReqBodyBuilder() *ParentsDepartmentReqBodyBuilder

func (*ParentsDepartmentReqBodyBuilder) Build

func (*ParentsDepartmentReqBodyBuilder) DepartmentIdList

func (builder *ParentsDepartmentReqBodyBuilder) DepartmentIdList(departmentIdList []string) *ParentsDepartmentReqBodyBuilder

部门 ID 列表,一次性最多传入 100 个部门 ID

示例值:

type ParentsDepartmentReqBuilder

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

func NewParentsDepartmentReqBuilder

func NewParentsDepartmentReqBuilder() *ParentsDepartmentReqBuilder

func (*ParentsDepartmentReqBuilder) Body

func (*ParentsDepartmentReqBuilder) Build

func (*ParentsDepartmentReqBuilder) DepartmentIdType

func (builder *ParentsDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *ParentsDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

type ParentsDepartmentResp

type ParentsDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ParentsDepartmentRespData `json:"data"` // 业务数据
}

func (*ParentsDepartmentResp) Success

func (resp *ParentsDepartmentResp) Success() bool

type ParentsDepartmentRespData

type ParentsDepartmentRespData struct {
	Items []*DepartmentParents `json:"items,omitempty"` // 父部门查询结果
}

type PatchCostCenterPathReqBodyBuilder added in v3.1.2

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

func NewPatchCostCenterPathReqBodyBuilder added in v3.1.2

func NewPatchCostCenterPathReqBodyBuilder() *PatchCostCenterPathReqBodyBuilder

func (*PatchCostCenterPathReqBodyBuilder) Active added in v3.1.2

启用停用状态

示例值:true

func (*PatchCostCenterPathReqBodyBuilder) Build added in v3.1.2

func (*PatchCostCenterPathReqBodyBuilder) EffectiveTime added in v3.1.2

func (builder *PatchCostCenterPathReqBodyBuilder) EffectiveTime(effectiveTime string) *PatchCostCenterPathReqBodyBuilder

生效时间

示例值:2020-01-01

func (*PatchCostCenterPathReqBodyBuilder) OperationReason added in v3.1.2

func (builder *PatchCostCenterPathReqBodyBuilder) OperationReason(operationReason string) *PatchCostCenterPathReqBodyBuilder

操作原因

示例值:强行操作

type PatchCostCenterReq added in v3.1.2

type PatchCostCenterReq struct {
	Body *PatchCostCenterReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchCostCenterReqBody added in v3.1.2

type PatchCostCenterReqBody struct {
	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	Active *bool `json:"active,omitempty"` // 启用停用状态

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type PatchCostCenterReqBodyBuilder added in v3.1.2

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

func NewPatchCostCenterReqBodyBuilder added in v3.1.2

func NewPatchCostCenterReqBodyBuilder() *PatchCostCenterReqBodyBuilder

func (*PatchCostCenterReqBodyBuilder) Active added in v3.1.2

启用停用状态

示例值:true

func (*PatchCostCenterReqBodyBuilder) Build added in v3.1.2

func (*PatchCostCenterReqBodyBuilder) EffectiveTime added in v3.1.2

func (builder *PatchCostCenterReqBodyBuilder) EffectiveTime(effectiveTime string) *PatchCostCenterReqBodyBuilder

生效时间

示例值:2020-01-01

func (*PatchCostCenterReqBodyBuilder) OperationReason added in v3.1.2

func (builder *PatchCostCenterReqBodyBuilder) OperationReason(operationReason string) *PatchCostCenterReqBodyBuilder

操作原因

示例值:强行操作

type PatchCostCenterReqBuilder added in v3.1.2

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

func NewPatchCostCenterReqBuilder added in v3.1.2

func NewPatchCostCenterReqBuilder() *PatchCostCenterReqBuilder

func (*PatchCostCenterReqBuilder) Body added in v3.1.2

创建成本中心版本

func (*PatchCostCenterReqBuilder) Build added in v3.1.2

func (*PatchCostCenterReqBuilder) CostCenterId added in v3.1.2

func (builder *PatchCostCenterReqBuilder) CostCenterId(costCenterId string) *PatchCostCenterReqBuilder

成本中心ID

示例值:6862995757234914824

func (*PatchCostCenterReqBuilder) UserIdType added in v3.1.2

func (builder *PatchCostCenterReqBuilder) UserIdType(userIdType string) *PatchCostCenterReqBuilder

用户 ID 类型

示例值:people_corehr_id

type PatchCostCenterResp added in v3.1.2

type PatchCostCenterResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchCostCenterRespData `json:"data"` // 业务数据
}

func (*PatchCostCenterResp) Success added in v3.1.2

func (resp *PatchCostCenterResp) Success() bool

type PatchCostCenterRespData added in v3.1.2

type PatchCostCenterRespData struct {
	CostCenter *CostCenter `json:"cost_center,omitempty"` //
}

type PatchCostCenterVersionPathReqBodyBuilder added in v3.1.2

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

func NewPatchCostCenterVersionPathReqBodyBuilder added in v3.1.2

func NewPatchCostCenterVersionPathReqBodyBuilder() *PatchCostCenterVersionPathReqBodyBuilder

func (*PatchCostCenterVersionPathReqBodyBuilder) Build added in v3.1.2

func (*PatchCostCenterVersionPathReqBodyBuilder) Description added in v3.1.2

成本中心描述

示例值:

func (*PatchCostCenterVersionPathReqBodyBuilder) EffectiveTime added in v3.1.2

生效时间

示例值:2020-01-01

func (*PatchCostCenterVersionPathReqBodyBuilder) Managers added in v3.1.2

成本中心负责人ID 列表,可通过雇佣信息接口查询获得

示例值:

func (*PatchCostCenterVersionPathReqBodyBuilder) Name added in v3.1.2

成本中心名称

示例值:

func (*PatchCostCenterVersionPathReqBodyBuilder) OperationReason added in v3.1.2

操作原因

示例值:强行操作

func (*PatchCostCenterVersionPathReqBodyBuilder) ParentCostCenterId added in v3.1.2

func (builder *PatchCostCenterVersionPathReqBodyBuilder) ParentCostCenterId(parentCostCenterId string) *PatchCostCenterVersionPathReqBodyBuilder

上级成本中心ID

示例值:6862995757234914824

type PatchCostCenterVersionReq added in v3.1.2

type PatchCostCenterVersionReq struct {
	Body *PatchCostCenterVersionReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchCostCenterVersionReqBody added in v3.1.2

type PatchCostCenterVersionReqBody struct {
	Name []*I18n `json:"name,omitempty"` // 成本中心名称

	ParentCostCenterId *string `json:"parent_cost_center_id,omitempty"` // 上级成本中心ID

	Managers []string `json:"managers,omitempty"` // 成本中心负责人ID 列表,可通过雇佣信息接口查询获得

	Description []*I18n `json:"description,omitempty"` // 成本中心描述

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效时间

	OperationReason *string `json:"operation_reason,omitempty"` // 操作原因
}

type PatchCostCenterVersionReqBodyBuilder added in v3.1.2

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

func NewPatchCostCenterVersionReqBodyBuilder added in v3.1.2

func NewPatchCostCenterVersionReqBodyBuilder() *PatchCostCenterVersionReqBodyBuilder

func (*PatchCostCenterVersionReqBodyBuilder) Build added in v3.1.2

func (*PatchCostCenterVersionReqBodyBuilder) Description added in v3.1.2

成本中心描述

示例值:

func (*PatchCostCenterVersionReqBodyBuilder) EffectiveTime added in v3.1.2

生效时间

示例值:2020-01-01

func (*PatchCostCenterVersionReqBodyBuilder) Managers added in v3.1.2

成本中心负责人ID 列表,可通过雇佣信息接口查询获得

示例值:

func (*PatchCostCenterVersionReqBodyBuilder) Name added in v3.1.2

成本中心名称

示例值:

func (*PatchCostCenterVersionReqBodyBuilder) OperationReason added in v3.1.2

func (builder *PatchCostCenterVersionReqBodyBuilder) OperationReason(operationReason string) *PatchCostCenterVersionReqBodyBuilder

操作原因

示例值:强行操作

func (*PatchCostCenterVersionReqBodyBuilder) ParentCostCenterId added in v3.1.2

func (builder *PatchCostCenterVersionReqBodyBuilder) ParentCostCenterId(parentCostCenterId string) *PatchCostCenterVersionReqBodyBuilder

上级成本中心ID

示例值:6862995757234914824

type PatchCostCenterVersionReqBuilder added in v3.1.2

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

func NewPatchCostCenterVersionReqBuilder added in v3.1.2

func NewPatchCostCenterVersionReqBuilder() *PatchCostCenterVersionReqBuilder

func (*PatchCostCenterVersionReqBuilder) Body added in v3.1.2

创建成本中心版本

func (*PatchCostCenterVersionReqBuilder) Build added in v3.1.2

func (*PatchCostCenterVersionReqBuilder) CostCenterId added in v3.1.2

func (builder *PatchCostCenterVersionReqBuilder) CostCenterId(costCenterId string) *PatchCostCenterVersionReqBuilder

成本中心ID

示例值:6862995757234914824

func (*PatchCostCenterVersionReqBuilder) UserIdType added in v3.1.2

用户 ID 类型

示例值:people_corehr_id

func (*PatchCostCenterVersionReqBuilder) VersionId added in v3.1.2

版本ID

示例值:6862995757234914824

type PatchCostCenterVersionResp added in v3.1.2

type PatchCostCenterVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchCostCenterVersionRespData `json:"data"` // 业务数据
}

func (*PatchCostCenterVersionResp) Success added in v3.1.2

func (resp *PatchCostCenterVersionResp) Success() bool

type PatchCostCenterVersionRespData added in v3.1.2

type PatchCostCenterVersionRespData struct {
	Version *CostCenterVersion `json:"version,omitempty"` //
}

type PatchDepartmentReq added in v3.3.3

type PatchDepartmentReq struct {
	DepartmentForPatch *DepartmentForPatch `body:""`
	// contains filtered or unexported fields
}

type PatchDepartmentReqBuilder added in v3.3.3

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

func NewPatchDepartmentReqBuilder added in v3.3.3

func NewPatchDepartmentReqBuilder() *PatchDepartmentReqBuilder

func (*PatchDepartmentReqBuilder) Build added in v3.3.3

func (*PatchDepartmentReqBuilder) ClientToken added in v3.3.3

func (builder *PatchDepartmentReqBuilder) ClientToken(clientToken string) *PatchDepartmentReqBuilder

根据client_token是否一致来判断是否为同一请求

示例值:12454646

func (*PatchDepartmentReqBuilder) DepartmentForPatch added in v3.3.3

func (builder *PatchDepartmentReqBuilder) DepartmentForPatch(departmentForPatch *DepartmentForPatch) *PatchDepartmentReqBuilder

更新部门数据

func (*PatchDepartmentReqBuilder) DepartmentId added in v3.3.3

func (builder *PatchDepartmentReqBuilder) DepartmentId(departmentId string) *PatchDepartmentReqBuilder

需要更新的部门 ID

示例值:1616161616

func (*PatchDepartmentReqBuilder) DepartmentIdType added in v3.3.3

func (builder *PatchDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *PatchDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*PatchDepartmentReqBuilder) UserIdType added in v3.3.3

func (builder *PatchDepartmentReqBuilder) UserIdType(userIdType string) *PatchDepartmentReqBuilder

用户 ID 类型

示例值:people_corehr_id

type PatchDepartmentResp added in v3.3.3

type PatchDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchDepartmentResp) Success added in v3.3.3

func (resp *PatchDepartmentResp) Success() bool

type PatchEmployeesAdditionalJobReq added in v3.4.0

type PatchEmployeesAdditionalJobReq struct {
	EmployeesAdditionalJobEdit *EmployeesAdditionalJobEdit `body:""`
	// contains filtered or unexported fields
}

type PatchEmployeesAdditionalJobReqBuilder added in v3.4.0

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

func NewPatchEmployeesAdditionalJobReqBuilder added in v3.4.0

func NewPatchEmployeesAdditionalJobReqBuilder() *PatchEmployeesAdditionalJobReqBuilder

func (*PatchEmployeesAdditionalJobReqBuilder) AdditionalJobId added in v3.4.0

func (builder *PatchEmployeesAdditionalJobReqBuilder) AdditionalJobId(additionalJobId string) *PatchEmployeesAdditionalJobReqBuilder

兼职记录ID

示例值:12454646

func (*PatchEmployeesAdditionalJobReqBuilder) Build added in v3.4.0

func (*PatchEmployeesAdditionalJobReqBuilder) ClientToken added in v3.4.0

根据 client_token 是否一致来判断是否为同一请求

示例值:12454646

func (*PatchEmployeesAdditionalJobReqBuilder) DepartmentIdType added in v3.4.0

func (builder *PatchEmployeesAdditionalJobReqBuilder) DepartmentIdType(departmentIdType string) *PatchEmployeesAdditionalJobReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*PatchEmployeesAdditionalJobReqBuilder) EmployeesAdditionalJobEdit added in v3.4.0

func (builder *PatchEmployeesAdditionalJobReqBuilder) EmployeesAdditionalJobEdit(employeesAdditionalJobEdit *EmployeesAdditionalJobEdit) *PatchEmployeesAdditionalJobReqBuilder

更新兼职

func (*PatchEmployeesAdditionalJobReqBuilder) UserIdType added in v3.4.0

用户 ID 类型

示例值:open_id

type PatchEmployeesAdditionalJobResp added in v3.4.0

type PatchEmployeesAdditionalJobResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchEmployeesAdditionalJobRespData `json:"data"` // 业务数据
}

func (*PatchEmployeesAdditionalJobResp) Success added in v3.4.0

func (resp *PatchEmployeesAdditionalJobResp) Success() bool

type PatchEmployeesAdditionalJobRespData added in v3.4.0

type PatchEmployeesAdditionalJobRespData struct {
	AdditionalJob *EmployeesAdditionalJobWriteResp `json:"additional_job,omitempty"` //
}

type PatchJobGradeReq added in v3.3.5

type PatchJobGradeReq struct {
	JobGradeUpdate *JobGradeUpdate `body:""`
	// contains filtered or unexported fields
}

type PatchJobGradeReqBuilder added in v3.3.5

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

func NewPatchJobGradeReqBuilder added in v3.3.5

func NewPatchJobGradeReqBuilder() *PatchJobGradeReqBuilder

func (*PatchJobGradeReqBuilder) Build added in v3.3.5

func (builder *PatchJobGradeReqBuilder) Build() *PatchJobGradeReq

func (*PatchJobGradeReqBuilder) ClientToken added in v3.3.5

func (builder *PatchJobGradeReqBuilder) ClientToken(clientToken string) *PatchJobGradeReqBuilder

根据client_token是否一致来判断是否为同一请求

示例值:1245464678

func (*PatchJobGradeReqBuilder) JobGradeId added in v3.3.5

func (builder *PatchJobGradeReqBuilder) JobGradeId(jobGradeId string) *PatchJobGradeReqBuilder

职等ID

示例值:6862995757234914824

func (*PatchJobGradeReqBuilder) JobGradeUpdate added in v3.3.5

func (builder *PatchJobGradeReqBuilder) JobGradeUpdate(jobGradeUpdate *JobGradeUpdate) *PatchJobGradeReqBuilder

更新职等信息

type PatchJobGradeResp added in v3.3.5

type PatchJobGradeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchJobGradeResp) Success added in v3.3.5

func (resp *PatchJobGradeResp) Success() bool

type PatchLocationAddressReq added in v3.3.7

type PatchLocationAddressReq struct {
	LocationAddressUpdate *LocationAddressUpdate `body:""`
	// contains filtered or unexported fields
}

type PatchLocationAddressReqBuilder added in v3.3.7

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

func NewPatchLocationAddressReqBuilder added in v3.3.7

func NewPatchLocationAddressReqBuilder() *PatchLocationAddressReqBuilder

func (*PatchLocationAddressReqBuilder) AddressId added in v3.3.7

地址 ID

示例值:1515151515

func (*PatchLocationAddressReqBuilder) Build added in v3.3.7

func (*PatchLocationAddressReqBuilder) ClientToken added in v3.3.7

func (builder *PatchLocationAddressReqBuilder) ClientToken(clientToken string) *PatchLocationAddressReqBuilder

根据 client_token 是否一致来判断是否为同一请求

示例值:12454646

func (*PatchLocationAddressReqBuilder) LocationAddressUpdate added in v3.3.7

func (builder *PatchLocationAddressReqBuilder) LocationAddressUpdate(locationAddressUpdate *LocationAddressUpdate) *PatchLocationAddressReqBuilder

更新地点地址

func (*PatchLocationAddressReqBuilder) LocationId added in v3.3.7

func (builder *PatchLocationAddressReqBuilder) LocationId(locationId string) *PatchLocationAddressReqBuilder

地点 ID

示例值:1616161616

type PatchLocationAddressResp added in v3.3.7

type PatchLocationAddressResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchLocationAddressResp) Success added in v3.3.7

func (resp *PatchLocationAddressResp) Success() bool

type PatchLocationReq added in v3.3.7

type PatchLocationReq struct {
	LocationUpdate *LocationUpdate `body:""`
	// contains filtered or unexported fields
}

type PatchLocationReqBuilder added in v3.3.7

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

func NewPatchLocationReqBuilder added in v3.3.7

func NewPatchLocationReqBuilder() *PatchLocationReqBuilder

func (*PatchLocationReqBuilder) Build added in v3.3.7

func (builder *PatchLocationReqBuilder) Build() *PatchLocationReq

func (*PatchLocationReqBuilder) ClientToken added in v3.3.7

func (builder *PatchLocationReqBuilder) ClientToken(clientToken string) *PatchLocationReqBuilder

根据 client_token 是否一致来判断是否为同一请求

示例值:12454646

func (*PatchLocationReqBuilder) LocationId added in v3.3.7

func (builder *PatchLocationReqBuilder) LocationId(locationId string) *PatchLocationReqBuilder

地点 ID

示例值:1616161616

func (*PatchLocationReqBuilder) LocationUpdate added in v3.3.7

func (builder *PatchLocationReqBuilder) LocationUpdate(locationUpdate *LocationUpdate) *PatchLocationReqBuilder

更新地点

type PatchLocationResp added in v3.3.7

type PatchLocationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchLocationResp) Success added in v3.3.7

func (resp *PatchLocationResp) Success() bool

type PatchPersonReq

type PatchPersonReq struct {
	PersonInfo *PersonInfo `body:""`
	// contains filtered or unexported fields
}

type PatchPersonReqBuilder

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

func NewPatchPersonReqBuilder

func NewPatchPersonReqBuilder() *PatchPersonReqBuilder

func (*PatchPersonReqBuilder) Build

func (builder *PatchPersonReqBuilder) Build() *PatchPersonReq

func (*PatchPersonReqBuilder) ClientToken

func (builder *PatchPersonReqBuilder) ClientToken(clientToken string) *PatchPersonReqBuilder

根据client_token是否一致来判断是否为同一请求

示例值:12454646

func (*PatchPersonReqBuilder) NoNeedQuery added in v3.2.0

func (builder *PatchPersonReqBuilder) NoNeedQuery(noNeedQuery bool) *PatchPersonReqBuilder

根据no_need_query判断更新后是否做查询请求并返回个人信息

示例值:false

func (*PatchPersonReqBuilder) PersonId

func (builder *PatchPersonReqBuilder) PersonId(personId string) *PatchPersonReqBuilder

person的ID

示例值:12454646

func (*PatchPersonReqBuilder) PersonInfo

func (builder *PatchPersonReqBuilder) PersonInfo(personInfo *PersonInfo) *PatchPersonReqBuilder

type PatchPersonResp

type PatchPersonResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchPersonRespData `json:"data"` // 业务数据
}

func (*PatchPersonResp) Success

func (resp *PatchPersonResp) Success() bool

type PatchPersonRespData

type PatchPersonRespData struct {
	Person *PersonInfo `json:"person,omitempty"` //
}

type PatchPreHireReq added in v3.2.5

type PatchPreHireReq struct {
	PrehireUpdate *PrehireUpdate `body:""`
	// contains filtered or unexported fields
}

type PatchPreHireReqBuilder added in v3.2.5

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

func NewPatchPreHireReqBuilder added in v3.2.5

func NewPatchPreHireReqBuilder() *PatchPreHireReqBuilder

func (*PatchPreHireReqBuilder) Build added in v3.2.5

func (builder *PatchPreHireReqBuilder) Build() *PatchPreHireReq

func (*PatchPreHireReqBuilder) PreHireId added in v3.2.5

func (builder *PatchPreHireReqBuilder) PreHireId(preHireId string) *PatchPreHireReqBuilder

待入职ID

示例值:7345005664477775411

func (*PatchPreHireReqBuilder) PrehireUpdate added in v3.2.5

func (builder *PatchPreHireReqBuilder) PrehireUpdate(prehireUpdate *PrehireUpdate) *PatchPreHireReqBuilder

更新待入职

type PatchPreHireResp added in v3.2.5

type PatchPreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchPreHireRespData `json:"data"` // 业务数据
}

func (*PatchPreHireResp) Success added in v3.2.5

func (resp *PatchPreHireResp) Success() bool

type PatchPreHireRespData added in v3.2.5

type PatchPreHireRespData struct {
	PreHireId *string `json:"pre_hire_id,omitempty"` // 待入职ID
}

type PatchProbationAssessmentReq

type PatchProbationAssessmentReq struct {
	AssessmentForCreate *AssessmentForCreate `body:""`
	// contains filtered or unexported fields
}

type PatchProbationAssessmentReqBuilder

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

func NewPatchProbationAssessmentReqBuilder

func NewPatchProbationAssessmentReqBuilder() *PatchProbationAssessmentReqBuilder

func (*PatchProbationAssessmentReqBuilder) AssessmentForCreate

func (builder *PatchProbationAssessmentReqBuilder) AssessmentForCreate(assessmentForCreate *AssessmentForCreate) *PatchProbationAssessmentReqBuilder

func (*PatchProbationAssessmentReqBuilder) AssessmentId

考核结果 ID

示例值:7140964208476371331

func (*PatchProbationAssessmentReqBuilder) Build

func (*PatchProbationAssessmentReqBuilder) ClientToken

根据 client_token 是否一致来判断是否为同一请求

示例值:6822122262122064111

type PatchProbationAssessmentResp

type PatchProbationAssessmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchProbationAssessmentResp) Success

func (resp *PatchProbationAssessmentResp) Success() bool

type PersonInfo

type PersonInfo struct {
	PersonId *string `json:"person_id,omitempty"` // 个人信息 ID

	PhoneNumber *string `json:"phone_number,omitempty"` // 个人电话

	LegalName *string `json:"legal_name,omitempty"` // 法定姓名

	PreferredName *string `json:"preferred_name,omitempty"` // 常用名

	PreferredLocalFullName *string `json:"preferred_local_full_name,omitempty"` // 常用本地全名

	PreferredEnglishFullName *string `json:"preferred_english_full_name,omitempty"` // 常用英文全名

	NameList []*PersonName `json:"name_list,omitempty"` // 姓名列表

	Gender *Enum `json:"gender,omitempty"` // -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 出生日期

	NationalityId *string `json:"nationality_id,omitempty"` // 国籍 ID ,国籍数据可通过【查询国家/地区信息】接口获取

	NationalityIdV2 *string `json:"nationality_id_v2,omitempty"` // 国籍 ID,可通过【查询国籍信息】接口查询

	AdditionalNationalities []*Nationality `json:"additional_nationalities,omitempty"` // 其他国籍

	CitizenshipStatus []*CitizenshipStatus `json:"citizenship_status,omitempty"` // 公民身份

	Race *Enum `json:"race,omitempty"` // -| 民族 / 种族,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person

	MaritalStatus *Enum `json:"marital_status,omitempty"` // -| 婚姻状况,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person

	PhoneList []*Phone `json:"phone_list,omitempty"` // 电话列表,只有当满足下面所有条件时,电话在个人信息页才可见

	AddressList []*Address `json:"address_list,omitempty"` // 地址列表

	EmailList []*Email `json:"email_list,omitempty"` // 邮箱列表

	WorkExperienceList []*WorkExperienceInfo `json:"work_experience_list,omitempty"` // 工作经历列表

	EducationList []*Education `json:"education_list,omitempty"` // 教育经历列表

	BankAccountList []*BankAccount `json:"bank_account_list,omitempty"` // 银行账户

	NationalIdList []*NationalId `json:"national_id_list,omitempty"` // 证件

	DependentList []*Dependent `json:"dependent_list,omitempty"` // 家庭成员列表

	EmergencyContactList []*EmergencyContact `json:"emergency_contact_list,omitempty"` // 紧急联系人列表

	DateEnteredWorkforce *string `json:"date_entered_workforce,omitempty"` // 参加工作日期

	WorkingYears *int `json:"working_years,omitempty"` // 工龄

	ProfileImageId *string `json:"profile_image_id,omitempty"` // 头像资源的 ID

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱地址

	Age *int `json:"age,omitempty"` // 年龄

	HighestLevelOfEducation *Education `json:"highest_level_of_education,omitempty"` // 最高学历教育经历

	HighestDegreeOfEducation *Education `json:"highest_degree_of_education,omitempty"` // 最高学位教育经历

	PersonalProfile []*PersonalProfile `json:"personal_profile,omitempty"` // 个人资料附件

	NativeRegion *string `json:"native_region,omitempty"` // 籍贯 ID

	HukouType *Enum `json:"hukou_type,omitempty"` // 户口类型,枚举值可通过文档【飞书人事枚举常量】户口类型(hukou_type)枚举定义部分获得

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地

	PoliticalAffiliations []*Enum `json:"political_affiliations,omitempty"` // 政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn

	TalentId *string `json:"talent_id,omitempty"` // 人才 ID

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	NationalIdNumber *string `json:"national_id_number,omitempty"` // 居民身份证件号码

	FamilyAddress *string `json:"family_address,omitempty"` // 家庭地址

	PersonInfoChns []*PersonInfoChn `json:"person_info_chns,omitempty"` // 个人附加信息

	BornCountryRegion *string `json:"born_country_region,omitempty"` // 出生国家/地区

	IsDisabled *bool `json:"is_disabled,omitempty"` // 是否残疾

	DisableCardNumber *string `json:"disable_card_number,omitempty"` // 残疾证号

	IsMartyrFamily *bool `json:"is_martyr_family,omitempty"` // 是否烈属

	MartyrCardNumber *string `json:"martyr_card_number,omitempty"` // 烈属证号

	IsOldAlone *bool `json:"is_old_alone,omitempty"` // 是否孤老

	ResidentTaxes []*ResidentTax `json:"resident_taxes,omitempty"` // 居民身份信息

	FirstEntryTime *string `json:"first_entry_time,omitempty"` // 首次入境日期

	LeaveTime *string `json:"leave_time,omitempty"` // 预计离境日期

	Religion *Enum `json:"religion,omitempty"` // -| 宗教信仰,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name:person - custom_api_name:religion

	WorkingYearsV2 *float64 `json:"working_years_v2,omitempty"` // 工龄 浮点类型

	CreatedAt *string `json:"created_at,omitempty"` // 个人信息 创建时间

	UpdatedAt *string `json:"updated_at,omitempty"` // 个人信息 更新时间

	CreatedBy *string `json:"created_by,omitempty"` // 个人信息 创建人

	UpdatedBy *string `json:"updated_by,omitempty"` // 个人信息 更新人

	BankAccountNumber *string `json:"bank_account_number,omitempty"` // 银行卡号

	PassportNumber *string `json:"passport_number,omitempty"` // 护照号码

	FormerEmployer []*I18n `json:"former_employer,omitempty"` // 上家公司
}

type PersonInfoBt added in v3.3.5

type PersonInfoBt struct {
	PersonId *string `json:"person_id,omitempty"` // 个人信息 ID

	PhoneNumber *string `json:"phone_number,omitempty"` // 个人电话;- 该值取自 person_info.phone_list 中满足以下条件的电话;  - is_primary: true;  - device_type: mobile_phone;  - phone_usage: home

	LegalName *string `json:"legal_name,omitempty"` // 法定姓名

	PreferredName *string `json:"preferred_name,omitempty"` // 常用名

	PreferredLocalFullName *string `json:"preferred_local_full_name,omitempty"` // 常用本地全名

	PreferredEnglishFullName *string `json:"preferred_english_full_name,omitempty"` // 常用英文全名

	NameList []*PersonName `json:"name_list,omitempty"` // 姓名列表

	Gender *Enum `json:"gender,omitempty"` // -| 性别 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 出生日期

	NationalityId *string `json:"nationality_id,omitempty"` // 国籍 ID - 可通过[查询国籍信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)查询

	NationalityIdV2 *string `json:"nationality_id_v2,omitempty"` // 国籍 ID;- 可通过[查询国籍信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)查询

	AdditionalNationalities []*Nationality `json:"additional_nationalities,omitempty"` // 其他国籍

	CitizenshipStatus []*CitizenshipStatus `json:"citizenship_status,omitempty"` // 公民身份

	Race *Enum `json:"race,omitempty"` // -| 民族 / 种族 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person

	MaritalStatus *Enum `json:"marital_status,omitempty"` // -| 婚姻状况 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person

	PhoneList []*Phone `json:"phone_list,omitempty"` // 电话列表

	AddressList []*Address `json:"address_list,omitempty"` // 地址列表

	EmailList []*Email `json:"email_list,omitempty"` // 邮箱列表

	WorkExperienceList []*WorkExperienceInfo `json:"work_experience_list,omitempty"` // 工作经历列表

	EducationList []*Education `json:"education_list,omitempty"` // 教育经历列表

	BankAccountList []*BankAccount `json:"bank_account_list,omitempty"` // 银行账户

	NationalIdList []*NationalId `json:"national_id_list,omitempty"` // 证件

	DependentList []*Dependent `json:"dependent_list,omitempty"` // 家庭成员列表

	EmergencyContactList []*EmergencyContact `json:"emergency_contact_list,omitempty"` // 紧急联系人列表

	DateEnteredWorkforce *string `json:"date_entered_workforce,omitempty"` // 参加工作日期

	WorkingYears *int `json:"working_years,omitempty"` // 工龄

	ProfileImageId *string `json:"profile_image_id,omitempty"` // 头像资源的 ID;- 已废弃,请使用 avatar_url

	EmailAddress *string `json:"email_address,omitempty"` // 邮箱地址

	Age *int `json:"age,omitempty"` // 年龄

	HighestLevelOfEducation *Education `json:"highest_level_of_education,omitempty"` // 最高学历教育经历

	HighestDegreeOfEducation *Education `json:"highest_degree_of_education,omitempty"` // 最高学位教育经历

	PersonalProfile []*PersonalProfile `json:"personal_profile,omitempty"` // 个人资料附件

	NativeRegion *string `json:"native_region,omitempty"` // 籍贯 ID;- 可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)获取详情

	HukouType *Enum `json:"hukou_type,omitempty"` // 户口类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name: person_info_chn;  - custom_api_name: hukou_type

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地

	PoliticalAffiliations []*Enum `json:"political_affiliations,omitempty"` // 政治面貌;- 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: ;  - custom_api_name:political_affiliation ;  - object_api_name:person_info_chn

	TalentId *string `json:"talent_id,omitempty"` // 人才 ID;- 可通过[获取人才信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)获取详情

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 请参考[自定义字段说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

	NationalIdNumber *string `json:"national_id_number,omitempty"` // 居民身份证件号码

	FamilyAddress *string `json:"family_address,omitempty"` // 家庭地址

	BornCountryRegion *string `json:"born_country_region,omitempty"` // 出生国家/地区

	IsDisabled *bool `json:"is_disabled,omitempty"` // 是否残疾

	DisableCardNumber *string `json:"disable_card_number,omitempty"` // 残疾证号

	IsMartyrFamily *bool `json:"is_martyr_family,omitempty"` // 是否烈属

	MartyrCardNumber *string `json:"martyr_card_number,omitempty"` // 烈属证号

	IsOldAlone *bool `json:"is_old_alone,omitempty"` // 是否孤老

	ResidentTaxes []*ResidentTax `json:"resident_taxes,omitempty"` // 居民身份信息

	FirstEntryTime *string `json:"first_entry_time,omitempty"` // 首次入境日期

	LeaveTime *string `json:"leave_time,omitempty"` // 预计离境日期

	Religion *Enum `json:"religion,omitempty"` // -| 宗教信仰 - 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:person - custom_api_name:religion

	WorkingYearsV2 *float64 `json:"working_years_v2,omitempty"` // 工龄 (浮点)
}

type PersonInfoBtBuilder added in v3.3.5

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

func NewPersonInfoBtBuilder added in v3.3.5

func NewPersonInfoBtBuilder() *PersonInfoBtBuilder

func (*PersonInfoBtBuilder) AdditionalNationalities added in v3.3.5

func (builder *PersonInfoBtBuilder) AdditionalNationalities(additionalNationalities []*Nationality) *PersonInfoBtBuilder

其他国籍

示例值:

func (*PersonInfoBtBuilder) AddressList added in v3.3.5

func (builder *PersonInfoBtBuilder) AddressList(addressList []*Address) *PersonInfoBtBuilder

地址列表

示例值:

func (*PersonInfoBtBuilder) Age added in v3.3.5

func (builder *PersonInfoBtBuilder) Age(age int) *PersonInfoBtBuilder

年龄

示例值:22

func (*PersonInfoBtBuilder) BankAccountList added in v3.3.5

func (builder *PersonInfoBtBuilder) BankAccountList(bankAccountList []*BankAccount) *PersonInfoBtBuilder

银行账户

示例值:

func (*PersonInfoBtBuilder) BornCountryRegion added in v3.3.5

func (builder *PersonInfoBtBuilder) BornCountryRegion(bornCountryRegion string) *PersonInfoBtBuilder

出生国家/地区

示例值:中国

func (*PersonInfoBtBuilder) Build added in v3.3.5

func (builder *PersonInfoBtBuilder) Build() *PersonInfoBt

func (*PersonInfoBtBuilder) CitizenshipStatus added in v3.3.5

func (builder *PersonInfoBtBuilder) CitizenshipStatus(citizenshipStatus []*CitizenshipStatus) *PersonInfoBtBuilder

公民身份

示例值:

func (*PersonInfoBtBuilder) CustomFields added in v3.3.5

func (builder *PersonInfoBtBuilder) CustomFields(customFields []*CustomFieldData) *PersonInfoBtBuilder

自定义字段;- 请参考[自定义字段说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*PersonInfoBtBuilder) DateEnteredWorkforce added in v3.3.5

func (builder *PersonInfoBtBuilder) DateEnteredWorkforce(dateEnteredWorkforce string) *PersonInfoBtBuilder

参加工作日期

示例值:2020-10-01

func (*PersonInfoBtBuilder) DateOfBirth added in v3.3.5

func (builder *PersonInfoBtBuilder) DateOfBirth(dateOfBirth string) *PersonInfoBtBuilder

出生日期

示例值:2020-01-01

func (*PersonInfoBtBuilder) DependentList added in v3.3.5

func (builder *PersonInfoBtBuilder) DependentList(dependentList []*Dependent) *PersonInfoBtBuilder

家庭成员列表

示例值:

func (*PersonInfoBtBuilder) DisableCardNumber added in v3.3.5

func (builder *PersonInfoBtBuilder) DisableCardNumber(disableCardNumber string) *PersonInfoBtBuilder

残疾证号

示例值:1110000

func (*PersonInfoBtBuilder) EducationList added in v3.3.5

func (builder *PersonInfoBtBuilder) EducationList(educationList []*Education) *PersonInfoBtBuilder

教育经历列表

示例值:

func (*PersonInfoBtBuilder) EmailAddress added in v3.3.5

func (builder *PersonInfoBtBuilder) EmailAddress(emailAddress string) *PersonInfoBtBuilder

邮箱地址

示例值:test@163.com

func (*PersonInfoBtBuilder) EmailList added in v3.3.5

func (builder *PersonInfoBtBuilder) EmailList(emailList []*Email) *PersonInfoBtBuilder

邮箱列表

示例值:

func (*PersonInfoBtBuilder) EmergencyContactList added in v3.3.5

func (builder *PersonInfoBtBuilder) EmergencyContactList(emergencyContactList []*EmergencyContact) *PersonInfoBtBuilder

紧急联系人列表

示例值:

func (*PersonInfoBtBuilder) FamilyAddress added in v3.3.5

func (builder *PersonInfoBtBuilder) FamilyAddress(familyAddress string) *PersonInfoBtBuilder

家庭地址

示例值:6863326262618752123

func (*PersonInfoBtBuilder) FirstEntryTime added in v3.3.5

func (builder *PersonInfoBtBuilder) FirstEntryTime(firstEntryTime string) *PersonInfoBtBuilder

首次入境日期

示例值:2021-01-02

func (*PersonInfoBtBuilder) Gender added in v3.3.5

func (builder *PersonInfoBtBuilder) Gender(gender *Enum) *PersonInfoBtBuilder

-| 性别 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person

示例值:

func (*PersonInfoBtBuilder) HighestDegreeOfEducation added in v3.3.5

func (builder *PersonInfoBtBuilder) HighestDegreeOfEducation(highestDegreeOfEducation *Education) *PersonInfoBtBuilder

最高学位教育经历

示例值:

func (*PersonInfoBtBuilder) HighestLevelOfEducation added in v3.3.5

func (builder *PersonInfoBtBuilder) HighestLevelOfEducation(highestLevelOfEducation *Education) *PersonInfoBtBuilder

最高学历教育经历

示例值:

func (*PersonInfoBtBuilder) HukouLocation added in v3.3.5

func (builder *PersonInfoBtBuilder) HukouLocation(hukouLocation string) *PersonInfoBtBuilder

户口所在地

示例值:山东省平阴县

func (*PersonInfoBtBuilder) HukouType added in v3.3.5

func (builder *PersonInfoBtBuilder) HukouType(hukouType *Enum) *PersonInfoBtBuilder

户口类型;- 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name: person_info_chn; - custom_api_name: hukou_type

示例值:

func (*PersonInfoBtBuilder) IsDisabled added in v3.3.5

func (builder *PersonInfoBtBuilder) IsDisabled(isDisabled bool) *PersonInfoBtBuilder

是否残疾

示例值:true

func (*PersonInfoBtBuilder) IsMartyrFamily added in v3.3.5

func (builder *PersonInfoBtBuilder) IsMartyrFamily(isMartyrFamily bool) *PersonInfoBtBuilder

是否烈属

示例值:true

func (*PersonInfoBtBuilder) IsOldAlone added in v3.3.5

func (builder *PersonInfoBtBuilder) IsOldAlone(isOldAlone bool) *PersonInfoBtBuilder

是否孤老

示例值:true

func (*PersonInfoBtBuilder) LeaveTime added in v3.3.5

func (builder *PersonInfoBtBuilder) LeaveTime(leaveTime string) *PersonInfoBtBuilder

预计离境日期

示例值:2022-01-02

func (*PersonInfoBtBuilder) LegalName added in v3.3.5

func (builder *PersonInfoBtBuilder) LegalName(legalName string) *PersonInfoBtBuilder

法定姓名

示例值:张三

func (*PersonInfoBtBuilder) MaritalStatus added in v3.3.5

func (builder *PersonInfoBtBuilder) MaritalStatus(maritalStatus *Enum) *PersonInfoBtBuilder

-| 婚姻状况 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person

示例值:

func (*PersonInfoBtBuilder) MartyrCardNumber added in v3.3.5

func (builder *PersonInfoBtBuilder) MartyrCardNumber(martyrCardNumber string) *PersonInfoBtBuilder

烈属证号

示例值:1110000

func (*PersonInfoBtBuilder) NameList added in v3.3.5

func (builder *PersonInfoBtBuilder) NameList(nameList []*PersonName) *PersonInfoBtBuilder

姓名列表

示例值:

func (*PersonInfoBtBuilder) NationalIdList added in v3.3.5

func (builder *PersonInfoBtBuilder) NationalIdList(nationalIdList []*NationalId) *PersonInfoBtBuilder

证件

示例值:

func (*PersonInfoBtBuilder) NationalIdNumber added in v3.3.5

func (builder *PersonInfoBtBuilder) NationalIdNumber(nationalIdNumber string) *PersonInfoBtBuilder

居民身份证件号码

示例值:11010000000000

func (*PersonInfoBtBuilder) NationalityId added in v3.4.2

func (builder *PersonInfoBtBuilder) NationalityId(nationalityId string) *PersonInfoBtBuilder

国籍 ID - 可通过[查询国籍信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)查询

示例值:6862995757234914811

func (*PersonInfoBtBuilder) NationalityIdV2 added in v3.3.5

func (builder *PersonInfoBtBuilder) NationalityIdV2(nationalityIdV2 string) *PersonInfoBtBuilder

国籍 ID;- 可通过[查询国籍信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)查询

示例值:6862995757234914821

func (*PersonInfoBtBuilder) NativeRegion added in v3.3.5

func (builder *PersonInfoBtBuilder) NativeRegion(nativeRegion string) *PersonInfoBtBuilder

籍贯 ID;- 可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)获取详情

示例值:6863326262618752111

func (*PersonInfoBtBuilder) PersonId added in v3.3.5

func (builder *PersonInfoBtBuilder) PersonId(personId string) *PersonInfoBtBuilder

个人信息 ID

示例值:6919733936050406926

func (*PersonInfoBtBuilder) PersonalProfile added in v3.3.5

func (builder *PersonInfoBtBuilder) PersonalProfile(personalProfile []*PersonalProfile) *PersonInfoBtBuilder

个人资料附件

示例值:

func (*PersonInfoBtBuilder) PhoneList added in v3.3.5

func (builder *PersonInfoBtBuilder) PhoneList(phoneList []*Phone) *PersonInfoBtBuilder

电话列表

示例值:

func (*PersonInfoBtBuilder) PhoneNumber added in v3.3.5

func (builder *PersonInfoBtBuilder) PhoneNumber(phoneNumber string) *PersonInfoBtBuilder

个人电话;- 该值取自 person_info.phone_list 中满足以下条件的电话; - is_primary: true; - device_type: mobile_phone; - phone_usage: home

示例值:13649211111

func (*PersonInfoBtBuilder) PoliticalAffiliations added in v3.3.5

func (builder *PersonInfoBtBuilder) PoliticalAffiliations(politicalAffiliations []*Enum) *PersonInfoBtBuilder

政治面貌;- 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: ; - custom_api_name:political_affiliation ; - object_api_name:person_info_chn

示例值:

func (*PersonInfoBtBuilder) PreferredEnglishFullName added in v3.3.5

func (builder *PersonInfoBtBuilder) PreferredEnglishFullName(preferredEnglishFullName string) *PersonInfoBtBuilder

常用英文全名

示例值:Henry

func (*PersonInfoBtBuilder) PreferredLocalFullName added in v3.3.5

func (builder *PersonInfoBtBuilder) PreferredLocalFullName(preferredLocalFullName string) *PersonInfoBtBuilder

常用本地全名

示例值:刘梓新

func (*PersonInfoBtBuilder) PreferredName added in v3.3.5

func (builder *PersonInfoBtBuilder) PreferredName(preferredName string) *PersonInfoBtBuilder

常用名

示例值:刘梓新(Henry)

func (*PersonInfoBtBuilder) ProfileImageId added in v3.3.5

func (builder *PersonInfoBtBuilder) ProfileImageId(profileImageId string) *PersonInfoBtBuilder

头像资源的 ID;- 已废弃,请使用 avatar_url

示例值:dfysuc8x76dsfsw

func (*PersonInfoBtBuilder) Race added in v3.3.5

func (builder *PersonInfoBtBuilder) Race(race *Enum) *PersonInfoBtBuilder

-| 民族 / 种族 - 枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person

示例值:

func (*PersonInfoBtBuilder) Religion added in v3.3.5

func (builder *PersonInfoBtBuilder) Religion(religion *Enum) *PersonInfoBtBuilder

-| 宗教信仰 - 可通过[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:person - custom_api_name:religion

示例值:

func (*PersonInfoBtBuilder) ResidentTaxes added in v3.3.5

func (builder *PersonInfoBtBuilder) ResidentTaxes(residentTaxes []*ResidentTax) *PersonInfoBtBuilder

居民身份信息

示例值:6863326262618752123

func (*PersonInfoBtBuilder) TalentId added in v3.3.5

func (builder *PersonInfoBtBuilder) TalentId(talentId string) *PersonInfoBtBuilder

人才 ID;- 可通过[获取人才信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)获取详情

示例值:6863326262618752123

func (*PersonInfoBtBuilder) WorkExperienceList added in v3.3.5

func (builder *PersonInfoBtBuilder) WorkExperienceList(workExperienceList []*WorkExperienceInfo) *PersonInfoBtBuilder

工作经历列表

示例值:

func (*PersonInfoBtBuilder) WorkingYears added in v3.3.5

func (builder *PersonInfoBtBuilder) WorkingYears(workingYears int) *PersonInfoBtBuilder

工龄

示例值:2

func (*PersonInfoBtBuilder) WorkingYearsV2 added in v3.3.5

func (builder *PersonInfoBtBuilder) WorkingYearsV2(workingYearsV2 float64) *PersonInfoBtBuilder

工龄 (浮点)

示例值:2.1

type PersonInfoBuilder

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

func NewPersonInfoBuilder

func NewPersonInfoBuilder() *PersonInfoBuilder

func (*PersonInfoBuilder) AdditionalNationalities added in v3.4.2

func (builder *PersonInfoBuilder) AdditionalNationalities(additionalNationalities []*Nationality) *PersonInfoBuilder

其他国籍

示例值:

func (*PersonInfoBuilder) AddressList

func (builder *PersonInfoBuilder) AddressList(addressList []*Address) *PersonInfoBuilder

地址列表

示例值:

func (*PersonInfoBuilder) Age

func (builder *PersonInfoBuilder) Age(age int) *PersonInfoBuilder

年龄

示例值:22

func (*PersonInfoBuilder) BankAccountList

func (builder *PersonInfoBuilder) BankAccountList(bankAccountList []*BankAccount) *PersonInfoBuilder

银行账户

示例值:

func (*PersonInfoBuilder) BankAccountNumber added in v3.2.8

func (builder *PersonInfoBuilder) BankAccountNumber(bankAccountNumber string) *PersonInfoBuilder

银行卡号

示例值:69928404442626824

func (*PersonInfoBuilder) BornCountryRegion

func (builder *PersonInfoBuilder) BornCountryRegion(bornCountryRegion string) *PersonInfoBuilder

出生国家/地区

示例值:中国

func (*PersonInfoBuilder) Build

func (builder *PersonInfoBuilder) Build() *PersonInfo

func (*PersonInfoBuilder) CitizenshipStatus added in v3.4.2

func (builder *PersonInfoBuilder) CitizenshipStatus(citizenshipStatus []*CitizenshipStatus) *PersonInfoBuilder

公民身份

示例值:

func (*PersonInfoBuilder) CreatedAt added in v3.2.8

func (builder *PersonInfoBuilder) CreatedAt(createdAt string) *PersonInfoBuilder

个人信息 创建时间

示例值:2022-01-02

func (*PersonInfoBuilder) CreatedBy added in v3.2.8

func (builder *PersonInfoBuilder) CreatedBy(createdBy string) *PersonInfoBuilder

个人信息 创建人

示例值:69928404442626824

func (*PersonInfoBuilder) CustomFields

func (builder *PersonInfoBuilder) CustomFields(customFields []*CustomFieldData) *PersonInfoBuilder

自定义字段

示例值:

func (*PersonInfoBuilder) DateEnteredWorkforce

func (builder *PersonInfoBuilder) DateEnteredWorkforce(dateEnteredWorkforce string) *PersonInfoBuilder

参加工作日期

示例值:2020-10-01

func (*PersonInfoBuilder) DateOfBirth

func (builder *PersonInfoBuilder) DateOfBirth(dateOfBirth string) *PersonInfoBuilder

出生日期

示例值:2020-01-01

func (*PersonInfoBuilder) DependentList

func (builder *PersonInfoBuilder) DependentList(dependentList []*Dependent) *PersonInfoBuilder

家庭成员列表

示例值:

func (*PersonInfoBuilder) DisableCardNumber

func (builder *PersonInfoBuilder) DisableCardNumber(disableCardNumber string) *PersonInfoBuilder

残疾证号

示例值:1110000

func (*PersonInfoBuilder) EducationList

func (builder *PersonInfoBuilder) EducationList(educationList []*Education) *PersonInfoBuilder

教育经历列表

示例值:

func (*PersonInfoBuilder) EmailAddress

func (builder *PersonInfoBuilder) EmailAddress(emailAddress string) *PersonInfoBuilder

邮箱地址

示例值:test@163.com

func (*PersonInfoBuilder) EmailList

func (builder *PersonInfoBuilder) EmailList(emailList []*Email) *PersonInfoBuilder

邮箱列表

示例值:

func (*PersonInfoBuilder) EmergencyContactList

func (builder *PersonInfoBuilder) EmergencyContactList(emergencyContactList []*EmergencyContact) *PersonInfoBuilder

紧急联系人列表

示例值:

func (*PersonInfoBuilder) FamilyAddress

func (builder *PersonInfoBuilder) FamilyAddress(familyAddress string) *PersonInfoBuilder

家庭地址

示例值:6863326262618752123

func (*PersonInfoBuilder) FirstEntryTime

func (builder *PersonInfoBuilder) FirstEntryTime(firstEntryTime string) *PersonInfoBuilder

首次入境日期

示例值:2021-01-02

func (*PersonInfoBuilder) FormerEmployer added in v3.2.8

func (builder *PersonInfoBuilder) FormerEmployer(formerEmployer []*I18n) *PersonInfoBuilder

上家公司

示例值:

func (*PersonInfoBuilder) Gender

func (builder *PersonInfoBuilder) Gender(gender *Enum) *PersonInfoBuilder

-| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person

示例值:

func (*PersonInfoBuilder) HighestDegreeOfEducation

func (builder *PersonInfoBuilder) HighestDegreeOfEducation(highestDegreeOfEducation *Education) *PersonInfoBuilder

最高学位教育经历

示例值:

func (*PersonInfoBuilder) HighestLevelOfEducation

func (builder *PersonInfoBuilder) HighestLevelOfEducation(highestLevelOfEducation *Education) *PersonInfoBuilder

最高学历教育经历

示例值:

func (*PersonInfoBuilder) HukouLocation

func (builder *PersonInfoBuilder) HukouLocation(hukouLocation string) *PersonInfoBuilder

户口所在地

示例值:山东省平阴县

func (*PersonInfoBuilder) HukouType

func (builder *PersonInfoBuilder) HukouType(hukouType *Enum) *PersonInfoBuilder

户口类型,枚举值可通过文档【飞书人事枚举常量】户口类型(hukou_type)枚举定义部分获得

示例值:

func (*PersonInfoBuilder) IsDisabled

func (builder *PersonInfoBuilder) IsDisabled(isDisabled bool) *PersonInfoBuilder

是否残疾

示例值:true

func (*PersonInfoBuilder) IsMartyrFamily

func (builder *PersonInfoBuilder) IsMartyrFamily(isMartyrFamily bool) *PersonInfoBuilder

是否烈属

示例值:true

func (*PersonInfoBuilder) IsOldAlone

func (builder *PersonInfoBuilder) IsOldAlone(isOldAlone bool) *PersonInfoBuilder

是否孤老

示例值:true

func (*PersonInfoBuilder) LeaveTime

func (builder *PersonInfoBuilder) LeaveTime(leaveTime string) *PersonInfoBuilder

预计离境日期

示例值:2022-01-02

func (*PersonInfoBuilder) LegalName

func (builder *PersonInfoBuilder) LegalName(legalName string) *PersonInfoBuilder

法定姓名

示例值:张三

func (*PersonInfoBuilder) MaritalStatus

func (builder *PersonInfoBuilder) MaritalStatus(maritalStatus *Enum) *PersonInfoBuilder

-| 婚姻状况,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person

示例值:

func (*PersonInfoBuilder) MartyrCardNumber

func (builder *PersonInfoBuilder) MartyrCardNumber(martyrCardNumber string) *PersonInfoBuilder

烈属证号

示例值:1110000

func (*PersonInfoBuilder) NameList

func (builder *PersonInfoBuilder) NameList(nameList []*PersonName) *PersonInfoBuilder

姓名列表

示例值:

func (*PersonInfoBuilder) NationalIdList

func (builder *PersonInfoBuilder) NationalIdList(nationalIdList []*NationalId) *PersonInfoBuilder

证件

示例值:

func (*PersonInfoBuilder) NationalIdNumber

func (builder *PersonInfoBuilder) NationalIdNumber(nationalIdNumber string) *PersonInfoBuilder

居民身份证件号码

示例值:11010000000000

func (*PersonInfoBuilder) NationalityId added in v3.4.2

func (builder *PersonInfoBuilder) NationalityId(nationalityId string) *PersonInfoBuilder

国籍 ID ,国籍数据可通过【查询国家/地区信息】接口获取

示例值:6862995757234914811

func (*PersonInfoBuilder) NationalityIdV2 added in v3.1.2

func (builder *PersonInfoBuilder) NationalityIdV2(nationalityIdV2 string) *PersonInfoBuilder

国籍 ID,可通过【查询国籍信息】接口查询

示例值:6862995757234914821

func (*PersonInfoBuilder) NativeRegion

func (builder *PersonInfoBuilder) NativeRegion(nativeRegion string) *PersonInfoBuilder

籍贯 ID

示例值:6863326262618752111

func (*PersonInfoBuilder) PassportNumber added in v3.2.8

func (builder *PersonInfoBuilder) PassportNumber(passportNumber string) *PersonInfoBuilder

护照号码

示例值:6919733936050406926

func (*PersonInfoBuilder) PersonId

func (builder *PersonInfoBuilder) PersonId(personId string) *PersonInfoBuilder

个人信息 ID

示例值:6919733936050406926

func (*PersonInfoBuilder) PersonInfoChns

func (builder *PersonInfoBuilder) PersonInfoChns(personInfoChns []*PersonInfoChn) *PersonInfoBuilder

个人附加信息

示例值:6863326262618752123

func (*PersonInfoBuilder) PersonalProfile

func (builder *PersonInfoBuilder) PersonalProfile(personalProfile []*PersonalProfile) *PersonInfoBuilder

个人资料附件

示例值:

func (*PersonInfoBuilder) PhoneList

func (builder *PersonInfoBuilder) PhoneList(phoneList []*Phone) *PersonInfoBuilder

电话列表,只有当满足下面所有条件时,电话在个人信息页才可见

示例值:

func (*PersonInfoBuilder) PhoneNumber

func (builder *PersonInfoBuilder) PhoneNumber(phoneNumber string) *PersonInfoBuilder

个人电话

示例值:13649211111

func (*PersonInfoBuilder) PoliticalAffiliations added in v3.2.3

func (builder *PersonInfoBuilder) PoliticalAffiliations(politicalAffiliations []*Enum) *PersonInfoBuilder

政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn

示例值:

func (*PersonInfoBuilder) PreferredEnglishFullName

func (builder *PersonInfoBuilder) PreferredEnglishFullName(preferredEnglishFullName string) *PersonInfoBuilder

常用英文全名

示例值:Henry

func (*PersonInfoBuilder) PreferredLocalFullName

func (builder *PersonInfoBuilder) PreferredLocalFullName(preferredLocalFullName string) *PersonInfoBuilder

常用本地全名

示例值:刘梓新

func (*PersonInfoBuilder) PreferredName

func (builder *PersonInfoBuilder) PreferredName(preferredName string) *PersonInfoBuilder

常用名

示例值:刘梓新(Henry)

func (*PersonInfoBuilder) ProfileImageId

func (builder *PersonInfoBuilder) ProfileImageId(profileImageId string) *PersonInfoBuilder

头像资源的 ID

示例值:dfysuc8x76dsfsw

func (*PersonInfoBuilder) Race

func (builder *PersonInfoBuilder) Race(race *Enum) *PersonInfoBuilder

-| 民族 / 种族,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person

示例值:

func (*PersonInfoBuilder) Religion

func (builder *PersonInfoBuilder) Religion(religion *Enum) *PersonInfoBuilder

-| 宗教信仰,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name:person - custom_api_name:religion

示例值:

func (*PersonInfoBuilder) ResidentTaxes

func (builder *PersonInfoBuilder) ResidentTaxes(residentTaxes []*ResidentTax) *PersonInfoBuilder

居民身份信息

示例值:6863326262618752123

func (*PersonInfoBuilder) TalentId

func (builder *PersonInfoBuilder) TalentId(talentId string) *PersonInfoBuilder

人才 ID

示例值:6863326262618752123

func (*PersonInfoBuilder) UpdatedAt added in v3.2.8

func (builder *PersonInfoBuilder) UpdatedAt(updatedAt string) *PersonInfoBuilder

个人信息 更新时间

示例值:2022-01-02

func (*PersonInfoBuilder) UpdatedBy added in v3.2.8

func (builder *PersonInfoBuilder) UpdatedBy(updatedBy string) *PersonInfoBuilder

个人信息 更新人

示例值:69928404442626824

func (*PersonInfoBuilder) WorkExperienceList

func (builder *PersonInfoBuilder) WorkExperienceList(workExperienceList []*WorkExperienceInfo) *PersonInfoBuilder

工作经历列表

示例值:

func (*PersonInfoBuilder) WorkingYears

func (builder *PersonInfoBuilder) WorkingYears(workingYears int) *PersonInfoBuilder

工龄

示例值:2

func (*PersonInfoBuilder) WorkingYearsV2 added in v3.2.8

func (builder *PersonInfoBuilder) WorkingYearsV2(workingYearsV2 float64) *PersonInfoBuilder

工龄 浮点类型

示例值:2.1

type PersonInfoChn

type PersonInfoChn struct {
	NativeRegion *string `json:"native_region,omitempty"` // 籍贯 ID

	HukouType *Enum `json:"hukou_type,omitempty"` // -| 户口类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:hukou_type - object_api_name:person_info_chn

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地

	FirstEntryTime *string `json:"first_entry_time,omitempty"` // 首次入境日期

	LeaveTime *string `json:"leave_time,omitempty"` // 预计离境日期

	PoliticalAffiliations []*Enum `json:"political_affiliations,omitempty"` // 政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn
}

type PersonInfoChnBuilder

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

func NewPersonInfoChnBuilder

func NewPersonInfoChnBuilder() *PersonInfoChnBuilder

func (*PersonInfoChnBuilder) Build

func (builder *PersonInfoChnBuilder) Build() *PersonInfoChn

func (*PersonInfoChnBuilder) FirstEntryTime

func (builder *PersonInfoChnBuilder) FirstEntryTime(firstEntryTime string) *PersonInfoChnBuilder

首次入境日期

示例值:2023-07-09

func (*PersonInfoChnBuilder) HukouLocation

func (builder *PersonInfoChnBuilder) HukouLocation(hukouLocation string) *PersonInfoChnBuilder

户口所在地

示例值:山东省平阴县

func (*PersonInfoChnBuilder) HukouType

func (builder *PersonInfoChnBuilder) HukouType(hukouType *Enum) *PersonInfoChnBuilder

-| 户口类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:hukou_type - object_api_name:person_info_chn

示例值:

func (*PersonInfoChnBuilder) LeaveTime

func (builder *PersonInfoChnBuilder) LeaveTime(leaveTime string) *PersonInfoChnBuilder

预计离境日期

示例值:2023-07-09

func (*PersonInfoChnBuilder) NativeRegion

func (builder *PersonInfoChnBuilder) NativeRegion(nativeRegion string) *PersonInfoChnBuilder

籍贯 ID

示例值:6863326262618752111

func (*PersonInfoChnBuilder) PoliticalAffiliations added in v3.2.5

func (builder *PersonInfoChnBuilder) PoliticalAffiliations(politicalAffiliations []*Enum) *PersonInfoChnBuilder

政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn

示例值:

type PersonName

type PersonName struct {
	LocalPrimary *string `json:"local_primary,omitempty"` // 姓 - 本地文字

	LocalFirstName *string `json:"local_first_name,omitempty"` // 名 - 本地文字

	CountryRegionId *string `json:"country_region_id,omitempty"` // 国家 / 地区;- 详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

	NameType *Enum `json:"name_type,omitempty"` // 姓名类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:person_name;  - custom_api_name:name_type

	LocalFirstName2 *string `json:"local_first_name_2,omitempty"` // 名 - 第二本地文字

	LocalPrimary2 *string `json:"local_primary_2,omitempty"` // 姓 - 第二本地文字

	AdditionalNameType *Enum `json:"additional_name_type,omitempty"` // 补充姓名类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:person_name;  - custom_api_name:additional_name_type

	FirstName *string `json:"first_name,omitempty"` // 名

	FullName *string `json:"full_name,omitempty"` // 全名

	Hereditary *string `json:"hereditary,omitempty"` // 姓氏称谓

	CustomName *string `json:"custom_name,omitempty"` // 自定义姓名(未传入时,姓名将默认根据所属国家 / 地区规则对相关姓、名字段拼接)

	CustomLocalName *string `json:"custom_local_name,omitempty"` // 本地文字的自定义姓名(未传入时,本地文字的姓名将默认根据所属国家 / 地区规则对本地文字的相关姓、名字段拼接)

	MiddleName *string `json:"middle_name,omitempty"` // 中间名

	NamePrimary *string `json:"name_primary,omitempty"` // 姓

	Secondary *string `json:"secondary,omitempty"` // 第二姓氏

	Tertiary *string `json:"tertiary,omitempty"` // 婚后姓氏

	Social *Enum `json:"social,omitempty"` // 尊称;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:person_name;  - custom_api_name:social

	Title *Enum `json:"title,omitempty"` // 头衔;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:person_name;  - custom_api_name:title

	LocalMiddleName *string `json:"local_middle_name,omitempty"` // 本地中间名

	LocalSecondary *string `json:"local_secondary,omitempty"` // 第二姓氏 - 本地文字

	DisplayNameLocalAndWesternScript *string `json:"display_name_local_and_western_script,omitempty"` // 展示姓名(本地和西方文字)

	DisplayNameLocalScript *string `json:"display_name_local_script,omitempty"` // 展示姓名(本地文字)

	DisplayNameWesternScript *string `json:"display_name_western_script,omitempty"` // 展示姓名(西方文字)
}

type PersonNameBuilder

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

func NewPersonNameBuilder

func NewPersonNameBuilder() *PersonNameBuilder

func (*PersonNameBuilder) AdditionalNameType

func (builder *PersonNameBuilder) AdditionalNameType(additionalNameType *Enum) *PersonNameBuilder

补充姓名类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:person_name; - custom_api_name:additional_name_type

示例值:

func (*PersonNameBuilder) Build

func (builder *PersonNameBuilder) Build() *PersonName

func (*PersonNameBuilder) CountryRegionId

func (builder *PersonNameBuilder) CountryRegionId(countryRegionId string) *PersonNameBuilder

国家 / 地区;- 详细信息可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口查询获得

示例值:6862995757234914824

func (*PersonNameBuilder) CustomLocalName

func (builder *PersonNameBuilder) CustomLocalName(customLocalName string) *PersonNameBuilder

本地文字的自定义姓名(未传入时,本地文字的姓名将默认根据所属国家 / 地区规则对本地文字的相关姓、名字段拼接)

示例值:王大帅

func (*PersonNameBuilder) CustomName

func (builder *PersonNameBuilder) CustomName(customName string) *PersonNameBuilder

自定义姓名(未传入时,姓名将默认根据所属国家 / 地区规则对相关姓、名字段拼接)

示例值:王大帅

func (*PersonNameBuilder) DisplayNameLocalAndWesternScript

func (builder *PersonNameBuilder) DisplayNameLocalAndWesternScript(displayNameLocalAndWesternScript string) *PersonNameBuilder

展示姓名(本地和西方文字)

示例值:王大帅

func (*PersonNameBuilder) DisplayNameLocalScript

func (builder *PersonNameBuilder) DisplayNameLocalScript(displayNameLocalScript string) *PersonNameBuilder

展示姓名(本地文字)

示例值:王大帅

func (*PersonNameBuilder) DisplayNameWesternScript

func (builder *PersonNameBuilder) DisplayNameWesternScript(displayNameWesternScript string) *PersonNameBuilder

展示姓名(西方文字)

示例值:王大帅

func (*PersonNameBuilder) FirstName

func (builder *PersonNameBuilder) FirstName(firstName string) *PersonNameBuilder

示例值:帅

func (*PersonNameBuilder) FullName

func (builder *PersonNameBuilder) FullName(fullName string) *PersonNameBuilder

全名

示例值:王大帅

func (*PersonNameBuilder) Hereditary

func (builder *PersonNameBuilder) Hereditary(hereditary string) *PersonNameBuilder

姓氏称谓

示例值:王

func (*PersonNameBuilder) LocalFirstName

func (builder *PersonNameBuilder) LocalFirstName(localFirstName string) *PersonNameBuilder

名 - 本地文字

示例值:四

func (*PersonNameBuilder) LocalFirstName2

func (builder *PersonNameBuilder) LocalFirstName2(localFirstName2 string) *PersonNameBuilder

名 - 第二本地文字

示例值:五

func (*PersonNameBuilder) LocalMiddleName

func (builder *PersonNameBuilder) LocalMiddleName(localMiddleName string) *PersonNameBuilder

本地中间名

示例值:大

func (*PersonNameBuilder) LocalPrimary

func (builder *PersonNameBuilder) LocalPrimary(localPrimary string) *PersonNameBuilder

姓 - 本地文字

示例值:黄

func (*PersonNameBuilder) LocalPrimary2

func (builder *PersonNameBuilder) LocalPrimary2(localPrimary2 string) *PersonNameBuilder

姓 - 第二本地文字

示例值:王

func (*PersonNameBuilder) LocalSecondary

func (builder *PersonNameBuilder) LocalSecondary(localSecondary string) *PersonNameBuilder

第二姓氏 - 本地文字

示例值:王

func (*PersonNameBuilder) MiddleName

func (builder *PersonNameBuilder) MiddleName(middleName string) *PersonNameBuilder

中间名

示例值:大

func (*PersonNameBuilder) NamePrimary

func (builder *PersonNameBuilder) NamePrimary(namePrimary string) *PersonNameBuilder

示例值:王

func (*PersonNameBuilder) NameType

func (builder *PersonNameBuilder) NameType(nameType *Enum) *PersonNameBuilder

姓名类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:person_name; - custom_api_name:name_type

示例值:

func (*PersonNameBuilder) Secondary

func (builder *PersonNameBuilder) Secondary(secondary string) *PersonNameBuilder

第二姓氏

示例值:王

func (*PersonNameBuilder) Social

func (builder *PersonNameBuilder) Social(social *Enum) *PersonNameBuilder

尊称;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:person_name; - custom_api_name:social

示例值:王大帅

func (*PersonNameBuilder) Tertiary

func (builder *PersonNameBuilder) Tertiary(tertiary string) *PersonNameBuilder

婚后姓氏

示例值:王

func (*PersonNameBuilder) Title

func (builder *PersonNameBuilder) Title(title *Enum) *PersonNameBuilder

头衔;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:person_name; - custom_api_name:title

示例值:王

type PersonalProfile

type PersonalProfile struct {
	PersonalProfileId *string `json:"personal_profile_id,omitempty"` // 个人资料 ID

	PersonalProfileType *Enum `json:"personal_profile_type,omitempty"` // 资料类型

	Files []*File `json:"files,omitempty"` // 上传文件列表
}

type PersonalProfileBuilder

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

func NewPersonalProfileBuilder

func NewPersonalProfileBuilder() *PersonalProfileBuilder

func (*PersonalProfileBuilder) Build

func (builder *PersonalProfileBuilder) Build() *PersonalProfile

func (*PersonalProfileBuilder) Files

func (builder *PersonalProfileBuilder) Files(files []*File) *PersonalProfileBuilder

上传文件列表

示例值:

func (*PersonalProfileBuilder) PersonalProfileId

func (builder *PersonalProfileBuilder) PersonalProfileId(personalProfileId string) *PersonalProfileBuilder

个人资料 ID

示例值:150018109586e8ea745e47ae8feb3722dbe1d03a181336393633393133303431393831343930373235150200

func (*PersonalProfileBuilder) PersonalProfileType

func (builder *PersonalProfileBuilder) PersonalProfileType(personalProfileType *Enum) *PersonalProfileBuilder

资料类型

示例值:

type PersonalProfileForUpdate added in v3.2.8

type PersonalProfileForUpdate struct {
	PersonalProfileType *string `json:"personal_profile_type,omitempty"` // 资料类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "personal_profile" - custom_api_name = "profile_type"

	Files []*File `json:"files,omitempty"` // 资料文件列表
}

type PersonalProfileForUpdateBuilder added in v3.2.8

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

func NewPersonalProfileForUpdateBuilder added in v3.2.8

func NewPersonalProfileForUpdateBuilder() *PersonalProfileForUpdateBuilder

func (*PersonalProfileForUpdateBuilder) Build added in v3.2.8

func (*PersonalProfileForUpdateBuilder) Files added in v3.2.8

资料文件列表

示例值:

func (*PersonalProfileForUpdateBuilder) PersonalProfileType added in v3.2.8

func (builder *PersonalProfileForUpdateBuilder) PersonalProfileType(personalProfileType string) *PersonalProfileForUpdateBuilder

资料类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可:- object_api_name = "personal_profile" - custom_api_name = "profile_type"

示例值:1

type Phone

type Phone struct {
	InternationalAreaCode *Enum `json:"international_area_code,omitempty"` // 国家区号

	PhoneNumber *string `json:"phone_number,omitempty"` // 电话号码

	FormattedPhoneNumber *string `json:"formatted_phone_number,omitempty"` // 完整电话号码

	DeviceType *Enum `json:"device_type,omitempty"` // 设备类型

	PhoneUsage *Enum `json:"phone_usage,omitempty"` // 电话用途

	IsPrimary *bool `json:"is_primary,omitempty"` // 主要电话

	IsPublic *bool `json:"is_public,omitempty"` // 公开电话
}

type PhoneBuilder

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

func NewPhoneBuilder

func NewPhoneBuilder() *PhoneBuilder

func (*PhoneBuilder) Build

func (builder *PhoneBuilder) Build() *Phone

func (*PhoneBuilder) DeviceType

func (builder *PhoneBuilder) DeviceType(deviceType *Enum) *PhoneBuilder

设备类型

示例值:

func (*PhoneBuilder) FormattedPhoneNumber

func (builder *PhoneBuilder) FormattedPhoneNumber(formattedPhoneNumber string) *PhoneBuilder

完整电话号码

示例值:+86 010-12345678

func (*PhoneBuilder) InternationalAreaCode

func (builder *PhoneBuilder) InternationalAreaCode(internationalAreaCode *Enum) *PhoneBuilder

国家区号

示例值:

func (*PhoneBuilder) IsPrimary

func (builder *PhoneBuilder) IsPrimary(isPrimary bool) *PhoneBuilder

主要电话

示例值:true

func (*PhoneBuilder) IsPublic

func (builder *PhoneBuilder) IsPublic(isPublic bool) *PhoneBuilder

公开电话

示例值:true

func (*PhoneBuilder) PhoneNumber

func (builder *PhoneBuilder) PhoneNumber(phoneNumber string) *PhoneBuilder

电话号码

示例值:010-12345678

func (*PhoneBuilder) PhoneUsage

func (builder *PhoneBuilder) PhoneUsage(phoneUsage *Enum) *PhoneBuilder

电话用途

示例值:

type PhoneForUpdate added in v3.2.3

type PhoneForUpdate struct {
	InternationalAreaCode *string `json:"international_area_code,omitempty"` // 国家区号,枚举值

	PhoneNumber *string `json:"phone_number,omitempty"` // 电话号码

	DeviceType *string `json:"device_type,omitempty"` // 设备类型,枚举值

	PhoneUsage *string `json:"phone_usage,omitempty"` // 电话用途,枚举值

	IsPrimary *bool `json:"is_primary,omitempty"` // 主要电话,若有多个电话,只能有一个电话的「is_primary」为true

	IsPublic *bool `json:"is_public,omitempty"` // 公开电话
}

type PhoneForUpdateBuilder added in v3.2.3

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

func NewPhoneForUpdateBuilder added in v3.2.3

func NewPhoneForUpdateBuilder() *PhoneForUpdateBuilder

func (*PhoneForUpdateBuilder) Build added in v3.2.3

func (builder *PhoneForUpdateBuilder) Build() *PhoneForUpdate

func (*PhoneForUpdateBuilder) DeviceType added in v3.2.3

func (builder *PhoneForUpdateBuilder) DeviceType(deviceType string) *PhoneForUpdateBuilder

设备类型,枚举值

示例值:mobile_phone

func (*PhoneForUpdateBuilder) InternationalAreaCode added in v3.2.3

func (builder *PhoneForUpdateBuilder) InternationalAreaCode(internationalAreaCode string) *PhoneForUpdateBuilder

国家区号,枚举值

示例值:86_china

func (*PhoneForUpdateBuilder) IsPrimary added in v3.2.3

func (builder *PhoneForUpdateBuilder) IsPrimary(isPrimary bool) *PhoneForUpdateBuilder

主要电话,若有多个电话,只能有一个电话的「is_primary」为true

示例值:true

func (*PhoneForUpdateBuilder) IsPublic added in v3.2.3

func (builder *PhoneForUpdateBuilder) IsPublic(isPublic bool) *PhoneForUpdateBuilder

公开电话

示例值:true

func (*PhoneForUpdateBuilder) PhoneNumber added in v3.2.3

func (builder *PhoneForUpdateBuilder) PhoneNumber(phoneNumber string) *PhoneForUpdateBuilder

电话号码

示例值:010-12345678

func (*PhoneForUpdateBuilder) PhoneUsage added in v3.2.3

func (builder *PhoneForUpdateBuilder) PhoneUsage(phoneUsage string) *PhoneForUpdateBuilder

电话用途,枚举值

示例值:home

type PhoneNumberAndAreaCode

type PhoneNumberAndAreaCode struct {
	AreaCode *Enum `json:"area_code,omitempty"` // 区号

	PhoneNumber *string `json:"phone_number,omitempty"` // 号码
}

type PhoneNumberAndAreaCodeBuilder

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

func NewPhoneNumberAndAreaCodeBuilder

func NewPhoneNumberAndAreaCodeBuilder() *PhoneNumberAndAreaCodeBuilder

func (*PhoneNumberAndAreaCodeBuilder) AreaCode

区号

示例值:123123

func (*PhoneNumberAndAreaCodeBuilder) Build

func (*PhoneNumberAndAreaCodeBuilder) PhoneNumber

func (builder *PhoneNumberAndAreaCodeBuilder) PhoneNumber(phoneNumber string) *PhoneNumberAndAreaCodeBuilder

号码

示例值:213213

type Position added in v3.2.8

type Position struct {
	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	Active *bool `json:"active,omitempty"` // 状态

	JobFamilyIdList []string `json:"job_family_id_list,omitempty"` // 序列

	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心

	JobId *string `json:"job_id,omitempty"` // 职务

	JobLevelIdList []string `json:"job_level_id_list,omitempty"` // 职级

	EmployeeTypeIdList []string `json:"employee_type_id_list,omitempty"` // 人员类型

	JobGradeIdList []string `json:"job_grade_id_list,omitempty"` // 职等

	WorkLocationIdList []string `json:"work_location_id_list,omitempty"` // 工作地点

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度

	DepartmentId *string `json:"department_id,omitempty"` // 部门

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属上级岗位

	DottedLineLeaderId *string `json:"dotted_line_leader_id,omitempty"` // 虚线上级岗位

	IsKeyPosition *bool `json:"is_key_position,omitempty"` // 是否关键岗位

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效日期

	ExpirationTime *string `json:"expiration_time,omitempty"` // 失效日期

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type PositionAdjustmentInfo added in v3.3.4

type PositionAdjustmentInfo struct {
	OriginalJobFamilies []string `json:"original_job_families,omitempty"` // 原序列 ID

	TargetJobFamilies []string `json:"target_job_families,omitempty"` // 新序列 ID

	OriginalDepartment *string `json:"original_department,omitempty"` // 原所属部门 ID

	TargetDepartment *string `json:"target_department,omitempty"` // 新所属部门 ID

	TargetDraftDepartment *string `json:"target_draft_department,omitempty"` // 新所属部门 ID,新建部门审批完成前会返回 td_xxx 的临时 ID

	OriginalCostCenter *string `json:"original_cost_center,omitempty"` // 原岗位默认成本中心 ID

	TargetCostCenter *string `json:"target_cost_center,omitempty"` // 新岗位默认成本中心 ID

	OriginalWorkingHoursType *string `json:"original_working_hours_type,omitempty"` // 原工时制度 ID

	TargetWorkingHoursType *string `json:"target_working_hours_type,omitempty"` // 新工时制度 ID

	OriginalJob *string `json:"original_job,omitempty"` // 原职务 ID

	TargetJob *string `json:"target_job,omitempty"` // 新职务 ID

	OriginalIsKeyPosition *bool `json:"original_is_key_position,omitempty"` // 原是否关键岗位

	TargetIsKeyPosition *bool `json:"target_is_key_position,omitempty"` // 新是否关键岗位

	OriginalEmployeeTypes []string `json:"original_employee_types,omitempty"` // 原人员类型 ID

	TargetEmployeeTypes []string `json:"target_employee_types,omitempty"` // 新人员类型 ID

	OriginalNames []*I18n `json:"original_names,omitempty"` // 原名称

	TargetNames []*I18n `json:"target_names,omitempty"` // 新名称

	OriginalJobGrades []string `json:"original_job_grades,omitempty"` // 原职等 ID

	TargetJobGrades []string `json:"target_job_grades,omitempty"` // 新职等 ID

	OriginalCode *string `json:"original_code,omitempty"` // 原编码

	TargetCode *string `json:"target_code,omitempty"` // 新编码

	OriginalJobLevels []string `json:"original_job_levels,omitempty"` // 原职级 ID

	TargetJobLevels []string `json:"target_job_levels,omitempty"` // 新职级 ID

	OriginalActive *bool `json:"original_active,omitempty"` // 原状态

	TargetActive *bool `json:"target_active,omitempty"` // 新状态

	OriginalDirectLeader *string `json:"original_direct_leader,omitempty"` // 原直线上级(岗位) ID

	TargetDirectLeader *string `json:"target_direct_leader,omitempty"` // 新直线上级(岗位) ID

	TargetDraftDirectLeader *string `json:"target_draft_direct_leader,omitempty"` // 新直线上级(岗位) ID,新建岗位审批完成前会返回 td_xxx 的临时 ID

	OriginalWorkLocations []string `json:"original_work_locations,omitempty"` // 原工作地点 ID

	TargetWorkLocations []string `json:"target_work_locations,omitempty"` // 新工作地点 ID

	OriginalDescriptions []*I18n `json:"original_descriptions,omitempty"` // 原描述

	TargetDescriptions []*I18n `json:"target_descriptions,omitempty"` // 新描述

	OriginalDepartmentIdPaths []*OrgdraftDepartmentId `json:"original_department_id_paths,omitempty"` // 原部门全路径,从根部门开始自上而下返回部门 ID 列表

	TargetDepartmentIdPaths []*OrgdraftDepartmentId `json:"target_department_id_paths,omitempty"` // 新部门全路径,从根部门开始自上而下返回部门 ID 列表

	CustomFields []*ChangeFieldPair `json:"custom_fields,omitempty"` // 自定义字段
}

type PositionAdjustmentInfoBuilder added in v3.3.4

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

func NewPositionAdjustmentInfoBuilder added in v3.3.4

func NewPositionAdjustmentInfoBuilder() *PositionAdjustmentInfoBuilder

func (*PositionAdjustmentInfoBuilder) Build added in v3.3.4

func (*PositionAdjustmentInfoBuilder) CustomFields added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) CustomFields(customFields []*ChangeFieldPair) *PositionAdjustmentInfoBuilder

自定义字段

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalActive added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalActive(originalActive bool) *PositionAdjustmentInfoBuilder

原状态

示例值:true

func (*PositionAdjustmentInfoBuilder) OriginalCode added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalCode(originalCode string) *PositionAdjustmentInfoBuilder

原编码

示例值:P00000456

func (*PositionAdjustmentInfoBuilder) OriginalCostCenter added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalCostCenter(originalCostCenter string) *PositionAdjustmentInfoBuilder

原岗位默认成本中心 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) OriginalDepartment added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalDepartment(originalDepartment string) *PositionAdjustmentInfoBuilder

原所属部门 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) OriginalDepartmentIdPaths added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalDepartmentIdPaths(originalDepartmentIdPaths []*OrgdraftDepartmentId) *PositionAdjustmentInfoBuilder

原部门全路径,从根部门开始自上而下返回部门 ID 列表

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalDescriptions added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalDescriptions(originalDescriptions []*I18n) *PositionAdjustmentInfoBuilder

原描述

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalDirectLeader added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalDirectLeader(originalDirectLeader string) *PositionAdjustmentInfoBuilder

原直线上级(岗位) ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) OriginalEmployeeTypes added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalEmployeeTypes(originalEmployeeTypes []string) *PositionAdjustmentInfoBuilder

原人员类型 ID

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalIsKeyPosition added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalIsKeyPosition(originalIsKeyPosition bool) *PositionAdjustmentInfoBuilder

原是否关键岗位

示例值:true

func (*PositionAdjustmentInfoBuilder) OriginalJob added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalJob(originalJob string) *PositionAdjustmentInfoBuilder

原职务 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) OriginalJobFamilies added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalJobFamilies(originalJobFamilies []string) *PositionAdjustmentInfoBuilder

原序列 ID

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalJobGrades added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalJobGrades(originalJobGrades []string) *PositionAdjustmentInfoBuilder

原职等 ID

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalJobLevels added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalJobLevels(originalJobLevels []string) *PositionAdjustmentInfoBuilder

原职级 ID

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalNames added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalNames(originalNames []*I18n) *PositionAdjustmentInfoBuilder

原名称

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalWorkLocations added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalWorkLocations(originalWorkLocations []string) *PositionAdjustmentInfoBuilder

原工作地点 ID

示例值:

func (*PositionAdjustmentInfoBuilder) OriginalWorkingHoursType added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) OriginalWorkingHoursType(originalWorkingHoursType string) *PositionAdjustmentInfoBuilder

原工时制度 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetActive added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetActive(targetActive bool) *PositionAdjustmentInfoBuilder

新状态

示例值:true

func (*PositionAdjustmentInfoBuilder) TargetCode added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetCode(targetCode string) *PositionAdjustmentInfoBuilder

新编码

示例值:P00000456

func (*PositionAdjustmentInfoBuilder) TargetCostCenter added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetCostCenter(targetCostCenter string) *PositionAdjustmentInfoBuilder

新岗位默认成本中心 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetDepartment added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDepartment(targetDepartment string) *PositionAdjustmentInfoBuilder

新所属部门 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetDepartmentIdPaths added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDepartmentIdPaths(targetDepartmentIdPaths []*OrgdraftDepartmentId) *PositionAdjustmentInfoBuilder

新部门全路径,从根部门开始自上而下返回部门 ID 列表

示例值:

func (*PositionAdjustmentInfoBuilder) TargetDescriptions added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDescriptions(targetDescriptions []*I18n) *PositionAdjustmentInfoBuilder

新描述

示例值:

func (*PositionAdjustmentInfoBuilder) TargetDirectLeader added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDirectLeader(targetDirectLeader string) *PositionAdjustmentInfoBuilder

新直线上级(岗位) ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetDraftDepartment added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDraftDepartment(targetDraftDepartment string) *PositionAdjustmentInfoBuilder

新所属部门 ID,新建部门审批完成前会返回 td_xxx 的临时 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetDraftDirectLeader added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetDraftDirectLeader(targetDraftDirectLeader string) *PositionAdjustmentInfoBuilder

新直线上级(岗位) ID,新建岗位审批完成前会返回 td_xxx 的临时 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetEmployeeTypes added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetEmployeeTypes(targetEmployeeTypes []string) *PositionAdjustmentInfoBuilder

新人员类型 ID

示例值:

func (*PositionAdjustmentInfoBuilder) TargetIsKeyPosition added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetIsKeyPosition(targetIsKeyPosition bool) *PositionAdjustmentInfoBuilder

新是否关键岗位

示例值:true

func (*PositionAdjustmentInfoBuilder) TargetJob added in v3.3.4

新职务 ID

示例值:6974659700705068581

func (*PositionAdjustmentInfoBuilder) TargetJobFamilies added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetJobFamilies(targetJobFamilies []string) *PositionAdjustmentInfoBuilder

新序列 ID

示例值:

func (*PositionAdjustmentInfoBuilder) TargetJobGrades added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetJobGrades(targetJobGrades []string) *PositionAdjustmentInfoBuilder

新职等 ID

示例值:

func (*PositionAdjustmentInfoBuilder) TargetJobLevels added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetJobLevels(targetJobLevels []string) *PositionAdjustmentInfoBuilder

新职级 ID

示例值:

func (*PositionAdjustmentInfoBuilder) TargetNames added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetNames(targetNames []*I18n) *PositionAdjustmentInfoBuilder

新名称

示例值:

func (*PositionAdjustmentInfoBuilder) TargetWorkLocations added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetWorkLocations(targetWorkLocations []string) *PositionAdjustmentInfoBuilder

新工作地点 ID

示例值:

func (*PositionAdjustmentInfoBuilder) TargetWorkingHoursType added in v3.3.4

func (builder *PositionAdjustmentInfoBuilder) TargetWorkingHoursType(targetWorkingHoursType string) *PositionAdjustmentInfoBuilder

新工时制度 ID

示例值:6974659700705068581

type PositionBuilder added in v3.2.8

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

func NewPositionBuilder added in v3.2.8

func NewPositionBuilder() *PositionBuilder

func (*PositionBuilder) Active added in v3.2.8

func (builder *PositionBuilder) Active(active bool) *PositionBuilder

状态

示例值:true

func (*PositionBuilder) Build added in v3.2.8

func (builder *PositionBuilder) Build() *Position

func (*PositionBuilder) Code added in v3.2.8

func (builder *PositionBuilder) Code(code string) *PositionBuilder

编码

示例值:A01234

func (*PositionBuilder) CostCenterId added in v3.2.8

func (builder *PositionBuilder) CostCenterId(costCenterId string) *PositionBuilder

成本中心

示例值:4719519211875096301

func (*PositionBuilder) CustomFields added in v3.2.8

func (builder *PositionBuilder) CustomFields(customFields []*CustomFieldData) *PositionBuilder

自定义字段

示例值:

func (*PositionBuilder) DepartmentId added in v3.2.8

func (builder *PositionBuilder) DepartmentId(departmentId string) *PositionBuilder

部门

示例值:4719519211875096301

func (*PositionBuilder) Descriptions added in v3.2.8

func (builder *PositionBuilder) Descriptions(descriptions []*I18n) *PositionBuilder

描述

示例值:

func (*PositionBuilder) DirectLeaderId added in v3.2.8

func (builder *PositionBuilder) DirectLeaderId(directLeaderId string) *PositionBuilder

直属上级岗位

示例值:4719519211875096301

func (*PositionBuilder) DottedLineLeaderId added in v3.2.8

func (builder *PositionBuilder) DottedLineLeaderId(dottedLineLeaderId string) *PositionBuilder

虚线上级岗位

示例值:4719519211875096301

func (*PositionBuilder) EffectiveTime added in v3.2.8

func (builder *PositionBuilder) EffectiveTime(effectiveTime string) *PositionBuilder

生效日期

示例值:2020-05-01

func (*PositionBuilder) EmployeeTypeIdList added in v3.2.8

func (builder *PositionBuilder) EmployeeTypeIdList(employeeTypeIdList []string) *PositionBuilder

人员类型

示例值:

func (*PositionBuilder) ExpirationTime added in v3.2.8

func (builder *PositionBuilder) ExpirationTime(expirationTime string) *PositionBuilder

失效日期

示例值:2020-05-01

func (*PositionBuilder) IsKeyPosition added in v3.2.8

func (builder *PositionBuilder) IsKeyPosition(isKeyPosition bool) *PositionBuilder

是否关键岗位

示例值:true

func (*PositionBuilder) JobFamilyIdList added in v3.2.8

func (builder *PositionBuilder) JobFamilyIdList(jobFamilyIdList []string) *PositionBuilder

序列

示例值:

func (*PositionBuilder) JobGradeIdList added in v3.2.8

func (builder *PositionBuilder) JobGradeIdList(jobGradeIdList []string) *PositionBuilder

职等

示例值:

func (*PositionBuilder) JobId added in v3.2.8

func (builder *PositionBuilder) JobId(jobId string) *PositionBuilder

职务

示例值:4719519211875096302

func (*PositionBuilder) JobLevelIdList added in v3.2.8

func (builder *PositionBuilder) JobLevelIdList(jobLevelIdList []string) *PositionBuilder

职级

示例值:

func (*PositionBuilder) Names added in v3.2.8

func (builder *PositionBuilder) Names(names []*I18n) *PositionBuilder

名称

示例值:

func (*PositionBuilder) PositionId added in v3.2.8

func (builder *PositionBuilder) PositionId(positionId string) *PositionBuilder

岗位 ID

示例值:4692446793125560154

func (*PositionBuilder) WorkLocationIdList added in v3.2.8

func (builder *PositionBuilder) WorkLocationIdList(workLocationIdList []string) *PositionBuilder

工作地点

示例值:

func (*PositionBuilder) WorkingHoursTypeId added in v3.2.8

func (builder *PositionBuilder) WorkingHoursTypeId(workingHoursTypeId string) *PositionBuilder

工时制度

示例值:4719519211875096301

type PositionChange added in v3.3.4

type PositionChange struct {
	PositionChangeId *string `json:"position_change_id,omitempty"` // 岗位调整记录 ID

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	DraftPositionId *string `json:"draft_position_id,omitempty"` // 调整过程岗位 ID 。对于在本次调整中新建的岗位,在调整未生效前会返回格式为 td_xxx 的过程岗位 ID,生效后将返回正式的岗位 ID

	PositionChangeType *string `json:"position_change_type,omitempty"` // 调整类型

	PositionAdjustmentInfo *PositionAdjustmentInfo `json:"position_adjustment_info,omitempty"` // 调整详细信息
}

type PositionChangeBuilder added in v3.3.4

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

func NewPositionChangeBuilder added in v3.3.4

func NewPositionChangeBuilder() *PositionChangeBuilder

func (*PositionChangeBuilder) Build added in v3.3.4

func (builder *PositionChangeBuilder) Build() *PositionChange

func (*PositionChangeBuilder) DraftPositionId added in v3.3.4

func (builder *PositionChangeBuilder) DraftPositionId(draftPositionId string) *PositionChangeBuilder

调整过程岗位 ID 。对于在本次调整中新建的岗位,在调整未生效前会返回格式为 td_xxx 的过程岗位 ID,生效后将返回正式的岗位 ID

示例值:6966236933198579208

func (*PositionChangeBuilder) PositionAdjustmentInfo added in v3.3.4

func (builder *PositionChangeBuilder) PositionAdjustmentInfo(positionAdjustmentInfo *PositionAdjustmentInfo) *PositionChangeBuilder

调整详细信息

示例值:

func (*PositionChangeBuilder) PositionChangeId added in v3.3.4

func (builder *PositionChangeBuilder) PositionChangeId(positionChangeId string) *PositionChangeBuilder

岗位调整记录 ID

示例值:6991776076699549697

func (*PositionChangeBuilder) PositionChangeType added in v3.3.4

func (builder *PositionChangeBuilder) PositionChangeType(positionChangeType string) *PositionChangeBuilder

调整类型

示例值:Create

func (*PositionChangeBuilder) PositionId added in v3.3.4

func (builder *PositionChangeBuilder) PositionId(positionId string) *PositionChangeBuilder

岗位 ID

示例值:6966236933198579208

type PositionCreate added in v3.2.8

type PositionCreate struct {
	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	JobFamilyIds []string `json:"job_family_ids,omitempty"` // 序列

	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心

	JobId *string `json:"job_id,omitempty"` // 职务

	JobLevelIds []string `json:"job_level_ids,omitempty"` // 职级

	EmployeeTypeIds []string `json:"employee_type_ids,omitempty"` // 人员类型

	JobGradeIds []string `json:"job_grade_ids,omitempty"` // 职等

	WorkLocationIds []string `json:"work_location_ids,omitempty"` // 工作地点

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度

	DepartmentId *string `json:"department_id,omitempty"` // 部门

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属上级岗位

	DottedLineLeaderId *string `json:"dotted_line_leader_id,omitempty"` // 虚线上级岗位

	IsKeyPosition *bool `json:"is_key_position,omitempty"` // 是否关键岗位

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效日期

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type PositionCreateBuilder added in v3.2.8

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

func NewPositionCreateBuilder added in v3.2.8

func NewPositionCreateBuilder() *PositionCreateBuilder

func (*PositionCreateBuilder) Build added in v3.2.8

func (builder *PositionCreateBuilder) Build() *PositionCreate

func (*PositionCreateBuilder) Code added in v3.2.8

func (builder *PositionCreateBuilder) Code(code string) *PositionCreateBuilder

编码

示例值:A01234

func (*PositionCreateBuilder) CostCenterId added in v3.2.8

func (builder *PositionCreateBuilder) CostCenterId(costCenterId string) *PositionCreateBuilder

成本中心

示例值:4719519211875096301

func (*PositionCreateBuilder) CustomFields added in v3.2.8

func (builder *PositionCreateBuilder) CustomFields(customFields []*CustomFieldData) *PositionCreateBuilder

自定义字段

示例值:

func (*PositionCreateBuilder) DepartmentId added in v3.2.8

func (builder *PositionCreateBuilder) DepartmentId(departmentId string) *PositionCreateBuilder

部门

示例值:4719519211875096301

func (*PositionCreateBuilder) Descriptions added in v3.2.8

func (builder *PositionCreateBuilder) Descriptions(descriptions []*I18n) *PositionCreateBuilder

描述

示例值:

func (*PositionCreateBuilder) DirectLeaderId added in v3.2.8

func (builder *PositionCreateBuilder) DirectLeaderId(directLeaderId string) *PositionCreateBuilder

直属上级岗位

示例值:4719519211875096301

func (*PositionCreateBuilder) DottedLineLeaderId added in v3.2.8

func (builder *PositionCreateBuilder) DottedLineLeaderId(dottedLineLeaderId string) *PositionCreateBuilder

虚线上级岗位

示例值:4719519211875096301

func (*PositionCreateBuilder) EffectiveTime added in v3.2.8

func (builder *PositionCreateBuilder) EffectiveTime(effectiveTime string) *PositionCreateBuilder

生效日期

示例值:2020-05-01

func (*PositionCreateBuilder) EmployeeTypeIds added in v3.2.8

func (builder *PositionCreateBuilder) EmployeeTypeIds(employeeTypeIds []string) *PositionCreateBuilder

人员类型

示例值:

func (*PositionCreateBuilder) IsKeyPosition added in v3.2.8

func (builder *PositionCreateBuilder) IsKeyPosition(isKeyPosition bool) *PositionCreateBuilder

是否关键岗位

示例值:true

func (*PositionCreateBuilder) JobFamilyIds added in v3.2.8

func (builder *PositionCreateBuilder) JobFamilyIds(jobFamilyIds []string) *PositionCreateBuilder

序列

示例值:

func (*PositionCreateBuilder) JobGradeIds added in v3.2.8

func (builder *PositionCreateBuilder) JobGradeIds(jobGradeIds []string) *PositionCreateBuilder

职等

示例值:

func (*PositionCreateBuilder) JobId added in v3.2.8

func (builder *PositionCreateBuilder) JobId(jobId string) *PositionCreateBuilder

职务

示例值:4719519211875096301

func (*PositionCreateBuilder) JobLevelIds added in v3.2.8

func (builder *PositionCreateBuilder) JobLevelIds(jobLevelIds []string) *PositionCreateBuilder

职级

示例值:

func (*PositionCreateBuilder) Names added in v3.2.8

func (builder *PositionCreateBuilder) Names(names []*I18n) *PositionCreateBuilder

名称

示例值:

func (*PositionCreateBuilder) WorkLocationIds added in v3.2.8

func (builder *PositionCreateBuilder) WorkLocationIds(workLocationIds []string) *PositionCreateBuilder

工作地点

示例值:

func (*PositionCreateBuilder) WorkingHoursTypeId added in v3.2.8

func (builder *PositionCreateBuilder) WorkingHoursTypeId(workingHoursTypeId string) *PositionCreateBuilder

工时制度

示例值:4719519211875096301

type PositionUpdate added in v3.2.8

type PositionUpdate struct {
	Code *string `json:"code,omitempty"` // 编码

	Names []*I18n `json:"names,omitempty"` // 名称

	Descriptions []*I18n `json:"descriptions,omitempty"` // 描述

	JobFamilyIds []string `json:"job_family_ids,omitempty"` // 序列

	CostCenterId *string `json:"cost_center_id,omitempty"` // 成本中心

	JobId *string `json:"job_id,omitempty"` // 职务

	JobLevelIds []string `json:"job_level_ids,omitempty"` // 职级

	EmployeeTypeIds []string `json:"employee_type_ids,omitempty"` // 人员类型

	JobGradeIds []string `json:"job_grade_ids,omitempty"` // 职等

	WorkLocationIds []string `json:"work_location_ids,omitempty"` // 工作地点

	WorkingHoursTypeId *string `json:"working_hours_type_id,omitempty"` // 工时制度

	DepartmentId *string `json:"department_id,omitempty"` // 部门

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属上级岗位

	DottedLineLeaderId *string `json:"dotted_line_leader_id,omitempty"` // 虚线上级岗位

	IsKeyPosition *bool `json:"is_key_position,omitempty"` // 是否关键岗位

	EffectiveTime *string `json:"effective_time,omitempty"` // 生效日期

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type PositionUpdateBuilder added in v3.2.8

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

func NewPositionUpdateBuilder added in v3.2.8

func NewPositionUpdateBuilder() *PositionUpdateBuilder

func (*PositionUpdateBuilder) Build added in v3.2.8

func (builder *PositionUpdateBuilder) Build() *PositionUpdate

func (*PositionUpdateBuilder) Code added in v3.2.8

func (builder *PositionUpdateBuilder) Code(code string) *PositionUpdateBuilder

编码

示例值:A01234

func (*PositionUpdateBuilder) CostCenterId added in v3.2.8

func (builder *PositionUpdateBuilder) CostCenterId(costCenterId string) *PositionUpdateBuilder

成本中心

示例值:4719519211875096301

func (*PositionUpdateBuilder) CustomFields added in v3.2.8

func (builder *PositionUpdateBuilder) CustomFields(customFields []*CustomFieldData) *PositionUpdateBuilder

自定义字段

示例值:

func (*PositionUpdateBuilder) DepartmentId added in v3.2.8

func (builder *PositionUpdateBuilder) DepartmentId(departmentId string) *PositionUpdateBuilder

部门

示例值:4719519211875096301

func (*PositionUpdateBuilder) Descriptions added in v3.2.8

func (builder *PositionUpdateBuilder) Descriptions(descriptions []*I18n) *PositionUpdateBuilder

描述

示例值:

func (*PositionUpdateBuilder) DirectLeaderId added in v3.2.8

func (builder *PositionUpdateBuilder) DirectLeaderId(directLeaderId string) *PositionUpdateBuilder

直属上级岗位

示例值:4719519211875096301

func (*PositionUpdateBuilder) DottedLineLeaderId added in v3.2.8

func (builder *PositionUpdateBuilder) DottedLineLeaderId(dottedLineLeaderId string) *PositionUpdateBuilder

虚线上级岗位

示例值:4719519211875096301

func (*PositionUpdateBuilder) EffectiveTime added in v3.2.8

func (builder *PositionUpdateBuilder) EffectiveTime(effectiveTime string) *PositionUpdateBuilder

生效日期

示例值:2020-05-01

func (*PositionUpdateBuilder) EmployeeTypeIds added in v3.2.8

func (builder *PositionUpdateBuilder) EmployeeTypeIds(employeeTypeIds []string) *PositionUpdateBuilder

人员类型

示例值:

func (*PositionUpdateBuilder) IsKeyPosition added in v3.2.8

func (builder *PositionUpdateBuilder) IsKeyPosition(isKeyPosition bool) *PositionUpdateBuilder

是否关键岗位

示例值:true

func (*PositionUpdateBuilder) JobFamilyIds added in v3.2.8

func (builder *PositionUpdateBuilder) JobFamilyIds(jobFamilyIds []string) *PositionUpdateBuilder

序列

示例值:

func (*PositionUpdateBuilder) JobGradeIds added in v3.2.8

func (builder *PositionUpdateBuilder) JobGradeIds(jobGradeIds []string) *PositionUpdateBuilder

职等

示例值:

func (*PositionUpdateBuilder) JobId added in v3.2.8

func (builder *PositionUpdateBuilder) JobId(jobId string) *PositionUpdateBuilder

职务

示例值:4719519211875096301

func (*PositionUpdateBuilder) JobLevelIds added in v3.2.8

func (builder *PositionUpdateBuilder) JobLevelIds(jobLevelIds []string) *PositionUpdateBuilder

职级

示例值:

func (*PositionUpdateBuilder) Names added in v3.2.8

func (builder *PositionUpdateBuilder) Names(names []*I18n) *PositionUpdateBuilder

名称

示例值:

func (*PositionUpdateBuilder) WorkLocationIds added in v3.2.8

func (builder *PositionUpdateBuilder) WorkLocationIds(workLocationIds []string) *PositionUpdateBuilder

工作地点

示例值:

func (*PositionUpdateBuilder) WorkingHoursTypeId added in v3.2.8

func (builder *PositionUpdateBuilder) WorkingHoursTypeId(workingHoursTypeId string) *PositionUpdateBuilder

工时制度

示例值:4719519211875096301

type PreHire

type PreHire struct {
	PersonInfo *PersonInfo `json:"person_info,omitempty"` // 个人信息

	EmploymentInfo *PreHireEmploymentInfo `json:"employment_info,omitempty"` // 工作信息

	OnboardingInfo *PreHireOnboardingInfo `json:"onboarding_info,omitempty"` // 入职信息

	ProbationInfo *PreHireProbationInfo `json:"probation_info,omitempty"` // 试用期信息

	ContractInfo *PreHireContractInfo `json:"contract_info,omitempty"` // 合同信息

	PreHireId *string `json:"pre_hire_id,omitempty"` // 待入职 id

	PeopleFieldsJson *string `json:"people_fields_json,omitempty"` // 部分老people体系字段兼容序列化的值,用于做切换器兼容
}

type PreHireAbnormalReason added in v3.2.8

type PreHireAbnormalReason struct {
	Descriptions []*I18n `json:"descriptions,omitempty"` // 异常信息描述
}

type PreHireAbnormalReasonBuilder added in v3.2.8

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

func NewPreHireAbnormalReasonBuilder added in v3.2.8

func NewPreHireAbnormalReasonBuilder() *PreHireAbnormalReasonBuilder

func (*PreHireAbnormalReasonBuilder) Build added in v3.2.8

func (*PreHireAbnormalReasonBuilder) Descriptions added in v3.2.8

func (builder *PreHireAbnormalReasonBuilder) Descriptions(descriptions []*I18n) *PreHireAbnormalReasonBuilder

异常信息描述

示例值:

type PreHireBuilder

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

func NewPreHireBuilder

func NewPreHireBuilder() *PreHireBuilder

func (*PreHireBuilder) Build

func (builder *PreHireBuilder) Build() *PreHire

func (*PreHireBuilder) ContractInfo

func (builder *PreHireBuilder) ContractInfo(contractInfo *PreHireContractInfo) *PreHireBuilder

合同信息

示例值:

func (*PreHireBuilder) EmploymentInfo

func (builder *PreHireBuilder) EmploymentInfo(employmentInfo *PreHireEmploymentInfo) *PreHireBuilder

工作信息

示例值:

func (*PreHireBuilder) OnboardingInfo

func (builder *PreHireBuilder) OnboardingInfo(onboardingInfo *PreHireOnboardingInfo) *PreHireBuilder

入职信息

示例值:

func (*PreHireBuilder) PeopleFieldsJson added in v3.4.2

func (builder *PreHireBuilder) PeopleFieldsJson(peopleFieldsJson string) *PreHireBuilder

部分老people体系字段兼容序列化的值,用于做切换器兼容

示例值:{"process":1}

func (*PreHireBuilder) PersonInfo

func (builder *PreHireBuilder) PersonInfo(personInfo *PersonInfo) *PreHireBuilder

个人信息

示例值:

func (*PreHireBuilder) PreHireId

func (builder *PreHireBuilder) PreHireId(preHireId string) *PreHireBuilder

待入职 id

示例值:7032210902531327521

func (*PreHireBuilder) ProbationInfo

func (builder *PreHireBuilder) ProbationInfo(probationInfo *PreHireProbationInfo) *PreHireBuilder

试用期信息

示例值:

type PreHireContractInfo

type PreHireContractInfo struct {
	ContractStartDate *string `json:"contract_start_date,omitempty"` // 合同开始日期

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 合同结束日期

	ContractType *string `json:"contract_type,omitempty"` // -| 合同类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "contract_type"

	DurationType *string `json:"duration_type,omitempty"` // -| 期限类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "duration_type"

	SigningType *string `json:"signing_type,omitempty"` // -| 签订类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "duration_type"
}

type PreHireContractInfoBuilder

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

func NewPreHireContractInfoBuilder

func NewPreHireContractInfoBuilder() *PreHireContractInfoBuilder

func (*PreHireContractInfoBuilder) Build

func (*PreHireContractInfoBuilder) ContractEndDate

func (builder *PreHireContractInfoBuilder) ContractEndDate(contractEndDate string) *PreHireContractInfoBuilder

合同结束日期

示例值:2025-10-07

func (*PreHireContractInfoBuilder) ContractStartDate

func (builder *PreHireContractInfoBuilder) ContractStartDate(contractStartDate string) *PreHireContractInfoBuilder

合同开始日期

示例值:2022-10-08

func (*PreHireContractInfoBuilder) ContractType

func (builder *PreHireContractInfoBuilder) ContractType(contractType string) *PreHireContractInfoBuilder

-| 合同类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "contract_type"

示例值:labor_contract

func (*PreHireContractInfoBuilder) DurationType

func (builder *PreHireContractInfoBuilder) DurationType(durationType string) *PreHireContractInfoBuilder

-| 期限类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "duration_type"

示例值:fixed_term

func (*PreHireContractInfoBuilder) SigningType

func (builder *PreHireContractInfoBuilder) SigningType(signingType string) *PreHireContractInfoBuilder

-| 签订类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "duration_type"

示例值:renewed

type PreHireEmploymentInfo

type PreHireEmploymentInfo struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID ,可以通过【搜索部门信息】接口获取

	CostCenterRates []*JobDataCostCenter `json:"cost_center_rates,omitempty"` // 成本中心分摊信息

	OfficeLocationId *string `json:"office_location_id,omitempty"` // 办公地点id ,详细信息可通过【批量查询地点】接口获得

	WorkLocationId *string `json:"work_location_id,omitempty"` // 工作地点id ,详细信息可通过【批量查询地点】接口获得

	WorkStation *string `json:"work_station,omitempty"` // 工位

	WorkerId *string `json:"worker_id,omitempty"` // 工号

	CompensationType *Enum `json:"compensation_type,omitempty"` // -| 薪资类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:compensation_type - object_api_name:pre_hire

	DirectLeaderId *string `json:"direct_leader_id,omitempty"` // 直属上级雇佣 ID , 可以通过【搜索员工信息】接口获取

	DottedLineManagerId *string `json:"dotted_line_manager_id,omitempty"` // 虚线上级雇佣 ID , 可以通过【搜索员工信息】接口获取

	JobId *string `json:"job_id,omitempty"` // 职务 ID ,可以通过【批量查询职务】接口获取

	JobFamilyId *string `json:"job_family_id,omitempty"` // 序列 ID,可以通过【批量查询职务序列】接口获取

	JobLevelId *string `json:"job_level_id,omitempty"` // 职级 ID,可以通过【批量查询职务级别】接口获取

	JobGradeId *string `json:"job_grade_id,omitempty"` // 职等 ID

	JobTitle *string `json:"job_title,omitempty"` // 职务头衔

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID ,可以通过招聘【批量查询人员类型】接口获取

	EmployeeSubtypeId *string `json:"employee_subtype_id,omitempty"` // 人员子类型 ID

	EmploymentType *string `json:"employment_type,omitempty"` // -| 雇佣类型, 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "employment_type"

	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱

	CompanyId *string `json:"company_id,omitempty"` // 公司 ID , 详细信息可通过【批量查询公司】接口获得

	SocialSecurityCityId *string `json:"social_security_city_id,omitempty"` // 社保城市 ID ,详细信息可通过【批量查询地点】接口获得

	NonCompeteCovenant *bool `json:"non_compete_covenant,omitempty"` // 是否包含竞业条款

	WeeklyWorkingHours *int `json:"weekly_working_hours,omitempty"` // 周工作时长(单位:小时)

	Rehire *string `json:"rehire,omitempty"` // 是否离职重聘

	RehireEmploymentId *string `json:"rehire_employment_id,omitempty"` // -| 历史雇佣信息 ID ,雇佣信息详细信息可以通过「查询单个雇佣信息」API 获得,系统会检验当前雇佣信息的合法性,要求: - 雇佣信息为该人员最后一次雇佣记录 - 雇佣信息的雇员状态 = "terminated" - 该人员不存在其他待入职记录

	WorkingHoursType *string `json:"working_hours_type,omitempty"` // -| 工时制度 ID ,可通过【查询单个工时制度】接口获取

	WeeklyWorkingHoursV2 *float64 `json:"weekly_working_hours_v2,omitempty"` // 周工作时长v2(单位:小时)

	OfficeAddress *Address `json:"office_address,omitempty"` // 办公地址

	WorkingCalendarId *string `json:"working_calendar_id,omitempty"` // 工作日历

	UpdatedAt *string `json:"updated_at,omitempty"` // 待入职信息 更新时间

	SuspectedRehiring *bool `json:"suspected_rehiring,omitempty"` // 是否疑似重聘

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	PositionId *string `json:"position_id,omitempty"` // 岗位 ID

	CompanyManualUpdated *bool `json:"company_manual_updated,omitempty"` // 公司主体是否被手动修改

	PayGroup *PreHirePayGroupInfo `json:"pay_group,omitempty"` // 薪资组信息

	WhetherTheInformationIsAbnormal *bool `json:"whether_the_information_is_abnormal,omitempty"` // 是否信息异常

	AbnormalReason []*PreHireAbnormalReason `json:"abnormal_reason,omitempty"` // 异常原因列表

	HasOfferSalary *bool `json:"has_offer_salary,omitempty"` // 是否有 Offer 薪酬

	RecruitmentProjectId *string `json:"recruitment_project_id,omitempty"` // 招聘项目 ID

	WorkShift *Enum `json:"work_shift,omitempty"` // -| 排班类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:work_shift - object_api_name:pre_hire

	CreatedAt *string `json:"created_at,omitempty"` // 待入职信息 创建时间

	CreatedBy *string `json:"created_by,omitempty"` // 待入职信息 创建人

	UpdatedBy *string `json:"updated_by,omitempty"` // 待入职信息 更新人

	SeniorityDate *string `json:"seniority_date,omitempty"` // 司龄起算日期

	BackgroundCheckOrderId *string `json:"background_check_order_id,omitempty"` // 背调订单ID

	BackgroundCheckOrderName *string `json:"background_check_order_name,omitempty"` // 背调名称

	BackgroundCheckOrderPackageName *string `json:"background_check_order_package_name,omitempty"` // 背调套餐

	BackgroundCheckOrderResult *string `json:"background_check_order_result,omitempty"` // 背调结果

	BackgroundCheckOrderSupplierName *string `json:"background_check_order_supplier_name,omitempty"` // 背调供应商

	BackgroundCheckOrderAccountName *string `json:"background_check_order_account_name,omitempty"` // 背调账号名称

	BackgroundCheckOrderStartTime *string `json:"background_check_order_start_time,omitempty"` // 背调开始时间

	BackgroundCheckOrderCompleteTime *string `json:"background_check_order_complete_time,omitempty"` // 背调完成时间

	BackgroundCheckOrderStatus *Enum `json:"background_check_order_status,omitempty"` // -| 背调状态,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:background_check_order_status - object_api_name:pre_hire

	SeniorityAdjustInformationList []*PrehireSeniorityAdjustInformationQuery `json:"seniority_adjust_information_list,omitempty"` // 司龄调整信息
}

type PreHireEmploymentInfoBuilder

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

func NewPreHireEmploymentInfoBuilder

func NewPreHireEmploymentInfoBuilder() *PreHireEmploymentInfoBuilder

func (*PreHireEmploymentInfoBuilder) AbnormalReason added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) AbnormalReason(abnormalReason []*PreHireAbnormalReason) *PreHireEmploymentInfoBuilder

异常原因列表

示例值:

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderAccountName added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderAccountName(backgroundCheckOrderAccountName string) *PreHireEmploymentInfoBuilder

背调账号名称

示例值:xxx

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderCompleteTime added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderCompleteTime(backgroundCheckOrderCompleteTime string) *PreHireEmploymentInfoBuilder

背调完成时间

示例值:2023-01-10 10:29

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderId added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderId(backgroundCheckOrderId string) *PreHireEmploymentInfoBuilder

背调订单ID

示例值:123

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderName added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderName(backgroundCheckOrderName string) *PreHireEmploymentInfoBuilder

背调名称

示例值:xxx

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderPackageName added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderPackageName(backgroundCheckOrderPackageName string) *PreHireEmploymentInfoBuilder

背调套餐

示例值:xxx

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderResult added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderResult(backgroundCheckOrderResult string) *PreHireEmploymentInfoBuilder

背调结果

示例值:通过

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderStartTime added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderStartTime(backgroundCheckOrderStartTime string) *PreHireEmploymentInfoBuilder

背调开始时间

示例值:2023-01-10 10:29

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderStatus added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderStatus(backgroundCheckOrderStatus *Enum) *PreHireEmploymentInfoBuilder

-| 背调状态,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:background_check_order_status - object_api_name:pre_hire

示例值:

func (*PreHireEmploymentInfoBuilder) BackgroundCheckOrderSupplierName added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) BackgroundCheckOrderSupplierName(backgroundCheckOrderSupplierName string) *PreHireEmploymentInfoBuilder

背调供应商

示例值:xxx

func (*PreHireEmploymentInfoBuilder) Build

func (*PreHireEmploymentInfoBuilder) CompanyId

func (builder *PreHireEmploymentInfoBuilder) CompanyId(companyId string) *PreHireEmploymentInfoBuilder

公司 ID , 详细信息可通过【批量查询公司】接口获得

示例值:6738317738688661772

func (*PreHireEmploymentInfoBuilder) CompanyManualUpdated added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) CompanyManualUpdated(companyManualUpdated bool) *PreHireEmploymentInfoBuilder

公司主体是否被手动修改

示例值:true

func (*PreHireEmploymentInfoBuilder) CompensationType

func (builder *PreHireEmploymentInfoBuilder) CompensationType(compensationType *Enum) *PreHireEmploymentInfoBuilder

-| 薪资类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:compensation_type - object_api_name:pre_hire

示例值:

func (*PreHireEmploymentInfoBuilder) CostCenterRates

func (builder *PreHireEmploymentInfoBuilder) CostCenterRates(costCenterRates []*JobDataCostCenter) *PreHireEmploymentInfoBuilder

成本中心分摊信息

示例值:

func (*PreHireEmploymentInfoBuilder) CreatedAt added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) CreatedAt(createdAt string) *PreHireEmploymentInfoBuilder

待入职信息 创建时间

示例值:2023-01-10 10:29

func (*PreHireEmploymentInfoBuilder) CreatedBy added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) CreatedBy(createdBy string) *PreHireEmploymentInfoBuilder

待入职信息 创建人

示例值:69928404442626824

func (*PreHireEmploymentInfoBuilder) CustomFields added in v3.1.3

func (builder *PreHireEmploymentInfoBuilder) CustomFields(customFields []*CustomFieldData) *PreHireEmploymentInfoBuilder

自定义字段

示例值:

func (*PreHireEmploymentInfoBuilder) DepartmentId

func (builder *PreHireEmploymentInfoBuilder) DepartmentId(departmentId string) *PreHireEmploymentInfoBuilder

部门 ID ,可以通过【搜索部门信息】接口获取

示例值:7147562782945478177

func (*PreHireEmploymentInfoBuilder) DirectLeaderId

func (builder *PreHireEmploymentInfoBuilder) DirectLeaderId(directLeaderId string) *PreHireEmploymentInfoBuilder

直属上级雇佣 ID , 可以通过【搜索员工信息】接口获取

示例值:7032210902531327521

func (*PreHireEmploymentInfoBuilder) DottedLineManagerId added in v3.3.7

func (builder *PreHireEmploymentInfoBuilder) DottedLineManagerId(dottedLineManagerId string) *PreHireEmploymentInfoBuilder

虚线上级雇佣 ID , 可以通过【搜索员工信息】接口获取

示例值:7032210902531327521

func (*PreHireEmploymentInfoBuilder) EmployeeSubtypeId added in v3.3.4

func (builder *PreHireEmploymentInfoBuilder) EmployeeSubtypeId(employeeSubtypeId string) *PreHireEmploymentInfoBuilder

人员子类型 ID

示例值:6977973225846343171

func (*PreHireEmploymentInfoBuilder) EmployeeTypeId

func (builder *PreHireEmploymentInfoBuilder) EmployeeTypeId(employeeTypeId string) *PreHireEmploymentInfoBuilder

人员类型 ID ,可以通过招聘【批量查询人员类型】接口获取

示例值:6977973225846343171

func (*PreHireEmploymentInfoBuilder) EmploymentType

func (builder *PreHireEmploymentInfoBuilder) EmploymentType(employmentType string) *PreHireEmploymentInfoBuilder

-| 雇佣类型, 枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "employment_type"

示例值:employee

func (*PreHireEmploymentInfoBuilder) HasOfferSalary added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) HasOfferSalary(hasOfferSalary bool) *PreHireEmploymentInfoBuilder

是否有 Offer 薪酬

示例值:true

func (*PreHireEmploymentInfoBuilder) JobFamilyId

func (builder *PreHireEmploymentInfoBuilder) JobFamilyId(jobFamilyId string) *PreHireEmploymentInfoBuilder

序列 ID,可以通过【批量查询职务序列】接口获取

示例值:6977972856625939999

func (*PreHireEmploymentInfoBuilder) JobGradeId

func (builder *PreHireEmploymentInfoBuilder) JobGradeId(jobGradeId string) *PreHireEmploymentInfoBuilder

职等 ID

示例值:6977971894960145950

func (*PreHireEmploymentInfoBuilder) JobId

职务 ID ,可以通过【批量查询职务】接口获取

示例值:6977976735715378724

func (*PreHireEmploymentInfoBuilder) JobLevelId

func (builder *PreHireEmploymentInfoBuilder) JobLevelId(jobLevelId string) *PreHireEmploymentInfoBuilder

职级 ID,可以通过【批量查询职务级别】接口获取

示例值:6977971894960145950

func (*PreHireEmploymentInfoBuilder) JobTitle

职务头衔

示例值:java

func (*PreHireEmploymentInfoBuilder) NonCompeteCovenant

func (builder *PreHireEmploymentInfoBuilder) NonCompeteCovenant(nonCompeteCovenant bool) *PreHireEmploymentInfoBuilder

是否包含竞业条款

示例值:true

func (*PreHireEmploymentInfoBuilder) OfficeAddress added in v3.1.3

func (builder *PreHireEmploymentInfoBuilder) OfficeAddress(officeAddress *Address) *PreHireEmploymentInfoBuilder

办公地址

示例值:

func (*PreHireEmploymentInfoBuilder) OfficeLocationId

func (builder *PreHireEmploymentInfoBuilder) OfficeLocationId(officeLocationId string) *PreHireEmploymentInfoBuilder

办公地点id ,详细信息可通过【批量查询地点】接口获得

示例值:6977976687350924832

func (*PreHireEmploymentInfoBuilder) PayGroup added in v3.2.8

薪资组信息

示例值:

func (*PreHireEmploymentInfoBuilder) PositionId added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) PositionId(positionId string) *PreHireEmploymentInfoBuilder

岗位 ID

示例值:6977976735715373452

func (*PreHireEmploymentInfoBuilder) RecruitmentProjectId added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) RecruitmentProjectId(recruitmentProjectId string) *PreHireEmploymentInfoBuilder

招聘项目 ID

示例值:23214213152

func (*PreHireEmploymentInfoBuilder) Rehire

是否离职重聘

示例值:

func (*PreHireEmploymentInfoBuilder) RehireEmploymentId

func (builder *PreHireEmploymentInfoBuilder) RehireEmploymentId(rehireEmploymentId string) *PreHireEmploymentInfoBuilder

-| 历史雇佣信息 ID ,雇佣信息详细信息可以通过「查询单个雇佣信息」API 获得,系统会检验当前雇佣信息的合法性,要求: - 雇佣信息为该人员最后一次雇佣记录 - 雇佣信息的雇员状态 = "terminated" - 该人员不存在其他待入职记录

示例值:6977973225846343172

func (*PreHireEmploymentInfoBuilder) SeniorityAdjustInformationList added in v3.4.1

func (builder *PreHireEmploymentInfoBuilder) SeniorityAdjustInformationList(seniorityAdjustInformationList []*PrehireSeniorityAdjustInformationQuery) *PreHireEmploymentInfoBuilder

司龄调整信息

示例值:

func (*PreHireEmploymentInfoBuilder) SeniorityDate added in v3.3.2

func (builder *PreHireEmploymentInfoBuilder) SeniorityDate(seniorityDate string) *PreHireEmploymentInfoBuilder

司龄起算日期

示例值:2023-01-10

func (*PreHireEmploymentInfoBuilder) SocialSecurityCityId

func (builder *PreHireEmploymentInfoBuilder) SocialSecurityCityId(socialSecurityCityId string) *PreHireEmploymentInfoBuilder

社保城市 ID ,详细信息可通过【批量查询地点】接口获得

示例值:6977973225846343171

func (*PreHireEmploymentInfoBuilder) SuspectedRehiring added in v3.1.3

func (builder *PreHireEmploymentInfoBuilder) SuspectedRehiring(suspectedRehiring bool) *PreHireEmploymentInfoBuilder

是否疑似重聘

示例值:false

func (*PreHireEmploymentInfoBuilder) UpdatedAt added in v3.1.3

func (builder *PreHireEmploymentInfoBuilder) UpdatedAt(updatedAt string) *PreHireEmploymentInfoBuilder

待入职信息 更新时间

示例值:2023-01-10 10:29

func (*PreHireEmploymentInfoBuilder) UpdatedBy added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) UpdatedBy(updatedBy string) *PreHireEmploymentInfoBuilder

待入职信息 更新人

示例值:69928404442626824

func (*PreHireEmploymentInfoBuilder) WeeklyWorkingHours

func (builder *PreHireEmploymentInfoBuilder) WeeklyWorkingHours(weeklyWorkingHours int) *PreHireEmploymentInfoBuilder

周工作时长(单位:小时)

示例值:8

func (*PreHireEmploymentInfoBuilder) WeeklyWorkingHoursV2

func (builder *PreHireEmploymentInfoBuilder) WeeklyWorkingHoursV2(weeklyWorkingHoursV2 float64) *PreHireEmploymentInfoBuilder

周工作时长v2(单位:小时)

示例值:8.5

func (*PreHireEmploymentInfoBuilder) WhetherTheInformationIsAbnormal added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) WhetherTheInformationIsAbnormal(whetherTheInformationIsAbnormal bool) *PreHireEmploymentInfoBuilder

是否信息异常

示例值:true

func (*PreHireEmploymentInfoBuilder) WorkEmail

func (builder *PreHireEmploymentInfoBuilder) WorkEmail(workEmail string) *PreHireEmploymentInfoBuilder

工作邮箱

示例值:joshua@bytedance.com

func (*PreHireEmploymentInfoBuilder) WorkLocationId

func (builder *PreHireEmploymentInfoBuilder) WorkLocationId(workLocationId string) *PreHireEmploymentInfoBuilder

工作地点id ,详细信息可通过【批量查询地点】接口获得

示例值:6977976687350924832

func (*PreHireEmploymentInfoBuilder) WorkShift added in v3.2.8

func (builder *PreHireEmploymentInfoBuilder) WorkShift(workShift *Enum) *PreHireEmploymentInfoBuilder

-| 排班类型,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:work_shift - object_api_name:pre_hire

示例值:

func (*PreHireEmploymentInfoBuilder) WorkStation

func (builder *PreHireEmploymentInfoBuilder) WorkStation(workStation string) *PreHireEmploymentInfoBuilder

工位

示例值:ABC123

func (*PreHireEmploymentInfoBuilder) WorkerId

工号

示例值:1234567

func (*PreHireEmploymentInfoBuilder) WorkingCalendarId added in v3.1.3

func (builder *PreHireEmploymentInfoBuilder) WorkingCalendarId(workingCalendarId string) *PreHireEmploymentInfoBuilder

工作日历

示例值:6977973225846343173

func (*PreHireEmploymentInfoBuilder) WorkingHoursType

func (builder *PreHireEmploymentInfoBuilder) WorkingHoursType(workingHoursType string) *PreHireEmploymentInfoBuilder

-| 工时制度 ID ,可通过【查询单个工时制度】接口获取

示例值:6977973225846343171

type PreHireOnboardingInfo

type PreHireOnboardingInfo struct {
	OfferId *string `json:"offer_id,omitempty"` // Offer id , 可以通过招聘【获取 Offer 列表】接口获取

	OfferHrId *string `json:"offer_hr_id,omitempty"` // Offer hr 的 雇佣 ID

	EntryMode *string `json:"entry_mode,omitempty"` // -| 入职方式,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "onboarding_method"

	OnboardingDate *string `json:"onboarding_date,omitempty"` // 入职日期

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘投递 ID ,详细信息可以通过招聘【获取投递信息】接口查询获得

	RecruitmentType *string `json:"recruitment_type,omitempty"` // -| 招聘来源 ,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "recruitment_type"

	OnboardingLocationId *string `json:"onboarding_location_id,omitempty"` // -| 入职地点id , 详细信息可通过【批量查询地点】接口获得

	CompanySponsoredVisa *bool `json:"company_sponsored_visa,omitempty"` // -| 需要公司办理签证

	OnboardingStatus *string `json:"onboarding_status,omitempty"` // -| 入职状态

	OnboardingTaskList []*OnboardingTask `json:"onboarding_task_list,omitempty"` // 入职任务列表

	OnboardingAddress *Address `json:"onboarding_address,omitempty"` // 入职地址

	FlowName []*I18n `json:"flow_name,omitempty"` // 入职流程

	FlowId *string `json:"flow_id,omitempty"` // 入职流程 ID

	CheckInTime *string `json:"check_in_time,omitempty"` // 签到时间

	CheckInMethod *Enum `json:"check_in_method,omitempty"` // -| 招聘来源 ,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "check_in_method"
}

type PreHireOnboardingInfoBuilder

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

func NewPreHireOnboardingInfoBuilder

func NewPreHireOnboardingInfoBuilder() *PreHireOnboardingInfoBuilder

func (*PreHireOnboardingInfoBuilder) AtsApplicationId

func (builder *PreHireOnboardingInfoBuilder) AtsApplicationId(atsApplicationId string) *PreHireOnboardingInfoBuilder

招聘投递 ID ,详细信息可以通过招聘【获取投递信息】接口查询获得

示例值:7140946969586010376

func (*PreHireOnboardingInfoBuilder) Build

func (*PreHireOnboardingInfoBuilder) CheckInMethod added in v3.2.8

func (builder *PreHireOnboardingInfoBuilder) CheckInMethod(checkInMethod *Enum) *PreHireOnboardingInfoBuilder

-| 招聘来源 ,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "check_in_method"

示例值:

func (*PreHireOnboardingInfoBuilder) CheckInTime added in v3.2.8

func (builder *PreHireOnboardingInfoBuilder) CheckInTime(checkInTime string) *PreHireOnboardingInfoBuilder

签到时间

示例值:2023-09-01 13:21:12

func (*PreHireOnboardingInfoBuilder) CompanySponsoredVisa

func (builder *PreHireOnboardingInfoBuilder) CompanySponsoredVisa(companySponsoredVisa bool) *PreHireOnboardingInfoBuilder

-| 需要公司办理签证

示例值:true

func (*PreHireOnboardingInfoBuilder) EntryMode

func (builder *PreHireOnboardingInfoBuilder) EntryMode(entryMode string) *PreHireOnboardingInfoBuilder

-| 入职方式,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "onboarding_method"

示例值:onsite

func (*PreHireOnboardingInfoBuilder) FlowId added in v3.2.8

入职流程 ID

示例值:2342352325

func (*PreHireOnboardingInfoBuilder) FlowName added in v3.1.3

func (builder *PreHireOnboardingInfoBuilder) FlowName(flowName []*I18n) *PreHireOnboardingInfoBuilder

入职流程

示例值:

func (*PreHireOnboardingInfoBuilder) OfferHrId

func (builder *PreHireOnboardingInfoBuilder) OfferHrId(offerHrId string) *PreHireOnboardingInfoBuilder

Offer hr 的 雇佣 ID

示例值:7032210902531327521

func (*PreHireOnboardingInfoBuilder) OfferId

Offer id , 可以通过招聘【获取 Offer 列表】接口获取

示例值:7032210902531327521

func (*PreHireOnboardingInfoBuilder) OnboardingAddress added in v3.1.3

func (builder *PreHireOnboardingInfoBuilder) OnboardingAddress(onboardingAddress *Address) *PreHireOnboardingInfoBuilder

入职地址

示例值:

func (*PreHireOnboardingInfoBuilder) OnboardingDate

func (builder *PreHireOnboardingInfoBuilder) OnboardingDate(onboardingDate string) *PreHireOnboardingInfoBuilder

入职日期

示例值:2022-10-08

func (*PreHireOnboardingInfoBuilder) OnboardingLocationId

func (builder *PreHireOnboardingInfoBuilder) OnboardingLocationId(onboardingLocationId string) *PreHireOnboardingInfoBuilder

-| 入职地点id , 详细信息可通过【批量查询地点】接口获得

示例值:6977976687350924832

func (*PreHireOnboardingInfoBuilder) OnboardingStatus

func (builder *PreHireOnboardingInfoBuilder) OnboardingStatus(onboardingStatus string) *PreHireOnboardingInfoBuilder

-| 入职状态

示例值:

func (*PreHireOnboardingInfoBuilder) OnboardingTaskList

func (builder *PreHireOnboardingInfoBuilder) OnboardingTaskList(onboardingTaskList []*OnboardingTask) *PreHireOnboardingInfoBuilder

入职任务列表

示例值:

func (*PreHireOnboardingInfoBuilder) RecruitmentType

func (builder *PreHireOnboardingInfoBuilder) RecruitmentType(recruitmentType string) *PreHireOnboardingInfoBuilder

-| 招聘来源 ,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name = "pre_hire" - custom_api_name = "recruitment_type"

示例值:recent_graduates

type PreHirePayGroupInfo added in v3.2.8

type PreHirePayGroupInfo struct {
	Name []*I18n `json:"name,omitempty"` // 薪资组名称

	Id *string `json:"id,omitempty"` // 薪资组 ID
}

type PreHirePayGroupInfoBuilder added in v3.2.8

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

func NewPreHirePayGroupInfoBuilder added in v3.2.8

func NewPreHirePayGroupInfoBuilder() *PreHirePayGroupInfoBuilder

func (*PreHirePayGroupInfoBuilder) Build added in v3.2.8

func (*PreHirePayGroupInfoBuilder) Id added in v3.2.8

薪资组 ID

示例值:1234566

func (*PreHirePayGroupInfoBuilder) Name added in v3.2.8

薪资组名称

示例值:

type PreHireProbationInfo

type PreHireProbationInfo struct {
	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationEndDate *string `json:"probation_end_date,omitempty"` // 试用期结束日期

	ProbationPeriod *int `json:"probation_period,omitempty"` // 试用期时长(单位:天)
}

type PreHireProbationInfoBuilder

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

func NewPreHireProbationInfoBuilder

func NewPreHireProbationInfoBuilder() *PreHireProbationInfoBuilder

func (*PreHireProbationInfoBuilder) Build

func (*PreHireProbationInfoBuilder) ProbationEndDate

func (builder *PreHireProbationInfoBuilder) ProbationEndDate(probationEndDate string) *PreHireProbationInfoBuilder

试用期结束日期

示例值:2023-04-07

func (*PreHireProbationInfoBuilder) ProbationPeriod

func (builder *PreHireProbationInfoBuilder) ProbationPeriod(probationPeriod int) *PreHireProbationInfoBuilder

试用期时长(单位:天)

示例值:6

func (*PreHireProbationInfoBuilder) ProbationStartDate

func (builder *PreHireProbationInfoBuilder) ProbationStartDate(probationStartDate string) *PreHireProbationInfoBuilder

试用期开始日期

示例值:2022-07-29

type PrehireCreate

type PrehireCreate struct {
	BasicInfo *BasicInfo `json:"basic_info,omitempty"` // 个人信息

	OfferInfo *OfferInfo `json:"offer_info,omitempty"` // 职位信息

	EducationInfo []*EducationInfo `json:"education_info,omitempty"` // 教育经历

	WorkExperience []*WorkExperience `json:"work_experience,omitempty"` // 工作经历

	AtsApplicationId *string `json:"ats_application_id,omitempty"` // 招聘应用ID

	OutBizId *string `json:"out_biz_id,omitempty"` // 外部业务唯一编码
}

type PrehireCreateBuilder

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

func NewPrehireCreateBuilder

func NewPrehireCreateBuilder() *PrehireCreateBuilder

func (*PrehireCreateBuilder) AtsApplicationId

func (builder *PrehireCreateBuilder) AtsApplicationId(atsApplicationId string) *PrehireCreateBuilder

招聘应用ID

示例值:7140946969586010376

func (*PrehireCreateBuilder) BasicInfo

func (builder *PrehireCreateBuilder) BasicInfo(basicInfo *BasicInfo) *PrehireCreateBuilder

个人信息

示例值:

func (*PrehireCreateBuilder) Build

func (builder *PrehireCreateBuilder) Build() *PrehireCreate

func (*PrehireCreateBuilder) EducationInfo

func (builder *PrehireCreateBuilder) EducationInfo(educationInfo []*EducationInfo) *PrehireCreateBuilder

教育经历

示例值:

func (*PrehireCreateBuilder) OfferInfo

func (builder *PrehireCreateBuilder) OfferInfo(offerInfo *OfferInfo) *PrehireCreateBuilder

职位信息

示例值:

func (*PrehireCreateBuilder) OutBizId added in v3.3.0

func (builder *PrehireCreateBuilder) OutBizId(outBizId string) *PrehireCreateBuilder

外部业务唯一编码

示例值:7140946969586010376

func (*PrehireCreateBuilder) WorkExperience

func (builder *PrehireCreateBuilder) WorkExperience(workExperience []*WorkExperience) *PrehireCreateBuilder

工作经历

示例值:

type PrehireSeniorityAdjustInformation added in v3.4.1

type PrehireSeniorityAdjustInformation struct {
	SeniorityAdjustment *float64 `json:"seniority_adjustment,omitempty"` // 调整值;- 精确度:两位小数;- 单位:年

	SeniorityAdjustmentType *string `json:"seniority_adjustment_type,omitempty"` // 调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:seniority_adjust_information;  - custom_api_name:seniority_adjustment_type

	ReasonsForSeniorityAdjustment *string `json:"reasons_for_seniority_adjustment,omitempty"` // 司龄调整原因

	StartDate *string `json:"start_date,omitempty"` // 开始日期;- 格式: yyyy-mm-dd

	EndDate *string `json:"end_date,omitempty"` // 结束日期;- 格式: yyyy-mm-dd

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type PrehireSeniorityAdjustInformationBuilder added in v3.4.1

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

func NewPrehireSeniorityAdjustInformationBuilder added in v3.4.1

func NewPrehireSeniorityAdjustInformationBuilder() *PrehireSeniorityAdjustInformationBuilder

func (*PrehireSeniorityAdjustInformationBuilder) Build added in v3.4.1

func (*PrehireSeniorityAdjustInformationBuilder) CustomFields added in v3.4.1

自定义字段

示例值:

func (*PrehireSeniorityAdjustInformationBuilder) EndDate added in v3.4.1

结束日期;- 格式: yyyy-mm-dd

示例值:2024-11-18

func (*PrehireSeniorityAdjustInformationBuilder) ReasonsForSeniorityAdjustment added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationBuilder) ReasonsForSeniorityAdjustment(reasonsForSeniorityAdjustment string) *PrehireSeniorityAdjustInformationBuilder

司龄调整原因

示例值:工厂停产需要减去半年工龄

func (*PrehireSeniorityAdjustInformationBuilder) SeniorityAdjustment added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationBuilder) SeniorityAdjustment(seniorityAdjustment float64) *PrehireSeniorityAdjustInformationBuilder

调整值;- 精确度:两位小数;- 单位:年

示例值:0.5

func (*PrehireSeniorityAdjustInformationBuilder) SeniorityAdjustmentType added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationBuilder) SeniorityAdjustmentType(seniorityAdjustmentType string) *PrehireSeniorityAdjustInformationBuilder

调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:seniority_adjust_information; - custom_api_name:seniority_adjustment_type

示例值:增加

func (*PrehireSeniorityAdjustInformationBuilder) StartDate added in v3.4.1

开始日期;- 格式: yyyy-mm-dd

示例值:2024-05-19

type PrehireSeniorityAdjustInformationQuery added in v3.4.1

type PrehireSeniorityAdjustInformationQuery struct {
	SeniorityAdjustment *float64 `json:"seniority_adjustment,omitempty"` // 调整值;- 精确度:两位小数;- 单位:年

	SeniorityAdjustmentType *Enum `json:"seniority_adjustment_type,omitempty"` // 调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:seniority_adjust_information;  - custom_api_name:seniority_adjustment_type

	ReasonsForSeniorityAdjustment *string `json:"reasons_for_seniority_adjustment,omitempty"` // 司龄调整原因

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期
}

type PrehireSeniorityAdjustInformationQueryBuilder added in v3.4.1

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

func NewPrehireSeniorityAdjustInformationQueryBuilder added in v3.4.1

func NewPrehireSeniorityAdjustInformationQueryBuilder() *PrehireSeniorityAdjustInformationQueryBuilder

func (*PrehireSeniorityAdjustInformationQueryBuilder) Build added in v3.4.1

func (*PrehireSeniorityAdjustInformationQueryBuilder) EndDate added in v3.4.1

结束日期

示例值:2024-11-18

func (*PrehireSeniorityAdjustInformationQueryBuilder) ReasonsForSeniorityAdjustment added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationQueryBuilder) ReasonsForSeniorityAdjustment(reasonsForSeniorityAdjustment string) *PrehireSeniorityAdjustInformationQueryBuilder

司龄调整原因

示例值:工厂停产需要减去半年工龄

func (*PrehireSeniorityAdjustInformationQueryBuilder) SeniorityAdjustment added in v3.4.1

调整值;- 精确度:两位小数;- 单位:年

示例值:0.5

func (*PrehireSeniorityAdjustInformationQueryBuilder) SeniorityAdjustmentType added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationQueryBuilder) SeniorityAdjustmentType(seniorityAdjustmentType *Enum) *PrehireSeniorityAdjustInformationQueryBuilder

调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:seniority_adjust_information; - custom_api_name:seniority_adjustment_type

示例值:增加

func (*PrehireSeniorityAdjustInformationQueryBuilder) StartDate added in v3.4.1

开始日期

示例值:2024-05-19

type PrehireSeniorityAdjustInformationUpdate added in v3.4.1

type PrehireSeniorityAdjustInformationUpdate struct {
	SeniorityAdjustment *float64 `json:"seniority_adjustment,omitempty"` // 调整值;- 精确度:两位小数;- 单位:年

	SeniorityAdjustmentType *string `json:"seniority_adjustment_type,omitempty"` // 调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:seniority_adjust_information;  - custom_api_name:seniority_adjustment_type

	ReasonsForSeniorityAdjustment *string `json:"reasons_for_seniority_adjustment,omitempty"` // 司龄调整原因

	StartDate *string `json:"start_date,omitempty"` // 开始日期;- 格式: yyyy-mm-dd

	EndDate *string `json:"end_date,omitempty"` // 结束日期;- 格式: yyyy-mm-dd
}

type PrehireSeniorityAdjustInformationUpdateBuilder added in v3.4.1

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

func NewPrehireSeniorityAdjustInformationUpdateBuilder added in v3.4.1

func NewPrehireSeniorityAdjustInformationUpdateBuilder() *PrehireSeniorityAdjustInformationUpdateBuilder

func (*PrehireSeniorityAdjustInformationUpdateBuilder) Build added in v3.4.1

func (*PrehireSeniorityAdjustInformationUpdateBuilder) EndDate added in v3.4.1

结束日期;- 格式: yyyy-mm-dd

示例值:2024-11-18

func (*PrehireSeniorityAdjustInformationUpdateBuilder) ReasonsForSeniorityAdjustment added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationUpdateBuilder) ReasonsForSeniorityAdjustment(reasonsForSeniorityAdjustment string) *PrehireSeniorityAdjustInformationUpdateBuilder

司龄调整原因

示例值:工厂停产需要减去半年工龄

func (*PrehireSeniorityAdjustInformationUpdateBuilder) SeniorityAdjustment added in v3.4.1

调整值;- 精确度:两位小数;- 单位:年

示例值:0.5

func (*PrehireSeniorityAdjustInformationUpdateBuilder) SeniorityAdjustmentType added in v3.4.1

func (builder *PrehireSeniorityAdjustInformationUpdateBuilder) SeniorityAdjustmentType(seniorityAdjustmentType string) *PrehireSeniorityAdjustInformationUpdateBuilder

调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:seniority_adjust_information; - custom_api_name:seniority_adjustment_type

示例值:增加

func (*PrehireSeniorityAdjustInformationUpdateBuilder) StartDate added in v3.4.1

开始日期;- 格式: yyyy-mm-dd

示例值:2024-05-19

type PrehireUpdate added in v3.2.3

type PrehireUpdate struct {
	BasicInfoUpdate *BasicInfoUpdate `json:"basic_info_update,omitempty"` // 更新个人(person)信息

	OfferInfoUpdate *OfferInfoUpdate `json:"offer_info_update,omitempty"` // 更新待入职(prehire)信息

	StandardUpdateFields []string `json:"standard_update_fields,omitempty"` // 指定需要更新的系统字段,只支持最多下钻一层,格式如下:; - basic_info_update字段:basic_info_update.name(对name整体进行覆盖更新);basic_info_update.emails(对邮箱整体进行更新); - offer_info_update字段:offer_info_update.onboarding_method; - 招聘ID:ats_application_id

	CustomUpdateFields []string `json:"custom_update_fields,omitempty"` // 指定需要更新的PreHire对象上的自定义字段,格式如下:; - custom_field1__c

	PersonCustomUpdateFields []string `json:"person_custom_update_fields,omitempty"` // 指定需要更新的Person对象上的自定义字段,格式如下:; - custom_field1__c
}

type PrehireUpdateBuilder added in v3.2.3

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

func NewPrehireUpdateBuilder added in v3.2.3

func NewPrehireUpdateBuilder() *PrehireUpdateBuilder

func (*PrehireUpdateBuilder) BasicInfoUpdate added in v3.2.3

func (builder *PrehireUpdateBuilder) BasicInfoUpdate(basicInfoUpdate *BasicInfoUpdate) *PrehireUpdateBuilder

更新个人(person)信息

示例值:

func (*PrehireUpdateBuilder) Build added in v3.2.3

func (builder *PrehireUpdateBuilder) Build() *PrehireUpdate

func (*PrehireUpdateBuilder) CustomUpdateFields added in v3.2.3

func (builder *PrehireUpdateBuilder) CustomUpdateFields(customUpdateFields []string) *PrehireUpdateBuilder

指定需要更新的PreHire对象上的自定义字段,格式如下:; - custom_field1__c

示例值:\["custom_field1__c","custom_field2__c"\]

func (*PrehireUpdateBuilder) OfferInfoUpdate added in v3.2.3

func (builder *PrehireUpdateBuilder) OfferInfoUpdate(offerInfoUpdate *OfferInfoUpdate) *PrehireUpdateBuilder

更新待入职(prehire)信息

示例值:

func (*PrehireUpdateBuilder) PersonCustomUpdateFields added in v3.2.8

func (builder *PrehireUpdateBuilder) PersonCustomUpdateFields(personCustomUpdateFields []string) *PrehireUpdateBuilder

指定需要更新的Person对象上的自定义字段,格式如下:; - custom_field1__c

示例值:\["custom_field1__c","custom_field2__c"\]

func (*PrehireUpdateBuilder) StandardUpdateFields added in v3.2.3

func (builder *PrehireUpdateBuilder) StandardUpdateFields(standardUpdateFields []string) *PrehireUpdateBuilder

指定需要更新的系统字段,只支持最多下钻一层,格式如下:; - basic_info_update字段:basic_info_update.name(对name整体进行覆盖更新);basic_info_update.emails(对邮箱整体进行更新); - offer_info_update字段:offer_info_update.onboarding_method; - 招聘ID:ats_application_id

示例值:\["basic_info_update.names","offer_info_update.onboarding_method"\]

type ProbationInfo

type ProbationInfo struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID

	ProbationId *string `json:"probation_id,omitempty"` // 试用期信息 ID

	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationExpectedEndDate *string `json:"probation_expected_end_date,omitempty"` // 试用期预计结束日期

	ActualProbationEndDate *string `json:"actual_probation_end_date,omitempty"` // 试用期实际结束日期

	InitiatingTime *string `json:"initiating_time,omitempty"` // 转正发起日期

	SubmissionType *Enum `json:"submission_type,omitempty"` // 发起方

	InitiatorId *string `json:"initiator_id,omitempty"` // 转正发起人的雇佣 ID,当系统发起转正时该字段为空

	ProbationStatus *Enum `json:"probation_status,omitempty"` // 试用期状态

	SelfReview *string `json:"self_review,omitempty"` // 员工自评

	Notes *string `json:"notes,omitempty"` // 备注

	ProcessId *string `json:"process_id,omitempty"` // 流程实例 ID

	ConvertedViaBpm *bool `json:"converted_via_bpm,omitempty"` // 是否通过 BPM 转正

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	FinalAssessmentStatus *Enum `json:"final_assessment_status,omitempty"` // 试用期考核最终状态

	FinalAssessmentResult *Enum `json:"final_assessment_result,omitempty"` // 试用期考核最终结果

	FinalAssessmentScore *float64 `json:"final_assessment_score,omitempty"` // 试用期考核最终得分

	FinalAssessmentGrade *Enum `json:"final_assessment_grade,omitempty"` // 试用期考核最终等级

	FinalAssessmentComment *string `json:"final_assessment_comment,omitempty"` // 试用期考核最终评语

	FinalAssessmentDetail *string `json:"final_assessment_detail,omitempty"` // 最终考核结果页面超链接

	Assessments []*Assessment `json:"assessments,omitempty"` // 试用期考核结果列表

	ProbationExtendExpectedEndDate *string `json:"probation_extend_expected_end_date,omitempty"` // 试用期延长后的预计结束日期

	ExtendedProbationPeriodDuration *int `json:"extended_probation_period_duration,omitempty"` // 试用期延长时间

	ExtendedProbationPeriodUnit *Enum `json:"extended_probation_period_unit,omitempty"` // 试用期延长时间单位

	ProbationOutcome *Enum `json:"probation_outcome,omitempty"` // 试用期结果
}

type ProbationInfoBuilder

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

func NewProbationInfoBuilder

func NewProbationInfoBuilder() *ProbationInfoBuilder

func (*ProbationInfoBuilder) ActualProbationEndDate

func (builder *ProbationInfoBuilder) ActualProbationEndDate(actualProbationEndDate string) *ProbationInfoBuilder

试用期实际结束日期

示例值:2022-06-28

func (*ProbationInfoBuilder) Assessments

func (builder *ProbationInfoBuilder) Assessments(assessments []*Assessment) *ProbationInfoBuilder

试用期考核结果列表

示例值:

func (*ProbationInfoBuilder) Build

func (builder *ProbationInfoBuilder) Build() *ProbationInfo

func (*ProbationInfoBuilder) ConvertedViaBpm

func (builder *ProbationInfoBuilder) ConvertedViaBpm(convertedViaBpm bool) *ProbationInfoBuilder

是否通过 BPM 转正

示例值:false

func (*ProbationInfoBuilder) CustomFields

func (builder *ProbationInfoBuilder) CustomFields(customFields []*CustomFieldData) *ProbationInfoBuilder

自定义字段

示例值:

func (*ProbationInfoBuilder) EmploymentId

func (builder *ProbationInfoBuilder) EmploymentId(employmentId string) *ProbationInfoBuilder

雇佣 ID

示例值:6893014062142064135

func (*ProbationInfoBuilder) ExtendedProbationPeriodDuration added in v3.3.4

func (builder *ProbationInfoBuilder) ExtendedProbationPeriodDuration(extendedProbationPeriodDuration int) *ProbationInfoBuilder

试用期延长时间

示例值:1

func (*ProbationInfoBuilder) ExtendedProbationPeriodUnit added in v3.3.4

func (builder *ProbationInfoBuilder) ExtendedProbationPeriodUnit(extendedProbationPeriodUnit *Enum) *ProbationInfoBuilder

试用期延长时间单位

示例值:month

func (*ProbationInfoBuilder) FinalAssessmentComment

func (builder *ProbationInfoBuilder) FinalAssessmentComment(finalAssessmentComment string) *ProbationInfoBuilder

试用期考核最终评语

示例值:超出预期

func (*ProbationInfoBuilder) FinalAssessmentGrade

func (builder *ProbationInfoBuilder) FinalAssessmentGrade(finalAssessmentGrade *Enum) *ProbationInfoBuilder

试用期考核最终等级

示例值:grade_a

func (*ProbationInfoBuilder) FinalAssessmentResult

func (builder *ProbationInfoBuilder) FinalAssessmentResult(finalAssessmentResult *Enum) *ProbationInfoBuilder

试用期考核最终结果

示例值:approved

func (*ProbationInfoBuilder) FinalAssessmentScore

func (builder *ProbationInfoBuilder) FinalAssessmentScore(finalAssessmentScore float64) *ProbationInfoBuilder

试用期考核最终得分

示例值:99.9

func (*ProbationInfoBuilder) FinalAssessmentStatus

func (builder *ProbationInfoBuilder) FinalAssessmentStatus(finalAssessmentStatus *Enum) *ProbationInfoBuilder

试用期考核最终状态

示例值:completed

func (*ProbationInfoBuilder) InitiatingTime

func (builder *ProbationInfoBuilder) InitiatingTime(initiatingTime string) *ProbationInfoBuilder

转正发起日期

示例值:2022-07-28

func (*ProbationInfoBuilder) InitiatorId

func (builder *ProbationInfoBuilder) InitiatorId(initiatorId string) *ProbationInfoBuilder

转正发起人的雇佣 ID,当系统发起转正时该字段为空

示例值:6893014062142061135

func (*ProbationInfoBuilder) Notes

func (builder *ProbationInfoBuilder) Notes(notes string) *ProbationInfoBuilder

备注

示例值:高潜

func (*ProbationInfoBuilder) ProbationExpectedEndDate

func (builder *ProbationInfoBuilder) ProbationExpectedEndDate(probationExpectedEndDate string) *ProbationInfoBuilder

试用期预计结束日期

示例值:2022-05-28

func (*ProbationInfoBuilder) ProbationExtendExpectedEndDate added in v3.3.4

func (builder *ProbationInfoBuilder) ProbationExtendExpectedEndDate(probationExtendExpectedEndDate string) *ProbationInfoBuilder

试用期延长后的预计结束日期

示例值:2022-05-20

func (*ProbationInfoBuilder) ProbationId

func (builder *ProbationInfoBuilder) ProbationId(probationId string) *ProbationInfoBuilder

试用期信息 ID

示例值:6893014062142064132

func (*ProbationInfoBuilder) ProbationOutcome added in v3.3.4

func (builder *ProbationInfoBuilder) ProbationOutcome(probationOutcome *Enum) *ProbationInfoBuilder

试用期结果

示例值:passed

func (*ProbationInfoBuilder) ProbationStartDate

func (builder *ProbationInfoBuilder) ProbationStartDate(probationStartDate string) *ProbationInfoBuilder

试用期开始日期

示例值:2022-05-20

func (*ProbationInfoBuilder) ProbationStatus

func (builder *ProbationInfoBuilder) ProbationStatus(probationStatus *Enum) *ProbationInfoBuilder

试用期状态

示例值:converted

func (*ProbationInfoBuilder) ProcessId

func (builder *ProbationInfoBuilder) ProcessId(processId string) *ProbationInfoBuilder

流程实例 ID

示例值:6893014062142164135

func (*ProbationInfoBuilder) SelfReview

func (builder *ProbationInfoBuilder) SelfReview(selfReview string) *ProbationInfoBuilder

员工自评

示例值:符合预期

func (*ProbationInfoBuilder) SubmissionType

func (builder *ProbationInfoBuilder) SubmissionType(submissionType *Enum) *ProbationInfoBuilder

发起方

示例值:hr_submission

type ProbationInfoForSubmit

type ProbationInfoForSubmit struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 雇佣 ID

	ProbationId *string `json:"probation_id,omitempty"` // 试用期信息 ID

	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationExpectedEndDate *string `json:"probation_expected_end_date,omitempty"` // 试用期预计结束日期

	ActualProbationEndDate *string `json:"actual_probation_end_date,omitempty"` // 试用期实际结束日期

	InitiatingTime *string `json:"initiating_time,omitempty"` // 转正发起日期

	SubmissionType *Enum `json:"submission_type,omitempty"` // 发起方

	InitiatorId *string `json:"initiator_id,omitempty"` // 转正发起人的雇佣 ID,当系统发起转正时该字段为空

	ProbationStatus *Enum `json:"probation_status,omitempty"` // 试用期状态

	SelfReview *string `json:"self_review,omitempty"` // 员工自评

	Notes *string `json:"notes,omitempty"` // 备注

	ProcessId *string `json:"process_id,omitempty"` // 流程实例 ID

	ConvertedViaBpm *bool `json:"converted_via_bpm,omitempty"` // 是否通过 BPM 转正

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段

	FinalAssessmentStatus *Enum `json:"final_assessment_status,omitempty"` // 试用期考核最终状态

	FinalAssessmentResult *Enum `json:"final_assessment_result,omitempty"` // 试用期考核最终结果

	FinalAssessmentScore *float64 `json:"final_assessment_score,omitempty"` // 试用期考核最终得分

	FinalAssessmentGrade *Enum `json:"final_assessment_grade,omitempty"` // 试用期考核最终等级

	FinalAssessmentComment *string `json:"final_assessment_comment,omitempty"` // 试用期考核最终评语

	FinalAssessmentDetail *string `json:"final_assessment_detail,omitempty"` // 最终考核结果页面超链接
}

type ProbationInfoForSubmitBuilder

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

func NewProbationInfoForSubmitBuilder

func NewProbationInfoForSubmitBuilder() *ProbationInfoForSubmitBuilder

func (*ProbationInfoForSubmitBuilder) ActualProbationEndDate

func (builder *ProbationInfoForSubmitBuilder) ActualProbationEndDate(actualProbationEndDate string) *ProbationInfoForSubmitBuilder

试用期实际结束日期

示例值:2022-06-28

func (*ProbationInfoForSubmitBuilder) Build

func (*ProbationInfoForSubmitBuilder) ConvertedViaBpm

func (builder *ProbationInfoForSubmitBuilder) ConvertedViaBpm(convertedViaBpm bool) *ProbationInfoForSubmitBuilder

是否通过 BPM 转正

示例值:false

func (*ProbationInfoForSubmitBuilder) CustomFields

func (builder *ProbationInfoForSubmitBuilder) CustomFields(customFields []*CustomFieldData) *ProbationInfoForSubmitBuilder

自定义字段

示例值:

func (*ProbationInfoForSubmitBuilder) EmploymentId

func (builder *ProbationInfoForSubmitBuilder) EmploymentId(employmentId string) *ProbationInfoForSubmitBuilder

雇佣 ID

示例值:6893014062142064135

func (*ProbationInfoForSubmitBuilder) FinalAssessmentComment

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentComment(finalAssessmentComment string) *ProbationInfoForSubmitBuilder

试用期考核最终评语

示例值:超出预期

func (*ProbationInfoForSubmitBuilder) FinalAssessmentDetail

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentDetail(finalAssessmentDetail string) *ProbationInfoForSubmitBuilder

最终考核结果页面超链接

示例值:暂无示例

func (*ProbationInfoForSubmitBuilder) FinalAssessmentGrade

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentGrade(finalAssessmentGrade *Enum) *ProbationInfoForSubmitBuilder

试用期考核最终等级

示例值:grade_a

func (*ProbationInfoForSubmitBuilder) FinalAssessmentResult

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentResult(finalAssessmentResult *Enum) *ProbationInfoForSubmitBuilder

试用期考核最终结果

示例值:approved

func (*ProbationInfoForSubmitBuilder) FinalAssessmentScore

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentScore(finalAssessmentScore float64) *ProbationInfoForSubmitBuilder

试用期考核最终得分

示例值:99.9

func (*ProbationInfoForSubmitBuilder) FinalAssessmentStatus

func (builder *ProbationInfoForSubmitBuilder) FinalAssessmentStatus(finalAssessmentStatus *Enum) *ProbationInfoForSubmitBuilder

试用期考核最终状态

示例值:completed

func (*ProbationInfoForSubmitBuilder) InitiatingTime

func (builder *ProbationInfoForSubmitBuilder) InitiatingTime(initiatingTime string) *ProbationInfoForSubmitBuilder

转正发起日期

示例值:2022-07-28

func (*ProbationInfoForSubmitBuilder) InitiatorId

func (builder *ProbationInfoForSubmitBuilder) InitiatorId(initiatorId string) *ProbationInfoForSubmitBuilder

转正发起人的雇佣 ID,当系统发起转正时该字段为空

示例值:6893014062142061135

func (*ProbationInfoForSubmitBuilder) Notes

备注

示例值:高潜

func (*ProbationInfoForSubmitBuilder) ProbationExpectedEndDate

func (builder *ProbationInfoForSubmitBuilder) ProbationExpectedEndDate(probationExpectedEndDate string) *ProbationInfoForSubmitBuilder

试用期预计结束日期

示例值:2022-05-28

func (*ProbationInfoForSubmitBuilder) ProbationId

func (builder *ProbationInfoForSubmitBuilder) ProbationId(probationId string) *ProbationInfoForSubmitBuilder

试用期信息 ID

示例值:6893014062142064132

func (*ProbationInfoForSubmitBuilder) ProbationStartDate

func (builder *ProbationInfoForSubmitBuilder) ProbationStartDate(probationStartDate string) *ProbationInfoForSubmitBuilder

试用期开始日期

示例值:2022-05-20

func (*ProbationInfoForSubmitBuilder) ProbationStatus

func (builder *ProbationInfoForSubmitBuilder) ProbationStatus(probationStatus *Enum) *ProbationInfoForSubmitBuilder

试用期状态

示例值:converted

func (*ProbationInfoForSubmitBuilder) ProcessId

流程实例 ID

示例值:6893014062142164135

func (*ProbationInfoForSubmitBuilder) SelfReview

func (builder *ProbationInfoForSubmitBuilder) SelfReview(selfReview string) *ProbationInfoForSubmitBuilder

员工自评

示例值:符合预期

func (*ProbationInfoForSubmitBuilder) SubmissionType

func (builder *ProbationInfoForSubmitBuilder) SubmissionType(submissionType *Enum) *ProbationInfoForSubmitBuilder

发起方

示例值:hr_submission

type ProcessAbstractItem

type ProcessAbstractItem struct {
	Name *DataengineI18n `json:"name,omitempty"` // 摘要标题

	Value *DataengineI18n `json:"value,omitempty"` // 摘要值
}

type ProcessAbstractItemBuilder

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

func NewProcessAbstractItemBuilder

func NewProcessAbstractItemBuilder() *ProcessAbstractItemBuilder

func (*ProcessAbstractItemBuilder) Build

func (*ProcessAbstractItemBuilder) Name

摘要标题

示例值:

func (*ProcessAbstractItemBuilder) Value

摘要值

示例值:

type ProcessApprover added in v3.2.1

type ProcessApprover struct {
	Status *int `json:"status,omitempty"` // 将审批任务修改为同意/拒绝

	UserId *string `json:"user_id,omitempty"` // 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。

	SystemApproval *bool `json:"system_approval,omitempty"` // true - 使用系统身份审批

	Reason *string `json:"reason,omitempty"` // 通过原因,长度限制为500

	FieldValuesV2 []*ProcessFormVariableV2 `json:"field_values_v2,omitempty"` // 表单数据
}

type ProcessApproverBuilder added in v3.2.1

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

func NewProcessApproverBuilder added in v3.2.1

func NewProcessApproverBuilder() *ProcessApproverBuilder

func (*ProcessApproverBuilder) Build added in v3.2.1

func (builder *ProcessApproverBuilder) Build() *ProcessApprover

func (*ProcessApproverBuilder) FieldValuesV2 added in v3.2.5

func (builder *ProcessApproverBuilder) FieldValuesV2(fieldValuesV2 []*ProcessFormVariableV2) *ProcessApproverBuilder

表单数据

示例值:

func (*ProcessApproverBuilder) Reason added in v3.2.1

func (builder *ProcessApproverBuilder) Reason(reason string) *ProcessApproverBuilder

通过原因,长度限制为500

示例值:原因自定义字符串

func (*ProcessApproverBuilder) Status added in v3.2.1

func (builder *ProcessApproverBuilder) Status(status int) *ProcessApproverBuilder

将审批任务修改为同意/拒绝

示例值:2

func (*ProcessApproverBuilder) SystemApproval added in v3.2.1

func (builder *ProcessApproverBuilder) SystemApproval(systemApproval bool) *ProcessApproverBuilder

true - 使用系统身份审批

示例值:true

func (*ProcessApproverBuilder) UserId added in v3.2.1

func (builder *ProcessApproverBuilder) UserId(userId string) *ProcessApproverBuilder

按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。

示例值:ou_91791271921729102012

type ProcessCcItem

type ProcessCcItem struct {
	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Links *ProcessLink `json:"links,omitempty"` // 单据地址

	OperatorId *string `json:"operator_id,omitempty"` // 抄送人ID

	OperatorName *DataengineI18n `json:"operator_name,omitempty"` // 抄送人姓名

	NodeName *DataengineI18n `json:"node_name,omitempty"` // 节点名称

	CreateTime *string `json:"create_time,omitempty"` // 抄送时间,Unix毫秒时间戳

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)
}

type ProcessCcItemBuilder

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

func NewProcessCcItemBuilder

func NewProcessCcItemBuilder() *ProcessCcItemBuilder

func (*ProcessCcItemBuilder) ApproverId

func (builder *ProcessCcItemBuilder) ApproverId(approverId string) *ProcessCcItemBuilder

单据ID

示例值:7278949005675988535

func (*ProcessCcItemBuilder) Build

func (builder *ProcessCcItemBuilder) Build() *ProcessCcItem

func (*ProcessCcItemBuilder) CreateTime

func (builder *ProcessCcItemBuilder) CreateTime(createTime string) *ProcessCcItemBuilder

抄送时间,Unix毫秒时间戳

示例值:1694769814036

func (builder *ProcessCcItemBuilder) Links(links *ProcessLink) *ProcessCcItemBuilder

单据地址

示例值:

func (*ProcessCcItemBuilder) NodeDefinitionId added in v3.2.1

func (builder *ProcessCcItemBuilder) NodeDefinitionId(nodeDefinitionId string) *ProcessCcItemBuilder

节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

示例值:approval_d25b5eddfef

func (*ProcessCcItemBuilder) NodeName

func (builder *ProcessCcItemBuilder) NodeName(nodeName *DataengineI18n) *ProcessCcItemBuilder

节点名称

示例值:

func (*ProcessCcItemBuilder) OperatorId

func (builder *ProcessCcItemBuilder) OperatorId(operatorId string) *ProcessCcItemBuilder

抄送人ID

示例值:7124991993901827628

func (*ProcessCcItemBuilder) OperatorName

func (builder *ProcessCcItemBuilder) OperatorName(operatorName *DataengineI18n) *ProcessCcItemBuilder

抄送人姓名

示例值:

type ProcessCommentInfo added in v3.3.4

type ProcessCommentInfo struct {
	CommentorId *string `json:"commentor_id,omitempty"` // 评论人id

	CommentorName *DataengineI18n `json:"commentor_name,omitempty"` // 评论人姓名

	CommentTime *string `json:"comment_time,omitempty"` // 评论时间,Unix毫秒时间戳

	CommentMsg *string `json:"comment_msg,omitempty"` // 评论内容
}

type ProcessCommentInfoBuilder added in v3.3.4

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

func NewProcessCommentInfoBuilder added in v3.3.4

func NewProcessCommentInfoBuilder() *ProcessCommentInfoBuilder

func (*ProcessCommentInfoBuilder) Build added in v3.3.4

func (*ProcessCommentInfoBuilder) CommentMsg added in v3.3.4

func (builder *ProcessCommentInfoBuilder) CommentMsg(commentMsg string) *ProcessCommentInfoBuilder

评论内容

示例值:评论内容

func (*ProcessCommentInfoBuilder) CommentTime added in v3.3.4

func (builder *ProcessCommentInfoBuilder) CommentTime(commentTime string) *ProcessCommentInfoBuilder

评论时间,Unix毫秒时间戳

示例值:1694769814036

func (*ProcessCommentInfoBuilder) CommentorId added in v3.3.4

func (builder *ProcessCommentInfoBuilder) CommentorId(commentorId string) *ProcessCommentInfoBuilder

评论人id

示例值:7355397217231831060

func (*ProcessCommentInfoBuilder) CommentorName added in v3.3.4

func (builder *ProcessCommentInfoBuilder) CommentorName(commentorName *DataengineI18n) *ProcessCommentInfoBuilder

评论人姓名

示例值:

type ProcessDoneItem

type ProcessDoneItem struct {
	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Type *int `json:"type,omitempty"` // 单据类型

	Status *int `json:"status,omitempty"` // 单据状态

	Links *ProcessLink `json:"links,omitempty"` // 单据地址

	OperatorId *string `json:"operator_id,omitempty"` // 操作人ID

	OperatorName *DataengineI18n `json:"operator_name,omitempty"` // 操作人姓名

	NodeName *DataengineI18n `json:"node_name,omitempty"` // 节点名称

	CreateTime *string `json:"create_time,omitempty"` // 创建时间,Unix毫秒时间戳

	CompleteTime *string `json:"complete_time,omitempty"` // 完成时间,Unix毫秒时间戳

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

	ApprovalOpinion *string `json:"approval_opinion,omitempty"` // 审批意见
}

type ProcessDoneItemBuilder

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

func NewProcessDoneItemBuilder

func NewProcessDoneItemBuilder() *ProcessDoneItemBuilder

func (*ProcessDoneItemBuilder) ApprovalOpinion added in v3.3.4

func (builder *ProcessDoneItemBuilder) ApprovalOpinion(approvalOpinion string) *ProcessDoneItemBuilder

审批意见

示例值:审批意见

func (*ProcessDoneItemBuilder) ApproverId

func (builder *ProcessDoneItemBuilder) ApproverId(approverId string) *ProcessDoneItemBuilder

单据ID

示例值:7278949005675988535

func (*ProcessDoneItemBuilder) Build

func (builder *ProcessDoneItemBuilder) Build() *ProcessDoneItem

func (*ProcessDoneItemBuilder) CompleteTime

func (builder *ProcessDoneItemBuilder) CompleteTime(completeTime string) *ProcessDoneItemBuilder

完成时间,Unix毫秒时间戳

示例值:1694769814036

func (*ProcessDoneItemBuilder) CreateTime

func (builder *ProcessDoneItemBuilder) CreateTime(createTime string) *ProcessDoneItemBuilder

创建时间,Unix毫秒时间戳

示例值:1694769814036

单据地址

示例值:

func (*ProcessDoneItemBuilder) NodeDefinitionId added in v3.2.1

func (builder *ProcessDoneItemBuilder) NodeDefinitionId(nodeDefinitionId string) *ProcessDoneItemBuilder

节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

示例值:approval_d25b5eddfef

func (*ProcessDoneItemBuilder) NodeName

func (builder *ProcessDoneItemBuilder) NodeName(nodeName *DataengineI18n) *ProcessDoneItemBuilder

节点名称

示例值:

func (*ProcessDoneItemBuilder) OperatorId

func (builder *ProcessDoneItemBuilder) OperatorId(operatorId string) *ProcessDoneItemBuilder

操作人ID

示例值:7124991993901827628

func (*ProcessDoneItemBuilder) OperatorName

func (builder *ProcessDoneItemBuilder) OperatorName(operatorName *DataengineI18n) *ProcessDoneItemBuilder

操作人姓名

示例值:

func (*ProcessDoneItemBuilder) Status

func (builder *ProcessDoneItemBuilder) Status(status int) *ProcessDoneItemBuilder

单据状态

示例值:3

func (*ProcessDoneItemBuilder) Type

func (builder *ProcessDoneItemBuilder) Type(type_ int) *ProcessDoneItemBuilder

单据类型

示例值:1

type ProcessExtra added in v3.3.5

type ProcessExtra struct {
	Operator *string `json:"operator,omitempty"` // 操作人,当system_user为true时,可以不传值

	NodeId *string `json:"node_id,omitempty"` // 流程节点id,与approver_id二选一传入,都传以node_id为准

	ApproverId *string `json:"approver_id,omitempty"` // 审批任务id,与node_id二选一传入,都传以node_id为准

	ExtraType *int `json:"extra_type,omitempty"` // 加签方式

	ApprovalType *int `json:"approval_type,omitempty"` // 多人加签时的审批方式

	ExtraUserIds []string `json:"extra_user_ids,omitempty"` // 加签人员id列表

	Remark *string `json:"remark,omitempty"` // 备注

	SystemUser *bool `json:"system_user,omitempty"` // true-以系统身份操作
}

type ProcessExtraBuilder added in v3.3.5

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

func NewProcessExtraBuilder added in v3.3.5

func NewProcessExtraBuilder() *ProcessExtraBuilder

func (*ProcessExtraBuilder) ApprovalType added in v3.3.5

func (builder *ProcessExtraBuilder) ApprovalType(approvalType int) *ProcessExtraBuilder

多人加签时的审批方式

示例值:1

func (*ProcessExtraBuilder) ApproverId added in v3.3.5

func (builder *ProcessExtraBuilder) ApproverId(approverId string) *ProcessExtraBuilder

审批任务id,与node_id二选一传入,都传以node_id为准

示例值:7424452160928106028

func (*ProcessExtraBuilder) Build added in v3.3.5

func (builder *ProcessExtraBuilder) Build() *ProcessExtra

func (*ProcessExtraBuilder) ExtraType added in v3.3.5

func (builder *ProcessExtraBuilder) ExtraType(extraType int) *ProcessExtraBuilder

加签方式

示例值:1

func (*ProcessExtraBuilder) ExtraUserIds added in v3.3.5

func (builder *ProcessExtraBuilder) ExtraUserIds(extraUserIds []string) *ProcessExtraBuilder

加签人员id列表

示例值:

func (*ProcessExtraBuilder) NodeId added in v3.3.5

func (builder *ProcessExtraBuilder) NodeId(nodeId string) *ProcessExtraBuilder

流程节点id,与approver_id二选一传入,都传以node_id为准

示例值:7414045453433439788

func (*ProcessExtraBuilder) Operator added in v3.3.5

func (builder *ProcessExtraBuilder) Operator(operator string) *ProcessExtraBuilder

操作人,当system_user为true时,可以不传值

示例值:7184703091806602796

func (*ProcessExtraBuilder) Remark added in v3.3.5

func (builder *ProcessExtraBuilder) Remark(remark string) *ProcessExtraBuilder

备注

示例值:备注

func (*ProcessExtraBuilder) SystemUser added in v3.4.1

func (builder *ProcessExtraBuilder) SystemUser(systemUser bool) *ProcessExtraBuilder

true-以系统身份操作

示例值:true

type ProcessFormVariable added in v3.2.1

type ProcessFormVariable struct {
	VariableApiName *string `json:"variable_api_name,omitempty"` // 变量的apiName

	VariableValue *FormVariableValueInfo `json:"variable_value,omitempty"` // 变量值
}

type ProcessFormVariableBuilder added in v3.2.1

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

func NewProcessFormVariableBuilder added in v3.2.1

func NewProcessFormVariableBuilder() *ProcessFormVariableBuilder

func (*ProcessFormVariableBuilder) Build added in v3.2.1

func (*ProcessFormVariableBuilder) VariableApiName added in v3.2.1

func (builder *ProcessFormVariableBuilder) VariableApiName(variableApiName string) *ProcessFormVariableBuilder

变量的apiName

示例值:custom590dbafb84a

func (*ProcessFormVariableBuilder) VariableValue added in v3.2.1

func (builder *ProcessFormVariableBuilder) VariableValue(variableValue *FormVariableValueInfo) *ProcessFormVariableBuilder

变量值

示例值:

type ProcessFormVariableV2 added in v3.2.5

type ProcessFormVariableV2 struct {
	VariableApiName *string `json:"variable_api_name,omitempty"` // 变量唯一标识

	VariableValue *FieldVariableValueToForReview `json:"variable_value,omitempty"` // 变量值

	SubValues []*FieldVariableSubVlaueForReview `json:"sub_values,omitempty"` // 在list_values和record_values中引用的变量
}

type ProcessFormVariableV2Builder added in v3.2.5

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

func NewProcessFormVariableV2Builder added in v3.2.5

func NewProcessFormVariableV2Builder() *ProcessFormVariableV2Builder

func (*ProcessFormVariableV2Builder) Build added in v3.2.5

func (*ProcessFormVariableV2Builder) SubValues added in v3.2.5

在list_values和record_values中引用的变量

示例值:

func (*ProcessFormVariableV2Builder) VariableApiName added in v3.2.5

func (builder *ProcessFormVariableV2Builder) VariableApiName(variableApiName string) *ProcessFormVariableV2Builder

变量唯一标识

示例值:custom123

func (*ProcessFormVariableV2Builder) VariableValue added in v3.2.5

变量值

示例值:

type ProcessInfo added in v3.3.4

type ProcessInfo struct {
	ProcessId *string `json:"process_id,omitempty"` // 组织架构调整流程 ID

	ApprovalGroupStatus *string `json:"approval_group_status,omitempty"` // 组织架构调整流程状态
}

type ProcessInfoBuilder added in v3.3.4

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

func NewProcessInfoBuilder added in v3.3.4

func NewProcessInfoBuilder() *ProcessInfoBuilder

func (*ProcessInfoBuilder) ApprovalGroupStatus added in v3.3.4

func (builder *ProcessInfoBuilder) ApprovalGroupStatus(approvalGroupStatus string) *ProcessInfoBuilder

组织架构调整流程状态

示例值:

func (*ProcessInfoBuilder) Build added in v3.3.4

func (builder *ProcessInfoBuilder) Build() *ProcessInfo

func (*ProcessInfoBuilder) ProcessId added in v3.3.4

func (builder *ProcessInfoBuilder) ProcessId(processId string) *ProcessInfoBuilder

组织架构调整流程 ID

示例值:6991776076699549697

type ProcessLink struct {
	WebLink *string `json:"web_link,omitempty"` // web端单据详情页地址

	PcLink *string `json:"pc_link,omitempty"` // 飞书pc端单据详情页地址

	MobileLink *string `json:"mobile_link,omitempty"` // 飞书移动端单据详情页地址
}

type ProcessLinkBuilder

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

func NewProcessLinkBuilder

func NewProcessLinkBuilder() *ProcessLinkBuilder

func (*ProcessLinkBuilder) Build

func (builder *ProcessLinkBuilder) Build() *ProcessLink
func (builder *ProcessLinkBuilder) MobileLink(mobileLink string) *ProcessLinkBuilder

飞书移动端单据详情页地址

示例值:https://applink.feishu.cn/client/mini_program/open?appId=xxx

func (builder *ProcessLinkBuilder) PcLink(pcLink string) *ProcessLinkBuilder

飞书pc端单据详情页地址

示例值:https://applink.feishu.cn/client/mini_program/open?appId=xxx

func (builder *ProcessLinkBuilder) WebLink(webLink string) *ProcessLinkBuilder

web端单据详情页地址

示例值:http://xxxx.com/xxx/xxx?a=b

type ProcessRevokeAndWithdraw added in v3.3.5

type ProcessRevokeAndWithdraw struct {
	UserId *string `json:"user_id,omitempty"` // 按照指定的用户ID类型传递对应的用户ID。

	Reason *string `json:"reason,omitempty"` // 原因

	SystemUser *bool `json:"system_user,omitempty"` // true-系统身份操作
}

type ProcessRevokeAndWithdrawBuilder added in v3.3.5

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

func NewProcessRevokeAndWithdrawBuilder added in v3.3.5

func NewProcessRevokeAndWithdrawBuilder() *ProcessRevokeAndWithdrawBuilder

func (*ProcessRevokeAndWithdrawBuilder) Build added in v3.3.5

func (*ProcessRevokeAndWithdrawBuilder) Reason added in v3.3.5

原因

示例值:原因自定义字符串

func (*ProcessRevokeAndWithdrawBuilder) SystemUser added in v3.4.1

func (builder *ProcessRevokeAndWithdrawBuilder) SystemUser(systemUser bool) *ProcessRevokeAndWithdrawBuilder

true-系统身份操作

示例值:true

func (*ProcessRevokeAndWithdrawBuilder) UserId added in v3.3.5

按照指定的用户ID类型传递对应的用户ID。

示例值:ou_91791271921729102012

type ProcessSystemDoneItem added in v3.3.1

type ProcessSystemDoneItem struct {
	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Type *int `json:"type,omitempty"` // 单据类型

	Status *int `json:"status,omitempty"` // 单据状态

	Links *ProcessLink `json:"links,omitempty"` // 单据地址

	OperatorName *DataengineI18n `json:"operator_name,omitempty"` // 操作人姓名

	NodeName *DataengineI18n `json:"node_name,omitempty"` // 节点名称

	CreateTime *string `json:"create_time,omitempty"` // 创建时间,Unix毫秒时间戳

	CompleteTime *string `json:"complete_time,omitempty"` // 完成时间,Unix毫秒时间戳

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

	ApprovalOpinion *string `json:"approval_opinion,omitempty"` // 审批意见
}

type ProcessSystemDoneItemBuilder added in v3.3.1

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

func NewProcessSystemDoneItemBuilder added in v3.3.1

func NewProcessSystemDoneItemBuilder() *ProcessSystemDoneItemBuilder

func (*ProcessSystemDoneItemBuilder) ApprovalOpinion added in v3.3.4

func (builder *ProcessSystemDoneItemBuilder) ApprovalOpinion(approvalOpinion string) *ProcessSystemDoneItemBuilder

审批意见

示例值:审批意见

func (*ProcessSystemDoneItemBuilder) ApproverId added in v3.3.1

func (builder *ProcessSystemDoneItemBuilder) ApproverId(approverId string) *ProcessSystemDoneItemBuilder

单据ID

示例值:7278949005675988535

func (*ProcessSystemDoneItemBuilder) Build added in v3.3.1

func (*ProcessSystemDoneItemBuilder) CompleteTime added in v3.3.1

func (builder *ProcessSystemDoneItemBuilder) CompleteTime(completeTime string) *ProcessSystemDoneItemBuilder

完成时间,Unix毫秒时间戳

示例值:1694769814036

func (*ProcessSystemDoneItemBuilder) CreateTime added in v3.3.1

func (builder *ProcessSystemDoneItemBuilder) CreateTime(createTime string) *ProcessSystemDoneItemBuilder

创建时间,Unix毫秒时间戳

示例值:1694769814036

单据地址

示例值:

func (*ProcessSystemDoneItemBuilder) NodeDefinitionId added in v3.3.1

func (builder *ProcessSystemDoneItemBuilder) NodeDefinitionId(nodeDefinitionId string) *ProcessSystemDoneItemBuilder

节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

示例值:approval_d25b5eddfef

func (*ProcessSystemDoneItemBuilder) NodeName added in v3.3.1

节点名称

示例值:

func (*ProcessSystemDoneItemBuilder) OperatorName added in v3.3.1

func (builder *ProcessSystemDoneItemBuilder) OperatorName(operatorName *DataengineI18n) *ProcessSystemDoneItemBuilder

操作人姓名

示例值:7124991993901827628

func (*ProcessSystemDoneItemBuilder) Status added in v3.3.1

单据状态

示例值:3

func (*ProcessSystemDoneItemBuilder) Type added in v3.3.1

单据类型

示例值:1

type ProcessSystemTodoItem added in v3.3.1

type ProcessSystemTodoItem struct {
	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Type *int `json:"type,omitempty"` // 单据类型

	Links *ProcessLink `json:"links,omitempty"` // 单据地址

	OperatorName *DataengineI18n `json:"operator_name,omitempty"` // 操作人姓名

	NodeName *DataengineI18n `json:"node_name,omitempty"` // 节点名称

	CreateTime *string `json:"create_time,omitempty"` // 创建时间,Unix毫秒时间戳

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)
}

type ProcessSystemTodoItemBuilder added in v3.3.1

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

func NewProcessSystemTodoItemBuilder added in v3.3.1

func NewProcessSystemTodoItemBuilder() *ProcessSystemTodoItemBuilder

func (*ProcessSystemTodoItemBuilder) ApproverId added in v3.3.1

func (builder *ProcessSystemTodoItemBuilder) ApproverId(approverId string) *ProcessSystemTodoItemBuilder

单据ID

示例值:7278949005675988535

func (*ProcessSystemTodoItemBuilder) Build added in v3.3.1

func (*ProcessSystemTodoItemBuilder) CreateTime added in v3.3.1

func (builder *ProcessSystemTodoItemBuilder) CreateTime(createTime string) *ProcessSystemTodoItemBuilder

创建时间,Unix毫秒时间戳

示例值:1694769814036

单据地址

示例值:

func (*ProcessSystemTodoItemBuilder) NodeDefinitionId added in v3.3.1

func (builder *ProcessSystemTodoItemBuilder) NodeDefinitionId(nodeDefinitionId string) *ProcessSystemTodoItemBuilder

节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

示例值:approval_d25b5eddfef

func (*ProcessSystemTodoItemBuilder) NodeName added in v3.3.1

节点名称

示例值:

func (*ProcessSystemTodoItemBuilder) OperatorName added in v3.3.1

func (builder *ProcessSystemTodoItemBuilder) OperatorName(operatorName *DataengineI18n) *ProcessSystemTodoItemBuilder

操作人姓名

示例值:

func (*ProcessSystemTodoItemBuilder) Type added in v3.3.1

单据类型

示例值:1

type ProcessTodoItem

type ProcessTodoItem struct {
	ApproverId *string `json:"approver_id,omitempty"` // 单据ID

	Type *int `json:"type,omitempty"` // 单据类型

	Links *ProcessLink `json:"links,omitempty"` // 单据地址

	OperatorId *string `json:"operator_id,omitempty"` // 操作人ID

	OperatorName *DataengineI18n `json:"operator_name,omitempty"` // 操作人姓名

	NodeName *DataengineI18n `json:"node_name,omitempty"` // 节点名称

	CreateTime *string `json:"create_time,omitempty"` // 创建时间,Unix毫秒时间戳

	NodeDefinitionId *string `json:"node_definition_id,omitempty"` // 节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)
}

type ProcessTodoItemBuilder

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

func NewProcessTodoItemBuilder

func NewProcessTodoItemBuilder() *ProcessTodoItemBuilder

func (*ProcessTodoItemBuilder) ApproverId

func (builder *ProcessTodoItemBuilder) ApproverId(approverId string) *ProcessTodoItemBuilder

单据ID

示例值:7278949005675988535

func (*ProcessTodoItemBuilder) Build

func (builder *ProcessTodoItemBuilder) Build() *ProcessTodoItem

func (*ProcessTodoItemBuilder) CreateTime

func (builder *ProcessTodoItemBuilder) CreateTime(createTime string) *ProcessTodoItemBuilder

创建时间,Unix毫秒时间戳

示例值:1694769814036

单据地址

示例值:

func (*ProcessTodoItemBuilder) NodeDefinitionId added in v3.2.1

func (builder *ProcessTodoItemBuilder) NodeDefinitionId(nodeDefinitionId string) *ProcessTodoItemBuilder

节点定义ID(注:在回退场景,同一个节点会对应多个节点实例)

示例值:approval_d25b5eddfef

func (*ProcessTodoItemBuilder) NodeName

func (builder *ProcessTodoItemBuilder) NodeName(nodeName *DataengineI18n) *ProcessTodoItemBuilder

节点名称

示例值:

func (*ProcessTodoItemBuilder) OperatorId

func (builder *ProcessTodoItemBuilder) OperatorId(operatorId string) *ProcessTodoItemBuilder

操作人ID

示例值:7124991993901827628

func (*ProcessTodoItemBuilder) OperatorName

func (builder *ProcessTodoItemBuilder) OperatorName(operatorName *DataengineI18n) *ProcessTodoItemBuilder

操作人姓名

示例值:

func (*ProcessTodoItemBuilder) Type

func (builder *ProcessTodoItemBuilder) Type(type_ int) *ProcessTodoItemBuilder

单据类型

示例值:1

type ProcessTransfer added in v3.3.5

type ProcessTransfer struct {
	Operator *string `json:"operator,omitempty"` // 操作人,当system_user为true,可不传值

	ToUserId *string `json:"to_user_id,omitempty"` // 被转交人id

	ApproverIds []string `json:"approver_ids,omitempty"` // 待转交审批任务id列表

	Remark *string `json:"remark,omitempty"` // 备注

	SystemUser *bool `json:"system_user,omitempty"` // true-以系统身份操作
}

type ProcessTransferBuilder added in v3.3.5

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

func NewProcessTransferBuilder added in v3.3.5

func NewProcessTransferBuilder() *ProcessTransferBuilder

func (*ProcessTransferBuilder) ApproverIds added in v3.3.5

func (builder *ProcessTransferBuilder) ApproverIds(approverIds []string) *ProcessTransferBuilder

待转交审批任务id列表

示例值:

func (*ProcessTransferBuilder) Build added in v3.3.5

func (builder *ProcessTransferBuilder) Build() *ProcessTransfer

func (*ProcessTransferBuilder) Operator added in v3.3.5

func (builder *ProcessTransferBuilder) Operator(operator string) *ProcessTransferBuilder

操作人,当system_user为true,可不传值

示例值:7184703091806602796

func (*ProcessTransferBuilder) Remark added in v3.3.5

func (builder *ProcessTransferBuilder) Remark(remark string) *ProcessTransferBuilder

备注

示例值:备注

func (*ProcessTransferBuilder) SystemUser added in v3.4.1

func (builder *ProcessTransferBuilder) SystemUser(systemUser bool) *ProcessTransferBuilder

true-以系统身份操作

示例值:true

func (*ProcessTransferBuilder) ToUserId added in v3.3.5

func (builder *ProcessTransferBuilder) ToUserId(toUserId string) *ProcessTransferBuilder

被转交人id

示例值:7184703091806602796

type ProfileSettingAddress added in v3.2.1

type ProfileSettingAddress struct {
	AddressType *string `json:"address_type,omitempty"` // 地址类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "address" custom_api_name = "address_type"

	CountryRegion *string `json:"country_region,omitempty"` // 国家 / 地区ID

	Region *string `json:"region,omitempty"` // 主要行政区ID

	RegionSubdivision1 *string `json:"region_subdivision_1,omitempty"` // 主要行政区往下细分 1 层的行政区

	RegionSubdivision2 *string `json:"region_subdivision_2,omitempty"` // 主要行政区往下细分 2 层的行政区

	CityV2 *string `json:"city_v2,omitempty"` // 城市V2 ID

	CityText *string `json:"city_text,omitempty"` // 城市(文本)

	LocalCityText *string `json:"local_city_text,omitempty"` // 城市(仅文本,非拉丁语系的本地文字)

	CitySubdivision1 *string `json:"city_subdivision_1,omitempty"` // 城市往下细分 1 层的行政区

	CitySubdivision2 *string `json:"city_subdivision_2,omitempty"` // 城市往下细分 2 层的行政区

	DistrictV2 *string `json:"district_v2,omitempty"` // 区/县V2 ID

	PostalCode *string `json:"postal_code,omitempty"` // 邮政编码

	AddressLine1 *string `json:"address_line_1,omitempty"` // 地址行 1

	LocalAddressLine1 *string `json:"local_address_line_1,omitempty"` // 地址行 1(非拉丁语系的本地文字)

	AddressLine2 *string `json:"address_line_2,omitempty"` // 地址行 2

	LocalAddressLine2 *string `json:"local_address_line_2,omitempty"` // 地址行 2(非拉丁语系的本地文字)

	AddressLine3 *string `json:"address_line_3,omitempty"` // 地址行 3

	LocalAddressLine3 *string `json:"local_address_line_3,omitempty"` // 地址行 3(非拉丁语系的本地文字)

	AddressLine4 *string `json:"address_line_4,omitempty"` // 地址行 4

	LocalAddressLine5 *string `json:"local_address_line_5,omitempty"` // 地址行 5(非拉丁语系的本地文字)

	AddressLine6 *string `json:"address_line_6,omitempty"` // 地址行 6

	LocalAddressLine6 *string `json:"local_address_line_6,omitempty"` // 地址行 6(非拉丁语系的本地文字)

	AddressLine7 *string `json:"address_line_7,omitempty"` // 地址行 7

	LocalAddressLine7 *string `json:"local_address_line_7,omitempty"` // 地址行 7(非拉丁语系的本地文字)

	AddressLine8 *string `json:"address_line_8,omitempty"` // 地址行 8

	LocalAddressLine8 *string `json:"local_address_line_8,omitempty"` // 地址行 8(非拉丁语系的本地文字)

	AddressLine9 *string `json:"address_line_9,omitempty"` // 地址行 9

	LocalAddressLine9 *string `json:"local_address_line_9,omitempty"` // 地址行 9(非拉丁语系的本地文字)

	LocalAddressLine4 *string `json:"local_address_line_4,omitempty"` // 地址行 4(非拉丁语系的本地文字)

	AddressLine5 *string `json:"address_line_5,omitempty"` // 地址行 5
}

type ProfileSettingAddressBuilder added in v3.2.1

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

func NewProfileSettingAddressBuilder added in v3.2.1

func NewProfileSettingAddressBuilder() *ProfileSettingAddressBuilder

func (*ProfileSettingAddressBuilder) AddressLine1 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine1(addressLine1 string) *ProfileSettingAddressBuilder

地址行 1

示例值:丹佛测试地址-纽埃时区

func (*ProfileSettingAddressBuilder) AddressLine2 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine2(addressLine2 string) *ProfileSettingAddressBuilder

地址行 2

示例值:PoewH

func (*ProfileSettingAddressBuilder) AddressLine3 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine3(addressLine3 string) *ProfileSettingAddressBuilder

地址行 3

示例值:PoewH

func (*ProfileSettingAddressBuilder) AddressLine4 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine4(addressLine4 string) *ProfileSettingAddressBuilder

地址行 4

示例值:jmwJc

func (*ProfileSettingAddressBuilder) AddressLine5 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine5(addressLine5 string) *ProfileSettingAddressBuilder

地址行 5

示例值:jmwJc

func (*ProfileSettingAddressBuilder) AddressLine6 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine6(addressLine6 string) *ProfileSettingAddressBuilder

地址行 6

示例值:jmwJc

func (*ProfileSettingAddressBuilder) AddressLine7 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine7(addressLine7 string) *ProfileSettingAddressBuilder

地址行 7

示例值:jmwJc

func (*ProfileSettingAddressBuilder) AddressLine8 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine8(addressLine8 string) *ProfileSettingAddressBuilder

地址行 8

示例值:jmwJc

func (*ProfileSettingAddressBuilder) AddressLine9 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressLine9(addressLine9 string) *ProfileSettingAddressBuilder

地址行 9

示例值:McPRG

func (*ProfileSettingAddressBuilder) AddressType added in v3.2.1

func (builder *ProfileSettingAddressBuilder) AddressType(addressType string) *ProfileSettingAddressBuilder

地址类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "address" custom_api_name = "address_type"

示例值:home_address

func (*ProfileSettingAddressBuilder) Build added in v3.2.1

func (*ProfileSettingAddressBuilder) CitySubdivision1 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) CitySubdivision1(citySubdivision1 string) *ProfileSettingAddressBuilder

城市往下细分 1 层的行政区

示例值:行政区1

func (*ProfileSettingAddressBuilder) CitySubdivision2 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) CitySubdivision2(citySubdivision2 string) *ProfileSettingAddressBuilder

城市往下细分 2 层的行政区

示例值:行政区2

func (*ProfileSettingAddressBuilder) CityText added in v3.2.1

城市(文本)

示例值:北京市

func (*ProfileSettingAddressBuilder) CityV2 added in v3.2.1

城市V2 ID

示例值:6862995757234914829

func (*ProfileSettingAddressBuilder) CountryRegion added in v3.2.1

func (builder *ProfileSettingAddressBuilder) CountryRegion(countryRegion string) *ProfileSettingAddressBuilder

国家 / 地区ID

示例值:6862995757234914824

func (*ProfileSettingAddressBuilder) DistrictV2 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) DistrictV2(districtV2 string) *ProfileSettingAddressBuilder

区/县V2 ID

示例值:6862995757234914831

func (*ProfileSettingAddressBuilder) LocalAddressLine1 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine1(localAddressLine1 string) *ProfileSettingAddressBuilder

地址行 1(非拉丁语系的本地文字)

示例值:丹佛测试地址-纽埃时区

func (*ProfileSettingAddressBuilder) LocalAddressLine2 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine2(localAddressLine2 string) *ProfileSettingAddressBuilder

地址行 2(非拉丁语系的本地文字)

示例值:PoewH

func (*ProfileSettingAddressBuilder) LocalAddressLine3 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine3(localAddressLine3 string) *ProfileSettingAddressBuilder

地址行 3(非拉丁语系的本地文字)

示例值:PoewH

func (*ProfileSettingAddressBuilder) LocalAddressLine4 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine4(localAddressLine4 string) *ProfileSettingAddressBuilder

地址行 4(非拉丁语系的本地文字)

示例值:jmwJc

func (*ProfileSettingAddressBuilder) LocalAddressLine5 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine5(localAddressLine5 string) *ProfileSettingAddressBuilder

地址行 5(非拉丁语系的本地文字)

示例值:jmwJc

func (*ProfileSettingAddressBuilder) LocalAddressLine6 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine6(localAddressLine6 string) *ProfileSettingAddressBuilder

地址行 6(非拉丁语系的本地文字)

示例值:jmwJc

func (*ProfileSettingAddressBuilder) LocalAddressLine7 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine7(localAddressLine7 string) *ProfileSettingAddressBuilder

地址行 7(非拉丁语系的本地文字)

示例值:jmwJc

func (*ProfileSettingAddressBuilder) LocalAddressLine8 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine8(localAddressLine8 string) *ProfileSettingAddressBuilder

地址行 8(非拉丁语系的本地文字)

示例值:rafSu

func (*ProfileSettingAddressBuilder) LocalAddressLine9 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalAddressLine9(localAddressLine9 string) *ProfileSettingAddressBuilder

地址行 9(非拉丁语系的本地文字)

示例值:McPRG

func (*ProfileSettingAddressBuilder) LocalCityText added in v3.2.1

func (builder *ProfileSettingAddressBuilder) LocalCityText(localCityText string) *ProfileSettingAddressBuilder

城市(仅文本,非拉丁语系的本地文字)

示例值:北京市

func (*ProfileSettingAddressBuilder) PostalCode added in v3.2.1

func (builder *ProfileSettingAddressBuilder) PostalCode(postalCode string) *ProfileSettingAddressBuilder

邮政编码

示例值:611530

func (*ProfileSettingAddressBuilder) Region added in v3.2.1

主要行政区ID

示例值:6863326815667095047

func (*ProfileSettingAddressBuilder) RegionSubdivision1 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) RegionSubdivision1(regionSubdivision1 string) *ProfileSettingAddressBuilder

主要行政区往下细分 1 层的行政区

示例值:行政区1

func (*ProfileSettingAddressBuilder) RegionSubdivision2 added in v3.2.1

func (builder *ProfileSettingAddressBuilder) RegionSubdivision2(regionSubdivision2 string) *ProfileSettingAddressBuilder

主要行政区往下细分 2 层的行政区

示例值:行政区2

type ProfileSettingBankAccount added in v3.2.1

type ProfileSettingBankAccount struct {
	CountryRegion *string `json:"country_region,omitempty"` // 国家 / 地区ID

	BankName *string `json:"bank_name,omitempty"` // 银行名称

	BranchName *string `json:"branch_name,omitempty"` // 支行名称

	AccountHolder *string `json:"account_holder,omitempty"` // 开户人姓名

	BankAccountNumber *string `json:"bank_account_number,omitempty"` // 银行账号

	BankAccountUsages []string `json:"bank_account_usages,omitempty"` // 银行卡用途,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "bank_account" custom_api_name = "bank_account_usage"

	BankAccountType *string `json:"bank_account_type,omitempty"` // 银行卡类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "bank_account" custom_api_name = "bank_account_type"

	BankId *string `json:"bank_id,omitempty"` // 银行ID

	BranchId *string `json:"branch_id,omitempty"` // 银行支行ID

	PaymentType *string `json:"payment_type,omitempty"` // 分配方式,枚举值

	PaymentRate *string `json:"payment_rate,omitempty"` // 分配比例,0~100,保留两位小数

	PaymentAmount *string `json:"payment_amount,omitempty"` // 分配金额,保留两位小数

	Priority *string `json:"priority,omitempty"` // 优先级,不能低于0
}

type ProfileSettingBankAccountBuilder added in v3.2.1

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

func NewProfileSettingBankAccountBuilder added in v3.2.1

func NewProfileSettingBankAccountBuilder() *ProfileSettingBankAccountBuilder

func (*ProfileSettingBankAccountBuilder) AccountHolder added in v3.2.1

func (builder *ProfileSettingBankAccountBuilder) AccountHolder(accountHolder string) *ProfileSettingBankAccountBuilder

开户人姓名

示例值:孟十五

func (*ProfileSettingBankAccountBuilder) BankAccountNumber added in v3.2.1

func (builder *ProfileSettingBankAccountBuilder) BankAccountNumber(bankAccountNumber string) *ProfileSettingBankAccountBuilder

银行账号

示例值:6231200000001223

func (*ProfileSettingBankAccountBuilder) BankAccountType added in v3.2.1

func (builder *ProfileSettingBankAccountBuilder) BankAccountType(bankAccountType string) *ProfileSettingBankAccountBuilder

银行卡类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "bank_account" custom_api_name = "bank_account_type"

示例值:savings

func (*ProfileSettingBankAccountBuilder) BankAccountUsages added in v3.2.1

func (builder *ProfileSettingBankAccountBuilder) BankAccountUsages(bankAccountUsages []string) *ProfileSettingBankAccountBuilder

银行卡用途,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "bank_account" custom_api_name = "bank_account_usage"

示例值:payment

func (*ProfileSettingBankAccountBuilder) BankId added in v3.2.1

银行ID

示例值:6862995757234914832

func (*ProfileSettingBankAccountBuilder) BankName added in v3.2.1

银行名称

示例值:中国农业银行

func (*ProfileSettingBankAccountBuilder) BranchId added in v3.2.1

银行支行ID

示例值:6862995757234914833

func (*ProfileSettingBankAccountBuilder) BranchName added in v3.2.1

支行名称

示例值:中国农业银行支行

func (*ProfileSettingBankAccountBuilder) Build added in v3.2.1

func (*ProfileSettingBankAccountBuilder) CountryRegion added in v3.2.1

func (builder *ProfileSettingBankAccountBuilder) CountryRegion(countryRegion string) *ProfileSettingBankAccountBuilder

国家 / 地区ID

示例值:6862995757234914824

func (*ProfileSettingBankAccountBuilder) PaymentAmount added in v3.3.4

func (builder *ProfileSettingBankAccountBuilder) PaymentAmount(paymentAmount string) *ProfileSettingBankAccountBuilder

分配金额,保留两位小数

示例值:5000

func (*ProfileSettingBankAccountBuilder) PaymentRate added in v3.3.4

分配比例,0~100,保留两位小数

示例值:80.28

func (*ProfileSettingBankAccountBuilder) PaymentType added in v3.3.4

分配方式,枚举值

示例值:percent,balance,amount

func (*ProfileSettingBankAccountBuilder) Priority added in v3.3.4

优先级,不能低于0

示例值:1

type ProfileSettingCareer added in v3.2.1

type ProfileSettingCareer struct {
	Educations []*ProfileSettingEducation `json:"educations,omitempty"` // 教育经历

	WorkExperiences []*ProfileSettingWorkExperience `json:"work_experiences,omitempty"` // 工作经历

	CustomGroups []*ProfileSettingCustomGroup `json:"custom_groups,omitempty"` // 自定义分组
}

type ProfileSettingCareerBuilder added in v3.2.1

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

func NewProfileSettingCareerBuilder added in v3.2.1

func NewProfileSettingCareerBuilder() *ProfileSettingCareerBuilder

func (*ProfileSettingCareerBuilder) Build added in v3.2.1

func (*ProfileSettingCareerBuilder) CustomGroups added in v3.2.1

自定义分组

示例值:

func (*ProfileSettingCareerBuilder) Educations added in v3.2.1

教育经历

示例值:

func (*ProfileSettingCareerBuilder) WorkExperiences added in v3.2.1

func (builder *ProfileSettingCareerBuilder) WorkExperiences(workExperiences []*ProfileSettingWorkExperience) *ProfileSettingCareerBuilder

工作经历

示例值:

type ProfileSettingCitizenshipStatus added in v3.3.7

type ProfileSettingCitizenshipStatus struct {
	CountryRegion *string `json:"country_region,omitempty"` // 国家/地区ID

	CitizenshipStatus *string `json:"citizenship_status,omitempty"` // 公民身份类型
}

type ProfileSettingCitizenshipStatusBuilder added in v3.3.7

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

func NewProfileSettingCitizenshipStatusBuilder added in v3.3.7

func NewProfileSettingCitizenshipStatusBuilder() *ProfileSettingCitizenshipStatusBuilder

func (*ProfileSettingCitizenshipStatusBuilder) Build added in v3.3.7

func (*ProfileSettingCitizenshipStatusBuilder) CitizenshipStatus added in v3.3.7

func (builder *ProfileSettingCitizenshipStatusBuilder) CitizenshipStatus(citizenshipStatus string) *ProfileSettingCitizenshipStatusBuilder

公民身份类型

示例值:公民

func (*ProfileSettingCitizenshipStatusBuilder) CountryRegion added in v3.3.7

国家/地区ID

示例值:7324333990030034476

type ProfileSettingCostCenter added in v3.2.1

type ProfileSettingCostCenter struct {
	Id *string `json:"id,omitempty"` // 100

	Rate *int `json:"rate,omitempty"` // 分摊比例
}

type ProfileSettingCostCenterBuilder added in v3.2.1

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

func NewProfileSettingCostCenterBuilder added in v3.2.1

func NewProfileSettingCostCenterBuilder() *ProfileSettingCostCenterBuilder

func (*ProfileSettingCostCenterBuilder) Build added in v3.2.1

func (*ProfileSettingCostCenterBuilder) Id added in v3.2.1

100

示例值:6950635856373745165

func (*ProfileSettingCostCenterBuilder) Rate added in v3.2.1

分摊比例

示例值:100

type ProfileSettingCustomField added in v3.2.1

type ProfileSettingCustomField struct {
	FieldName *string `json:"field_name,omitempty"` // 字段名

	Value *string `json:"value,omitempty"` // 字段值, 是 json 转义后的字符串,根据元数据定义不同,字段格式不同。使用方式可参考【操作手册】如何通过 OpenAPI 维护自定义字段
}

type ProfileSettingCustomFieldBuilder added in v3.2.1

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

func NewProfileSettingCustomFieldBuilder added in v3.2.1

func NewProfileSettingCustomFieldBuilder() *ProfileSettingCustomFieldBuilder

func (*ProfileSettingCustomFieldBuilder) Build added in v3.2.1

func (*ProfileSettingCustomFieldBuilder) FieldName added in v3.2.1

字段名

示例值:custom_field_1__c

func (*ProfileSettingCustomFieldBuilder) Value added in v3.2.1

字段值, 是 json 转义后的字符串,根据元数据定义不同,字段格式不同。使用方式可参考【操作手册】如何通过 OpenAPI 维护自定义字段

示例值:[\"custom_enum_0__c\"]

type ProfileSettingCustomGroup added in v3.2.1

type ProfileSettingCustomGroup struct {
	GroupName *string `json:"group_name,omitempty"` // 分组名

	Items []*ProfileSettingCustomGroupItem `json:"items,omitempty"` // 分组数据
}

type ProfileSettingCustomGroupBuilder added in v3.2.1

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

func NewProfileSettingCustomGroupBuilder added in v3.2.1

func NewProfileSettingCustomGroupBuilder() *ProfileSettingCustomGroupBuilder

func (*ProfileSettingCustomGroupBuilder) Build added in v3.2.1

func (*ProfileSettingCustomGroupBuilder) GroupName added in v3.2.1

分组名

示例值:custom_obj__c

func (*ProfileSettingCustomGroupBuilder) Items added in v3.2.1

分组数据

示例值:

type ProfileSettingCustomGroupItem added in v3.2.1

type ProfileSettingCustomGroupItem struct {
	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingCustomGroupItemBuilder added in v3.2.1

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

func NewProfileSettingCustomGroupItemBuilder added in v3.2.1

func NewProfileSettingCustomGroupItemBuilder() *ProfileSettingCustomGroupItemBuilder

func (*ProfileSettingCustomGroupItemBuilder) Build added in v3.2.1

func (*ProfileSettingCustomGroupItemBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

type ProfileSettingDataAttachment added in v3.2.1

type ProfileSettingDataAttachment struct {
	PersonalRecords []*ProfileSettingPersonalRecord `json:"personal_records,omitempty"` // 资料附件记录

	CustomGroups []*ProfileSettingCustomGroup `json:"custom_groups,omitempty"` // 自定义分组
}

type ProfileSettingDataAttachmentBuilder added in v3.2.1

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

func NewProfileSettingDataAttachmentBuilder added in v3.2.1

func NewProfileSettingDataAttachmentBuilder() *ProfileSettingDataAttachmentBuilder

func (*ProfileSettingDataAttachmentBuilder) Build added in v3.2.1

func (*ProfileSettingDataAttachmentBuilder) CustomGroups added in v3.2.5

自定义分组

示例值:

func (*ProfileSettingDataAttachmentBuilder) PersonalRecords added in v3.2.1

资料附件记录

示例值:

type ProfileSettingDependent added in v3.2.1

type ProfileSettingDependent struct {
	LegalName *string `json:"legal_name,omitempty"` // 姓名

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 生日

	RelationshipWithDependent *string `json:"relationship_with_dependent,omitempty"` // 关系,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "dependent" custom_api_name ="relationship_with_dependent"

	Gender *string `json:"gender,omitempty"` // 性别,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "dependent" custom_api_name = "gender"

	Phone *ProfileSettingPhone `json:"phone,omitempty"` // 电话

	Job *string `json:"job,omitempty"` // 岗位

	ChildBirthCertificates []*ProfileSettingFile `json:"child_birth_certificates,omitempty"` // 出生证明

	Employer *string `json:"employer,omitempty"` // 工作单位

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段

	Address *ProfileSettingAddress `json:"address,omitempty"` // 联系地址
}

type ProfileSettingDependentBuilder added in v3.2.1

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

func NewProfileSettingDependentBuilder added in v3.2.1

func NewProfileSettingDependentBuilder() *ProfileSettingDependentBuilder

func (*ProfileSettingDependentBuilder) Address added in v3.2.1

联系地址

示例值:

func (*ProfileSettingDependentBuilder) Build added in v3.2.1

func (*ProfileSettingDependentBuilder) ChildBirthCertificates added in v3.2.1

func (builder *ProfileSettingDependentBuilder) ChildBirthCertificates(childBirthCertificates []*ProfileSettingFile) *ProfileSettingDependentBuilder

出生证明

示例值:

func (*ProfileSettingDependentBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingDependentBuilder) DateOfBirth added in v3.2.1

func (builder *ProfileSettingDependentBuilder) DateOfBirth(dateOfBirth string) *ProfileSettingDependentBuilder

生日

示例值:2006-01-02

func (*ProfileSettingDependentBuilder) Employer added in v3.2.1

工作单位

示例值:飞书

func (*ProfileSettingDependentBuilder) Gender added in v3.2.1

性别,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "dependent" custom_api_name = "gender"

示例值:female

func (*ProfileSettingDependentBuilder) Job added in v3.2.1

岗位

示例值:岗位

func (*ProfileSettingDependentBuilder) LegalName added in v3.2.1

姓名

示例值:王大帅

func (*ProfileSettingDependentBuilder) Phone added in v3.2.1

电话

示例值:

func (*ProfileSettingDependentBuilder) RelationshipWithDependent added in v3.2.1

func (builder *ProfileSettingDependentBuilder) RelationshipWithDependent(relationshipWithDependent string) *ProfileSettingDependentBuilder

关系,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "dependent" custom_api_name ="relationship_with_dependent"

示例值:parent

type ProfileSettingEducation added in v3.2.1

type ProfileSettingEducation struct {
	School *string `json:"school,omitempty"` // 学校

	SchoolEnum *string `json:"school_enum,omitempty"` // "学校, 枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = ""education"" custom_api_name = ""school_name"""

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期

	LevelOfEducation *string `json:"level_of_education,omitempty"` // 学历, 枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "education" custom_api_name = "level_of_education"

	FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业

	Degree *string `json:"degree,omitempty"` // 学位,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "education" custom_api_name = "degree"

	FieldOfStudyEnum *string `json:"field_of_study_enum,omitempty"` // "专业,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = ""education"" custom_api_name = ""field_of_study_name"""

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingEducationBuilder added in v3.2.1

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

func NewProfileSettingEducationBuilder added in v3.2.1

func NewProfileSettingEducationBuilder() *ProfileSettingEducationBuilder

func (*ProfileSettingEducationBuilder) Build added in v3.2.1

func (*ProfileSettingEducationBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingEducationBuilder) Degree added in v3.2.1

学位,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "education" custom_api_name = "degree"

示例值:bachelors_degree

func (*ProfileSettingEducationBuilder) EndDate added in v3.2.1

结束日期

示例值:2015-06-30

func (*ProfileSettingEducationBuilder) FieldOfStudy added in v3.2.1

func (builder *ProfileSettingEducationBuilder) FieldOfStudy(fieldOfStudy string) *ProfileSettingEducationBuilder

专业

示例值:软件工程

func (*ProfileSettingEducationBuilder) FieldOfStudyEnum added in v3.2.1

func (builder *ProfileSettingEducationBuilder) FieldOfStudyEnum(fieldOfStudyEnum string) *ProfileSettingEducationBuilder

"专业,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = ""education"" custom_api_name = ""field_of_study_name"""

示例值:field_of_study-2

func (*ProfileSettingEducationBuilder) LevelOfEducation added in v3.2.1

func (builder *ProfileSettingEducationBuilder) LevelOfEducation(levelOfEducation string) *ProfileSettingEducationBuilder

学历, 枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "education" custom_api_name = "level_of_education"

示例值:masters_degree

func (*ProfileSettingEducationBuilder) School added in v3.2.1

学校

示例值:北京大学

func (*ProfileSettingEducationBuilder) SchoolEnum added in v3.2.1

func (builder *ProfileSettingEducationBuilder) SchoolEnum(schoolEnum string) *ProfileSettingEducationBuilder

"学校, 枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = ""education"" custom_api_name = ""school_name"""

示例值:school-177

func (*ProfileSettingEducationBuilder) StartDate added in v3.2.1

开始日期

示例值:2011-09-01

type ProfileSettingEmergencyContact added in v3.2.1

type ProfileSettingEmergencyContact struct {
	LegalName *string `json:"legal_name,omitempty"` // 姓名

	Relationship *string `json:"relationship,omitempty"` // 关系,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "emergency_contract" custom_api_name = "relationship"

	IsPrimary *bool `json:"is_primary,omitempty"` // 主要联系人

	Phone *ProfileSettingPhone `json:"phone,omitempty"` // 电话

	Email *string `json:"email,omitempty"` // 邮箱

	Address *ProfileSettingAddress `json:"address,omitempty"` // 地址

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingEmergencyContactBuilder added in v3.2.1

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

func NewProfileSettingEmergencyContactBuilder added in v3.2.1

func NewProfileSettingEmergencyContactBuilder() *ProfileSettingEmergencyContactBuilder

func (*ProfileSettingEmergencyContactBuilder) Address added in v3.2.1

地址

示例值:

func (*ProfileSettingEmergencyContactBuilder) Build added in v3.2.1

func (*ProfileSettingEmergencyContactBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingEmergencyContactBuilder) Email added in v3.2.1

邮箱

示例值:1234567@example.feishu.cn

func (*ProfileSettingEmergencyContactBuilder) IsPrimary added in v3.2.1

主要联系人

示例值:true

func (*ProfileSettingEmergencyContactBuilder) LegalName added in v3.2.1

姓名

示例值:王大帅

func (*ProfileSettingEmergencyContactBuilder) Phone added in v3.2.1

电话

示例值:

func (*ProfileSettingEmergencyContactBuilder) Relationship added in v3.2.1

关系,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "emergency_contract" custom_api_name = "relationship"

示例值:parent

type ProfileSettingEmpBasicInfoForUpdate added in v3.2.1

type ProfileSettingEmpBasicInfoForUpdate struct {
	EmployeeNumber *string `json:"employee_number,omitempty"` // 员工工号

	RegularEmployeeStartDate *string `json:"regular_employee_start_date,omitempty"` // 转正式员工日期

	SeniorityDate *string `json:"seniority_date,omitempty"` // 资历起算日期

	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱

	Phone *ProfileSettingPhone `json:"phone,omitempty"` // 工作电话

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingEmpBasicInfoForUpdateBuilder added in v3.2.1

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

func NewProfileSettingEmpBasicInfoForUpdateBuilder added in v3.2.1

func NewProfileSettingEmpBasicInfoForUpdateBuilder() *ProfileSettingEmpBasicInfoForUpdateBuilder

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) Build added in v3.2.1

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) EmployeeNumber added in v3.2.1

员工工号

示例值:1000000

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) Phone added in v3.2.1

工作电话

示例值:

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) RegularEmployeeStartDate added in v3.2.1

func (builder *ProfileSettingEmpBasicInfoForUpdateBuilder) RegularEmployeeStartDate(regularEmployeeStartDate string) *ProfileSettingEmpBasicInfoForUpdateBuilder

转正式员工日期

示例值:2021-02-01

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) SeniorityDate added in v3.2.1

资历起算日期

示例值:2021-02-01

func (*ProfileSettingEmpBasicInfoForUpdateBuilder) WorkEmail added in v3.2.1

工作邮箱

示例值:12456@test.com

type ProfileSettingEmpContractRecord added in v3.2.1

type ProfileSettingEmpContractRecord struct {
	ContractNumber *string `json:"contract_number,omitempty"` // 合同协议编号

	ContractType *string `json:"contract_type,omitempty"` // 合同类型,枚举值可选项 可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "contract" custom_api_name = "contract_type"

	FirstParty *string `json:"first_party,omitempty"` // 甲方公司 ID, 引用Company的ID,详细信息可通过【查询单个公司】接口查询获得

	EffectiveTime *string `json:"effective_time,omitempty"` // 合同开始日期

	DurationType *string `json:"duration_type,omitempty"` // 期限类型,枚举值可选项 可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "contract" custom_api_name = "duration_type"

	ContractEndDate *string `json:"contract_end_date,omitempty"` // 合同结束日期
}

type ProfileSettingEmpContractRecordBuilder added in v3.2.1

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

func NewProfileSettingEmpContractRecordBuilder added in v3.2.1

func NewProfileSettingEmpContractRecordBuilder() *ProfileSettingEmpContractRecordBuilder

func (*ProfileSettingEmpContractRecordBuilder) Build added in v3.2.1

func (*ProfileSettingEmpContractRecordBuilder) ContractEndDate added in v3.2.1

合同结束日期

示例值:2050-01-01

func (*ProfileSettingEmpContractRecordBuilder) ContractNumber added in v3.2.1

合同协议编号

示例值:6919737965274990093

func (*ProfileSettingEmpContractRecordBuilder) ContractType added in v3.2.1

合同类型,枚举值可选项 可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "contract" custom_api_name = "contract_type"

示例值:labor_contract

func (*ProfileSettingEmpContractRecordBuilder) DurationType added in v3.2.1

期限类型,枚举值可选项 可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "contract" custom_api_name = "duration_type"

示例值:fixed_term

func (*ProfileSettingEmpContractRecordBuilder) EffectiveTime added in v3.2.1

合同开始日期

示例值:2006-01-02

func (*ProfileSettingEmpContractRecordBuilder) FirstParty added in v3.2.1

甲方公司 ID, 引用Company的ID,详细信息可通过【查询单个公司】接口查询获得

示例值:6892686614112241165

type ProfileSettingEmpInfoForUpdate added in v3.2.1

type ProfileSettingEmpInfoForUpdate struct {
	BasicInfo *ProfileSettingEmpBasicInfoForUpdate `json:"basic_info,omitempty"` // 基本信息

	ProbationInfo *ProfileSettingProbationInfo `json:"probation_info,omitempty"` // 试用期信息

	CustomGroups []*ProfileSettingCustomGroup `json:"custom_groups,omitempty"` // 自定义分组

	SeniorityAdjustInformations []*SeniorityAdjustInformationEdit `json:"seniority_adjust_informations,omitempty"` // 司龄调整信息
}

type ProfileSettingEmpInfoForUpdateBuilder added in v3.2.1

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

func NewProfileSettingEmpInfoForUpdateBuilder added in v3.2.1

func NewProfileSettingEmpInfoForUpdateBuilder() *ProfileSettingEmpInfoForUpdateBuilder

func (*ProfileSettingEmpInfoForUpdateBuilder) BasicInfo added in v3.2.1

基本信息

示例值:

func (*ProfileSettingEmpInfoForUpdateBuilder) Build added in v3.2.1

func (*ProfileSettingEmpInfoForUpdateBuilder) CustomGroups added in v3.2.5

自定义分组

示例值:

func (*ProfileSettingEmpInfoForUpdateBuilder) ProbationInfo added in v3.2.1

试用期信息

示例值:

func (*ProfileSettingEmpInfoForUpdateBuilder) SeniorityAdjustInformations added in v3.4.1

func (builder *ProfileSettingEmpInfoForUpdateBuilder) SeniorityAdjustInformations(seniorityAdjustInformations []*SeniorityAdjustInformationEdit) *ProfileSettingEmpInfoForUpdateBuilder

司龄调整信息

示例值:

type ProfileSettingEmploymentBasicInfo added in v3.2.1

type ProfileSettingEmploymentBasicInfo struct {
	EmployeeNumber *string `json:"employee_number,omitempty"` // 员工编号

	Rehire *bool `json:"rehire,omitempty"` // 是否离职重聘

	EmploymentInfoBeforeRehire *string `json:"employment_info_before_rehire,omitempty"` // 重聘前雇佣ID

	EffectiveTime *string `json:"effective_time,omitempty"` // 入职日期

	RegularEmployeeStartDate *string `json:"regular_employee_start_date,omitempty"` // 转正式员工日期

	SeniorityDate *string `json:"seniority_date,omitempty"` // 资历起算日期

	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱

	Phone *ProfileSettingPhone `json:"phone,omitempty"` // 工作电话

	UserGeo *string `json:"user_geo,omitempty"` // 数据驻留地,开通了飞书数据驻留服务的企业,该字段为必填

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingEmploymentBasicInfoBuilder added in v3.2.1

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

func NewProfileSettingEmploymentBasicInfoBuilder added in v3.2.1

func NewProfileSettingEmploymentBasicInfoBuilder() *ProfileSettingEmploymentBasicInfoBuilder

func (*ProfileSettingEmploymentBasicInfoBuilder) Build added in v3.2.1

func (*ProfileSettingEmploymentBasicInfoBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingEmploymentBasicInfoBuilder) EffectiveTime added in v3.2.1

入职日期

示例值:2021-01-01

func (*ProfileSettingEmploymentBasicInfoBuilder) EmployeeNumber added in v3.2.1

员工编号

示例值:1000000

func (*ProfileSettingEmploymentBasicInfoBuilder) EmploymentInfoBeforeRehire added in v3.4.2

func (builder *ProfileSettingEmploymentBasicInfoBuilder) EmploymentInfoBeforeRehire(employmentInfoBeforeRehire string) *ProfileSettingEmploymentBasicInfoBuilder

重聘前雇佣ID

示例值:7140964208476371111

func (*ProfileSettingEmploymentBasicInfoBuilder) Phone added in v3.2.1

工作电话

示例值:

func (*ProfileSettingEmploymentBasicInfoBuilder) RegularEmployeeStartDate added in v3.2.1

func (builder *ProfileSettingEmploymentBasicInfoBuilder) RegularEmployeeStartDate(regularEmployeeStartDate string) *ProfileSettingEmploymentBasicInfoBuilder

转正式员工日期

示例值:2021-02-01

func (*ProfileSettingEmploymentBasicInfoBuilder) Rehire added in v3.4.2

是否离职重聘

示例值:true

func (*ProfileSettingEmploymentBasicInfoBuilder) SeniorityDate added in v3.2.1

资历起算日期

示例值:2020-01-01

func (*ProfileSettingEmploymentBasicInfoBuilder) UserGeo added in v3.2.5

数据驻留地,开通了飞书数据驻留服务的企业,该字段为必填

示例值:cn

func (*ProfileSettingEmploymentBasicInfoBuilder) WorkEmail added in v3.2.1

工作邮箱

示例值:12456@test.com

type ProfileSettingEmploymentInfo added in v3.2.1

type ProfileSettingEmploymentInfo struct {
	BasicInfo *ProfileSettingEmploymentBasicInfo `json:"basic_info,omitempty"` // 基本信息

	ProbationInfo *ProfileSettingProbationInfo `json:"probation_info,omitempty"` // 试用期信息

	EmploymentRecord *ProfileSettingEmploymentRecord `json:"employment_record,omitempty"` // 任职记录

	EmpContractRecord *ProfileSettingEmpContractRecord `json:"emp_contract_record,omitempty"` // 合同记录

	CustomGroups []*ProfileSettingCustomGroup `json:"custom_groups,omitempty"` // 自定义分组

	CustomOrgGroups []*JobDataCustomOrg `json:"custom_org_groups,omitempty"` // 自定义组织记录

	SeniorityAdjustInformations []*SeniorityAdjustInformationEdit `json:"seniority_adjust_informations,omitempty"` // 司龄调整信息
}

type ProfileSettingEmploymentInfoBuilder added in v3.2.1

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

func NewProfileSettingEmploymentInfoBuilder added in v3.2.1

func NewProfileSettingEmploymentInfoBuilder() *ProfileSettingEmploymentInfoBuilder

func (*ProfileSettingEmploymentInfoBuilder) BasicInfo added in v3.2.1

基本信息

示例值:

func (*ProfileSettingEmploymentInfoBuilder) Build added in v3.2.1

func (*ProfileSettingEmploymentInfoBuilder) CustomGroups added in v3.2.5

自定义分组

示例值:

func (*ProfileSettingEmploymentInfoBuilder) CustomOrgGroups added in v3.3.1

自定义组织记录

示例值:

func (*ProfileSettingEmploymentInfoBuilder) EmpContractRecord added in v3.2.1

合同记录

示例值:

func (*ProfileSettingEmploymentInfoBuilder) EmploymentRecord added in v3.2.1

任职记录

示例值:

func (*ProfileSettingEmploymentInfoBuilder) ProbationInfo added in v3.2.1

试用期信息

示例值:

func (*ProfileSettingEmploymentInfoBuilder) SeniorityAdjustInformations added in v3.4.1

func (builder *ProfileSettingEmploymentInfoBuilder) SeniorityAdjustInformations(seniorityAdjustInformations []*SeniorityAdjustInformationEdit) *ProfileSettingEmploymentInfoBuilder

司龄调整信息

示例值:

type ProfileSettingEmploymentRecord added in v3.2.1

type ProfileSettingEmploymentRecord struct {
	EmployeeType *string `json:"employee_type,omitempty"` // 人员类型 ID

	Department *string `json:"department,omitempty"` // 部门 ID

	DirectManager *string `json:"direct_manager,omitempty"` // 实线主管雇佣ID

	WorkingHoursType *string `json:"working_hours_type,omitempty"` // 工时制度 ID

	CostCenters []*ProfileSettingCostCenter `json:"cost_centers,omitempty"` // 成本中心分摊信息

	DirectManagerEffectiveTime *string `json:"direct_manager_effective_time,omitempty"` // 实线主管入职日期

	DottedLineManager *string `json:"dotted_line_manager,omitempty"` // 虚线主管雇佣ID

	DottedLineManagerEffectiveTime *string `json:"dotted_line_manager_effective_time,omitempty"` // 虚线主管入职日期

	Job *string `json:"job,omitempty"` // 职务 ID

	JobFamily *string `json:"job_family,omitempty"` // 职务序列 ID

	JobLevel *string `json:"job_level,omitempty"` // 职务级别 ID

	JobGrade *string `json:"job_grade,omitempty"` // 职等 ID

	WorkLocation *string `json:"work_location,omitempty"` // 工作地点 ID

	WeeklyWorkingHours *int `json:"weekly_working_hours,omitempty"` // 周工作时长

	Position *string `json:"position,omitempty"` // 岗位ID
}

type ProfileSettingEmploymentRecordBuilder added in v3.2.1

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

func NewProfileSettingEmploymentRecordBuilder added in v3.2.1

func NewProfileSettingEmploymentRecordBuilder() *ProfileSettingEmploymentRecordBuilder

func (*ProfileSettingEmploymentRecordBuilder) Build added in v3.2.1

func (*ProfileSettingEmploymentRecordBuilder) CostCenters added in v3.2.1

成本中心分摊信息

示例值:

func (*ProfileSettingEmploymentRecordBuilder) Department added in v3.2.1

部门 ID

示例值:6890452208593372679

func (*ProfileSettingEmploymentRecordBuilder) DirectManager added in v3.2.1

实线主管雇佣ID

示例值:6893014062142064135

func (*ProfileSettingEmploymentRecordBuilder) DirectManagerEffectiveTime added in v3.2.1

func (builder *ProfileSettingEmploymentRecordBuilder) DirectManagerEffectiveTime(directManagerEffectiveTime string) *ProfileSettingEmploymentRecordBuilder

实线主管入职日期

示例值:2020-01-01

func (*ProfileSettingEmploymentRecordBuilder) DottedLineManager added in v3.2.1

func (builder *ProfileSettingEmploymentRecordBuilder) DottedLineManager(dottedLineManager string) *ProfileSettingEmploymentRecordBuilder

虚线主管雇佣ID

示例值:6893014062142064136

func (*ProfileSettingEmploymentRecordBuilder) DottedLineManagerEffectiveTime added in v3.2.1

func (builder *ProfileSettingEmploymentRecordBuilder) DottedLineManagerEffectiveTime(dottedLineManagerEffectiveTime string) *ProfileSettingEmploymentRecordBuilder

虚线主管入职日期

示例值:2020-01-01

func (*ProfileSettingEmploymentRecordBuilder) EmployeeType added in v3.2.1

人员类型 ID

示例值:6890452208593372679

func (*ProfileSettingEmploymentRecordBuilder) Job added in v3.2.1

职务 ID

示例值:6890452208593372679

func (*ProfileSettingEmploymentRecordBuilder) JobFamily added in v3.2.1

职务序列 ID

示例值:6890452208593372680

func (*ProfileSettingEmploymentRecordBuilder) JobGrade added in v3.2.1

职等 ID

示例值:6890452208593372682

func (*ProfileSettingEmploymentRecordBuilder) JobLevel added in v3.2.1

职务级别 ID

示例值:6890452208593372681

func (*ProfileSettingEmploymentRecordBuilder) Position added in v3.2.8

岗位ID

示例值:6890452208593372684

func (*ProfileSettingEmploymentRecordBuilder) WeeklyWorkingHours added in v3.2.1

func (builder *ProfileSettingEmploymentRecordBuilder) WeeklyWorkingHours(weeklyWorkingHours int) *ProfileSettingEmploymentRecordBuilder

周工作时长

示例值:100

func (*ProfileSettingEmploymentRecordBuilder) WorkLocation added in v3.2.1

工作地点 ID

示例值:6890452208593372683

func (*ProfileSettingEmploymentRecordBuilder) WorkingHoursType added in v3.2.1

func (builder *ProfileSettingEmploymentRecordBuilder) WorkingHoursType(workingHoursType string) *ProfileSettingEmploymentRecordBuilder

工时制度 ID

示例值:6890452208593372600

type ProfileSettingFieldError added in v3.2.1

type ProfileSettingFieldError struct {
	FieldName *string `json:"field_name,omitempty"` // 字段路径

	ErrorMsg *string `json:"error_msg,omitempty"` // 报错信息
}

type ProfileSettingFieldErrorBuilder added in v3.2.1

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

func NewProfileSettingFieldErrorBuilder added in v3.2.1

func NewProfileSettingFieldErrorBuilder() *ProfileSettingFieldErrorBuilder

func (*ProfileSettingFieldErrorBuilder) Build added in v3.2.1

func (*ProfileSettingFieldErrorBuilder) ErrorMsg added in v3.2.1

报错信息

示例值:填写过程中新增以下必填信息 effective_time 等,请填写后重试

func (*ProfileSettingFieldErrorBuilder) FieldName added in v3.2.1

字段路径

示例值:emp_contract_record.0.effective_time

type ProfileSettingFile added in v3.2.1

type ProfileSettingFile struct {
	FileId *string `json:"file_id,omitempty"` // 文件ID

	MimeType *string `json:"mime_type,omitempty"` // 文件MIME类型

	Name *string `json:"name,omitempty"` // 文件名

	Size *string `json:"size,omitempty"` // 文件大小(KB)

	Token *string `json:"token,omitempty"` // 文件token
}

type ProfileSettingFileBuilder added in v3.2.1

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

func NewProfileSettingFileBuilder added in v3.2.1

func NewProfileSettingFileBuilder() *ProfileSettingFileBuilder

func (*ProfileSettingFileBuilder) Build added in v3.2.1

func (*ProfileSettingFileBuilder) FileId added in v3.2.1

文件ID

示例值:150018109586e8ea745e47ae8feb3722dbe1d03a181336393633393133303431393831343930373235150200

func (*ProfileSettingFileBuilder) MimeType added in v3.2.1

func (builder *ProfileSettingFileBuilder) MimeType(mimeType string) *ProfileSettingFileBuilder

文件MIME类型

示例值:zip

func (*ProfileSettingFileBuilder) Name added in v3.2.1

文件名

示例值:附件.zip

func (*ProfileSettingFileBuilder) Size added in v3.2.1

文件大小(KB)

示例值:1000

func (*ProfileSettingFileBuilder) Token added in v3.2.1

文件token

示例值:0a423bc7ea7c4a439d066bf070616782

type ProfileSettingHukou added in v3.2.1

type ProfileSettingHukou struct {
	HukouType *string `json:"hukou_type,omitempty"` // 户口类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person_info_chn" custom_api_name = "hukou_type"

	HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingHukouBuilder added in v3.2.1

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

func NewProfileSettingHukouBuilder added in v3.2.1

func NewProfileSettingHukouBuilder() *ProfileSettingHukouBuilder

func (*ProfileSettingHukouBuilder) Build added in v3.2.1

func (*ProfileSettingHukouBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingHukouBuilder) HukouLocation added in v3.2.1

func (builder *ProfileSettingHukouBuilder) HukouLocation(hukouLocation string) *ProfileSettingHukouBuilder

户口所在地

示例值:北京

func (*ProfileSettingHukouBuilder) HukouType added in v3.2.1

func (builder *ProfileSettingHukouBuilder) HukouType(hukouType string) *ProfileSettingHukouBuilder

户口类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person_info_chn" custom_api_name = "hukou_type"

示例值:local_urban_residence

type ProfileSettingI18n added in v3.2.1

type ProfileSettingI18n struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文

	EnUs *string `json:"en_us,omitempty"` // 英文
}

type ProfileSettingI18nBuilder added in v3.2.1

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

func NewProfileSettingI18nBuilder added in v3.2.1

func NewProfileSettingI18nBuilder() *ProfileSettingI18nBuilder

func (*ProfileSettingI18nBuilder) Build added in v3.2.1

func (*ProfileSettingI18nBuilder) EnUs added in v3.2.1

英文

示例值:english name

func (*ProfileSettingI18nBuilder) ZhCn added in v3.2.1

中文

示例值:中文名

type ProfileSettingName added in v3.2.1

type ProfileSettingName struct {
	AdditionalNameType *string `json:"additional_name_type,omitempty"` // 补充姓名类型, 枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "additional_name_type"

	CountryRegion *string `json:"country_region,omitempty"` // 国家 / 地区 ID

	FullName *string `json:"full_name,omitempty"` // 全名

	Hereditary *string `json:"hereditary,omitempty"` // 姓氏称谓

	MiddleName *string `json:"middle_name,omitempty"` // 中间名

	Secondary *string `json:"secondary,omitempty"` // 第二姓氏

	Social *string `json:"social,omitempty"` // 尊称,枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "social"

	Tertiary *string `json:"tertiary,omitempty"` // 婚后姓氏

	LocalFirstName2 *string `json:"local_first_name_2,omitempty"` // 名 - 第二本地文字

	LocalMiddleName *string `json:"local_middle_name,omitempty"` // 本地中间名

	LocalPrimary *string `json:"local_primary,omitempty"` // 姓 - 本地文字

	LocalPrimary2 *string `json:"local_primary_2,omitempty"` // 姓 - 第二本地文字

	LocalSecondary *string `json:"local_secondary,omitempty"` // 第二姓氏 - 本地文字

	Title *string `json:"title,omitempty"` // 头衔, 枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "title"

	LocalFirstName *string `json:"local_first_name,omitempty"` // 名 - 本地文字

	CustomLocalName *string `json:"custom_local_name,omitempty"` // 自定义姓名(本地文字)

	CustomWesternName *string `json:"custom_western_name,omitempty"` // 自定义姓名(西方文字)

	NameType *string `json:"name_type,omitempty"` // 姓名类型

	FirstName *string `json:"first_name,omitempty"` // 名

	NamePrimary *string `json:"name_primary,omitempty"` // 姓
}

type ProfileSettingNameBuilder added in v3.2.1

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

func NewProfileSettingNameBuilder added in v3.2.1

func NewProfileSettingNameBuilder() *ProfileSettingNameBuilder

func (*ProfileSettingNameBuilder) AdditionalNameType added in v3.2.1

func (builder *ProfileSettingNameBuilder) AdditionalNameType(additionalNameType string) *ProfileSettingNameBuilder

补充姓名类型, 枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "additional_name_type"

示例值:emergency_contact_name

func (*ProfileSettingNameBuilder) Build added in v3.2.1

func (*ProfileSettingNameBuilder) CountryRegion added in v3.2.1

func (builder *ProfileSettingNameBuilder) CountryRegion(countryRegion string) *ProfileSettingNameBuilder

国家 / 地区 ID

示例值:6862995757234914824

func (*ProfileSettingNameBuilder) CustomLocalName added in v3.2.1

func (builder *ProfileSettingNameBuilder) CustomLocalName(customLocalName string) *ProfileSettingNameBuilder

自定义姓名(本地文字)

示例值:王大帅

func (*ProfileSettingNameBuilder) CustomWesternName added in v3.2.1

func (builder *ProfileSettingNameBuilder) CustomWesternName(customWesternName string) *ProfileSettingNameBuilder

自定义姓名(西方文字)

示例值:王大帅

func (*ProfileSettingNameBuilder) FirstName added in v3.2.1

func (builder *ProfileSettingNameBuilder) FirstName(firstName string) *ProfileSettingNameBuilder

示例值:帅

func (*ProfileSettingNameBuilder) FullName added in v3.2.1

func (builder *ProfileSettingNameBuilder) FullName(fullName string) *ProfileSettingNameBuilder

全名

示例值:王大帅

func (*ProfileSettingNameBuilder) Hereditary added in v3.2.1

func (builder *ProfileSettingNameBuilder) Hereditary(hereditary string) *ProfileSettingNameBuilder

姓氏称谓

示例值:王

func (*ProfileSettingNameBuilder) LocalFirstName added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalFirstName(localFirstName string) *ProfileSettingNameBuilder

名 - 本地文字

示例值:四

func (*ProfileSettingNameBuilder) LocalFirstName2 added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalFirstName2(localFirstName2 string) *ProfileSettingNameBuilder

名 - 第二本地文字

示例值:五

func (*ProfileSettingNameBuilder) LocalMiddleName added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalMiddleName(localMiddleName string) *ProfileSettingNameBuilder

本地中间名

示例值:大

func (*ProfileSettingNameBuilder) LocalPrimary added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalPrimary(localPrimary string) *ProfileSettingNameBuilder

姓 - 本地文字

示例值:黄

func (*ProfileSettingNameBuilder) LocalPrimary2 added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalPrimary2(localPrimary2 string) *ProfileSettingNameBuilder

姓 - 第二本地文字

示例值:王

func (*ProfileSettingNameBuilder) LocalSecondary added in v3.2.1

func (builder *ProfileSettingNameBuilder) LocalSecondary(localSecondary string) *ProfileSettingNameBuilder

第二姓氏 - 本地文字

示例值:王

func (*ProfileSettingNameBuilder) MiddleName added in v3.2.1

func (builder *ProfileSettingNameBuilder) MiddleName(middleName string) *ProfileSettingNameBuilder

中间名

示例值:大

func (*ProfileSettingNameBuilder) NamePrimary added in v3.2.1

func (builder *ProfileSettingNameBuilder) NamePrimary(namePrimary string) *ProfileSettingNameBuilder

示例值:王

func (*ProfileSettingNameBuilder) NameType added in v3.2.1

func (builder *ProfileSettingNameBuilder) NameType(nameType string) *ProfileSettingNameBuilder

姓名类型

示例值:legal_name

func (*ProfileSettingNameBuilder) Secondary added in v3.2.1

func (builder *ProfileSettingNameBuilder) Secondary(secondary string) *ProfileSettingNameBuilder

第二姓氏

示例值:王

func (*ProfileSettingNameBuilder) Social added in v3.2.1

尊称,枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "social"

示例值:ii

func (*ProfileSettingNameBuilder) Tertiary added in v3.2.1

func (builder *ProfileSettingNameBuilder) Tertiary(tertiary string) *ProfileSettingNameBuilder

婚后姓氏

示例值:王

func (*ProfileSettingNameBuilder) Title added in v3.2.1

头衔, 枚举值。可选项可以通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "person_name" - custom_api_name = "title"

示例值:mr

type ProfileSettingNational added in v3.2.1

type ProfileSettingNational struct {
	CountryRegion *string `json:"country_region,omitempty"` // 国家/地区ID

	NationalIdType *string `json:"national_id_type,omitempty"` // 国家证件类型ID

	NationalIdNumber *string `json:"national_id_number,omitempty"` // 证件号码

	IssuedDate *string `json:"issued_date,omitempty"` // 证件签发日期

	IssuedBy *string `json:"issued_by,omitempty"` // 证件签发机构

	ExpirationDate *string `json:"expiration_date,omitempty"` // 证件到期日期

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingNationalBuilder added in v3.2.1

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

func NewProfileSettingNationalBuilder added in v3.2.1

func NewProfileSettingNationalBuilder() *ProfileSettingNationalBuilder

func (*ProfileSettingNationalBuilder) Build added in v3.2.1

func (*ProfileSettingNationalBuilder) CountryRegion added in v3.2.1

func (builder *ProfileSettingNationalBuilder) CountryRegion(countryRegion string) *ProfileSettingNationalBuilder

国家/地区ID

示例值:6862995757234914824

func (*ProfileSettingNationalBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingNationalBuilder) ExpirationDate added in v3.2.1

func (builder *ProfileSettingNationalBuilder) ExpirationDate(expirationDate string) *ProfileSettingNationalBuilder

证件到期日期

示例值:2020-05-21

func (*ProfileSettingNationalBuilder) IssuedBy added in v3.2.1

证件签发机构

示例值:北京市公安局

func (*ProfileSettingNationalBuilder) IssuedDate added in v3.2.1

func (builder *ProfileSettingNationalBuilder) IssuedDate(issuedDate string) *ProfileSettingNationalBuilder

证件签发日期

示例值:2020-04-01

func (*ProfileSettingNationalBuilder) NationalIdNumber added in v3.2.1

func (builder *ProfileSettingNationalBuilder) NationalIdNumber(nationalIdNumber string) *ProfileSettingNationalBuilder

证件号码

示例值:1231131333

func (*ProfileSettingNationalBuilder) NationalIdType added in v3.2.1

func (builder *ProfileSettingNationalBuilder) NationalIdType(nationalIdType string) *ProfileSettingNationalBuilder

国家证件类型ID

示例值:6863330041896371725

type ProfileSettingPersonalBasicInfo added in v3.2.1

type ProfileSettingPersonalBasicInfo struct {
	LegalName *ProfileSettingName `json:"legal_name,omitempty"` // 法定姓名

	PreferredName *ProfileSettingName `json:"preferred_name,omitempty"` // 常用姓名

	Gender *string `json:"gender,omitempty"` // 性别,枚举值 。可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "gender"

	NationalityV2 *string `json:"nationality_v2,omitempty"` // 国籍ID

	EthnicityRace *string `json:"ethnicity_race,omitempty"` // 民族 / 种族,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "ethnicity_race"

	Phone *ProfileSettingPhone `json:"phone,omitempty"` // 个人电话

	Email *string `json:"email,omitempty"` // 个人邮箱

	DateOfBirth *string `json:"date_of_birth,omitempty"` // 出生日期

	MaritalStatus *string `json:"marital_status,omitempty"` // 婚姻状况,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "marital_status"

	IsDisabled *bool `json:"is_disabled,omitempty"` // 是否残疾

	DisableCardNumber *string `json:"disable_card_number,omitempty"` // 残疾证号,is_disabled 为 true 时必填

	IsMartyrFamily *bool `json:"is_martyr_family,omitempty"` // 是否为烈属

	MartyrCardNumber *string `json:"martyr_card_number,omitempty"` // 烈属证号,is_martyr_family 为 true 时必填

	IsOldAlone *bool `json:"is_old_alone,omitempty"` // 是否为孤老

	BornCountryRegion *string `json:"born_country_region,omitempty"` // 出生国家/地区

	PoliticalAffiliation *string `json:"political_affiliation,omitempty"` // 政治面貌,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person_info_chn" custom_api_name = "political_affiliation"

	NativeRegion *string `json:"native_region,omitempty"` // 籍贯(省份/行政区ID)

	DateEnteredWorkforce *string `json:"date_entered_workforce,omitempty"` // 参加工作日期

	FirstEntryTime *string `json:"first_entry_time,omitempty"` // 首次入境日期

	LeaveTime *string `json:"leave_time,omitempty"` // 预计离境日期

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段

	AdditionalNationalities []string `json:"additional_nationalities,omitempty"` // 其他国籍(地区)ID
}

type ProfileSettingPersonalBasicInfoBuilder added in v3.2.1

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

func NewProfileSettingPersonalBasicInfoBuilder added in v3.2.1

func NewProfileSettingPersonalBasicInfoBuilder() *ProfileSettingPersonalBasicInfoBuilder

func (*ProfileSettingPersonalBasicInfoBuilder) AdditionalNationalities added in v3.3.7

func (builder *ProfileSettingPersonalBasicInfoBuilder) AdditionalNationalities(additionalNationalities []string) *ProfileSettingPersonalBasicInfoBuilder

其他国籍(地区)ID

示例值:6862995757234914827

func (*ProfileSettingPersonalBasicInfoBuilder) BornCountryRegion added in v3.2.1

func (builder *ProfileSettingPersonalBasicInfoBuilder) BornCountryRegion(bornCountryRegion string) *ProfileSettingPersonalBasicInfoBuilder

出生国家/地区

示例值:6862995757234914825

func (*ProfileSettingPersonalBasicInfoBuilder) Build added in v3.2.1

func (*ProfileSettingPersonalBasicInfoBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingPersonalBasicInfoBuilder) DateEnteredWorkforce added in v3.2.1

func (builder *ProfileSettingPersonalBasicInfoBuilder) DateEnteredWorkforce(dateEnteredWorkforce string) *ProfileSettingPersonalBasicInfoBuilder

参加工作日期

示例值:2006-01-02

func (*ProfileSettingPersonalBasicInfoBuilder) DateOfBirth added in v3.2.1

出生日期

示例值:2006-01-02

func (*ProfileSettingPersonalBasicInfoBuilder) DisableCardNumber added in v3.2.1

func (builder *ProfileSettingPersonalBasicInfoBuilder) DisableCardNumber(disableCardNumber string) *ProfileSettingPersonalBasicInfoBuilder

残疾证号,is_disabled 为 true 时必填

示例值:92838277746172888312

func (*ProfileSettingPersonalBasicInfoBuilder) Email added in v3.2.1

个人邮箱

示例值:1234567@example.feishu.cn

func (*ProfileSettingPersonalBasicInfoBuilder) EthnicityRace added in v3.2.1

民族 / 种族,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "ethnicity_race"

示例值:han

func (*ProfileSettingPersonalBasicInfoBuilder) FirstEntryTime added in v3.2.1

首次入境日期

示例值:2006-01-02

func (*ProfileSettingPersonalBasicInfoBuilder) Gender added in v3.2.1

性别,枚举值 。可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "gender"

示例值:female

func (*ProfileSettingPersonalBasicInfoBuilder) IsDisabled added in v3.2.1

是否残疾

示例值:false

func (*ProfileSettingPersonalBasicInfoBuilder) IsMartyrFamily added in v3.2.1

是否为烈属

示例值:false

func (*ProfileSettingPersonalBasicInfoBuilder) IsOldAlone added in v3.2.1

是否为孤老

示例值:false

func (*ProfileSettingPersonalBasicInfoBuilder) LeaveTime added in v3.2.1

预计离境日期

示例值:2006-01-02

func (*ProfileSettingPersonalBasicInfoBuilder) LegalName added in v3.2.1

法定姓名

示例值:

func (*ProfileSettingPersonalBasicInfoBuilder) MaritalStatus added in v3.2.1

婚姻状况,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person" custom_api_name = "marital_status"

示例值:married

func (*ProfileSettingPersonalBasicInfoBuilder) MartyrCardNumber added in v3.2.1

func (builder *ProfileSettingPersonalBasicInfoBuilder) MartyrCardNumber(martyrCardNumber string) *ProfileSettingPersonalBasicInfoBuilder

烈属证号,is_martyr_family 为 true 时必填

示例值:00001

func (*ProfileSettingPersonalBasicInfoBuilder) NationalityV2 added in v3.2.1

国籍ID

示例值:6862995757234914826

func (*ProfileSettingPersonalBasicInfoBuilder) NativeRegion added in v3.2.1

籍贯(省份/行政区ID)

示例值:6862995757234914827

func (*ProfileSettingPersonalBasicInfoBuilder) Phone added in v3.2.1

个人电话

示例值:

func (*ProfileSettingPersonalBasicInfoBuilder) PoliticalAffiliation added in v3.2.1

func (builder *ProfileSettingPersonalBasicInfoBuilder) PoliticalAffiliation(politicalAffiliation string) *ProfileSettingPersonalBasicInfoBuilder

政治面貌,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "person_info_chn" custom_api_name = "political_affiliation"

示例值:other

func (*ProfileSettingPersonalBasicInfoBuilder) PreferredName added in v3.2.1

常用姓名

示例值:

type ProfileSettingPersonalInfo added in v3.2.1

type ProfileSettingPersonalInfo struct {
	PersonalBasicInfo *ProfileSettingPersonalBasicInfo `json:"personal_basic_info,omitempty"` // 基本信息

	EmergencyContacts []*ProfileSettingEmergencyContact `json:"emergency_contacts,omitempty"` // 紧急联系人

	BankAccounts []*ProfileSettingBankAccount `json:"bank_accounts,omitempty"` // 银行账户

	Nationals []*ProfileSettingNational `json:"nationals,omitempty"` // 证件

	ResidentTaxes []*ProfileSettingResidentTax `json:"resident_taxes,omitempty"` // 居民身份信息

	Dependents []*ProfileSettingDependent `json:"dependents,omitempty"` // 家庭成员

	Hukou *ProfileSettingHukou `json:"hukou,omitempty"` // 户口

	ContactAddresses []*ProfileSettingAddress `json:"contact_addresses,omitempty"` // 联系地址

	CustomGroups []*ProfileSettingCustomGroup `json:"custom_groups,omitempty"` // 自定义分组

	CitizenshipStatuses []*ProfileSettingCitizenshipStatus `json:"citizenship_statuses,omitempty"` // 公民身份列表
}

type ProfileSettingPersonalInfoBuilder added in v3.2.1

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

func NewProfileSettingPersonalInfoBuilder added in v3.2.1

func NewProfileSettingPersonalInfoBuilder() *ProfileSettingPersonalInfoBuilder

func (*ProfileSettingPersonalInfoBuilder) BankAccounts added in v3.2.1

银行账户

示例值:

func (*ProfileSettingPersonalInfoBuilder) Build added in v3.2.1

func (*ProfileSettingPersonalInfoBuilder) CitizenshipStatuses added in v3.3.7

func (builder *ProfileSettingPersonalInfoBuilder) CitizenshipStatuses(citizenshipStatuses []*ProfileSettingCitizenshipStatus) *ProfileSettingPersonalInfoBuilder

公民身份列表

示例值:

func (*ProfileSettingPersonalInfoBuilder) ContactAddresses added in v3.2.1

func (builder *ProfileSettingPersonalInfoBuilder) ContactAddresses(contactAddresses []*ProfileSettingAddress) *ProfileSettingPersonalInfoBuilder

联系地址

示例值:

func (*ProfileSettingPersonalInfoBuilder) CustomGroups added in v3.2.1

自定义分组

示例值:

func (*ProfileSettingPersonalInfoBuilder) Dependents added in v3.2.1

家庭成员

示例值:

func (*ProfileSettingPersonalInfoBuilder) EmergencyContacts added in v3.2.1

紧急联系人

示例值:

func (*ProfileSettingPersonalInfoBuilder) Hukou added in v3.2.1

户口

示例值:

func (*ProfileSettingPersonalInfoBuilder) Nationals added in v3.2.1

证件

示例值:

func (*ProfileSettingPersonalInfoBuilder) PersonalBasicInfo added in v3.2.1

基本信息

示例值:

func (*ProfileSettingPersonalInfoBuilder) ResidentTaxes added in v3.2.1

居民身份信息

示例值:

type ProfileSettingPersonalRecord added in v3.2.1

type ProfileSettingPersonalRecord struct {
	ProfileType *string `json:"profile_type,omitempty"` // 资料类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "personal_profile" custom_api_name = "profile_type"

	Files []*ProfileSettingFile `json:"files,omitempty"` // 文件列表
}

type ProfileSettingPersonalRecordBuilder added in v3.2.1

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

func NewProfileSettingPersonalRecordBuilder added in v3.2.1

func NewProfileSettingPersonalRecordBuilder() *ProfileSettingPersonalRecordBuilder

func (*ProfileSettingPersonalRecordBuilder) Build added in v3.2.1

func (*ProfileSettingPersonalRecordBuilder) Files added in v3.2.1

文件列表

示例值:

func (*ProfileSettingPersonalRecordBuilder) ProfileType added in v3.2.1

资料类型,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "personal_profile" custom_api_name = "profile_type"

示例值:profile_type_1

type ProfileSettingPhone added in v3.2.1

type ProfileSettingPhone struct {
	InternationalAreaCode *string `json:"international_area_code,omitempty"` // 国际电话区号,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "phone" custom_api_name = "international_area_code"

	PhoneNumber *string `json:"phone_number,omitempty"` // 电话号码
}

type ProfileSettingPhoneBuilder added in v3.2.1

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

func NewProfileSettingPhoneBuilder added in v3.2.1

func NewProfileSettingPhoneBuilder() *ProfileSettingPhoneBuilder

func (*ProfileSettingPhoneBuilder) Build added in v3.2.1

func (*ProfileSettingPhoneBuilder) InternationalAreaCode added in v3.2.1

func (builder *ProfileSettingPhoneBuilder) InternationalAreaCode(internationalAreaCode string) *ProfileSettingPhoneBuilder

国际电话区号,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "phone" custom_api_name = "international_area_code"

示例值:86_china

func (*ProfileSettingPhoneBuilder) PhoneNumber added in v3.2.1

func (builder *ProfileSettingPhoneBuilder) PhoneNumber(phoneNumber string) *ProfileSettingPhoneBuilder

电话号码

示例值:13000000000

type ProfileSettingProbationInfo added in v3.2.1

type ProfileSettingProbationInfo struct {
	ProbationStartDate *string `json:"probation_start_date,omitempty"` // 试用期开始日期

	ProbationExpectedEndDate *string `json:"probation_expected_end_date,omitempty"` // 试用期预计结束日期

	ActualProbationEndDate *string `json:"actual_probation_end_date,omitempty"` // 试用期实际结束日期
}

type ProfileSettingProbationInfoBuilder added in v3.2.1

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

func NewProfileSettingProbationInfoBuilder added in v3.2.1

func NewProfileSettingProbationInfoBuilder() *ProfileSettingProbationInfoBuilder

func (*ProfileSettingProbationInfoBuilder) ActualProbationEndDate added in v3.2.1

func (builder *ProfileSettingProbationInfoBuilder) ActualProbationEndDate(actualProbationEndDate string) *ProfileSettingProbationInfoBuilder

试用期实际结束日期

示例值:2021-02-01

func (*ProfileSettingProbationInfoBuilder) Build added in v3.2.1

func (*ProfileSettingProbationInfoBuilder) ProbationExpectedEndDate added in v3.2.1

func (builder *ProfileSettingProbationInfoBuilder) ProbationExpectedEndDate(probationExpectedEndDate string) *ProfileSettingProbationInfoBuilder

试用期预计结束日期

示例值:2021-02-01

func (*ProfileSettingProbationInfoBuilder) ProbationStartDate added in v3.2.1

func (builder *ProfileSettingProbationInfoBuilder) ProbationStartDate(probationStartDate string) *ProfileSettingProbationInfoBuilder

试用期开始日期

示例值:2021-01-01

type ProfileSettingResidentTax added in v3.2.1

type ProfileSettingResidentTax struct {
	YearResidentTax *string `json:"year_resident_tax,omitempty"` // 年度

	TaxCountryRegion *string `json:"tax_country_region,omitempty"` // 国家 / 地区ID

	ResidentStatus *string `json:"resident_status,omitempty"` // 居民身份,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "resident_tax" custom_api_name = "resident_status"

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingResidentTaxBuilder added in v3.2.1

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

func NewProfileSettingResidentTaxBuilder added in v3.2.1

func NewProfileSettingResidentTaxBuilder() *ProfileSettingResidentTaxBuilder

func (*ProfileSettingResidentTaxBuilder) Build added in v3.2.1

func (*ProfileSettingResidentTaxBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingResidentTaxBuilder) ResidentStatus added in v3.2.1

func (builder *ProfileSettingResidentTaxBuilder) ResidentStatus(residentStatus string) *ProfileSettingResidentTaxBuilder

居民身份,枚举值。 可选项可通过【获取字段详情】接口查询,查询参数如下: object_api_name = "resident_tax" custom_api_name = "resident_status"

示例值:tax_residence

func (*ProfileSettingResidentTaxBuilder) TaxCountryRegion added in v3.2.1

func (builder *ProfileSettingResidentTaxBuilder) TaxCountryRegion(taxCountryRegion string) *ProfileSettingResidentTaxBuilder

国家 / 地区ID

示例值:6862995757234914824

func (*ProfileSettingResidentTaxBuilder) YearResidentTax added in v3.2.1

func (builder *ProfileSettingResidentTaxBuilder) YearResidentTax(yearResidentTax string) *ProfileSettingResidentTaxBuilder

年度

示例值:2006-01-02

type ProfileSettingWorkExperience added in v3.2.1

type ProfileSettingWorkExperience struct {
	CompanyOrganization *ProfileSettingI18n `json:"company_organization,omitempty"` // 公司 / 组织

	Department *ProfileSettingI18n `json:"department,omitempty"` // 部门

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期

	Job *ProfileSettingI18n `json:"job,omitempty"` // 岗位

	Description *ProfileSettingI18n `json:"description,omitempty"` // 工作描述

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段
}

type ProfileSettingWorkExperienceBuilder added in v3.2.1

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

func NewProfileSettingWorkExperienceBuilder added in v3.2.1

func NewProfileSettingWorkExperienceBuilder() *ProfileSettingWorkExperienceBuilder

func (*ProfileSettingWorkExperienceBuilder) Build added in v3.2.1

func (*ProfileSettingWorkExperienceBuilder) CompanyOrganization added in v3.2.1

func (builder *ProfileSettingWorkExperienceBuilder) CompanyOrganization(companyOrganization *ProfileSettingI18n) *ProfileSettingWorkExperienceBuilder

公司 / 组织

示例值:

func (*ProfileSettingWorkExperienceBuilder) CustomFields added in v3.2.1

自定义字段

示例值:

func (*ProfileSettingWorkExperienceBuilder) Department added in v3.2.1

部门

示例值:

func (*ProfileSettingWorkExperienceBuilder) Description added in v3.2.1

工作描述

示例值:

func (*ProfileSettingWorkExperienceBuilder) EndDate added in v3.2.1

结束日期

示例值:2020-02-01

func (*ProfileSettingWorkExperienceBuilder) Job added in v3.2.1

岗位

示例值:

func (*ProfileSettingWorkExperienceBuilder) StartDate added in v3.2.1

开始日期

示例值:2020-01-01

type QrCode added in v3.2.3

type QrCode struct {
	Id *string `json:"id,omitempty"` // 二维码id

	Png *string `json:"png,omitempty"` // 二维码图片链接,文件名区分语言

	Url *string `json:"url,omitempty"` // 二维码值链接

	Active *bool `json:"active,omitempty"` // 有效性

	CreatedBy *string `json:"created_by,omitempty"` // 创建人

	UpdatedBy *string `json:"updated_by,omitempty"` // 更新人

	CreatedAt *int `json:"created_at,omitempty"` // 创建时间

	UpdatedAt *int `json:"updated_at,omitempty"` // 更新时间

	DimensionValueList []*QrCodeDimensionValue `json:"dimension_value_list,omitempty"` // 维度值列表
}

type QrCodeBuilder added in v3.2.3

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

func NewQrCodeBuilder added in v3.2.3

func NewQrCodeBuilder() *QrCodeBuilder

func (*QrCodeBuilder) Active added in v3.2.3

func (builder *QrCodeBuilder) Active(active bool) *QrCodeBuilder

有效性

示例值:

func (*QrCodeBuilder) Build added in v3.2.3

func (builder *QrCodeBuilder) Build() *QrCode

func (*QrCodeBuilder) CreatedAt added in v3.2.3

func (builder *QrCodeBuilder) CreatedAt(createdAt int) *QrCodeBuilder

创建时间

示例值:1704038400

func (*QrCodeBuilder) CreatedBy added in v3.2.3

func (builder *QrCodeBuilder) CreatedBy(createdBy string) *QrCodeBuilder

创建人

示例值:7032210902531327521

func (*QrCodeBuilder) DimensionValueList added in v3.2.3

func (builder *QrCodeBuilder) DimensionValueList(dimensionValueList []*QrCodeDimensionValue) *QrCodeBuilder

维度值列表

示例值:

func (*QrCodeBuilder) Id added in v3.2.3

func (builder *QrCodeBuilder) Id(id string) *QrCodeBuilder

二维码id

示例值:6892698621939026184

func (*QrCodeBuilder) Png added in v3.2.3

func (builder *QrCodeBuilder) Png(png string) *QrCodeBuilder

二维码图片链接,文件名区分语言

示例值:https://open.feishu-boe.cn

func (*QrCodeBuilder) UpdatedAt added in v3.2.3

func (builder *QrCodeBuilder) UpdatedAt(updatedAt int) *QrCodeBuilder

更新时间

示例值:1704038400

func (*QrCodeBuilder) UpdatedBy added in v3.2.3

func (builder *QrCodeBuilder) UpdatedBy(updatedBy string) *QrCodeBuilder

更新人

示例值:7032210902531327521

func (*QrCodeBuilder) Url added in v3.2.3

func (builder *QrCodeBuilder) Url(url string) *QrCodeBuilder

二维码值链接

示例值:https://open.feishu-boe.cn

type QrCodeDimension added in v3.2.3

type QrCodeDimension struct {
	ApiName *string `json:"api_name,omitempty"` // 维度API name

	DisplayName *I18nV2 `json:"display_name,omitempty"` // 维度名称

	Type *int `json:"type,omitempty"` // 维度类型
}

type QrCodeDimensionBuilder added in v3.2.3

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

func NewQrCodeDimensionBuilder added in v3.2.3

func NewQrCodeDimensionBuilder() *QrCodeDimensionBuilder

func (*QrCodeDimensionBuilder) ApiName added in v3.2.3

func (builder *QrCodeDimensionBuilder) ApiName(apiName string) *QrCodeDimensionBuilder

维度API name

示例值:company

func (*QrCodeDimensionBuilder) Build added in v3.2.3

func (builder *QrCodeDimensionBuilder) Build() *QrCodeDimension

func (*QrCodeDimensionBuilder) DisplayName added in v3.2.3

func (builder *QrCodeDimensionBuilder) DisplayName(displayName *I18nV2) *QrCodeDimensionBuilder

维度名称

示例值:

func (*QrCodeDimensionBuilder) Type added in v3.2.3

func (builder *QrCodeDimensionBuilder) Type(type_ int) *QrCodeDimensionBuilder

维度类型

示例值:1

type QrCodeDimensionValue added in v3.2.3

type QrCodeDimensionValue struct {
	Dimension *QrCodeDimension `json:"dimension,omitempty"` // 维度类型

	Value *QrCodeValue `json:"value,omitempty"` // 维度数据
}

type QrCodeDimensionValueBuilder added in v3.2.3

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

func NewQrCodeDimensionValueBuilder added in v3.2.3

func NewQrCodeDimensionValueBuilder() *QrCodeDimensionValueBuilder

func (*QrCodeDimensionValueBuilder) Build added in v3.2.3

func (*QrCodeDimensionValueBuilder) Dimension added in v3.2.3

维度类型

示例值:

func (*QrCodeDimensionValueBuilder) Value added in v3.2.3

维度数据

示例值:

type QrCodeValue added in v3.2.3

type QrCodeValue struct {
	SelectValue *string `json:"select_value,omitempty"` // 单选值

	MultiSelectValue []string `json:"multi_select_value,omitempty"` // 多选值

	BoolValue *bool `json:"bool_value,omitempty"` // 布尔值
}

type QrCodeValueBuilder added in v3.2.3

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

func NewQrCodeValueBuilder added in v3.2.3

func NewQrCodeValueBuilder() *QrCodeValueBuilder

func (*QrCodeValueBuilder) BoolValue added in v3.2.3

func (builder *QrCodeValueBuilder) BoolValue(boolValue bool) *QrCodeValueBuilder

布尔值

示例值:

func (*QrCodeValueBuilder) Build added in v3.2.3

func (builder *QrCodeValueBuilder) Build() *QrCodeValue

func (*QrCodeValueBuilder) MultiSelectValue added in v3.2.3

func (builder *QrCodeValueBuilder) MultiSelectValue(multiSelectValue []string) *QrCodeValueBuilder

多选值

示例值:

func (*QrCodeValueBuilder) SelectValue added in v3.2.3

func (builder *QrCodeValueBuilder) SelectValue(selectValue string) *QrCodeValueBuilder

单选值

示例值:7147562782945478177

type QueryEmployeesJobDataPathReqBodyBuilder

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

func NewQueryEmployeesJobDataPathReqBodyBuilder

func NewQueryEmployeesJobDataPathReqBodyBuilder() *QueryEmployeesJobDataPathReqBodyBuilder

func (*QueryEmployeesJobDataPathReqBodyBuilder) AssignmentStartReasons added in v3.3.7

func (builder *QueryEmployeesJobDataPathReqBodyBuilder) AssignmentStartReasons(assignmentStartReasons []string) *QueryEmployeesJobDataPathReqBodyBuilder

任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:assignment_start_reason

示例值:

func (*QueryEmployeesJobDataPathReqBodyBuilder) Build

func (*QueryEmployeesJobDataPathReqBodyBuilder) DataDate

查看数据日期

示例值:2020-01-01

func (*QueryEmployeesJobDataPathReqBodyBuilder) DepartmentId added in v3.3.5

部门 ID

示例值:6891251722631890445

func (*QueryEmployeesJobDataPathReqBodyBuilder) EffectiveDateEnd

func (builder *QueryEmployeesJobDataPathReqBodyBuilder) EffectiveDateEnd(effectiveDateEnd string) *QueryEmployeesJobDataPathReqBodyBuilder

生效日期 - 搜索范围结束

示例值:2020-01-01

func (*QueryEmployeesJobDataPathReqBodyBuilder) EffectiveDateStart

func (builder *QueryEmployeesJobDataPathReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *QueryEmployeesJobDataPathReqBodyBuilder

生效日期 - 搜索范围开始

示例值:2020-01-01

func (*QueryEmployeesJobDataPathReqBodyBuilder) EmploymentIds added in v3.3.5

员工雇佣 ID 列表

示例值:

func (*QueryEmployeesJobDataPathReqBodyBuilder) GetAllVersion

是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

示例值:false

func (*QueryEmployeesJobDataPathReqBodyBuilder) PrimaryJobData added in v3.3.7

是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

示例值:true

type QueryEmployeesJobDataReq

type QueryEmployeesJobDataReq struct {
	Body *QueryEmployeesJobDataReqBody `body:""`
	// contains filtered or unexported fields
}

type QueryEmployeesJobDataReqBody

type QueryEmployeesJobDataReqBody struct {
	GetAllVersion *bool `json:"get_all_version,omitempty"` // 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

	DataDate *string `json:"data_date,omitempty"` // 查看数据日期

	EffectiveDateStart *string `json:"effective_date_start,omitempty"` // 生效日期 - 搜索范围开始

	EffectiveDateEnd *string `json:"effective_date_end,omitempty"` // 生效日期 - 搜索范围结束

	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID

	EmploymentIds []string `json:"employment_ids,omitempty"` // 员工雇佣 ID 列表

	PrimaryJobData *bool `json:"primary_job_data,omitempty"` // 是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

	AssignmentStartReasons []string `json:"assignment_start_reasons,omitempty"` // 任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:job_data;  - custom_api_name:assignment_start_reason
}

type QueryEmployeesJobDataReqBodyBuilder

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

func NewQueryEmployeesJobDataReqBodyBuilder

func NewQueryEmployeesJobDataReqBodyBuilder() *QueryEmployeesJobDataReqBodyBuilder

func (*QueryEmployeesJobDataReqBodyBuilder) AssignmentStartReasons added in v3.3.7

func (builder *QueryEmployeesJobDataReqBodyBuilder) AssignmentStartReasons(assignmentStartReasons []string) *QueryEmployeesJobDataReqBodyBuilder

任职原因;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:job_data; - custom_api_name:assignment_start_reason

示例值:

func (*QueryEmployeesJobDataReqBodyBuilder) Build

func (*QueryEmployeesJobDataReqBodyBuilder) DataDate

查看数据日期

示例值:2020-01-01

func (*QueryEmployeesJobDataReqBodyBuilder) DepartmentId added in v3.3.5

部门 ID

示例值:6891251722631890445

func (*QueryEmployeesJobDataReqBodyBuilder) EffectiveDateEnd

func (builder *QueryEmployeesJobDataReqBodyBuilder) EffectiveDateEnd(effectiveDateEnd string) *QueryEmployeesJobDataReqBodyBuilder

生效日期 - 搜索范围结束

示例值:2020-01-01

func (*QueryEmployeesJobDataReqBodyBuilder) EffectiveDateStart

func (builder *QueryEmployeesJobDataReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *QueryEmployeesJobDataReqBodyBuilder

生效日期 - 搜索范围开始

示例值:2020-01-01

func (*QueryEmployeesJobDataReqBodyBuilder) EmploymentIds added in v3.3.5

func (builder *QueryEmployeesJobDataReqBodyBuilder) EmploymentIds(employmentIds []string) *QueryEmployeesJobDataReqBodyBuilder

员工雇佣 ID 列表

示例值:

func (*QueryEmployeesJobDataReqBodyBuilder) GetAllVersion

func (builder *QueryEmployeesJobDataReqBodyBuilder) GetAllVersion(getAllVersion bool) *QueryEmployeesJobDataReqBodyBuilder

是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false

示例值:false

func (*QueryEmployeesJobDataReqBodyBuilder) PrimaryJobData added in v3.3.7

func (builder *QueryEmployeesJobDataReqBodyBuilder) PrimaryJobData(primaryJobData bool) *QueryEmployeesJobDataReqBodyBuilder

是否仅查询主职;- true:仅返回 primary_job_data 为 true 的任职记录;- false:仅返回 primary_job_data 为 false 的任职记录;- 不传:返回全部

示例值:true

type QueryEmployeesJobDataReqBuilder

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

func NewQueryEmployeesJobDataReqBuilder

func NewQueryEmployeesJobDataReqBuilder() *QueryEmployeesJobDataReqBuilder

func (*QueryEmployeesJobDataReqBuilder) Body

func (*QueryEmployeesJobDataReqBuilder) Build

func (*QueryEmployeesJobDataReqBuilder) DepartmentIdType

func (builder *QueryEmployeesJobDataReqBuilder) DepartmentIdType(departmentIdType string) *QueryEmployeesJobDataReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*QueryEmployeesJobDataReqBuilder) PageSize

分页大小,最大 100

示例值:100

func (*QueryEmployeesJobDataReqBuilder) PageToken

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*QueryEmployeesJobDataReqBuilder) UserIdType

用户 ID 类型

示例值:open_id

type QueryEmployeesJobDataResp

type QueryEmployeesJobDataResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryEmployeesJobDataRespData `json:"data"` // 业务数据
}

func (*QueryEmployeesJobDataResp) Success

func (resp *QueryEmployeesJobDataResp) Success() bool

type QueryEmployeesJobDataRespData

type QueryEmployeesJobDataRespData struct {
	Items []*EmployeeJobData `json:"items,omitempty"` // 任职信息

	PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token

	HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项
}

type QueryJobGradePathReqBodyBuilder added in v3.2.6

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

func NewQueryJobGradePathReqBodyBuilder added in v3.2.6

func NewQueryJobGradePathReqBodyBuilder() *QueryJobGradePathReqBodyBuilder

func (*QueryJobGradePathReqBodyBuilder) Active added in v3.2.6

是否启用

示例值:true

func (*QueryJobGradePathReqBodyBuilder) Build added in v3.2.6

func (*QueryJobGradePathReqBodyBuilder) Codes added in v3.2.6

职等code列表

示例值:

func (*QueryJobGradePathReqBodyBuilder) Ids added in v3.2.6

职等ID列表

示例值:

type QueryJobGradeReq added in v3.2.6

type QueryJobGradeReq struct {
	Body *QueryJobGradeReqBody `body:""`
	// contains filtered or unexported fields
}

type QueryJobGradeReqBody added in v3.2.6

type QueryJobGradeReqBody struct {
	Ids []string `json:"ids,omitempty"` // 职等ID列表

	Codes []string `json:"codes,omitempty"` // 职等code列表

	Active *bool `json:"active,omitempty"` // 是否启用
}

type QueryJobGradeReqBodyBuilder added in v3.2.6

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

func NewQueryJobGradeReqBodyBuilder added in v3.2.6

func NewQueryJobGradeReqBodyBuilder() *QueryJobGradeReqBodyBuilder

func (*QueryJobGradeReqBodyBuilder) Active added in v3.2.6

是否启用

示例值:true

func (*QueryJobGradeReqBodyBuilder) Build added in v3.2.6

func (*QueryJobGradeReqBodyBuilder) Codes added in v3.2.6

职等code列表

示例值:

func (*QueryJobGradeReqBodyBuilder) Ids added in v3.2.6

职等ID列表

示例值:

type QueryJobGradeReqBuilder added in v3.2.6

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

func NewQueryJobGradeReqBuilder added in v3.2.6

func NewQueryJobGradeReqBuilder() *QueryJobGradeReqBuilder

func (*QueryJobGradeReqBuilder) Body added in v3.2.6

查询职等信息

func (*QueryJobGradeReqBuilder) Build added in v3.2.6

func (builder *QueryJobGradeReqBuilder) Build() *QueryJobGradeReq

func (*QueryJobGradeReqBuilder) PageSize added in v3.2.6

func (builder *QueryJobGradeReqBuilder) PageSize(pageSize int) *QueryJobGradeReqBuilder

分页大小,最大 100

示例值:100

func (*QueryJobGradeReqBuilder) PageToken added in v3.2.6

func (builder *QueryJobGradeReqBuilder) PageToken(pageToken string) *QueryJobGradeReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

type QueryJobGradeResp added in v3.2.6

type QueryJobGradeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryJobGradeRespData `json:"data"` // 业务数据
}

func (*QueryJobGradeResp) Success added in v3.2.6

func (resp *QueryJobGradeResp) Success() bool

type QueryJobGradeRespData added in v3.2.6

type QueryJobGradeRespData struct {
	Items []*JobGrade `json:"items,omitempty"` // 职等信息列表

	PageToken *string `json:"page_token,omitempty"` // 下一页token

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type QueryMultiTimelineDepartmentPathReqBodyBuilder added in v3.2.6

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

func NewQueryMultiTimelineDepartmentPathReqBodyBuilder added in v3.2.6

func NewQueryMultiTimelineDepartmentPathReqBodyBuilder() *QueryMultiTimelineDepartmentPathReqBodyBuilder

func (*QueryMultiTimelineDepartmentPathReqBodyBuilder) Build added in v3.2.6

func (*QueryMultiTimelineDepartmentPathReqBodyBuilder) DepartmentIds added in v3.2.6

部门 ID 列表

示例值:

func (*QueryMultiTimelineDepartmentPathReqBodyBuilder) EffectiveDateEnd added in v3.2.6

生效日期结束(包含)

示例值:2024-12-31

func (*QueryMultiTimelineDepartmentPathReqBodyBuilder) EffectiveDateStart added in v3.2.6

生效日期开始(包含)

示例值:2024-01-01

func (*QueryMultiTimelineDepartmentPathReqBodyBuilder) Fields added in v3.2.6

返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"], 以及自定义字段field_name

示例值:

type QueryMultiTimelineDepartmentReq added in v3.2.6

type QueryMultiTimelineDepartmentReq struct {
	Body *QueryMultiTimelineDepartmentReqBody `body:""`
	// contains filtered or unexported fields
}

type QueryMultiTimelineDepartmentReqBody added in v3.2.6

type QueryMultiTimelineDepartmentReqBody struct {
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表

	EffectiveDateStart *string `json:"effective_date_start,omitempty"` // 生效日期开始(包含)

	EffectiveDateEnd *string `json:"effective_date_end,omitempty"` // 生效日期结束(包含)

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"], 以及自定义字段field_name
}

type QueryMultiTimelineDepartmentReqBodyBuilder added in v3.2.6

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

func NewQueryMultiTimelineDepartmentReqBodyBuilder added in v3.2.6

func NewQueryMultiTimelineDepartmentReqBodyBuilder() *QueryMultiTimelineDepartmentReqBodyBuilder

func (*QueryMultiTimelineDepartmentReqBodyBuilder) Build added in v3.2.6

func (*QueryMultiTimelineDepartmentReqBodyBuilder) DepartmentIds added in v3.2.6

部门 ID 列表

示例值:

func (*QueryMultiTimelineDepartmentReqBodyBuilder) EffectiveDateEnd added in v3.2.6

生效日期结束(包含)

示例值:2024-12-31

func (*QueryMultiTimelineDepartmentReqBodyBuilder) EffectiveDateStart added in v3.2.6

func (builder *QueryMultiTimelineDepartmentReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *QueryMultiTimelineDepartmentReqBodyBuilder

生效日期开始(包含)

示例值:2024-01-01

func (*QueryMultiTimelineDepartmentReqBodyBuilder) Fields added in v3.2.6

返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"], 以及自定义字段field_name

示例值:

type QueryMultiTimelineDepartmentReqBuilder added in v3.2.6

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

func NewQueryMultiTimelineDepartmentReqBuilder added in v3.2.6

func NewQueryMultiTimelineDepartmentReqBuilder() *QueryMultiTimelineDepartmentReqBuilder

func (*QueryMultiTimelineDepartmentReqBuilder) Body added in v3.2.6

查询任意日期部门信息

func (*QueryMultiTimelineDepartmentReqBuilder) Build added in v3.2.6

func (*QueryMultiTimelineDepartmentReqBuilder) DepartmentIdType added in v3.2.6

func (builder *QueryMultiTimelineDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *QueryMultiTimelineDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*QueryMultiTimelineDepartmentReqBuilder) PageSize added in v3.2.6

分页大小,最大 100

示例值:100

func (*QueryMultiTimelineDepartmentReqBuilder) PageToken added in v3.2.6

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*QueryMultiTimelineDepartmentReqBuilder) UserIdType added in v3.2.6

用户 ID 类型

示例值:people_corehr_id

type QueryMultiTimelineDepartmentResp added in v3.2.6

type QueryMultiTimelineDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryMultiTimelineDepartmentRespData `json:"data"` // 业务数据
}

func (*QueryMultiTimelineDepartmentResp) Success added in v3.2.6

func (resp *QueryMultiTimelineDepartmentResp) Success() bool

type QueryMultiTimelineDepartmentRespData added in v3.2.6

type QueryMultiTimelineDepartmentRespData struct {
	Items []*DepartmentTimeline `json:"items,omitempty"` // 部门信息

	PageToken *string `json:"page_token,omitempty"` // 下一页token

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type QueryPreHireIterator added in v3.2.9

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

func (*QueryPreHireIterator) Next added in v3.2.9

func (iterator *QueryPreHireIterator) Next() (bool, *PreHire, error)

func (*QueryPreHireIterator) NextPageToken added in v3.2.9

func (iterator *QueryPreHireIterator) NextPageToken() *string

type QueryPreHirePathReqBodyBuilder added in v3.2.9

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

func NewQueryPreHirePathReqBodyBuilder added in v3.2.9

func NewQueryPreHirePathReqBodyBuilder() *QueryPreHirePathReqBodyBuilder

func (*QueryPreHirePathReqBodyBuilder) Build added in v3.2.9

func (*QueryPreHirePathReqBodyBuilder) Fields added in v3.2.9

返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:; - person_info 字段:person_info.gender,person_info.age; - employment_info 字段:employment_info.department; - onboarding_info 字段:onboarding_info.onboarding_date; - probation_info 字段:probation_info.probation_period; - contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段

示例值:\["person_info","employment_info.department","probation_info.probation_period"\]

func (*QueryPreHirePathReqBodyBuilder) PreHireIds added in v3.2.9

func (builder *QueryPreHirePathReqBodyBuilder) PreHireIds(preHireIds []string) *QueryPreHirePathReqBodyBuilder

待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询

示例值:

type QueryPreHireReq added in v3.2.9

type QueryPreHireReq struct {
	Body  *QueryPreHireReqBody `body:""`
	Limit int                  // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type QueryPreHireReqBody added in v3.2.9

type QueryPreHireReqBody struct {
	PreHireIds []string `json:"pre_hire_ids,omitempty"` // 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:;	- person_info 字段:person_info.gender,person_info.age;	- employment_info 字段:employment_info.department;	- onboarding_info 字段:onboarding_info.onboarding_date;	- probation_info 字段:probation_info.probation_period;	- contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段
}

type QueryPreHireReqBodyBuilder added in v3.2.9

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

func NewQueryPreHireReqBodyBuilder added in v3.2.9

func NewQueryPreHireReqBodyBuilder() *QueryPreHireReqBodyBuilder

func (*QueryPreHireReqBodyBuilder) Build added in v3.2.9

func (*QueryPreHireReqBodyBuilder) Fields added in v3.2.9

返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:; - person_info 字段:person_info.gender,person_info.age; - employment_info 字段:employment_info.department; - onboarding_info 字段:onboarding_info.onboarding_date; - probation_info 字段:probation_info.probation_period; - contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段

示例值:\["person_info","employment_info.department","probation_info.probation_period"\]

func (*QueryPreHireReqBodyBuilder) PreHireIds added in v3.2.9

func (builder *QueryPreHireReqBodyBuilder) PreHireIds(preHireIds []string) *QueryPreHireReqBodyBuilder

待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询

示例值:

type QueryPreHireReqBuilder added in v3.2.9

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

func NewQueryPreHireReqBuilder added in v3.2.9

func NewQueryPreHireReqBuilder() *QueryPreHireReqBuilder

func (*QueryPreHireReqBuilder) Body added in v3.2.9

批量查询待入职数据

func (*QueryPreHireReqBuilder) Build added in v3.2.9

func (builder *QueryPreHireReqBuilder) Build() *QueryPreHireReq

func (*QueryPreHireReqBuilder) DepartmentIdType added in v3.2.9

func (builder *QueryPreHireReqBuilder) DepartmentIdType(departmentIdType string) *QueryPreHireReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*QueryPreHireReqBuilder) Limit added in v3.2.9

func (builder *QueryPreHireReqBuilder) Limit(limit int) *QueryPreHireReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*QueryPreHireReqBuilder) PageSize added in v3.2.9

func (builder *QueryPreHireReqBuilder) PageSize(pageSize int) *QueryPreHireReqBuilder

分页大小,最大 10

示例值:10

func (*QueryPreHireReqBuilder) PageToken added in v3.2.9

func (builder *QueryPreHireReqBuilder) PageToken(pageToken string) *QueryPreHireReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*QueryPreHireReqBuilder) UserIdType added in v3.2.9

func (builder *QueryPreHireReqBuilder) UserIdType(userIdType string) *QueryPreHireReqBuilder

用户 ID 类型

示例值:open_id

type QueryPreHireResp added in v3.2.9

type QueryPreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryPreHireRespData `json:"data"` // 业务数据
}

func (*QueryPreHireResp) Success added in v3.2.9

func (resp *QueryPreHireResp) Success() bool

type QueryPreHireRespData added in v3.2.9

type QueryPreHireRespData struct {
	Items []*PreHire `json:"items,omitempty"` // 查询待入职的信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type QueryRecentChangeCompanyReq added in v3.3.7

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

type QueryRecentChangeCompanyReqBuilder added in v3.3.7

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

func NewQueryRecentChangeCompanyReqBuilder added in v3.3.7

func NewQueryRecentChangeCompanyReqBuilder() *QueryRecentChangeCompanyReqBuilder

func (*QueryRecentChangeCompanyReqBuilder) Build added in v3.3.7

func (*QueryRecentChangeCompanyReqBuilder) EndDate added in v3.3.7

查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS"

示例值:2024-04-01 00:00:00

func (*QueryRecentChangeCompanyReqBuilder) PageSize added in v3.3.7

分页大小,最大 2000

示例值:100

func (*QueryRecentChangeCompanyReqBuilder) PageToken added in v3.3.7

页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*QueryRecentChangeCompanyReqBuilder) StartDate added in v3.3.7

查询的开始时间,支持"yyyy-MM-dd HH:MM:SS"

示例值:2024-01-01 00:00:00

type QueryRecentChangeCompanyResp added in v3.3.7

type QueryRecentChangeCompanyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryRecentChangeCompanyRespData `json:"data"` // 业务数据
}

func (*QueryRecentChangeCompanyResp) Success added in v3.3.7

func (resp *QueryRecentChangeCompanyResp) Success() bool

type QueryRecentChangeCompanyRespData added in v3.3.7

type QueryRecentChangeCompanyRespData struct {
	CompanyIds []string `json:"company_ids,omitempty"` // 公司 ID 列表

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页

	DeletedCompanyIds []string `json:"deleted_company_ids,omitempty"` // 删除的公司 ID 列表
}

type QueryRecentChangeDepartmentReq added in v3.3.4

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

type QueryRecentChangeDepartmentReqBuilder added in v3.3.4

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

func NewQueryRecentChangeDepartmentReqBuilder added in v3.3.4

func NewQueryRecentChangeDepartmentReqBuilder() *QueryRecentChangeDepartmentReqBuilder

func (*QueryRecentChangeDepartmentReqBuilder) Build added in v3.3.4

func (*QueryRecentChangeDepartmentReqBuilder) DepartmentIdType added in v3.3.4

func (builder *QueryRecentChangeDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *QueryRecentChangeDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*QueryRecentChangeDepartmentReqBuilder) EndDate added in v3.3.4

查询的结束时间,格式 "yyyy-MM-dd",不带时分秒, 查询日期小于 end_data + 1 天的 00:00:00。

示例值:2024-08-01

func (*QueryRecentChangeDepartmentReqBuilder) PageSize added in v3.3.4

分页大小,最大 2000

示例值:100

func (*QueryRecentChangeDepartmentReqBuilder) PageToken added in v3.3.4

页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*QueryRecentChangeDepartmentReqBuilder) StartDate added in v3.3.4

查询的开始时间,格式 "yyyy-MM-dd",不带时分秒,包含 start_date 传入的时间, 系统会以 start_date 的 00:00:00 查询。

示例值:2024-08-01

type QueryRecentChangeDepartmentResp added in v3.3.4

type QueryRecentChangeDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryRecentChangeDepartmentRespData `json:"data"` // 业务数据
}

func (*QueryRecentChangeDepartmentResp) Success added in v3.3.4

func (resp *QueryRecentChangeDepartmentResp) Success() bool

type QueryRecentChangeDepartmentRespData added in v3.3.4

type QueryRecentChangeDepartmentRespData struct {
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表

	DeletedDepartmentIds []string `json:"deleted_department_ids,omitempty"` // 目标查询时间范围内被删除的部门列表

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type QueryTimelineDepartmentPathReqBodyBuilder added in v3.2.5

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

func NewQueryTimelineDepartmentPathReqBodyBuilder added in v3.2.5

func NewQueryTimelineDepartmentPathReqBodyBuilder() *QueryTimelineDepartmentPathReqBodyBuilder

func (*QueryTimelineDepartmentPathReqBodyBuilder) Build added in v3.2.5

func (*QueryTimelineDepartmentPathReqBodyBuilder) DepartmentIds added in v3.2.5

部门 ID 列表

示例值:

func (*QueryTimelineDepartmentPathReqBodyBuilder) EffectiveDate added in v3.2.5

生效日期

示例值:2020-01-01

func (*QueryTimelineDepartmentPathReqBodyBuilder) Fields added in v3.2.5

返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"]

示例值:

type QueryTimelineDepartmentReq added in v3.2.5

type QueryTimelineDepartmentReq struct {
	Body *QueryTimelineDepartmentReqBody `body:""`
	// contains filtered or unexported fields
}

type QueryTimelineDepartmentReqBody added in v3.2.5

type QueryTimelineDepartmentReqBody struct {
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"]
}

type QueryTimelineDepartmentReqBodyBuilder added in v3.2.5

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

func NewQueryTimelineDepartmentReqBodyBuilder added in v3.2.5

func NewQueryTimelineDepartmentReqBodyBuilder() *QueryTimelineDepartmentReqBodyBuilder

func (*QueryTimelineDepartmentReqBodyBuilder) Build added in v3.2.5

func (*QueryTimelineDepartmentReqBodyBuilder) DepartmentIds added in v3.2.5

部门 ID 列表

示例值:

func (*QueryTimelineDepartmentReqBodyBuilder) EffectiveDate added in v3.2.5

生效日期

示例值:2020-01-01

func (*QueryTimelineDepartmentReqBodyBuilder) Fields added in v3.2.5

返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"]

示例值:

type QueryTimelineDepartmentReqBuilder added in v3.2.5

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

func NewQueryTimelineDepartmentReqBuilder added in v3.2.5

func NewQueryTimelineDepartmentReqBuilder() *QueryTimelineDepartmentReqBuilder

func (*QueryTimelineDepartmentReqBuilder) Body added in v3.2.5

查询任意日期部门信息

func (*QueryTimelineDepartmentReqBuilder) Build added in v3.2.5

func (*QueryTimelineDepartmentReqBuilder) DepartmentIdType added in v3.2.5

func (builder *QueryTimelineDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *QueryTimelineDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*QueryTimelineDepartmentReqBuilder) UserIdType added in v3.2.5

用户 ID 类型

示例值:people_corehr_id

type QueryTimelineDepartmentResp added in v3.2.5

type QueryTimelineDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryTimelineDepartmentRespData `json:"data"` // 业务数据
}

func (*QueryTimelineDepartmentResp) Success added in v3.2.5

func (resp *QueryTimelineDepartmentResp) Success() bool

type QueryTimelineDepartmentRespData added in v3.2.5

type QueryTimelineDepartmentRespData struct {
	Items []*DepartmentTimeline `json:"items,omitempty"` // 部门信息
}

type ReorganizationInfo

type ReorganizationInfo struct {
	OriginalDepartmentNames []*I18n `json:"original_department_names,omitempty"` // 原部门名称

	TargetDepartmentNames []*I18n `json:"target_department_names,omitempty"` // 调整后部门名称

	OriginalDepartmentCode *string `json:"original_department_code,omitempty"` // 原部门编码

	TargetDepartmentCode *string `json:"target_department_code,omitempty"` // 调整后部门编码

	OriginalSubType *Enum `json:"original_sub_type,omitempty"` // 原部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

	TargetSubType *Enum `json:"target_sub_type,omitempty"` // 调整后部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

	OriginalDepartmentManager *string `json:"original_department_manager,omitempty"` // 原部门负责人

	TargetDepartmentManager *string `json:"target_department_manager,omitempty"` // 调整后部门负责人

	OriginalDescriptions []*I18n `json:"original_descriptions,omitempty"` // 原描述

	TargetDescriptions []*I18n `json:"target_descriptions,omitempty"` // 调整后描述

	OriginalCostCenter *CostCenter `json:"original_cost_center,omitempty"` // 原默认成本中心

	TargetCostCenter *CostCenter `json:"target_cost_center,omitempty"` // 调整后默认成本中心

	OriginalIsConfidential *bool `json:"original_is_confidential,omitempty"` // 原是否保密

	TargetIsConfidential *bool `json:"target_is_confidential,omitempty"` // 调整后是否保密

	OriginalStaffingModel *bool `json:"original_staffing_model,omitempty"` // 原是否使用职务

	TargetStaffingModel *bool `json:"target_staffing_model,omitempty"` // 调整后是否使用职务

	OriginalStaffingModeOption *Enum `json:"original_staffing_mode_option,omitempty"` // 原岗职模式

	TargetStaffingModeOption *Enum `json:"target_staffing_mode_option,omitempty"` // 调整后岗职模式

	OriginalParentDepartmentId *string `json:"original_parent_department_id,omitempty"` // 原上级部门

	TargetParentDepartmentId *string `json:"target_parent_department_id,omitempty"` // 调整后上级部门

	DraftTargetParentDepartmentId *string `json:"draft_target_parent_department_id,omitempty"` // 调整后上级部门 ID ,调整审批未生效前会返回格式为 td_xxx 的临时 ID

	OriginalDepartmentIdPath []*OrgdraftDepartmentId `json:"original_department_id_path,omitempty"` // 原部门全路径

	TargetDepartmentIdPath []*OrgdraftDepartmentId `json:"target_department_id_path,omitempty"` // 调整后部门全路径

	CustomFields []*ChangeFieldPair `json:"custom_fields,omitempty"` // 自定义字段
}

type ReorganizationInfoBuilder

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

func NewReorganizationInfoBuilder

func NewReorganizationInfoBuilder() *ReorganizationInfoBuilder

func (*ReorganizationInfoBuilder) Build

func (*ReorganizationInfoBuilder) CustomFields

func (builder *ReorganizationInfoBuilder) CustomFields(customFields []*ChangeFieldPair) *ReorganizationInfoBuilder

自定义字段

示例值:

func (*ReorganizationInfoBuilder) DraftTargetParentDepartmentId added in v3.2.3

func (builder *ReorganizationInfoBuilder) DraftTargetParentDepartmentId(draftTargetParentDepartmentId string) *ReorganizationInfoBuilder

调整后上级部门 ID ,调整审批未生效前会返回格式为 td_xxx 的临时 ID

示例值:6966236933198579208

func (*ReorganizationInfoBuilder) OriginalCostCenter

func (builder *ReorganizationInfoBuilder) OriginalCostCenter(originalCostCenter *CostCenter) *ReorganizationInfoBuilder

原默认成本中心

示例值:

func (*ReorganizationInfoBuilder) OriginalDepartmentCode

func (builder *ReorganizationInfoBuilder) OriginalDepartmentCode(originalDepartmentCode string) *ReorganizationInfoBuilder

原部门编码

示例值:D00000456

func (*ReorganizationInfoBuilder) OriginalDepartmentIdPath added in v3.2.3

func (builder *ReorganizationInfoBuilder) OriginalDepartmentIdPath(originalDepartmentIdPath []*OrgdraftDepartmentId) *ReorganizationInfoBuilder

原部门全路径

示例值:

func (*ReorganizationInfoBuilder) OriginalDepartmentManager

func (builder *ReorganizationInfoBuilder) OriginalDepartmentManager(originalDepartmentManager string) *ReorganizationInfoBuilder

原部门负责人

示例值:6974648866876573198

func (*ReorganizationInfoBuilder) OriginalDepartmentNames

func (builder *ReorganizationInfoBuilder) OriginalDepartmentNames(originalDepartmentNames []*I18n) *ReorganizationInfoBuilder

原部门名称

示例值:

func (*ReorganizationInfoBuilder) OriginalDescriptions

func (builder *ReorganizationInfoBuilder) OriginalDescriptions(originalDescriptions []*I18n) *ReorganizationInfoBuilder

原描述

示例值:

func (*ReorganizationInfoBuilder) OriginalIsConfidential

func (builder *ReorganizationInfoBuilder) OriginalIsConfidential(originalIsConfidential bool) *ReorganizationInfoBuilder

原是否保密

示例值:true

func (*ReorganizationInfoBuilder) OriginalParentDepartmentId

func (builder *ReorganizationInfoBuilder) OriginalParentDepartmentId(originalParentDepartmentId string) *ReorganizationInfoBuilder

原上级部门

示例值:6974659700705068581

func (*ReorganizationInfoBuilder) OriginalStaffingModeOption added in v3.3.4

func (builder *ReorganizationInfoBuilder) OriginalStaffingModeOption(originalStaffingModeOption *Enum) *ReorganizationInfoBuilder

原岗职模式

示例值:

func (*ReorganizationInfoBuilder) OriginalStaffingModel

func (builder *ReorganizationInfoBuilder) OriginalStaffingModel(originalStaffingModel bool) *ReorganizationInfoBuilder

原是否使用职务

示例值:true

func (*ReorganizationInfoBuilder) OriginalSubType

func (builder *ReorganizationInfoBuilder) OriginalSubType(originalSubType *Enum) *ReorganizationInfoBuilder

原部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

示例值:

func (*ReorganizationInfoBuilder) TargetCostCenter

func (builder *ReorganizationInfoBuilder) TargetCostCenter(targetCostCenter *CostCenter) *ReorganizationInfoBuilder

调整后默认成本中心

示例值:

func (*ReorganizationInfoBuilder) TargetDepartmentCode

func (builder *ReorganizationInfoBuilder) TargetDepartmentCode(targetDepartmentCode string) *ReorganizationInfoBuilder

调整后部门编码

示例值:D00000456

func (*ReorganizationInfoBuilder) TargetDepartmentIdPath added in v3.2.3

func (builder *ReorganizationInfoBuilder) TargetDepartmentIdPath(targetDepartmentIdPath []*OrgdraftDepartmentId) *ReorganizationInfoBuilder

调整后部门全路径

示例值:

func (*ReorganizationInfoBuilder) TargetDepartmentManager

func (builder *ReorganizationInfoBuilder) TargetDepartmentManager(targetDepartmentManager string) *ReorganizationInfoBuilder

调整后部门负责人

示例值:7013328578351842852

func (*ReorganizationInfoBuilder) TargetDepartmentNames

func (builder *ReorganizationInfoBuilder) TargetDepartmentNames(targetDepartmentNames []*I18n) *ReorganizationInfoBuilder

调整后部门名称

示例值:

func (*ReorganizationInfoBuilder) TargetDescriptions

func (builder *ReorganizationInfoBuilder) TargetDescriptions(targetDescriptions []*I18n) *ReorganizationInfoBuilder

调整后描述

示例值:

func (*ReorganizationInfoBuilder) TargetIsConfidential

func (builder *ReorganizationInfoBuilder) TargetIsConfidential(targetIsConfidential bool) *ReorganizationInfoBuilder

调整后是否保密

示例值:true

func (*ReorganizationInfoBuilder) TargetParentDepartmentId

func (builder *ReorganizationInfoBuilder) TargetParentDepartmentId(targetParentDepartmentId string) *ReorganizationInfoBuilder

调整后上级部门

示例值:6974659700705068581

func (*ReorganizationInfoBuilder) TargetStaffingModeOption added in v3.3.4

func (builder *ReorganizationInfoBuilder) TargetStaffingModeOption(targetStaffingModeOption *Enum) *ReorganizationInfoBuilder

调整后岗职模式

示例值:

func (*ReorganizationInfoBuilder) TargetStaffingModel

func (builder *ReorganizationInfoBuilder) TargetStaffingModel(targetStaffingModel bool) *ReorganizationInfoBuilder

调整后是否使用职务

示例值:false

func (*ReorganizationInfoBuilder) TargetSubType

func (builder *ReorganizationInfoBuilder) TargetSubType(targetSubType *Enum) *ReorganizationInfoBuilder

调整后部门类型,枚举值可通过文档【飞书人事枚举常量】部门子类型(department_sub_type)枚举定义部分获得

示例值:

type ReportDetailReq added in v3.3.7

type ReportDetailReq struct {
	WorkforcePlanId *string `json:"workforce_plan_id,omitempty"` // 编制规划id

	CentralizedReportingProjectId *string `json:"centralized_reporting_project_id,omitempty"` // 集中填报id

	Items []*WorkforcePlanDetailRow `json:"items,omitempty"` // 集中填报的一些填报行
}

type ReportDetailReqBuilder added in v3.3.7

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

func NewReportDetailReqBuilder added in v3.3.7

func NewReportDetailReqBuilder() *ReportDetailReqBuilder

func (*ReportDetailReqBuilder) Build added in v3.3.7

func (builder *ReportDetailReqBuilder) Build() *ReportDetailReq

func (*ReportDetailReqBuilder) CentralizedReportingProjectId added in v3.3.7

func (builder *ReportDetailReqBuilder) CentralizedReportingProjectId(centralizedReportingProjectId string) *ReportDetailReqBuilder

集中填报id

示例值:7430470688844023340

func (*ReportDetailReqBuilder) Items added in v3.3.7

集中填报的一些填报行

示例值:

func (*ReportDetailReqBuilder) WorkforcePlanId added in v3.4.0

func (builder *ReportDetailReqBuilder) WorkforcePlanId(workforcePlanId string) *ReportDetailReqBuilder

编制规划id

示例值:7430330781544564268

type ResidentTax

type ResidentTax struct {
	YearResidentTax *string `json:"year_resident_tax,omitempty"` // 年度

	ResidentStatus *Enum `json:"resident_status,omitempty"` // -| 居民身份,枚举值 api_name 可通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "resident_tax" - custom_api_name = "resident_status"

	TaxCountryRegionId *string `json:"tax_country_region_id,omitempty"` // 国家/地区,可通过【查询国家/地区信息】 接口查询

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type ResidentTaxBuilder

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

func NewResidentTaxBuilder

func NewResidentTaxBuilder() *ResidentTaxBuilder

func (*ResidentTaxBuilder) Build

func (builder *ResidentTaxBuilder) Build() *ResidentTax

func (*ResidentTaxBuilder) CustomFields

func (builder *ResidentTaxBuilder) CustomFields(customFields []*ObjectFieldData) *ResidentTaxBuilder

自定义字段

示例值:

func (*ResidentTaxBuilder) ResidentStatus

func (builder *ResidentTaxBuilder) ResidentStatus(residentStatus *Enum) *ResidentTaxBuilder

-| 居民身份,枚举值 api_name 可通过【获取字段详情】接口查询,查询参数如下: - object_api_name = "resident_tax" - custom_api_name = "resident_status"

示例值:

func (*ResidentTaxBuilder) TaxCountryRegionId

func (builder *ResidentTaxBuilder) TaxCountryRegionId(taxCountryRegionId string) *ResidentTaxBuilder

国家/地区,可通过【查询国家/地区信息】 接口查询

示例值:中国

func (*ResidentTaxBuilder) YearResidentTax

func (builder *ResidentTaxBuilder) YearResidentTax(yearResidentTax string) *ResidentTaxBuilder

年度

示例值:2023

type ResidentTaxForUpdate added in v3.2.8

type ResidentTaxForUpdate struct {
	TaxCountryRegion *string `json:"tax_country_region,omitempty"` // 国家 / 地区ID

	ResidentStatus *string `json:"resident_status,omitempty"` // 居民身份

	TaxAddress *AddressForUpdate `json:"tax_address,omitempty"` // 纳税地址

	ResidentStatusSpecification *string `json:"resident_status_specification,omitempty"` // 居民纳税身份说明

	YearResidentTax *string `json:"year_resident_tax,omitempty"` // 年度
}

type ResidentTaxForUpdateBuilder added in v3.2.8

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

func NewResidentTaxForUpdateBuilder added in v3.2.8

func NewResidentTaxForUpdateBuilder() *ResidentTaxForUpdateBuilder

func (*ResidentTaxForUpdateBuilder) Build added in v3.2.8

func (*ResidentTaxForUpdateBuilder) ResidentStatus added in v3.2.8

func (builder *ResidentTaxForUpdateBuilder) ResidentStatus(residentStatus string) *ResidentTaxForUpdateBuilder

居民身份

示例值:tax_residence

func (*ResidentTaxForUpdateBuilder) ResidentStatusSpecification added in v3.2.8

func (builder *ResidentTaxForUpdateBuilder) ResidentStatusSpecification(residentStatusSpecification string) *ResidentTaxForUpdateBuilder

居民纳税身份说明

示例值:xxx

func (*ResidentTaxForUpdateBuilder) TaxAddress added in v3.2.8

纳税地址

示例值:

func (*ResidentTaxForUpdateBuilder) TaxCountryRegion added in v3.2.8

func (builder *ResidentTaxForUpdateBuilder) TaxCountryRegion(taxCountryRegion string) *ResidentTaxForUpdateBuilder

国家 / 地区ID

示例值:6862995757234914824

func (*ResidentTaxForUpdateBuilder) YearResidentTax added in v3.2.8

func (builder *ResidentTaxForUpdateBuilder) YearResidentTax(yearResidentTax string) *ResidentTaxForUpdateBuilder

年度

示例值:2006-01-01

type RevokeOffboardingPathReqBodyBuilder added in v3.4.1

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

func NewRevokeOffboardingPathReqBodyBuilder added in v3.4.1

func NewRevokeOffboardingPathReqBodyBuilder() *RevokeOffboardingPathReqBodyBuilder

func (*RevokeOffboardingPathReqBodyBuilder) Build added in v3.4.1

func (*RevokeOffboardingPathReqBodyBuilder) OffboardingId added in v3.4.1

离职记录 ID

示例值:7095671727698478604

func (*RevokeOffboardingPathReqBodyBuilder) OperatorId added in v3.4.1

操作人雇佣 ID(employment_id),为空默认为系统操作。

示例值:6982509313466189341

type RevokeOffboardingReq added in v3.4.1

type RevokeOffboardingReq struct {
	Body *RevokeOffboardingReqBody `body:""`
	// contains filtered or unexported fields
}

type RevokeOffboardingReqBody added in v3.4.1

type RevokeOffboardingReqBody struct {
	OffboardingId *string `json:"offboarding_id,omitempty"` // 离职记录 ID

	OperatorId *string `json:"operator_id,omitempty"` // 操作人雇佣 ID(employment_id),为空默认为系统操作。
}

type RevokeOffboardingReqBodyBuilder added in v3.4.1

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

func NewRevokeOffboardingReqBodyBuilder added in v3.4.1

func NewRevokeOffboardingReqBodyBuilder() *RevokeOffboardingReqBodyBuilder

func (*RevokeOffboardingReqBodyBuilder) Build added in v3.4.1

func (*RevokeOffboardingReqBodyBuilder) OffboardingId added in v3.4.1

func (builder *RevokeOffboardingReqBodyBuilder) OffboardingId(offboardingId string) *RevokeOffboardingReqBodyBuilder

离职记录 ID

示例值:7095671727698478604

func (*RevokeOffboardingReqBodyBuilder) OperatorId added in v3.4.1

操作人雇佣 ID(employment_id),为空默认为系统操作。

示例值:6982509313466189341

type RevokeOffboardingReqBuilder added in v3.4.1

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

func NewRevokeOffboardingReqBuilder added in v3.4.1

func NewRevokeOffboardingReqBuilder() *RevokeOffboardingReqBuilder

func (*RevokeOffboardingReqBuilder) Body added in v3.4.1

撤销离职信息

func (*RevokeOffboardingReqBuilder) Build added in v3.4.1

func (*RevokeOffboardingReqBuilder) UserIdType added in v3.4.1

func (builder *RevokeOffboardingReqBuilder) UserIdType(userIdType string) *RevokeOffboardingReqBuilder

用户 ID 类型

示例值:people_corehr_id

type RevokeOffboardingResp added in v3.4.1

type RevokeOffboardingResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*RevokeOffboardingResp) Success added in v3.4.1

func (resp *RevokeOffboardingResp) Success() bool

type SearchBasicInfoBankBranchIterator added in v3.1.2

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

func (*SearchBasicInfoBankBranchIterator) Next added in v3.1.2

func (*SearchBasicInfoBankBranchIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoBankBranchIterator) NextPageToken() *string

type SearchBasicInfoBankBranchPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoBankBranchPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoBankBranchPathReqBodyBuilder() *SearchBasicInfoBankBranchPathReqBodyBuilder

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) BankBranchIdList added in v3.1.2

支行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取

示例值:

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) BankBranchNameList added in v3.1.2

func (builder *SearchBasicInfoBankBranchPathReqBodyBuilder) BankBranchNameList(bankBranchNameList []string) *SearchBasicInfoBankBranchPathReqBodyBuilder

支行名称列表,支持对支行名称精确搜索

示例值:

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) BankIdList added in v3.1.2

银行 ID 列表,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取

示例值:

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) CodeList added in v3.4.0

金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索

示例值:

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) UpdateEndTime added in v3.2.3

最晚更新时间

示例值:2024-01-01 00:00:00

func (*SearchBasicInfoBankBranchPathReqBodyBuilder) UpdateStartTime added in v3.2.3

最早更新时间

示例值:2020-01-01 00:00:00

type SearchBasicInfoBankBranchReq added in v3.1.2

type SearchBasicInfoBankBranchReq struct {
	Body  *SearchBasicInfoBankBranchReqBody `body:""`
	Limit int                               // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoBankBranchReqBody added in v3.1.2

type SearchBasicInfoBankBranchReqBody struct {
	BankIdList []string `json:"bank_id_list,omitempty"` // 银行 ID 列表,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取

	BankBranchIdList []string `json:"bank_branch_id_list,omitempty"` // 支行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取

	BankBranchNameList []string `json:"bank_branch_name_list,omitempty"` // 支行名称列表,支持对支行名称精确搜索

	CodeList []string `json:"code_list,omitempty"` // 金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索

	StatusList []int `json:"status_list,omitempty"` // 状态列表

	UpdateStartTime *string `json:"update_start_time,omitempty"` // 最早更新时间

	UpdateEndTime *string `json:"update_end_time,omitempty"` // 最晚更新时间
}

type SearchBasicInfoBankBranchReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoBankBranchReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoBankBranchReqBodyBuilder() *SearchBasicInfoBankBranchReqBodyBuilder

func (*SearchBasicInfoBankBranchReqBodyBuilder) BankBranchIdList added in v3.1.2

func (builder *SearchBasicInfoBankBranchReqBodyBuilder) BankBranchIdList(bankBranchIdList []string) *SearchBasicInfoBankBranchReqBodyBuilder

支行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取

示例值:

func (*SearchBasicInfoBankBranchReqBodyBuilder) BankBranchNameList added in v3.1.2

func (builder *SearchBasicInfoBankBranchReqBodyBuilder) BankBranchNameList(bankBranchNameList []string) *SearchBasicInfoBankBranchReqBodyBuilder

支行名称列表,支持对支行名称精确搜索

示例值:

func (*SearchBasicInfoBankBranchReqBodyBuilder) BankIdList added in v3.1.2

银行 ID 列表,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取

示例值:

func (*SearchBasicInfoBankBranchReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankBranchReqBodyBuilder) CodeList added in v3.4.0

金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索

示例值:

func (*SearchBasicInfoBankBranchReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

func (*SearchBasicInfoBankBranchReqBodyBuilder) UpdateEndTime added in v3.2.3

最晚更新时间

示例值:2024-01-01 00:00:00

func (*SearchBasicInfoBankBranchReqBodyBuilder) UpdateStartTime added in v3.2.3

最早更新时间

示例值:2020-01-01 00:00:00

type SearchBasicInfoBankBranchReqBuilder added in v3.1.2

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

func NewSearchBasicInfoBankBranchReqBuilder added in v3.1.2

func NewSearchBasicInfoBankBranchReqBuilder() *SearchBasicInfoBankBranchReqBuilder

func (*SearchBasicInfoBankBranchReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoBankBranchReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankBranchReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoBankBranchReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoBankBranchReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:MDBK00000120

type SearchBasicInfoBankBranchResp added in v3.1.2

type SearchBasicInfoBankBranchResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoBankBranchRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoBankBranchResp) Success added in v3.1.2

func (resp *SearchBasicInfoBankBranchResp) Success() bool

type SearchBasicInfoBankBranchRespData added in v3.1.2

type SearchBasicInfoBankBranchRespData struct {
	Items []*BankBranch `json:"items,omitempty"` // 查询到的支行列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoBankIterator added in v3.1.2

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

func (*SearchBasicInfoBankIterator) Next added in v3.1.2

func (iterator *SearchBasicInfoBankIterator) Next() (bool, *Bank, error)

func (*SearchBasicInfoBankIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoBankIterator) NextPageToken() *string

type SearchBasicInfoBankPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoBankPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoBankPathReqBodyBuilder() *SearchBasicInfoBankPathReqBodyBuilder

func (*SearchBasicInfoBankPathReqBodyBuilder) BankIdList added in v3.1.2

银行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取

示例值:

func (*SearchBasicInfoBankPathReqBodyBuilder) BankNameList added in v3.1.2

银行名称列表,支持对银行名称精确搜索

示例值:

func (*SearchBasicInfoBankPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

func (*SearchBasicInfoBankPathReqBodyBuilder) UpdateEndTime added in v3.2.3

最晚更新时间

示例值:2024-01-01 00:00:00

func (*SearchBasicInfoBankPathReqBodyBuilder) UpdateStartTime added in v3.2.3

func (builder *SearchBasicInfoBankPathReqBodyBuilder) UpdateStartTime(updateStartTime string) *SearchBasicInfoBankPathReqBodyBuilder

最早更新时间

示例值:2020-01-01 00:00:00

type SearchBasicInfoBankReq added in v3.1.2

type SearchBasicInfoBankReq struct {
	Body  *SearchBasicInfoBankReqBody `body:""`
	Limit int                         // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoBankReqBody added in v3.1.2

type SearchBasicInfoBankReqBody struct {
	BankIdList []string `json:"bank_id_list,omitempty"` // 银行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取

	BankNameList []string `json:"bank_name_list,omitempty"` // 银行名称列表,支持对银行名称精确搜索

	StatusList []int `json:"status_list,omitempty"` // 状态列表

	UpdateStartTime *string `json:"update_start_time,omitempty"` // 最早更新时间

	UpdateEndTime *string `json:"update_end_time,omitempty"` // 最晚更新时间
}

type SearchBasicInfoBankReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoBankReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoBankReqBodyBuilder() *SearchBasicInfoBankReqBodyBuilder

func (*SearchBasicInfoBankReqBodyBuilder) BankIdList added in v3.1.2

银行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取

示例值:

func (*SearchBasicInfoBankReqBodyBuilder) BankNameList added in v3.1.2

func (builder *SearchBasicInfoBankReqBodyBuilder) BankNameList(bankNameList []string) *SearchBasicInfoBankReqBodyBuilder

银行名称列表,支持对银行名称精确搜索

示例值:

func (*SearchBasicInfoBankReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankReqBodyBuilder) StatusList added in v3.1.2

func (builder *SearchBasicInfoBankReqBodyBuilder) StatusList(statusList []int) *SearchBasicInfoBankReqBodyBuilder

状态列表

示例值:

func (*SearchBasicInfoBankReqBodyBuilder) UpdateEndTime added in v3.2.3

func (builder *SearchBasicInfoBankReqBodyBuilder) UpdateEndTime(updateEndTime string) *SearchBasicInfoBankReqBodyBuilder

最晚更新时间

示例值:2024-01-01 00:00:00

func (*SearchBasicInfoBankReqBodyBuilder) UpdateStartTime added in v3.2.3

func (builder *SearchBasicInfoBankReqBodyBuilder) UpdateStartTime(updateStartTime string) *SearchBasicInfoBankReqBodyBuilder

最早更新时间

示例值:2020-01-01 00:00:00

type SearchBasicInfoBankReqBuilder added in v3.1.2

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

func NewSearchBasicInfoBankReqBuilder added in v3.1.2

func NewSearchBasicInfoBankReqBuilder() *SearchBasicInfoBankReqBuilder

func (*SearchBasicInfoBankReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoBankReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoBankReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoBankReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoBankReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:MDBH00000100

type SearchBasicInfoBankResp added in v3.1.2

type SearchBasicInfoBankResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoBankRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoBankResp) Success added in v3.1.2

func (resp *SearchBasicInfoBankResp) Success() bool

type SearchBasicInfoBankRespData added in v3.1.2

type SearchBasicInfoBankRespData struct {
	Items []*Bank `json:"items,omitempty"` // 查询到的银行列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoCityIterator added in v3.1.2

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

func (*SearchBasicInfoCityIterator) Next added in v3.1.2

func (iterator *SearchBasicInfoCityIterator) Next() (bool, *City, error)

func (*SearchBasicInfoCityIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoCityIterator) NextPageToken() *string

type SearchBasicInfoCityPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCityPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCityPathReqBodyBuilder() *SearchBasicInfoCityPathReqBodyBuilder

func (*SearchBasicInfoCityPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCityPathReqBodyBuilder) CityIdList added in v3.1.2

城市 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoCityPathReqBodyBuilder) CountryRegionSubdivisionIdList added in v3.1.2

func (builder *SearchBasicInfoCityPathReqBodyBuilder) CountryRegionSubdivisionIdList(countryRegionSubdivisionIdList []string) *SearchBasicInfoCityPathReqBodyBuilder

省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取

示例值:

func (*SearchBasicInfoCityPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCityReq added in v3.1.2

type SearchBasicInfoCityReq struct {
	Body  *SearchBasicInfoCityReqBody `body:""`
	Limit int                         // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoCityReqBody added in v3.1.2

type SearchBasicInfoCityReqBody struct {
	CountryRegionSubdivisionIdList []string `json:"country_region_subdivision_id_list,omitempty"` // 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取

	CityIdList []string `json:"city_id_list,omitempty"` // 城市 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoCityReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCityReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCityReqBodyBuilder() *SearchBasicInfoCityReqBodyBuilder

func (*SearchBasicInfoCityReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCityReqBodyBuilder) CityIdList added in v3.1.2

城市 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoCityReqBodyBuilder) CountryRegionSubdivisionIdList added in v3.1.2

func (builder *SearchBasicInfoCityReqBodyBuilder) CountryRegionSubdivisionIdList(countryRegionSubdivisionIdList []string) *SearchBasicInfoCityReqBodyBuilder

省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取

示例值:

func (*SearchBasicInfoCityReqBodyBuilder) StatusList added in v3.1.2

func (builder *SearchBasicInfoCityReqBodyBuilder) StatusList(statusList []int) *SearchBasicInfoCityReqBodyBuilder

状态列表

示例值:

type SearchBasicInfoCityReqBuilder added in v3.1.2

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

func NewSearchBasicInfoCityReqBuilder added in v3.1.2

func NewSearchBasicInfoCityReqBuilder() *SearchBasicInfoCityReqBuilder

func (*SearchBasicInfoCityReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoCityReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoCityReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoCityReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoCityReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:7316867189967963685

type SearchBasicInfoCityResp added in v3.1.2

type SearchBasicInfoCityResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoCityRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoCityResp) Success added in v3.1.2

func (resp *SearchBasicInfoCityResp) Success() bool

type SearchBasicInfoCityRespData added in v3.1.2

type SearchBasicInfoCityRespData struct {
	Items []*City `json:"items,omitempty"` // 查询到的城市列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoCountryRegionIterator added in v3.1.2

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

func (*SearchBasicInfoCountryRegionIterator) Next added in v3.1.2

func (*SearchBasicInfoCountryRegionIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoCountryRegionIterator) NextPageToken() *string

type SearchBasicInfoCountryRegionPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionPathReqBodyBuilder() *SearchBasicInfoCountryRegionPathReqBodyBuilder

func (*SearchBasicInfoCountryRegionPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionPathReqBodyBuilder) CountryRegionIdList added in v3.1.2

国家/地区 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取

示例值:

func (*SearchBasicInfoCountryRegionPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCountryRegionReq added in v3.1.2

type SearchBasicInfoCountryRegionReq struct {
	Body  *SearchBasicInfoCountryRegionReqBody `body:""`
	Limit int                                  // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoCountryRegionReqBody added in v3.1.2

type SearchBasicInfoCountryRegionReqBody struct {
	CountryRegionIdList []string `json:"country_region_id_list,omitempty"` // 国家/地区 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoCountryRegionReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionReqBodyBuilder() *SearchBasicInfoCountryRegionReqBodyBuilder

func (*SearchBasicInfoCountryRegionReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionReqBodyBuilder) CountryRegionIdList added in v3.1.2

func (builder *SearchBasicInfoCountryRegionReqBodyBuilder) CountryRegionIdList(countryRegionIdList []string) *SearchBasicInfoCountryRegionReqBodyBuilder

国家/地区 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取

示例值:

func (*SearchBasicInfoCountryRegionReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCountryRegionReqBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionReqBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionReqBuilder() *SearchBasicInfoCountryRegionReqBuilder

func (*SearchBasicInfoCountryRegionReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoCountryRegionReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoCountryRegionReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoCountryRegionReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6862995772275688974

type SearchBasicInfoCountryRegionResp added in v3.1.2

type SearchBasicInfoCountryRegionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoCountryRegionRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoCountryRegionResp) Success added in v3.1.2

func (resp *SearchBasicInfoCountryRegionResp) Success() bool

type SearchBasicInfoCountryRegionRespData added in v3.1.2

type SearchBasicInfoCountryRegionRespData struct {
	Items []*CountryRegion `json:"items,omitempty"` // 查询到的国家/地区列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoCountryRegionSubdivisionIterator added in v3.1.2

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

func (*SearchBasicInfoCountryRegionSubdivisionIterator) Next added in v3.1.2

func (*SearchBasicInfoCountryRegionSubdivisionIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoCountryRegionSubdivisionIterator) NextPageToken() *string

type SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder() *SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder

func (*SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder) CountryRegionIdList added in v3.1.2

国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取

示例值:

func (*SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder) CountryRegionSubdivisionIdList added in v3.1.2

func (builder *SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder) CountryRegionSubdivisionIdList(countryRegionSubdivisionIdList []string) *SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder

省份/行政区 ID 列表

示例值:

func (*SearchBasicInfoCountryRegionSubdivisionPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCountryRegionSubdivisionReq added in v3.1.2

type SearchBasicInfoCountryRegionSubdivisionReq struct {
	Body  *SearchBasicInfoCountryRegionSubdivisionReqBody `body:""`
	Limit int                                             // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoCountryRegionSubdivisionReqBody added in v3.1.2

type SearchBasicInfoCountryRegionSubdivisionReqBody struct {
	CountryRegionIdList []string `json:"country_region_id_list,omitempty"` // 国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取

	CountryRegionSubdivisionIdList []string `json:"country_region_subdivision_id_list,omitempty"` // 省份/行政区 ID 列表

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionSubdivisionReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionSubdivisionReqBodyBuilder() *SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder

func (*SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder) CountryRegionIdList added in v3.1.2

国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取

示例值:

func (*SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder) CountryRegionSubdivisionIdList added in v3.1.2

func (builder *SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder) CountryRegionSubdivisionIdList(countryRegionSubdivisionIdList []string) *SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder

省份/行政区 ID 列表

示例值:

func (*SearchBasicInfoCountryRegionSubdivisionReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCountryRegionSubdivisionReqBuilder added in v3.1.2

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

func NewSearchBasicInfoCountryRegionSubdivisionReqBuilder added in v3.1.2

func NewSearchBasicInfoCountryRegionSubdivisionReqBuilder() *SearchBasicInfoCountryRegionSubdivisionReqBuilder

func (*SearchBasicInfoCountryRegionSubdivisionReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoCountryRegionSubdivisionReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoCountryRegionSubdivisionReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoCountryRegionSubdivisionReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoCountryRegionSubdivisionReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

type SearchBasicInfoCountryRegionSubdivisionResp added in v3.1.2

type SearchBasicInfoCountryRegionSubdivisionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoCountryRegionSubdivisionRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoCountryRegionSubdivisionResp) Success added in v3.1.2

type SearchBasicInfoCountryRegionSubdivisionRespData added in v3.1.2

type SearchBasicInfoCountryRegionSubdivisionRespData struct {
	Items []*CountryRegionSubdivision `json:"items,omitempty"` // 查询的省份/行政区信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchBasicInfoCurrencyIterator added in v3.1.2

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

func (*SearchBasicInfoCurrencyIterator) Next added in v3.1.2

func (iterator *SearchBasicInfoCurrencyIterator) Next() (bool, *Currency, error)

func (*SearchBasicInfoCurrencyIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoCurrencyIterator) NextPageToken() *string

type SearchBasicInfoCurrencyPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCurrencyPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCurrencyPathReqBodyBuilder() *SearchBasicInfoCurrencyPathReqBodyBuilder

func (*SearchBasicInfoCurrencyPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCurrencyPathReqBodyBuilder) CurrencyIdList added in v3.1.2

货币 ID 列表,可通过[批量查询薪资方案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取

示例值:

func (*SearchBasicInfoCurrencyPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCurrencyReq added in v3.1.2

type SearchBasicInfoCurrencyReq struct {
	Body  *SearchBasicInfoCurrencyReqBody `body:""`
	Limit int                             // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoCurrencyReqBody added in v3.1.2

type SearchBasicInfoCurrencyReqBody struct {
	CurrencyIdList []string `json:"currency_id_list,omitempty"` // 货币 ID 列表,可通过[批量查询薪资方案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoCurrencyReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoCurrencyReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoCurrencyReqBodyBuilder() *SearchBasicInfoCurrencyReqBodyBuilder

func (*SearchBasicInfoCurrencyReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoCurrencyReqBodyBuilder) CurrencyIdList added in v3.1.2

func (builder *SearchBasicInfoCurrencyReqBodyBuilder) CurrencyIdList(currencyIdList []string) *SearchBasicInfoCurrencyReqBodyBuilder

货币 ID 列表,可通过[批量查询薪资方案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取

示例值:

func (*SearchBasicInfoCurrencyReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoCurrencyReqBuilder added in v3.1.2

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

func NewSearchBasicInfoCurrencyReqBuilder added in v3.1.2

func NewSearchBasicInfoCurrencyReqBuilder() *SearchBasicInfoCurrencyReqBuilder

func (*SearchBasicInfoCurrencyReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoCurrencyReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoCurrencyReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoCurrencyReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoCurrencyReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

type SearchBasicInfoCurrencyResp added in v3.1.2

type SearchBasicInfoCurrencyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoCurrencyRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoCurrencyResp) Success added in v3.1.2

func (resp *SearchBasicInfoCurrencyResp) Success() bool

type SearchBasicInfoCurrencyRespData added in v3.1.2

type SearchBasicInfoCurrencyRespData struct {
	Items []*Currency `json:"items,omitempty"` // 查询到的货币信息列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoDistrictIterator added in v3.1.2

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

func (*SearchBasicInfoDistrictIterator) Next added in v3.1.2

func (iterator *SearchBasicInfoDistrictIterator) Next() (bool, *District, error)

func (*SearchBasicInfoDistrictIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoDistrictIterator) NextPageToken() *string

type SearchBasicInfoDistrictPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoDistrictPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoDistrictPathReqBodyBuilder() *SearchBasicInfoDistrictPathReqBodyBuilder

func (*SearchBasicInfoDistrictPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoDistrictPathReqBodyBuilder) CityIdList added in v3.1.2

所属城市 ID 列表,可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取

示例值:

func (*SearchBasicInfoDistrictPathReqBodyBuilder) DistrictIdList added in v3.1.2

区/县 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoDistrictPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoDistrictReq added in v3.1.2

type SearchBasicInfoDistrictReq struct {
	Body  *SearchBasicInfoDistrictReqBody `body:""`
	Limit int                             // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoDistrictReqBody added in v3.1.2

type SearchBasicInfoDistrictReqBody struct {
	CityIdList []string `json:"city_id_list,omitempty"` // 所属城市 ID 列表,可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取

	DistrictIdList []string `json:"district_id_list,omitempty"` // 区/县 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoDistrictReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoDistrictReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoDistrictReqBodyBuilder() *SearchBasicInfoDistrictReqBodyBuilder

func (*SearchBasicInfoDistrictReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoDistrictReqBodyBuilder) CityIdList added in v3.1.2

所属城市 ID 列表,可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取

示例值:

func (*SearchBasicInfoDistrictReqBodyBuilder) DistrictIdList added in v3.1.2

func (builder *SearchBasicInfoDistrictReqBodyBuilder) DistrictIdList(districtIdList []string) *SearchBasicInfoDistrictReqBodyBuilder

区/县 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoDistrictReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoDistrictReqBuilder added in v3.1.2

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

func NewSearchBasicInfoDistrictReqBuilder added in v3.1.2

func NewSearchBasicInfoDistrictReqBuilder() *SearchBasicInfoDistrictReqBuilder

func (*SearchBasicInfoDistrictReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoDistrictReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoDistrictReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoDistrictReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoDistrictReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6863333352758314504

type SearchBasicInfoDistrictResp added in v3.1.2

type SearchBasicInfoDistrictResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoDistrictRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoDistrictResp) Success added in v3.1.2

func (resp *SearchBasicInfoDistrictResp) Success() bool

type SearchBasicInfoDistrictRespData added in v3.1.2

type SearchBasicInfoDistrictRespData struct {
	Items []*District `json:"items,omitempty"` // 查询到的区/县列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoLanguageIterator added in v3.3.5

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

func (*SearchBasicInfoLanguageIterator) Next added in v3.3.5

func (iterator *SearchBasicInfoLanguageIterator) Next() (bool, *Language, error)

func (*SearchBasicInfoLanguageIterator) NextPageToken added in v3.3.5

func (iterator *SearchBasicInfoLanguageIterator) NextPageToken() *string

type SearchBasicInfoLanguagePathReqBodyBuilder added in v3.3.5

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

func NewSearchBasicInfoLanguagePathReqBodyBuilder added in v3.3.5

func NewSearchBasicInfoLanguagePathReqBodyBuilder() *SearchBasicInfoLanguagePathReqBodyBuilder

func (*SearchBasicInfoLanguagePathReqBodyBuilder) Build added in v3.3.5

func (*SearchBasicInfoLanguagePathReqBodyBuilder) LanguageIdList added in v3.3.5

语言 ID 列表

示例值:

func (*SearchBasicInfoLanguagePathReqBodyBuilder) StatusList added in v3.3.5

状态列表

示例值:

type SearchBasicInfoLanguageReq added in v3.3.5

type SearchBasicInfoLanguageReq struct {
	Body  *SearchBasicInfoLanguageReqBody `body:""`
	Limit int                             // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoLanguageReqBody added in v3.3.5

type SearchBasicInfoLanguageReqBody struct {
	LanguageIdList []string `json:"language_id_list,omitempty"` // 语言 ID 列表

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoLanguageReqBodyBuilder added in v3.3.5

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

func NewSearchBasicInfoLanguageReqBodyBuilder added in v3.3.5

func NewSearchBasicInfoLanguageReqBodyBuilder() *SearchBasicInfoLanguageReqBodyBuilder

func (*SearchBasicInfoLanguageReqBodyBuilder) Build added in v3.3.5

func (*SearchBasicInfoLanguageReqBodyBuilder) LanguageIdList added in v3.3.5

func (builder *SearchBasicInfoLanguageReqBodyBuilder) LanguageIdList(languageIdList []string) *SearchBasicInfoLanguageReqBodyBuilder

语言 ID 列表

示例值:

func (*SearchBasicInfoLanguageReqBodyBuilder) StatusList added in v3.3.5

状态列表

示例值:

type SearchBasicInfoLanguageReqBuilder added in v3.3.5

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

func NewSearchBasicInfoLanguageReqBuilder added in v3.3.5

func NewSearchBasicInfoLanguageReqBuilder() *SearchBasicInfoLanguageReqBuilder

func (*SearchBasicInfoLanguageReqBuilder) Body added in v3.3.5

func (*SearchBasicInfoLanguageReqBuilder) Build added in v3.3.5

func (*SearchBasicInfoLanguageReqBuilder) Limit added in v3.3.5

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoLanguageReqBuilder) PageSize added in v3.3.5

分页大小,最大 100

示例值:100

func (*SearchBasicInfoLanguageReqBuilder) PageToken added in v3.3.5

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6862995772275688974

type SearchBasicInfoLanguageResp added in v3.3.5

type SearchBasicInfoLanguageResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoLanguageRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoLanguageResp) Success added in v3.3.5

func (resp *SearchBasicInfoLanguageResp) Success() bool

type SearchBasicInfoLanguageRespData added in v3.3.5

type SearchBasicInfoLanguageRespData struct {
	Items []*Language `json:"items,omitempty"` // 查询到的语言列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoNationalityIterator added in v3.1.2

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

func (*SearchBasicInfoNationalityIterator) Next added in v3.1.2

func (*SearchBasicInfoNationalityIterator) NextPageToken added in v3.1.2

func (iterator *SearchBasicInfoNationalityIterator) NextPageToken() *string

type SearchBasicInfoNationalityPathReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoNationalityPathReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoNationalityPathReqBodyBuilder() *SearchBasicInfoNationalityPathReqBodyBuilder

func (*SearchBasicInfoNationalityPathReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoNationalityPathReqBodyBuilder) CountryRegionIdList added in v3.1.2

func (builder *SearchBasicInfoNationalityPathReqBodyBuilder) CountryRegionIdList(countryRegionIdList []string) *SearchBasicInfoNationalityPathReqBodyBuilder

国家/地区 ID 列表,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举

示例值:

func (*SearchBasicInfoNationalityPathReqBodyBuilder) NationalityIdList added in v3.1.2

国籍 ID 列表,可从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoNationalityPathReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoNationalityReq added in v3.1.2

type SearchBasicInfoNationalityReq struct {
	Body  *SearchBasicInfoNationalityReqBody `body:""`
	Limit int                                // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoNationalityReqBody added in v3.1.2

type SearchBasicInfoNationalityReqBody struct {
	NationalityIdList []string `json:"nationality_id_list,omitempty"` // 国籍 ID 列表,可从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取

	CountryRegionIdList []string `json:"country_region_id_list,omitempty"` // 国家/地区 ID 列表,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoNationalityReqBodyBuilder added in v3.1.2

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

func NewSearchBasicInfoNationalityReqBodyBuilder added in v3.1.2

func NewSearchBasicInfoNationalityReqBodyBuilder() *SearchBasicInfoNationalityReqBodyBuilder

func (*SearchBasicInfoNationalityReqBodyBuilder) Build added in v3.1.2

func (*SearchBasicInfoNationalityReqBodyBuilder) CountryRegionIdList added in v3.1.2

func (builder *SearchBasicInfoNationalityReqBodyBuilder) CountryRegionIdList(countryRegionIdList []string) *SearchBasicInfoNationalityReqBodyBuilder

国家/地区 ID 列表,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举

示例值:

func (*SearchBasicInfoNationalityReqBodyBuilder) NationalityIdList added in v3.1.2

func (builder *SearchBasicInfoNationalityReqBodyBuilder) NationalityIdList(nationalityIdList []string) *SearchBasicInfoNationalityReqBodyBuilder

国籍 ID 列表,可从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取

示例值:

func (*SearchBasicInfoNationalityReqBodyBuilder) StatusList added in v3.1.2

状态列表

示例值:

type SearchBasicInfoNationalityReqBuilder added in v3.1.2

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

func NewSearchBasicInfoNationalityReqBuilder added in v3.1.2

func NewSearchBasicInfoNationalityReqBuilder() *SearchBasicInfoNationalityReqBuilder

func (*SearchBasicInfoNationalityReqBuilder) Body added in v3.1.2

func (*SearchBasicInfoNationalityReqBuilder) Build added in v3.1.2

func (*SearchBasicInfoNationalityReqBuilder) Limit added in v3.1.2

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoNationalityReqBuilder) PageSize added in v3.1.2

分页大小,最大 100

示例值:100

func (*SearchBasicInfoNationalityReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:7075702743846897196

type SearchBasicInfoNationalityResp added in v3.1.2

type SearchBasicInfoNationalityResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoNationalityRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoNationalityResp) Success added in v3.1.2

func (resp *SearchBasicInfoNationalityResp) Success() bool

type SearchBasicInfoNationalityRespData added in v3.1.2

type SearchBasicInfoNationalityRespData struct {
	Items []*Nationality `json:"items,omitempty"` // 查询到的国籍列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchBasicInfoTimeZoneIterator added in v3.3.5

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

func (*SearchBasicInfoTimeZoneIterator) Next added in v3.3.5

func (iterator *SearchBasicInfoTimeZoneIterator) Next() (bool, *TimeZone, error)

func (*SearchBasicInfoTimeZoneIterator) NextPageToken added in v3.3.5

func (iterator *SearchBasicInfoTimeZoneIterator) NextPageToken() *string

type SearchBasicInfoTimeZonePathReqBodyBuilder added in v3.3.5

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

func NewSearchBasicInfoTimeZonePathReqBodyBuilder added in v3.3.5

func NewSearchBasicInfoTimeZonePathReqBodyBuilder() *SearchBasicInfoTimeZonePathReqBodyBuilder

func (*SearchBasicInfoTimeZonePathReqBodyBuilder) Build added in v3.3.5

func (*SearchBasicInfoTimeZonePathReqBodyBuilder) StatusList added in v3.3.5

状态列表

示例值:

func (*SearchBasicInfoTimeZonePathReqBodyBuilder) TimeZoneIdList added in v3.3.5

时区 ID 列表

示例值:

type SearchBasicInfoTimeZoneReq added in v3.3.5

type SearchBasicInfoTimeZoneReq struct {
	Body  *SearchBasicInfoTimeZoneReqBody `body:""`
	Limit int                             // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchBasicInfoTimeZoneReqBody added in v3.3.5

type SearchBasicInfoTimeZoneReqBody struct {
	TimeZoneIdList []string `json:"time_zone_id_list,omitempty"` // 时区 ID 列表

	StatusList []int `json:"status_list,omitempty"` // 状态列表
}

type SearchBasicInfoTimeZoneReqBodyBuilder added in v3.3.5

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

func NewSearchBasicInfoTimeZoneReqBodyBuilder added in v3.3.5

func NewSearchBasicInfoTimeZoneReqBodyBuilder() *SearchBasicInfoTimeZoneReqBodyBuilder

func (*SearchBasicInfoTimeZoneReqBodyBuilder) Build added in v3.3.5

func (*SearchBasicInfoTimeZoneReqBodyBuilder) StatusList added in v3.3.5

状态列表

示例值:

func (*SearchBasicInfoTimeZoneReqBodyBuilder) TimeZoneIdList added in v3.3.5

func (builder *SearchBasicInfoTimeZoneReqBodyBuilder) TimeZoneIdList(timeZoneIdList []string) *SearchBasicInfoTimeZoneReqBodyBuilder

时区 ID 列表

示例值:

type SearchBasicInfoTimeZoneReqBuilder added in v3.3.5

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

func NewSearchBasicInfoTimeZoneReqBuilder added in v3.3.5

func NewSearchBasicInfoTimeZoneReqBuilder() *SearchBasicInfoTimeZoneReqBuilder

func (*SearchBasicInfoTimeZoneReqBuilder) Body added in v3.3.5

func (*SearchBasicInfoTimeZoneReqBuilder) Build added in v3.3.5

func (*SearchBasicInfoTimeZoneReqBuilder) Limit added in v3.3.5

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchBasicInfoTimeZoneReqBuilder) PageSize added in v3.3.5

分页大小,最大 100

示例值:100

func (*SearchBasicInfoTimeZoneReqBuilder) PageToken added in v3.3.5

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6862995772275688974

type SearchBasicInfoTimeZoneResp added in v3.3.5

type SearchBasicInfoTimeZoneResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchBasicInfoTimeZoneRespData `json:"data"` // 业务数据
}

func (*SearchBasicInfoTimeZoneResp) Success added in v3.3.5

func (resp *SearchBasicInfoTimeZoneResp) Success() bool

type SearchBasicInfoTimeZoneRespData added in v3.3.5

type SearchBasicInfoTimeZoneRespData struct {
	Items []*TimeZone `json:"items,omitempty"` // 查询到的时区列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type SearchContractIterator

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

func (*SearchContractIterator) Next

func (iterator *SearchContractIterator) Next() (bool, *Contract, error)

func (*SearchContractIterator) NextPageToken

func (iterator *SearchContractIterator) NextPageToken() *string

type SearchContractPathReqBodyBuilder

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

func NewSearchContractPathReqBodyBuilder

func NewSearchContractPathReqBodyBuilder() *SearchContractPathReqBodyBuilder

func (*SearchContractPathReqBodyBuilder) Build

func (*SearchContractPathReqBodyBuilder) ContractIdList

func (builder *SearchContractPathReqBodyBuilder) ContractIdList(contractIdList []string) *SearchContractPathReqBodyBuilder

合同ID列表

示例值:

func (*SearchContractPathReqBodyBuilder) EmploymentIdList

func (builder *SearchContractPathReqBodyBuilder) EmploymentIdList(employmentIdList []string) *SearchContractPathReqBodyBuilder

雇佣 ID 列表

示例值:

type SearchContractReq

type SearchContractReq struct {
	Body  *SearchContractReqBody `body:""`
	Limit int                    // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchContractReqBody

type SearchContractReqBody struct {
	EmploymentIdList []string `json:"employment_id_list,omitempty"` // 雇佣 ID 列表

	ContractIdList []string `json:"contract_id_list,omitempty"` // 合同ID列表
}

type SearchContractReqBodyBuilder

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

func NewSearchContractReqBodyBuilder

func NewSearchContractReqBodyBuilder() *SearchContractReqBodyBuilder

func (*SearchContractReqBodyBuilder) Build

func (*SearchContractReqBodyBuilder) ContractIdList

func (builder *SearchContractReqBodyBuilder) ContractIdList(contractIdList []string) *SearchContractReqBodyBuilder

合同ID列表

示例值:

func (*SearchContractReqBodyBuilder) EmploymentIdList

func (builder *SearchContractReqBodyBuilder) EmploymentIdList(employmentIdList []string) *SearchContractReqBodyBuilder

雇佣 ID 列表

示例值:

type SearchContractReqBuilder

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

func NewSearchContractReqBuilder

func NewSearchContractReqBuilder() *SearchContractReqBuilder

func (*SearchContractReqBuilder) Body

根据合同 ID 、雇佣 ID 查询合同信息

func (*SearchContractReqBuilder) Build

func (builder *SearchContractReqBuilder) Build() *SearchContractReq

func (*SearchContractReqBuilder) Limit

func (builder *SearchContractReqBuilder) Limit(limit int) *SearchContractReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchContractReqBuilder) PageSize

func (builder *SearchContractReqBuilder) PageSize(pageSize int) *SearchContractReqBuilder

分页大小,最大 100

示例值:100

func (*SearchContractReqBuilder) PageToken

func (builder *SearchContractReqBuilder) PageToken(pageToken string) *SearchContractReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchContractReqBuilder) UserIdType

func (builder *SearchContractReqBuilder) UserIdType(userIdType string) *SearchContractReqBuilder

用户 ID 类型

示例值:open_id

type SearchContractResp

type SearchContractResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchContractRespData `json:"data"` // 业务数据
}

func (*SearchContractResp) Success

func (resp *SearchContractResp) Success() bool

type SearchContractRespData

type SearchContractRespData struct {
	Items []*Contract `json:"items,omitempty"` // 查询的合同信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchCostCenterPathReqBodyBuilder added in v3.1.2

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

func NewSearchCostCenterPathReqBodyBuilder added in v3.1.2

func NewSearchCostCenterPathReqBodyBuilder() *SearchCostCenterPathReqBodyBuilder

func (*SearchCostCenterPathReqBodyBuilder) Build added in v3.1.2

func (*SearchCostCenterPathReqBodyBuilder) Code added in v3.1.2

成本中心编码

示例值:MDPD00000023

func (*SearchCostCenterPathReqBodyBuilder) CostCenterIdList added in v3.1.2

func (builder *SearchCostCenterPathReqBodyBuilder) CostCenterIdList(costCenterIdList []string) *SearchCostCenterPathReqBodyBuilder

成本中心ID 列表

示例值:

func (*SearchCostCenterPathReqBodyBuilder) GetAllVersion added in v3.1.2

func (builder *SearchCostCenterPathReqBodyBuilder) GetAllVersion(getAllVersion bool) *SearchCostCenterPathReqBodyBuilder

是否获取所有陈本中心版本

示例值:true

func (*SearchCostCenterPathReqBodyBuilder) NameList added in v3.1.2

成长中心名称列表,精确匹配

示例值:

func (*SearchCostCenterPathReqBodyBuilder) ParentCostCenterId added in v3.1.2

func (builder *SearchCostCenterPathReqBodyBuilder) ParentCostCenterId(parentCostCenterId string) *SearchCostCenterPathReqBodyBuilder

上级成本中心ID,可用于查询直接下级成本中心

示例值:6862995757234914824

type SearchCostCenterReq added in v3.1.2

type SearchCostCenterReq struct {
	Body *SearchCostCenterReqBody `body:""`
	// contains filtered or unexported fields
}

type SearchCostCenterReqBody added in v3.1.2

type SearchCostCenterReqBody struct {
	CostCenterIdList []string `json:"cost_center_id_list,omitempty"` // 成本中心ID 列表

	NameList []string `json:"name_list,omitempty"` // 成长中心名称列表,精确匹配

	Code *string `json:"code,omitempty"` // 成本中心编码

	ParentCostCenterId *string `json:"parent_cost_center_id,omitempty"` // 上级成本中心ID,可用于查询直接下级成本中心

	GetAllVersion *bool `json:"get_all_version,omitempty"` // 是否获取所有陈本中心版本
}

type SearchCostCenterReqBodyBuilder added in v3.1.2

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

func NewSearchCostCenterReqBodyBuilder added in v3.1.2

func NewSearchCostCenterReqBodyBuilder() *SearchCostCenterReqBodyBuilder

func (*SearchCostCenterReqBodyBuilder) Build added in v3.1.2

func (*SearchCostCenterReqBodyBuilder) Code added in v3.1.2

成本中心编码

示例值:MDPD00000023

func (*SearchCostCenterReqBodyBuilder) CostCenterIdList added in v3.1.2

func (builder *SearchCostCenterReqBodyBuilder) CostCenterIdList(costCenterIdList []string) *SearchCostCenterReqBodyBuilder

成本中心ID 列表

示例值:

func (*SearchCostCenterReqBodyBuilder) GetAllVersion added in v3.1.2

func (builder *SearchCostCenterReqBodyBuilder) GetAllVersion(getAllVersion bool) *SearchCostCenterReqBodyBuilder

是否获取所有陈本中心版本

示例值:true

func (*SearchCostCenterReqBodyBuilder) NameList added in v3.1.2

成长中心名称列表,精确匹配

示例值:

func (*SearchCostCenterReqBodyBuilder) ParentCostCenterId added in v3.1.2

func (builder *SearchCostCenterReqBodyBuilder) ParentCostCenterId(parentCostCenterId string) *SearchCostCenterReqBodyBuilder

上级成本中心ID,可用于查询直接下级成本中心

示例值:6862995757234914824

type SearchCostCenterReqBuilder added in v3.1.2

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

func NewSearchCostCenterReqBuilder added in v3.1.2

func NewSearchCostCenterReqBuilder() *SearchCostCenterReqBuilder

func (*SearchCostCenterReqBuilder) Body added in v3.1.2

查询成本中心信息

func (*SearchCostCenterReqBuilder) Build added in v3.1.2

func (*SearchCostCenterReqBuilder) PageSize added in v3.1.2

func (builder *SearchCostCenterReqBuilder) PageSize(pageSize int) *SearchCostCenterReqBuilder

分页大小,最大 100

示例值:100

func (*SearchCostCenterReqBuilder) PageToken added in v3.1.2

func (builder *SearchCostCenterReqBuilder) PageToken(pageToken string) *SearchCostCenterReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchCostCenterReqBuilder) UserIdType added in v3.1.2

func (builder *SearchCostCenterReqBuilder) UserIdType(userIdType string) *SearchCostCenterReqBuilder

用户 ID 类型

示例值:people_corehr_id

type SearchCostCenterResp added in v3.1.2

type SearchCostCenterResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchCostCenterRespData `json:"data"` // 业务数据
}

func (*SearchCostCenterResp) Success added in v3.1.2

func (resp *SearchCostCenterResp) Success() bool

type SearchCostCenterRespData added in v3.1.2

type SearchCostCenterRespData struct {
	Items []*CostCenterVersion `json:"items,omitempty"` // 成本中心信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchDepartmentIterator

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

func (*SearchDepartmentIterator) Next

func (iterator *SearchDepartmentIterator) Next() (bool, *Department, error)

func (*SearchDepartmentIterator) NextPageToken

func (iterator *SearchDepartmentIterator) NextPageToken() *string

type SearchDepartmentPathReqBodyBuilder

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

func NewSearchDepartmentPathReqBodyBuilder

func NewSearchDepartmentPathReqBodyBuilder() *SearchDepartmentPathReqBodyBuilder

func (*SearchDepartmentPathReqBodyBuilder) Active

是否启用

示例值:true

func (*SearchDepartmentPathReqBodyBuilder) Build

func (*SearchDepartmentPathReqBodyBuilder) CodeList

部门 code 列表

示例值:

func (*SearchDepartmentPathReqBodyBuilder) DepartmentIdList

func (builder *SearchDepartmentPathReqBodyBuilder) DepartmentIdList(departmentIdList []string) *SearchDepartmentPathReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchDepartmentPathReqBodyBuilder) Fields

返回数据的字段列表

示例值:

func (*SearchDepartmentPathReqBodyBuilder) GetAllChildren

func (builder *SearchDepartmentPathReqBodyBuilder) GetAllChildren(getAllChildren bool) *SearchDepartmentPathReqBodyBuilder

当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门

示例值:false

func (*SearchDepartmentPathReqBodyBuilder) ManagerList

manager ID 列表;**字段权限要求:按照部门负责人搜索 (corehr:department.manager.search:read)**

示例值:

func (*SearchDepartmentPathReqBodyBuilder) NameList

部门名称列表,需精确匹配

示例值:

func (*SearchDepartmentPathReqBodyBuilder) ParentDepartmentId

func (builder *SearchDepartmentPathReqBodyBuilder) ParentDepartmentId(parentDepartmentId string) *SearchDepartmentPathReqBodyBuilder

上级部门 ID ,可查询直接下级部门;**字段权限要求:按照上级部门搜索 (corehr:department.organize.search:read) **

示例值:7094136522860922222

type SearchDepartmentReq

type SearchDepartmentReq struct {
	Body  *SearchDepartmentReqBody `body:""`
	Limit int                      // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchDepartmentReqBody

type SearchDepartmentReqBody struct {
	Active *bool `json:"active,omitempty"` // 是否启用

	GetAllChildren *bool `json:"get_all_children,omitempty"` // 当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门

	ManagerList []string `json:"manager_list,omitempty"` // manager ID 列表;**字段权限要求:按照部门负责人搜索 (corehr:department.manager.search:read)**

	DepartmentIdList []string `json:"department_id_list,omitempty"` // 部门 ID 列表

	NameList []string `json:"name_list,omitempty"` // 部门名称列表,需精确匹配

	ParentDepartmentId *string `json:"parent_department_id,omitempty"` // 上级部门 ID ,可查询直接下级部门;**字段权限要求:按照上级部门搜索 (corehr:department.organize.search:read) **

	CodeList []string `json:"code_list,omitempty"` // 部门 code 列表

	GetAllVersion *bool `json:"get_all_version,omitempty"` // 是否获取所有部门记录,true 为获取部门所有版本记录,false 为仅获取当前生效的部门记录,默认为 false **字段权限要求:查询历史版本 (corehr:department.version.search:read) **

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表
}

type SearchDepartmentReqBodyBuilder

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

func NewSearchDepartmentReqBodyBuilder

func NewSearchDepartmentReqBodyBuilder() *SearchDepartmentReqBodyBuilder

func (*SearchDepartmentReqBodyBuilder) Active

是否启用

示例值:true

func (*SearchDepartmentReqBodyBuilder) Build

func (*SearchDepartmentReqBodyBuilder) CodeList

部门 code 列表

示例值:

func (*SearchDepartmentReqBodyBuilder) DepartmentIdList

func (builder *SearchDepartmentReqBodyBuilder) DepartmentIdList(departmentIdList []string) *SearchDepartmentReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchDepartmentReqBodyBuilder) Fields

返回数据的字段列表

示例值:

func (*SearchDepartmentReqBodyBuilder) GetAllChildren

func (builder *SearchDepartmentReqBodyBuilder) GetAllChildren(getAllChildren bool) *SearchDepartmentReqBodyBuilder

当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门

示例值:false

func (*SearchDepartmentReqBodyBuilder) ManagerList

func (builder *SearchDepartmentReqBodyBuilder) ManagerList(managerList []string) *SearchDepartmentReqBodyBuilder

manager ID 列表;**字段权限要求:按照部门负责人搜索 (corehr:department.manager.search:read)**

示例值:

func (*SearchDepartmentReqBodyBuilder) NameList

部门名称列表,需精确匹配

示例值:

func (*SearchDepartmentReqBodyBuilder) ParentDepartmentId

func (builder *SearchDepartmentReqBodyBuilder) ParentDepartmentId(parentDepartmentId string) *SearchDepartmentReqBodyBuilder

上级部门 ID ,可查询直接下级部门;**字段权限要求:按照上级部门搜索 (corehr:department.organize.search:read) **

示例值:7094136522860922222

type SearchDepartmentReqBuilder

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

func NewSearchDepartmentReqBuilder

func NewSearchDepartmentReqBuilder() *SearchDepartmentReqBuilder

func (*SearchDepartmentReqBuilder) Body

根据部门 ID,上级部门查询部门列表

func (*SearchDepartmentReqBuilder) Build

func (*SearchDepartmentReqBuilder) DepartmentIdType

func (builder *SearchDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *SearchDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*SearchDepartmentReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchDepartmentReqBuilder) PageSize

func (builder *SearchDepartmentReqBuilder) PageSize(pageSize int) *SearchDepartmentReqBuilder

分页大小,最大 100

示例值:100

func (*SearchDepartmentReqBuilder) PageToken

func (builder *SearchDepartmentReqBuilder) PageToken(pageToken string) *SearchDepartmentReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchDepartmentReqBuilder) UserIdType

func (builder *SearchDepartmentReqBuilder) UserIdType(userIdType string) *SearchDepartmentReqBuilder

用户 ID 类型

示例值:open_id

type SearchDepartmentResp

type SearchDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchDepartmentRespData `json:"data"` // 业务数据
}

func (*SearchDepartmentResp) Success

func (resp *SearchDepartmentResp) Success() bool

type SearchDepartmentRespData

type SearchDepartmentRespData struct {
	Items []*Department `json:"items,omitempty"` // 查询的部门信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchEmployeeIterator

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

func (*SearchEmployeeIterator) Next

func (iterator *SearchEmployeeIterator) Next() (bool, *Employee, error)

func (*SearchEmployeeIterator) NextPageToken

func (iterator *SearchEmployeeIterator) NextPageToken() *string

type SearchEmployeePathReqBodyBuilder

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

func NewSearchEmployeePathReqBodyBuilder

func NewSearchEmployeePathReqBodyBuilder() *SearchEmployeePathReqBodyBuilder

func (*SearchEmployeePathReqBodyBuilder) AdditionalNationalIdNumberList added in v3.3.7

func (builder *SearchEmployeePathReqBodyBuilder) AdditionalNationalIdNumberList(additionalNationalIdNumberList []string) *SearchEmployeePathReqBodyBuilder

其他国籍ID列表,精准匹配查询

示例值:

func (*SearchEmployeePathReqBodyBuilder) Build

func (*SearchEmployeePathReqBodyBuilder) CitizenshipStatusList added in v3.3.7

func (builder *SearchEmployeePathReqBodyBuilder) CitizenshipStatusList(citizenshipStatusList []string) *SearchEmployeePathReqBodyBuilder

公民身份类型列表,精确匹配查询

示例值:

func (*SearchEmployeePathReqBodyBuilder) CostCenterIdList added in v3.3.4

func (builder *SearchEmployeePathReqBodyBuilder) CostCenterIdList(costCenterIdList []string) *SearchEmployeePathReqBodyBuilder

成本中心ID;- 可通过 [【搜索成本中心信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search) 获取

示例值:

func (*SearchEmployeePathReqBodyBuilder) DepartmentIdList

func (builder *SearchEmployeePathReqBodyBuilder) DepartmentIdList(departmentIdList []string) *SearchEmployeePathReqBodyBuilder

部门 ID,根据员工主职的直接部门查询,可以通过【查询部门】API 获取 部门 ID

示例值:

func (*SearchEmployeePathReqBodyBuilder) DepartmentIdListIncludeSub

func (builder *SearchEmployeePathReqBodyBuilder) DepartmentIdListIncludeSub(departmentIdListIncludeSub []string) *SearchEmployeePathReqBodyBuilder

部门 ID 列表,查询属于该部门及下级部门的员工

示例值:

func (*SearchEmployeePathReqBodyBuilder) DirectManagerIdList

func (builder *SearchEmployeePathReqBodyBuilder) DirectManagerIdList(directManagerIdList []string) *SearchEmployeePathReqBodyBuilder

直接上级的雇佣 ID,根据员工主职的直接上级查询

示例值:7027024823985447820

func (*SearchEmployeePathReqBodyBuilder) DottedLineManagerIdList

func (builder *SearchEmployeePathReqBodyBuilder) DottedLineManagerIdList(dottedLineManagerIdList []string) *SearchEmployeePathReqBodyBuilder

虚线上级的雇佣 ID,根据员工主职的虚线上级查询

示例值:7027024823985117820

func (*SearchEmployeePathReqBodyBuilder) EffectiveTimeEnd

func (builder *SearchEmployeePathReqBodyBuilder) EffectiveTimeEnd(effectiveTimeEnd string) *SearchEmployeePathReqBodyBuilder

入职日期-搜索范围结束

示例值:2020-01-01

func (*SearchEmployeePathReqBodyBuilder) EffectiveTimeStart

func (builder *SearchEmployeePathReqBodyBuilder) EffectiveTimeStart(effectiveTimeStart string) *SearchEmployeePathReqBodyBuilder

入职日期-搜索范围开始,需要与搜索范围结束一同使用

示例值:2020-01-01

func (*SearchEmployeePathReqBodyBuilder) EmailAddressList

func (builder *SearchEmployeePathReqBodyBuilder) EmailAddressList(emailAddressList []string) *SearchEmployeePathReqBodyBuilder

工作邮箱地址列表,精确匹配查询

示例值:

func (*SearchEmployeePathReqBodyBuilder) EmployeeNumberList

func (builder *SearchEmployeePathReqBodyBuilder) EmployeeNumberList(employeeNumberList []string) *SearchEmployeePathReqBodyBuilder

工号列表

示例值:

func (*SearchEmployeePathReqBodyBuilder) EmployeeTypeId

func (builder *SearchEmployeePathReqBodyBuilder) EmployeeTypeId(employeeTypeId string) *SearchEmployeePathReqBodyBuilder

人员类型 ID

示例值:6971090097697521314

func (*SearchEmployeePathReqBodyBuilder) EmploymentIdList

func (builder *SearchEmployeePathReqBodyBuilder) EmploymentIdList(employmentIdList []string) *SearchEmployeePathReqBodyBuilder

雇佣 ID 列表

示例值:

func (*SearchEmployeePathReqBodyBuilder) EmploymentStatus

func (builder *SearchEmployeePathReqBodyBuilder) EmploymentStatus(employmentStatus string) *SearchEmployeePathReqBodyBuilder

雇佣状态

示例值:

func (*SearchEmployeePathReqBodyBuilder) Fields

返回数据的字段列表,填写方式:为空时默认仅返回 ID

示例值:

func (*SearchEmployeePathReqBodyBuilder) KeyWord

搜索关键字,支持对邮箱、工号和姓名的模糊匹配

示例值:张三

func (*SearchEmployeePathReqBodyBuilder) NationalIdNumberList

func (builder *SearchEmployeePathReqBodyBuilder) NationalIdNumberList(nationalIdNumberList []string) *SearchEmployeePathReqBodyBuilder

居民身份证件号码精确搜索

示例值:

func (*SearchEmployeePathReqBodyBuilder) PhoneNumber

个人电话,精确匹配查询

示例值:16760342300

func (*SearchEmployeePathReqBodyBuilder) PhoneNumberList

func (builder *SearchEmployeePathReqBodyBuilder) PhoneNumberList(phoneNumberList []string) *SearchEmployeePathReqBodyBuilder

个人电话列表,精确匹配查询

示例值:

func (*SearchEmployeePathReqBodyBuilder) PreferredEnglishFullNameList

func (builder *SearchEmployeePathReqBodyBuilder) PreferredEnglishFullNameList(preferredEnglishFullNameList []string) *SearchEmployeePathReqBodyBuilder

常用英文全名精确搜索

示例值:

func (*SearchEmployeePathReqBodyBuilder) PreferredLocalFullNameList

func (builder *SearchEmployeePathReqBodyBuilder) PreferredLocalFullNameList(preferredLocalFullNameList []string) *SearchEmployeePathReqBodyBuilder

常用本地全名精确搜索

示例值:

func (*SearchEmployeePathReqBodyBuilder) RegularEmployeeStartDateEnd

func (builder *SearchEmployeePathReqBodyBuilder) RegularEmployeeStartDateEnd(regularEmployeeStartDateEnd string) *SearchEmployeePathReqBodyBuilder

转正式员工日期-搜索范围结束

示例值:2020-01-01

func (*SearchEmployeePathReqBodyBuilder) RegularEmployeeStartDateStart

func (builder *SearchEmployeePathReqBodyBuilder) RegularEmployeeStartDateStart(regularEmployeeStartDateStart string) *SearchEmployeePathReqBodyBuilder

转正式员工日期-搜索范围开始

示例值:2020-01-01

func (*SearchEmployeePathReqBodyBuilder) WorkEmail

邮箱,精确匹配查询

示例值:13312345678@qq.com

func (*SearchEmployeePathReqBodyBuilder) WorkLocationIdListIncludeSub

func (builder *SearchEmployeePathReqBodyBuilder) WorkLocationIdListIncludeSub(workLocationIdListIncludeSub []string) *SearchEmployeePathReqBodyBuilder

工作地点 ID 列表,查询属于该工作地点及下级工作地点的员工

示例值:

type SearchEmployeeReq

type SearchEmployeeReq struct {
	Body  *SearchEmployeeReqBody `body:""`
	Limit int                    // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchEmployeeReqBody

type SearchEmployeeReqBody struct {
	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,填写方式:为空时默认仅返回 ID

	EmploymentIdList []string `json:"employment_id_list,omitempty"` // 雇佣 ID 列表

	EmployeeNumberList []string `json:"employee_number_list,omitempty"` // 工号列表

	WorkEmail *string `json:"work_email,omitempty"` // 邮箱,精确匹配查询

	PhoneNumber *string `json:"phone_number,omitempty"` // 个人电话,精确匹配查询

	KeyWord *string `json:"key_word,omitempty"` // 搜索关键字,支持对邮箱、工号和姓名的模糊匹配

	EmploymentStatus *string `json:"employment_status,omitempty"` // 雇佣状态

	EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID

	DepartmentIdList []string `json:"department_id_list,omitempty"` // 部门 ID,根据员工主职的直接部门查询,可以通过【查询部门】API 获取 部门 ID

	DirectManagerIdList []string `json:"direct_manager_id_list,omitempty"` // 直接上级的雇佣 ID,根据员工主职的直接上级查询

	DottedLineManagerIdList []string `json:"dotted_line_manager_id_list,omitempty"` // 虚线上级的雇佣 ID,根据员工主职的虚线上级查询

	RegularEmployeeStartDateStart *string `json:"regular_employee_start_date_start,omitempty"` // 转正式员工日期-搜索范围开始

	RegularEmployeeStartDateEnd *string `json:"regular_employee_start_date_end,omitempty"` // 转正式员工日期-搜索范围结束

	EffectiveTimeStart *string `json:"effective_time_start,omitempty"` // 入职日期-搜索范围开始,需要与搜索范围结束一同使用

	EffectiveTimeEnd *string `json:"effective_time_end,omitempty"` // 入职日期-搜索范围结束

	WorkLocationIdListIncludeSub []string `json:"work_location_id_list_include_sub,omitempty"` // 工作地点 ID 列表,查询属于该工作地点及下级工作地点的员工

	PreferredEnglishFullNameList []string `json:"preferred_english_full_name_list,omitempty"` // 常用英文全名精确搜索

	PreferredLocalFullNameList []string `json:"preferred_local_full_name_list,omitempty"` // 常用本地全名精确搜索

	NationalIdNumberList []string `json:"national_id_number_list,omitempty"` // 居民身份证件号码精确搜索

	PhoneNumberList []string `json:"phone_number_list,omitempty"` // 个人电话列表,精确匹配查询

	EmailAddressList []string `json:"email_address_list,omitempty"` // 工作邮箱地址列表,精确匹配查询

	UserName *string `json:"user_name,omitempty"` // 老People user_name查询,仅支持字节租户

	DepartmentIdListIncludeSub []string `json:"department_id_list_include_sub,omitempty"` // 部门 ID 列表,查询属于该部门及下级部门的员工

	AdditionalNationalIdNumberList []string `json:"additional_national_id_number_list,omitempty"` // 其他国籍ID列表,精准匹配查询

	CitizenshipStatusList []string `json:"citizenship_status_list,omitempty"` // 公民身份类型列表,精确匹配查询

	CostCenterIdList []string `json:"cost_center_id_list,omitempty"` // 成本中心ID;- 可通过 [【搜索成本中心信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search) 获取
}

type SearchEmployeeReqBodyBuilder

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

func NewSearchEmployeeReqBodyBuilder

func NewSearchEmployeeReqBodyBuilder() *SearchEmployeeReqBodyBuilder

func (*SearchEmployeeReqBodyBuilder) AdditionalNationalIdNumberList added in v3.3.7

func (builder *SearchEmployeeReqBodyBuilder) AdditionalNationalIdNumberList(additionalNationalIdNumberList []string) *SearchEmployeeReqBodyBuilder

其他国籍ID列表,精准匹配查询

示例值:

func (*SearchEmployeeReqBodyBuilder) Build

func (*SearchEmployeeReqBodyBuilder) CitizenshipStatusList added in v3.3.7

func (builder *SearchEmployeeReqBodyBuilder) CitizenshipStatusList(citizenshipStatusList []string) *SearchEmployeeReqBodyBuilder

公民身份类型列表,精确匹配查询

示例值:

func (*SearchEmployeeReqBodyBuilder) CostCenterIdList added in v3.3.4

func (builder *SearchEmployeeReqBodyBuilder) CostCenterIdList(costCenterIdList []string) *SearchEmployeeReqBodyBuilder

成本中心ID;- 可通过 [【搜索成本中心信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search) 获取

示例值:

func (*SearchEmployeeReqBodyBuilder) DepartmentIdList

func (builder *SearchEmployeeReqBodyBuilder) DepartmentIdList(departmentIdList []string) *SearchEmployeeReqBodyBuilder

部门 ID,根据员工主职的直接部门查询,可以通过【查询部门】API 获取 部门 ID

示例值:

func (*SearchEmployeeReqBodyBuilder) DepartmentIdListIncludeSub

func (builder *SearchEmployeeReqBodyBuilder) DepartmentIdListIncludeSub(departmentIdListIncludeSub []string) *SearchEmployeeReqBodyBuilder

部门 ID 列表,查询属于该部门及下级部门的员工

示例值:

func (*SearchEmployeeReqBodyBuilder) DirectManagerIdList

func (builder *SearchEmployeeReqBodyBuilder) DirectManagerIdList(directManagerIdList []string) *SearchEmployeeReqBodyBuilder

直接上级的雇佣 ID,根据员工主职的直接上级查询

示例值:7027024823985447820

func (*SearchEmployeeReqBodyBuilder) DottedLineManagerIdList

func (builder *SearchEmployeeReqBodyBuilder) DottedLineManagerIdList(dottedLineManagerIdList []string) *SearchEmployeeReqBodyBuilder

虚线上级的雇佣 ID,根据员工主职的虚线上级查询

示例值:7027024823985117820

func (*SearchEmployeeReqBodyBuilder) EffectiveTimeEnd

func (builder *SearchEmployeeReqBodyBuilder) EffectiveTimeEnd(effectiveTimeEnd string) *SearchEmployeeReqBodyBuilder

入职日期-搜索范围结束

示例值:2020-01-01

func (*SearchEmployeeReqBodyBuilder) EffectiveTimeStart

func (builder *SearchEmployeeReqBodyBuilder) EffectiveTimeStart(effectiveTimeStart string) *SearchEmployeeReqBodyBuilder

入职日期-搜索范围开始,需要与搜索范围结束一同使用

示例值:2020-01-01

func (*SearchEmployeeReqBodyBuilder) EmailAddressList

func (builder *SearchEmployeeReqBodyBuilder) EmailAddressList(emailAddressList []string) *SearchEmployeeReqBodyBuilder

工作邮箱地址列表,精确匹配查询

示例值:

func (*SearchEmployeeReqBodyBuilder) EmployeeNumberList

func (builder *SearchEmployeeReqBodyBuilder) EmployeeNumberList(employeeNumberList []string) *SearchEmployeeReqBodyBuilder

工号列表

示例值:

func (*SearchEmployeeReqBodyBuilder) EmployeeTypeId

func (builder *SearchEmployeeReqBodyBuilder) EmployeeTypeId(employeeTypeId string) *SearchEmployeeReqBodyBuilder

人员类型 ID

示例值:6971090097697521314

func (*SearchEmployeeReqBodyBuilder) EmploymentIdList

func (builder *SearchEmployeeReqBodyBuilder) EmploymentIdList(employmentIdList []string) *SearchEmployeeReqBodyBuilder

雇佣 ID 列表

示例值:

func (*SearchEmployeeReqBodyBuilder) EmploymentStatus

func (builder *SearchEmployeeReqBodyBuilder) EmploymentStatus(employmentStatus string) *SearchEmployeeReqBodyBuilder

雇佣状态

示例值:

func (*SearchEmployeeReqBodyBuilder) Fields

返回数据的字段列表,填写方式:为空时默认仅返回 ID

示例值:

func (*SearchEmployeeReqBodyBuilder) KeyWord

搜索关键字,支持对邮箱、工号和姓名的模糊匹配

示例值:张三

func (*SearchEmployeeReqBodyBuilder) NationalIdNumberList

func (builder *SearchEmployeeReqBodyBuilder) NationalIdNumberList(nationalIdNumberList []string) *SearchEmployeeReqBodyBuilder

居民身份证件号码精确搜索

示例值:

func (*SearchEmployeeReqBodyBuilder) PhoneNumber

func (builder *SearchEmployeeReqBodyBuilder) PhoneNumber(phoneNumber string) *SearchEmployeeReqBodyBuilder

个人电话,精确匹配查询

示例值:16760342300

func (*SearchEmployeeReqBodyBuilder) PhoneNumberList

func (builder *SearchEmployeeReqBodyBuilder) PhoneNumberList(phoneNumberList []string) *SearchEmployeeReqBodyBuilder

个人电话列表,精确匹配查询

示例值:

func (*SearchEmployeeReqBodyBuilder) PreferredEnglishFullNameList

func (builder *SearchEmployeeReqBodyBuilder) PreferredEnglishFullNameList(preferredEnglishFullNameList []string) *SearchEmployeeReqBodyBuilder

常用英文全名精确搜索

示例值:

func (*SearchEmployeeReqBodyBuilder) PreferredLocalFullNameList

func (builder *SearchEmployeeReqBodyBuilder) PreferredLocalFullNameList(preferredLocalFullNameList []string) *SearchEmployeeReqBodyBuilder

常用本地全名精确搜索

示例值:

func (*SearchEmployeeReqBodyBuilder) RegularEmployeeStartDateEnd

func (builder *SearchEmployeeReqBodyBuilder) RegularEmployeeStartDateEnd(regularEmployeeStartDateEnd string) *SearchEmployeeReqBodyBuilder

转正式员工日期-搜索范围结束

示例值:2020-01-01

func (*SearchEmployeeReqBodyBuilder) RegularEmployeeStartDateStart

func (builder *SearchEmployeeReqBodyBuilder) RegularEmployeeStartDateStart(regularEmployeeStartDateStart string) *SearchEmployeeReqBodyBuilder

转正式员工日期-搜索范围开始

示例值:2020-01-01

func (*SearchEmployeeReqBodyBuilder) WorkEmail

func (builder *SearchEmployeeReqBodyBuilder) WorkEmail(workEmail string) *SearchEmployeeReqBodyBuilder

邮箱,精确匹配查询

示例值:13312345678@qq.com

func (*SearchEmployeeReqBodyBuilder) WorkLocationIdListIncludeSub

func (builder *SearchEmployeeReqBodyBuilder) WorkLocationIdListIncludeSub(workLocationIdListIncludeSub []string) *SearchEmployeeReqBodyBuilder

工作地点 ID 列表,查询属于该工作地点及下级工作地点的员工

示例值:

type SearchEmployeeReqBuilder

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

func NewSearchEmployeeReqBuilder

func NewSearchEmployeeReqBuilder() *SearchEmployeeReqBuilder

func (*SearchEmployeeReqBuilder) Body

根据 email、工号、个人电话等条件查询员工雇佣信息以及个人基础信息

func (*SearchEmployeeReqBuilder) Build

func (builder *SearchEmployeeReqBuilder) Build() *SearchEmployeeReq

func (*SearchEmployeeReqBuilder) DepartmentIdType

func (builder *SearchEmployeeReqBuilder) DepartmentIdType(departmentIdType string) *SearchEmployeeReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*SearchEmployeeReqBuilder) Limit

func (builder *SearchEmployeeReqBuilder) Limit(limit int) *SearchEmployeeReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchEmployeeReqBuilder) PageSize

func (builder *SearchEmployeeReqBuilder) PageSize(pageSize int) *SearchEmployeeReqBuilder

分页大小,最大 100

示例值:100

func (*SearchEmployeeReqBuilder) PageToken

func (builder *SearchEmployeeReqBuilder) PageToken(pageToken string) *SearchEmployeeReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchEmployeeReqBuilder) UserIdType

func (builder *SearchEmployeeReqBuilder) UserIdType(userIdType string) *SearchEmployeeReqBuilder

用户 ID 类型

示例值:open_id

type SearchEmployeeResp

type SearchEmployeeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchEmployeeRespData `json:"data"` // 业务数据
}

func (*SearchEmployeeResp) Success

func (resp *SearchEmployeeResp) Success() bool

type SearchEmployeeRespData

type SearchEmployeeRespData struct {
	Items []*Employee `json:"items,omitempty"` // 查询的雇佣信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchJobChangeIterator

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

func (*SearchJobChangeIterator) Next

func (iterator *SearchJobChangeIterator) Next() (bool, *JobChange, error)

func (*SearchJobChangeIterator) NextPageToken

func (iterator *SearchJobChangeIterator) NextPageToken() *string

type SearchJobChangePathReqBodyBuilder

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

func NewSearchJobChangePathReqBodyBuilder

func NewSearchJobChangePathReqBodyBuilder() *SearchJobChangePathReqBodyBuilder

func (*SearchJobChangePathReqBodyBuilder) Build

func (*SearchJobChangePathReqBodyBuilder) EffectiveDateEnd added in v3.1.2

func (builder *SearchJobChangePathReqBodyBuilder) EffectiveDateEnd(effectiveDateEnd string) *SearchJobChangePathReqBodyBuilder

异动生效日期 - 搜索范围结束

示例值:2022-01-01

func (*SearchJobChangePathReqBodyBuilder) EffectiveDateStart added in v3.1.2

func (builder *SearchJobChangePathReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *SearchJobChangePathReqBodyBuilder

异动生效日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-01-01

func (*SearchJobChangePathReqBodyBuilder) EmploymentIds

func (builder *SearchJobChangePathReqBodyBuilder) EmploymentIds(employmentIds []string) *SearchJobChangePathReqBodyBuilder

雇员 ID 列表

示例值:

func (*SearchJobChangePathReqBodyBuilder) JobChangeIds

func (builder *SearchJobChangePathReqBodyBuilder) JobChangeIds(jobChangeIds []string) *SearchJobChangePathReqBodyBuilder

异动记录 ID 列表

示例值:

func (*SearchJobChangePathReqBodyBuilder) Statuses

异动状态,多个状态之间为「或」的关系

示例值:Approved

func (*SearchJobChangePathReqBodyBuilder) TargetDepartmentIds added in v3.3.2

func (builder *SearchJobChangePathReqBodyBuilder) TargetDepartmentIds(targetDepartmentIds []string) *SearchJobChangePathReqBodyBuilder

新部门 ID 列表

示例值:

func (*SearchJobChangePathReqBodyBuilder) UpdatedTimeEnd added in v3.2.1

func (builder *SearchJobChangePathReqBodyBuilder) UpdatedTimeEnd(updatedTimeEnd string) *SearchJobChangePathReqBodyBuilder

异动更新时间 - 搜索范围结束

示例值:1704084635000

func (*SearchJobChangePathReqBodyBuilder) UpdatedTimeStart added in v3.2.1

func (builder *SearchJobChangePathReqBodyBuilder) UpdatedTimeStart(updatedTimeStart string) *SearchJobChangePathReqBodyBuilder

异动更新时间 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:1704084635000

type SearchJobChangeReq

type SearchJobChangeReq struct {
	Body  *SearchJobChangeReqBody `body:""`
	Limit int                     // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchJobChangeReqBody

type SearchJobChangeReqBody struct {
	EmploymentIds []string `json:"employment_ids,omitempty"` // 雇员 ID 列表

	JobChangeIds []string `json:"job_change_ids,omitempty"` // 异动记录 ID 列表

	Statuses []string `json:"statuses,omitempty"` // 异动状态,多个状态之间为「或」的关系

	EffectiveDateStart *string `json:"effective_date_start,omitempty"` // 异动生效日期 - 搜索范围开始,需要与搜索范围结束一同使用

	EffectiveDateEnd *string `json:"effective_date_end,omitempty"` // 异动生效日期 - 搜索范围结束

	UpdatedTimeStart *string `json:"updated_time_start,omitempty"` // 异动更新时间 - 搜索范围开始,需要与搜索范围结束一同使用

	UpdatedTimeEnd *string `json:"updated_time_end,omitempty"` // 异动更新时间 - 搜索范围结束

	TargetDepartmentIds []string `json:"target_department_ids,omitempty"` // 新部门 ID 列表
}

type SearchJobChangeReqBodyBuilder

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

func NewSearchJobChangeReqBodyBuilder

func NewSearchJobChangeReqBodyBuilder() *SearchJobChangeReqBodyBuilder

func (*SearchJobChangeReqBodyBuilder) Build

func (*SearchJobChangeReqBodyBuilder) EffectiveDateEnd added in v3.1.2

func (builder *SearchJobChangeReqBodyBuilder) EffectiveDateEnd(effectiveDateEnd string) *SearchJobChangeReqBodyBuilder

异动生效日期 - 搜索范围结束

示例值:2022-01-01

func (*SearchJobChangeReqBodyBuilder) EffectiveDateStart added in v3.1.2

func (builder *SearchJobChangeReqBodyBuilder) EffectiveDateStart(effectiveDateStart string) *SearchJobChangeReqBodyBuilder

异动生效日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-01-01

func (*SearchJobChangeReqBodyBuilder) EmploymentIds

func (builder *SearchJobChangeReqBodyBuilder) EmploymentIds(employmentIds []string) *SearchJobChangeReqBodyBuilder

雇员 ID 列表

示例值:

func (*SearchJobChangeReqBodyBuilder) JobChangeIds

func (builder *SearchJobChangeReqBodyBuilder) JobChangeIds(jobChangeIds []string) *SearchJobChangeReqBodyBuilder

异动记录 ID 列表

示例值:

func (*SearchJobChangeReqBodyBuilder) Statuses

异动状态,多个状态之间为「或」的关系

示例值:Approved

func (*SearchJobChangeReqBodyBuilder) TargetDepartmentIds added in v3.3.2

func (builder *SearchJobChangeReqBodyBuilder) TargetDepartmentIds(targetDepartmentIds []string) *SearchJobChangeReqBodyBuilder

新部门 ID 列表

示例值:

func (*SearchJobChangeReqBodyBuilder) UpdatedTimeEnd added in v3.2.1

func (builder *SearchJobChangeReqBodyBuilder) UpdatedTimeEnd(updatedTimeEnd string) *SearchJobChangeReqBodyBuilder

异动更新时间 - 搜索范围结束

示例值:1704084635000

func (*SearchJobChangeReqBodyBuilder) UpdatedTimeStart added in v3.2.1

func (builder *SearchJobChangeReqBodyBuilder) UpdatedTimeStart(updatedTimeStart string) *SearchJobChangeReqBodyBuilder

异动更新时间 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:1704084635000

type SearchJobChangeReqBuilder

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

func NewSearchJobChangeReqBuilder

func NewSearchJobChangeReqBuilder() *SearchJobChangeReqBuilder

func (*SearchJobChangeReqBuilder) Body

获取员工异动列表

func (*SearchJobChangeReqBuilder) Build

func (*SearchJobChangeReqBuilder) DepartmentIdType

func (builder *SearchJobChangeReqBuilder) DepartmentIdType(departmentIdType string) *SearchJobChangeReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*SearchJobChangeReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchJobChangeReqBuilder) PageSize

func (builder *SearchJobChangeReqBuilder) PageSize(pageSize int) *SearchJobChangeReqBuilder

分页大小,最大 100

示例值:100

func (*SearchJobChangeReqBuilder) PageToken

func (builder *SearchJobChangeReqBuilder) PageToken(pageToken string) *SearchJobChangeReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchJobChangeReqBuilder) UserIdType

func (builder *SearchJobChangeReqBuilder) UserIdType(userIdType string) *SearchJobChangeReqBuilder

用户 ID 类型

示例值:open_id

type SearchJobChangeResp

type SearchJobChangeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchJobChangeRespData `json:"data"` // 业务数据
}

func (*SearchJobChangeResp) Success

func (resp *SearchJobChangeResp) Success() bool

type SearchJobChangeRespData

type SearchJobChangeRespData struct {
	Items []*JobChange `json:"items,omitempty"` // 员工异动列表

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页

	PageToken *string `json:"page_token,omitempty"` // 下一页页码
}

type SearchPreHireIterator added in v3.2.3

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

func (*SearchPreHireIterator) Next added in v3.2.3

func (iterator *SearchPreHireIterator) Next() (bool, *PreHire, error)

func (*SearchPreHireIterator) NextPageToken added in v3.2.3

func (iterator *SearchPreHireIterator) NextPageToken() *string

type SearchPreHirePathReqBodyBuilder added in v3.2.3

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

func NewSearchPreHirePathReqBodyBuilder added in v3.2.3

func NewSearchPreHirePathReqBodyBuilder() *SearchPreHirePathReqBodyBuilder

func (*SearchPreHirePathReqBodyBuilder) Build added in v3.2.3

func (*SearchPreHirePathReqBodyBuilder) DepartmentIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) DepartmentIds(departmentIds []string) *SearchPreHirePathReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) DirectManagerIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) DirectManagerIds(directManagerIds []string) *SearchPreHirePathReqBodyBuilder

直接上级的雇佣 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) EmployeeSubtypeIds added in v3.3.4

func (builder *SearchPreHirePathReqBodyBuilder) EmployeeSubtypeIds(employeeSubtypeIds []string) *SearchPreHirePathReqBodyBuilder

人员子类型 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) EmployeeTypeIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) EmployeeTypeIds(employeeTypeIds []string) *SearchPreHirePathReqBodyBuilder

人员类型 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) Fields added in v3.2.3

返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:; - person_info 字段:person_info.gender,person_info.age; - employment_info 字段:employment_info.department; - onboarding_info 字段:onboarding_info.onboarding_date; - probation_info 字段:probation_info.probation_period; - contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段

示例值:\["person_info","employment_info.department","probation_info.probation_period"\]

func (*SearchPreHirePathReqBodyBuilder) JobFamilyIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) JobFamilyIds(jobFamilyIds []string) *SearchPreHirePathReqBodyBuilder

序列 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) KeyWord added in v3.2.3

搜索关键字,支持对常用名模糊搜索 + 工号精确搜索

示例值:张三

func (*SearchPreHirePathReqBodyBuilder) OnboardingDateEnd added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) OnboardingDateEnd(onboardingDateEnd string) *SearchPreHirePathReqBodyBuilder

入职日期-搜索范围结束

示例值:2006-01-02

func (*SearchPreHirePathReqBodyBuilder) OnboardingDateStart added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) OnboardingDateStart(onboardingDateStart string) *SearchPreHirePathReqBodyBuilder

入职日期-搜索范围开始,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHirePathReqBodyBuilder) OnboardingLocationIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) OnboardingLocationIds(onboardingLocationIds []string) *SearchPreHirePathReqBodyBuilder

入职地点 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) OnboardingStatus added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) OnboardingStatus(onboardingStatus string) *SearchPreHirePathReqBodyBuilder

入职状态

示例值:待入职(preboarding)

func (*SearchPreHirePathReqBodyBuilder) PersonIds added in v3.3.4

个人信息 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) PreHireIds added in v3.2.3

func (builder *SearchPreHirePathReqBodyBuilder) PreHireIds(preHireIds []string) *SearchPreHirePathReqBodyBuilder

待入职人员 ID 列表

示例值:

func (*SearchPreHirePathReqBodyBuilder) Rehire added in v3.2.3

是否离职重聘

示例值:张三

func (*SearchPreHirePathReqBodyBuilder) UpdatedDateEnd added in v3.2.8

func (builder *SearchPreHirePathReqBodyBuilder) UpdatedDateEnd(updatedDateEnd string) *SearchPreHirePathReqBodyBuilder

待入职数据更新时间-搜索范围结束,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHirePathReqBodyBuilder) UpdatedDateStart added in v3.2.8

func (builder *SearchPreHirePathReqBodyBuilder) UpdatedDateStart(updatedDateStart string) *SearchPreHirePathReqBodyBuilder

待入职数据更新时间-搜索范围开始,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHirePathReqBodyBuilder) WorkerIds added in v3.2.3

待入职人员工号列表

示例值:

type SearchPreHireReq added in v3.2.3

type SearchPreHireReq struct {
	Body  *SearchPreHireReqBody `body:""`
	Limit int                   // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchPreHireReqBody added in v3.2.3

type SearchPreHireReqBody struct {
	WorkerIds []string `json:"worker_ids,omitempty"` // 待入职人员工号列表

	PreHireIds []string `json:"pre_hire_ids,omitempty"` // 待入职人员 ID 列表

	PersonIds []string `json:"person_ids,omitempty"` // 个人信息 ID 列表

	OnboardingDateStart *string `json:"onboarding_date_start,omitempty"` // 入职日期-搜索范围开始,需要与搜索范围结束一同使用

	OnboardingDateEnd *string `json:"onboarding_date_end,omitempty"` // 入职日期-搜索范围结束

	UpdatedDateStart *string `json:"updated_date_start,omitempty"` // 待入职数据更新时间-搜索范围开始,需要与搜索范围结束一同使用

	UpdatedDateEnd *string `json:"updated_date_end,omitempty"` // 待入职数据更新时间-搜索范围结束,需要与搜索范围结束一同使用

	OnboardingLocationIds []string `json:"onboarding_location_ids,omitempty"` // 入职地点 ID 列表

	OnboardingStatus *string `json:"onboarding_status,omitempty"` // 入职状态

	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表

	DirectManagerIds []string `json:"direct_manager_ids,omitempty"` // 直接上级的雇佣 ID 列表

	EmployeeTypeIds []string `json:"employee_type_ids,omitempty"` // 人员类型 ID 列表

	EmployeeSubtypeIds []string `json:"employee_subtype_ids,omitempty"` // 人员子类型 ID 列表

	JobFamilyIds []string `json:"job_family_ids,omitempty"` // 序列 ID 列表

	KeyWord *string `json:"key_word,omitempty"` // 搜索关键字,支持对常用名模糊搜索 + 工号精确搜索

	Rehire *string `json:"rehire,omitempty"` // 是否离职重聘

	Fields []string `json:"fields,omitempty"` // 返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:;	- person_info 字段:person_info.gender,person_info.age;	- employment_info 字段:employment_info.department;	- onboarding_info 字段:onboarding_info.onboarding_date;	- probation_info 字段:probation_info.probation_period;	- contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段
}

type SearchPreHireReqBodyBuilder added in v3.2.3

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

func NewSearchPreHireReqBodyBuilder added in v3.2.3

func NewSearchPreHireReqBodyBuilder() *SearchPreHireReqBodyBuilder

func (*SearchPreHireReqBodyBuilder) Build added in v3.2.3

func (*SearchPreHireReqBodyBuilder) DepartmentIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) DepartmentIds(departmentIds []string) *SearchPreHireReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) DirectManagerIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) DirectManagerIds(directManagerIds []string) *SearchPreHireReqBodyBuilder

直接上级的雇佣 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) EmployeeSubtypeIds added in v3.3.4

func (builder *SearchPreHireReqBodyBuilder) EmployeeSubtypeIds(employeeSubtypeIds []string) *SearchPreHireReqBodyBuilder

人员子类型 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) EmployeeTypeIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) EmployeeTypeIds(employeeTypeIds []string) *SearchPreHireReqBodyBuilder

人员类型 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) Fields added in v3.2.3

返回数据的字段列表,填写方式:;- 为空时只返回 pre_hire_id;- 不为空时按照传入的字段返回数据,格式如下:; - person_info 字段:person_info.gender,person_info.age; - employment_info 字段:employment_info.department; - onboarding_info 字段:onboarding_info.onboarding_date; - probation_info 字段:probation_info.probation_period; - contract_info 字段:contract_info.contract_type;- 如果要返回所有下级,只用传上级结构体名称,例如 person_info;- 返回数据越多,查询接口性能越慢,请按需填写返回字段

示例值:\["person_info","employment_info.department","probation_info.probation_period"\]

func (*SearchPreHireReqBodyBuilder) JobFamilyIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) JobFamilyIds(jobFamilyIds []string) *SearchPreHireReqBodyBuilder

序列 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) KeyWord added in v3.2.3

搜索关键字,支持对常用名模糊搜索 + 工号精确搜索

示例值:张三

func (*SearchPreHireReqBodyBuilder) OnboardingDateEnd added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) OnboardingDateEnd(onboardingDateEnd string) *SearchPreHireReqBodyBuilder

入职日期-搜索范围结束

示例值:2006-01-02

func (*SearchPreHireReqBodyBuilder) OnboardingDateStart added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) OnboardingDateStart(onboardingDateStart string) *SearchPreHireReqBodyBuilder

入职日期-搜索范围开始,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHireReqBodyBuilder) OnboardingLocationIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) OnboardingLocationIds(onboardingLocationIds []string) *SearchPreHireReqBodyBuilder

入职地点 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) OnboardingStatus added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) OnboardingStatus(onboardingStatus string) *SearchPreHireReqBodyBuilder

入职状态

示例值:待入职(preboarding)

func (*SearchPreHireReqBodyBuilder) PersonIds added in v3.3.4

func (builder *SearchPreHireReqBodyBuilder) PersonIds(personIds []string) *SearchPreHireReqBodyBuilder

个人信息 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) PreHireIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) PreHireIds(preHireIds []string) *SearchPreHireReqBodyBuilder

待入职人员 ID 列表

示例值:

func (*SearchPreHireReqBodyBuilder) Rehire added in v3.2.3

是否离职重聘

示例值:张三

func (*SearchPreHireReqBodyBuilder) UpdatedDateEnd added in v3.2.8

func (builder *SearchPreHireReqBodyBuilder) UpdatedDateEnd(updatedDateEnd string) *SearchPreHireReqBodyBuilder

待入职数据更新时间-搜索范围结束,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHireReqBodyBuilder) UpdatedDateStart added in v3.2.8

func (builder *SearchPreHireReqBodyBuilder) UpdatedDateStart(updatedDateStart string) *SearchPreHireReqBodyBuilder

待入职数据更新时间-搜索范围开始,需要与搜索范围结束一同使用

示例值:2006-01-02

func (*SearchPreHireReqBodyBuilder) WorkerIds added in v3.2.3

func (builder *SearchPreHireReqBodyBuilder) WorkerIds(workerIds []string) *SearchPreHireReqBodyBuilder

待入职人员工号列表

示例值:

type SearchPreHireReqBuilder added in v3.2.3

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

func NewSearchPreHireReqBuilder added in v3.2.3

func NewSearchPreHireReqBuilder() *SearchPreHireReqBuilder

func (*SearchPreHireReqBuilder) Body added in v3.2.3

根据部门 ID,上级部门查询部门列表

func (*SearchPreHireReqBuilder) Build added in v3.2.3

func (builder *SearchPreHireReqBuilder) Build() *SearchPreHireReq

func (*SearchPreHireReqBuilder) DepartmentIdType added in v3.2.3

func (builder *SearchPreHireReqBuilder) DepartmentIdType(departmentIdType string) *SearchPreHireReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*SearchPreHireReqBuilder) Limit added in v3.2.3

func (builder *SearchPreHireReqBuilder) Limit(limit int) *SearchPreHireReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchPreHireReqBuilder) PageSize added in v3.2.3

func (builder *SearchPreHireReqBuilder) PageSize(pageSize int) *SearchPreHireReqBuilder

分页大小,最大 100

示例值:100

func (*SearchPreHireReqBuilder) PageToken added in v3.2.3

func (builder *SearchPreHireReqBuilder) PageToken(pageToken string) *SearchPreHireReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchPreHireReqBuilder) UserIdType added in v3.2.3

func (builder *SearchPreHireReqBuilder) UserIdType(userIdType string) *SearchPreHireReqBuilder

用户 ID 类型

示例值:open_id

type SearchPreHireResp added in v3.2.3

type SearchPreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchPreHireRespData `json:"data"` // 业务数据
}

func (*SearchPreHireResp) Success added in v3.2.3

func (resp *SearchPreHireResp) Success() bool

type SearchPreHireRespData added in v3.2.3

type SearchPreHireRespData struct {
	Items []*PreHire `json:"items,omitempty"` // 查询的部门信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SearchProbationIterator

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

func (*SearchProbationIterator) Next

func (iterator *SearchProbationIterator) Next() (bool, *ProbationInfo, error)

func (*SearchProbationIterator) NextPageToken

func (iterator *SearchProbationIterator) NextPageToken() *string

type SearchProbationPathReqBodyBuilder

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

func NewSearchProbationPathReqBodyBuilder

func NewSearchProbationPathReqBodyBuilder() *SearchProbationPathReqBodyBuilder

func (*SearchProbationPathReqBodyBuilder) ActualProbationEndDateEnd

func (builder *SearchProbationPathReqBodyBuilder) ActualProbationEndDateEnd(actualProbationEndDateEnd string) *SearchProbationPathReqBodyBuilder

试用期实际结束日期 - 搜索范围结束

示例值:2022-09-20

func (*SearchProbationPathReqBodyBuilder) ActualProbationEndDateStart

func (builder *SearchProbationPathReqBodyBuilder) ActualProbationEndDateStart(actualProbationEndDateStart string) *SearchProbationPathReqBodyBuilder

试用期实际结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-08-20

func (*SearchProbationPathReqBodyBuilder) Build

func (*SearchProbationPathReqBodyBuilder) DepartmentIds

func (builder *SearchProbationPathReqBodyBuilder) DepartmentIds(departmentIds []string) *SearchProbationPathReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchProbationPathReqBodyBuilder) EmploymentIds

func (builder *SearchProbationPathReqBodyBuilder) EmploymentIds(employmentIds []string) *SearchProbationPathReqBodyBuilder

雇佣 ID 列表

示例值:

func (*SearchProbationPathReqBodyBuilder) FinalAssessmentGrade

func (builder *SearchProbationPathReqBodyBuilder) FinalAssessmentGrade(finalAssessmentGrade string) *SearchProbationPathReqBodyBuilder

试用期最终考核等级

示例值:grade_a

func (*SearchProbationPathReqBodyBuilder) FinalAssessmentResult

func (builder *SearchProbationPathReqBodyBuilder) FinalAssessmentResult(finalAssessmentResult string) *SearchProbationPathReqBodyBuilder

试用期最终考核结果

示例值:approved

func (*SearchProbationPathReqBodyBuilder) InitiatingTimeEnd

func (builder *SearchProbationPathReqBodyBuilder) InitiatingTimeEnd(initiatingTimeEnd string) *SearchProbationPathReqBodyBuilder

转正发起日期 - 搜索范围结束

示例值:2022-11-20

func (*SearchProbationPathReqBodyBuilder) InitiatingTimeStart

func (builder *SearchProbationPathReqBodyBuilder) InitiatingTimeStart(initiatingTimeStart string) *SearchProbationPathReqBodyBuilder

转正发起日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-10-20

func (*SearchProbationPathReqBodyBuilder) ProbationExpectedEndDateEnd

func (builder *SearchProbationPathReqBodyBuilder) ProbationExpectedEndDateEnd(probationExpectedEndDateEnd string) *SearchProbationPathReqBodyBuilder

试用期预计结束日期 - 搜索范围结束

示例值:2022-07-20

func (*SearchProbationPathReqBodyBuilder) ProbationExpectedEndDateStart

func (builder *SearchProbationPathReqBodyBuilder) ProbationExpectedEndDateStart(probationExpectedEndDateStart string) *SearchProbationPathReqBodyBuilder

试用期预计结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-06-20

func (*SearchProbationPathReqBodyBuilder) ProbationStartDateEnd

func (builder *SearchProbationPathReqBodyBuilder) ProbationStartDateEnd(probationStartDateEnd string) *SearchProbationPathReqBodyBuilder

试用期开始日期 - 搜索范围结束

示例值:2022-05-20

func (*SearchProbationPathReqBodyBuilder) ProbationStartDateStart

func (builder *SearchProbationPathReqBodyBuilder) ProbationStartDateStart(probationStartDateStart string) *SearchProbationPathReqBodyBuilder

试用期开始日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-05-18

func (*SearchProbationPathReqBodyBuilder) ProbationStatus

func (builder *SearchProbationPathReqBodyBuilder) ProbationStatus(probationStatus string) *SearchProbationPathReqBodyBuilder

试用期状态

示例值:approved

type SearchProbationReq

type SearchProbationReq struct {
	Body  *SearchProbationReqBody `body:""`
	Limit int                     // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchProbationReqBody

type SearchProbationReqBody struct {
	EmploymentIds []string `json:"employment_ids,omitempty"` // 雇佣 ID 列表

	DepartmentIds []string `json:"department_ids,omitempty"` // 部门 ID 列表

	ProbationStartDateStart *string `json:"probation_start_date_start,omitempty"` // 试用期开始日期 - 搜索范围开始,需要与搜索范围结束一同使用

	ProbationStartDateEnd *string `json:"probation_start_date_end,omitempty"` // 试用期开始日期 - 搜索范围结束

	ProbationExpectedEndDateStart *string `json:"probation_expected_end_date_start,omitempty"` // 试用期预计结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

	ProbationExpectedEndDateEnd *string `json:"probation_expected_end_date_end,omitempty"` // 试用期预计结束日期 - 搜索范围结束

	ActualProbationEndDateStart *string `json:"actual_probation_end_date_start,omitempty"` // 试用期实际结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

	ActualProbationEndDateEnd *string `json:"actual_probation_end_date_end,omitempty"` // 试用期实际结束日期 - 搜索范围结束

	InitiatingTimeStart *string `json:"initiating_time_start,omitempty"` // 转正发起日期 - 搜索范围开始,需要与搜索范围结束一同使用

	InitiatingTimeEnd *string `json:"initiating_time_end,omitempty"` // 转正发起日期 - 搜索范围结束

	ProbationStatus *string `json:"probation_status,omitempty"` // 试用期状态

	FinalAssessmentResult *string `json:"final_assessment_result,omitempty"` // 试用期最终考核结果

	FinalAssessmentGrade *string `json:"final_assessment_grade,omitempty"` // 试用期最终考核等级
}

type SearchProbationReqBodyBuilder

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

func NewSearchProbationReqBodyBuilder

func NewSearchProbationReqBodyBuilder() *SearchProbationReqBodyBuilder

func (*SearchProbationReqBodyBuilder) ActualProbationEndDateEnd

func (builder *SearchProbationReqBodyBuilder) ActualProbationEndDateEnd(actualProbationEndDateEnd string) *SearchProbationReqBodyBuilder

试用期实际结束日期 - 搜索范围结束

示例值:2022-09-20

func (*SearchProbationReqBodyBuilder) ActualProbationEndDateStart

func (builder *SearchProbationReqBodyBuilder) ActualProbationEndDateStart(actualProbationEndDateStart string) *SearchProbationReqBodyBuilder

试用期实际结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-08-20

func (*SearchProbationReqBodyBuilder) Build

func (*SearchProbationReqBodyBuilder) DepartmentIds

func (builder *SearchProbationReqBodyBuilder) DepartmentIds(departmentIds []string) *SearchProbationReqBodyBuilder

部门 ID 列表

示例值:

func (*SearchProbationReqBodyBuilder) EmploymentIds

func (builder *SearchProbationReqBodyBuilder) EmploymentIds(employmentIds []string) *SearchProbationReqBodyBuilder

雇佣 ID 列表

示例值:

func (*SearchProbationReqBodyBuilder) FinalAssessmentGrade

func (builder *SearchProbationReqBodyBuilder) FinalAssessmentGrade(finalAssessmentGrade string) *SearchProbationReqBodyBuilder

试用期最终考核等级

示例值:grade_a

func (*SearchProbationReqBodyBuilder) FinalAssessmentResult

func (builder *SearchProbationReqBodyBuilder) FinalAssessmentResult(finalAssessmentResult string) *SearchProbationReqBodyBuilder

试用期最终考核结果

示例值:approved

func (*SearchProbationReqBodyBuilder) InitiatingTimeEnd

func (builder *SearchProbationReqBodyBuilder) InitiatingTimeEnd(initiatingTimeEnd string) *SearchProbationReqBodyBuilder

转正发起日期 - 搜索范围结束

示例值:2022-11-20

func (*SearchProbationReqBodyBuilder) InitiatingTimeStart

func (builder *SearchProbationReqBodyBuilder) InitiatingTimeStart(initiatingTimeStart string) *SearchProbationReqBodyBuilder

转正发起日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-10-20

func (*SearchProbationReqBodyBuilder) ProbationExpectedEndDateEnd

func (builder *SearchProbationReqBodyBuilder) ProbationExpectedEndDateEnd(probationExpectedEndDateEnd string) *SearchProbationReqBodyBuilder

试用期预计结束日期 - 搜索范围结束

示例值:2022-07-20

func (*SearchProbationReqBodyBuilder) ProbationExpectedEndDateStart

func (builder *SearchProbationReqBodyBuilder) ProbationExpectedEndDateStart(probationExpectedEndDateStart string) *SearchProbationReqBodyBuilder

试用期预计结束日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-06-20

func (*SearchProbationReqBodyBuilder) ProbationStartDateEnd

func (builder *SearchProbationReqBodyBuilder) ProbationStartDateEnd(probationStartDateEnd string) *SearchProbationReqBodyBuilder

试用期开始日期 - 搜索范围结束

示例值:2022-05-20

func (*SearchProbationReqBodyBuilder) ProbationStartDateStart

func (builder *SearchProbationReqBodyBuilder) ProbationStartDateStart(probationStartDateStart string) *SearchProbationReqBodyBuilder

试用期开始日期 - 搜索范围开始,需要与搜索范围结束一同使用

示例值:2022-05-18

func (*SearchProbationReqBodyBuilder) ProbationStatus

func (builder *SearchProbationReqBodyBuilder) ProbationStatus(probationStatus string) *SearchProbationReqBodyBuilder

试用期状态

示例值:approved

type SearchProbationReqBuilder

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

func NewSearchProbationReqBuilder

func NewSearchProbationReqBuilder() *SearchProbationReqBuilder

func (*SearchProbationReqBuilder) Body

func (*SearchProbationReqBuilder) Build

func (*SearchProbationReqBuilder) DepartmentIdType

func (builder *SearchProbationReqBuilder) DepartmentIdType(departmentIdType string) *SearchProbationReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*SearchProbationReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchProbationReqBuilder) PageSize

func (builder *SearchProbationReqBuilder) PageSize(pageSize int) *SearchProbationReqBuilder

分页大小,最大 100

示例值:100

func (*SearchProbationReqBuilder) PageToken

func (builder *SearchProbationReqBuilder) PageToken(pageToken string) *SearchProbationReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

func (*SearchProbationReqBuilder) UserIdType

func (builder *SearchProbationReqBuilder) UserIdType(userIdType string) *SearchProbationReqBuilder

用户 ID 类型

示例值:open_id

type SearchProbationResp

type SearchProbationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SearchProbationRespData `json:"data"` // 业务数据
}

func (*SearchProbationResp) Success

func (resp *SearchProbationResp) Success() bool

type SearchProbationRespData

type SearchProbationRespData struct {
	Items []*ProbationInfo `json:"items,omitempty"` // 查询的试用期信息

	PageToken *string `json:"page_token,omitempty"` // 下一页页码

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type SeniorityAdjustInformation added in v3.4.0

type SeniorityAdjustInformation struct {
	SeniorityAdjustmentType *Enum `json:"seniority_adjustment_type,omitempty"` // 调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:seniority_adjust_information;  - custom_api_name:seniority_adjustment_type

	StartDate *string `json:"start_date,omitempty"` // 开始日期;- 格式: yyyy-mm-dd

	EndDate *string `json:"end_date,omitempty"` // 结束日期;- 格式: yyyy-mm-dd

	SeniorityAdjustment *float64 `json:"seniority_adjustment,omitempty"` // 调整值;- 精确度:两位小数;- 单位:年

	ReasonsForSeniorityAdjustment *string `json:"reasons_for_seniority_adjustment,omitempty"` // 调整原因

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段;- 具体支持的对象请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)
}

type SeniorityAdjustInformationBuilder added in v3.4.0

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

func NewSeniorityAdjustInformationBuilder added in v3.4.0

func NewSeniorityAdjustInformationBuilder() *SeniorityAdjustInformationBuilder

func (*SeniorityAdjustInformationBuilder) Build added in v3.4.0

func (*SeniorityAdjustInformationBuilder) CustomFields added in v3.4.0

自定义字段;- 具体支持的对象请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*SeniorityAdjustInformationBuilder) EndDate added in v3.4.0

结束日期;- 格式: yyyy-mm-dd

示例值:2024-10-01

func (*SeniorityAdjustInformationBuilder) ReasonsForSeniorityAdjustment added in v3.4.0

func (builder *SeniorityAdjustInformationBuilder) ReasonsForSeniorityAdjustment(reasonsForSeniorityAdjustment string) *SeniorityAdjustInformationBuilder

调整原因

示例值:工厂停产需要减去半年工龄

func (*SeniorityAdjustInformationBuilder) SeniorityAdjustment added in v3.4.0

func (builder *SeniorityAdjustInformationBuilder) SeniorityAdjustment(seniorityAdjustment float64) *SeniorityAdjustInformationBuilder

调整值;- 精确度:两位小数;- 单位:年

示例值:1.01

func (*SeniorityAdjustInformationBuilder) SeniorityAdjustmentType added in v3.4.0

func (builder *SeniorityAdjustInformationBuilder) SeniorityAdjustmentType(seniorityAdjustmentType *Enum) *SeniorityAdjustInformationBuilder

调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:seniority_adjust_information; - custom_api_name:seniority_adjustment_type

示例值:

func (*SeniorityAdjustInformationBuilder) StartDate added in v3.4.0

开始日期;- 格式: yyyy-mm-dd

示例值:2024-01-01

type SeniorityAdjustInformationEdit added in v3.4.1

type SeniorityAdjustInformationEdit struct {
	SeniorityAdjustmentType *string `json:"seniority_adjustment_type,omitempty"` // 调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:;  - object_api_name:seniority_adjust_information;  - custom_api_name:seniority_adjustment_type

	StartDate *string `json:"start_date,omitempty"` // 开始日期;- 格式: yyyy-mm-dd

	EndDate *string `json:"end_date,omitempty"` // 结束日期;- 格式: yyyy-mm-dd

	ReasonsForSeniorityAdjustment *string `json:"reasons_for_seniority_adjustment,omitempty"` // 调整原因

	SeniorityAdjustment *float64 `json:"seniority_adjustment,omitempty"` // 调整值;- 精确度:两位小数;- 单位:年

	CustomFields []*ProfileSettingCustomField `json:"custom_fields,omitempty"` // 自定义字段;- 具体支持的对象请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)
}

type SeniorityAdjustInformationEditBuilder added in v3.4.1

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

func NewSeniorityAdjustInformationEditBuilder added in v3.4.1

func NewSeniorityAdjustInformationEditBuilder() *SeniorityAdjustInformationEditBuilder

func (*SeniorityAdjustInformationEditBuilder) Build added in v3.4.1

func (*SeniorityAdjustInformationEditBuilder) CustomFields added in v3.4.1

自定义字段;- 具体支持的对象请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)

示例值:

func (*SeniorityAdjustInformationEditBuilder) EndDate added in v3.4.1

结束日期;- 格式: yyyy-mm-dd

示例值:2024-01-02

func (*SeniorityAdjustInformationEditBuilder) ReasonsForSeniorityAdjustment added in v3.4.1

func (builder *SeniorityAdjustInformationEditBuilder) ReasonsForSeniorityAdjustment(reasonsForSeniorityAdjustment string) *SeniorityAdjustInformationEditBuilder

调整原因

示例值:工厂停产需要减去半年工龄

func (*SeniorityAdjustInformationEditBuilder) SeniorityAdjustment added in v3.4.1

func (builder *SeniorityAdjustInformationEditBuilder) SeniorityAdjustment(seniorityAdjustment float64) *SeniorityAdjustInformationEditBuilder

调整值;- 精确度:两位小数;- 单位:年

示例值:1.01

func (*SeniorityAdjustInformationEditBuilder) SeniorityAdjustmentType added in v3.4.1

func (builder *SeniorityAdjustInformationEditBuilder) SeniorityAdjustmentType(seniorityAdjustmentType string) *SeniorityAdjustInformationEditBuilder

调整类型;- 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:; - object_api_name:seniority_adjust_information; - custom_api_name:seniority_adjustment_type

示例值:increase

func (*SeniorityAdjustInformationEditBuilder) StartDate added in v3.4.1

开始日期;- 格式: yyyy-mm-dd

示例值:2024-01-01

type SignatureCustomFieldV1 added in v3.2.6

type SignatureCustomFieldV1 struct {
	Key *string `json:"key,omitempty"` // 模板自定义字段的key

	Value *string `json:"value,omitempty"` // 自定义字段的value
}

type SignatureCustomFieldV1Builder added in v3.2.6

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

func NewSignatureCustomFieldV1Builder added in v3.2.6

func NewSignatureCustomFieldV1Builder() *SignatureCustomFieldV1Builder

func (*SignatureCustomFieldV1Builder) Build added in v3.2.6

func (*SignatureCustomFieldV1Builder) Key added in v3.2.6

模板自定义字段的key

示例值:ItImqNuDK

func (*SignatureCustomFieldV1Builder) Value added in v3.2.6

自定义字段的value

示例值:000

type SignatureCustomFieldV2 added in v3.2.6

type SignatureCustomFieldV2 struct {
	Key *string `json:"key,omitempty"` // v2自定义字段的key

	Value *SignatureCustomFieldValue `json:"value,omitempty"` // v2自定义字段的key对应的value(包含了多语)
}

type SignatureCustomFieldV2Builder added in v3.2.6

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

func NewSignatureCustomFieldV2Builder added in v3.2.6

func NewSignatureCustomFieldV2Builder() *SignatureCustomFieldV2Builder

func (*SignatureCustomFieldV2Builder) Build added in v3.2.6

func (*SignatureCustomFieldV2Builder) Key added in v3.2.6

v2自定义字段的key

示例值:test

func (*SignatureCustomFieldV2Builder) Value added in v3.2.6

v2自定义字段的key对应的value(包含了多语)

示例值:

type SignatureCustomFieldValue added in v3.2.6

type SignatureCustomFieldValue struct {
	TextValue *string `json:"text_value,omitempty"` // 自定义字段的值

	MultilingualValue *SignatureCustomFieldValueMultilingualValue `json:"multilingual_value,omitempty"` // 自定义字段的值对应的多语value
}

type SignatureCustomFieldValueBuilder added in v3.2.6

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

func NewSignatureCustomFieldValueBuilder added in v3.2.6

func NewSignatureCustomFieldValueBuilder() *SignatureCustomFieldValueBuilder

func (*SignatureCustomFieldValueBuilder) Build added in v3.2.6

func (*SignatureCustomFieldValueBuilder) MultilingualValue added in v3.2.6

自定义字段的值对应的多语value

示例值:

func (*SignatureCustomFieldValueBuilder) TextValue added in v3.2.6

自定义字段的值

示例值:test

type SignatureCustomFieldValueMultilingualValue added in v3.2.6

type SignatureCustomFieldValueMultilingualValue struct {
	Zh *string `json:"zh,omitempty"` // 电子签自定义字段(v2)的多语言value的中文

	En *string `json:"en,omitempty"` // 电子签自定义字段(v2)的多语言value的英文
}

type SignatureCustomFieldValueMultilingualValueBuilder added in v3.2.6

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

func NewSignatureCustomFieldValueMultilingualValueBuilder added in v3.2.6

func NewSignatureCustomFieldValueMultilingualValueBuilder() *SignatureCustomFieldValueMultilingualValueBuilder

func (*SignatureCustomFieldValueMultilingualValueBuilder) Build added in v3.2.6

func (*SignatureCustomFieldValueMultilingualValueBuilder) En added in v3.2.6

电子签自定义字段(v2)的多语言value的英文

示例值:英文

func (*SignatureCustomFieldValueMultilingualValueBuilder) Zh added in v3.2.6

电子签自定义字段(v2)的多语言value的中文

示例值:中文

type SignatureEnumInfo added in v3.2.6

type SignatureEnumInfo struct {
	Label *SignatureEnumInfoLabel `json:"label,omitempty"` //

	Apiname *string `json:"apiname,omitempty"` // 主数据apiname

	Active *bool `json:"active,omitempty"` // 是否启用
}

type SignatureEnumInfoBuilder added in v3.2.6

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

func NewSignatureEnumInfoBuilder added in v3.2.6

func NewSignatureEnumInfoBuilder() *SignatureEnumInfoBuilder

func (*SignatureEnumInfoBuilder) Active added in v3.2.6

func (builder *SignatureEnumInfoBuilder) Active(active bool) *SignatureEnumInfoBuilder

是否启用

示例值:true

func (*SignatureEnumInfoBuilder) Apiname added in v3.2.6

func (builder *SignatureEnumInfoBuilder) Apiname(apiname string) *SignatureEnumInfoBuilder

主数据apiname

示例值:status

func (*SignatureEnumInfoBuilder) Build added in v3.2.6

func (builder *SignatureEnumInfoBuilder) Build() *SignatureEnumInfo

func (*SignatureEnumInfoBuilder) Label added in v3.2.6

示例值:

type SignatureEnumInfoLabel added in v3.2.6

type SignatureEnumInfoLabel struct {
	Zh *string `json:"zh,omitempty"` // zh-CN

	En *string `json:"en,omitempty"` // en-US
}

type SignatureEnumInfoLabelBuilder added in v3.2.6

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

func NewSignatureEnumInfoLabelBuilder added in v3.2.6

func NewSignatureEnumInfoLabelBuilder() *SignatureEnumInfoLabelBuilder

func (*SignatureEnumInfoLabelBuilder) Build added in v3.2.6

func (*SignatureEnumInfoLabelBuilder) En added in v3.2.6

en-US

示例值:英文

func (*SignatureEnumInfoLabelBuilder) Zh added in v3.2.6

zh-CN

示例值:中文

type SignatureFile

type SignatureFile struct {
	SignatureFileId *string `json:"signature_file_id,omitempty"` // 电子签文件ID

	Names []*I18n `json:"names,omitempty"` // 名称

	CreateTime *string `json:"create_time,omitempty"` // 创建时间

	UpdateTime *string `json:"update_time,omitempty"` // 更新时间

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员 id

	PreHireId *string `json:"pre_hire_id,omitempty"` // 待入职 id

	SignatureFileState *Enum `json:"signature_file_state,omitempty"` // 电子签文件状态,枚举值可通过文档【飞书人事枚举常量】电子签文件状态(signature_file_state)枚举定义部分获得

	ContractCode *string `json:"contract_code,omitempty"` // 供应商侧的合同编号,作为幂等key

	EffectiveDate *string `json:"effective_date,omitempty"` // 电子签文件生效日期

	TemplateId *string `json:"template_id,omitempty"` // 电子签模板ID

	SignUrl *string `json:"sign_url,omitempty"` // 签署链接
}

type SignatureFileBuilder

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

func NewSignatureFileBuilder

func NewSignatureFileBuilder() *SignatureFileBuilder

func (*SignatureFileBuilder) Build

func (builder *SignatureFileBuilder) Build() *SignatureFile

func (*SignatureFileBuilder) ContractCode

func (builder *SignatureFileBuilder) ContractCode(contractCode string) *SignatureFileBuilder

供应商侧的合同编号,作为幂等key

示例值:48793beea04f4e2583d50732e481d507

func (*SignatureFileBuilder) CreateTime

func (builder *SignatureFileBuilder) CreateTime(createTime string) *SignatureFileBuilder

创建时间

示例值:2023-01-01 00:00:00

func (*SignatureFileBuilder) EffectiveDate added in v3.2.6

func (builder *SignatureFileBuilder) EffectiveDate(effectiveDate string) *SignatureFileBuilder

电子签文件生效日期

示例值:2024-12-01

func (*SignatureFileBuilder) EmploymentId

func (builder *SignatureFileBuilder) EmploymentId(employmentId string) *SignatureFileBuilder

雇员 id

示例值:7123132668099919891

func (*SignatureFileBuilder) Names

func (builder *SignatureFileBuilder) Names(names []*I18n) *SignatureFileBuilder

名称

示例值:

func (*SignatureFileBuilder) PreHireId added in v3.3.1

func (builder *SignatureFileBuilder) PreHireId(preHireId string) *SignatureFileBuilder

待入职 id

示例值:7123132668099919891

func (*SignatureFileBuilder) SignUrl added in v3.3.2

func (builder *SignatureFileBuilder) SignUrl(signUrl string) *SignatureFileBuilder

签署链接

示例值:123213

func (*SignatureFileBuilder) SignatureFileId

func (builder *SignatureFileBuilder) SignatureFileId(signatureFileId string) *SignatureFileBuilder

电子签文件ID

示例值:7147527056140813828

func (*SignatureFileBuilder) SignatureFileState

func (builder *SignatureFileBuilder) SignatureFileState(signatureFileState *Enum) *SignatureFileBuilder

电子签文件状态,枚举值可通过文档【飞书人事枚举常量】电子签文件状态(signature_file_state)枚举定义部分获得

示例值:

func (*SignatureFileBuilder) TemplateId added in v3.2.6

func (builder *SignatureFileBuilder) TemplateId(templateId string) *SignatureFileBuilder

电子签模板ID

示例值:7147527056140813828

func (*SignatureFileBuilder) UpdateTime

func (builder *SignatureFileBuilder) UpdateTime(updateTime string) *SignatureFileBuilder

更新时间

示例值:2023-01-01 00:00:00

type SignatureFileSystemField added in v3.2.6

type SignatureFileSystemField struct {
	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期

	Deadline *string `json:"deadline,omitempty"` // 过期时间

	OrderedNodeKeys []string `json:"ordered_node_keys,omitempty"` // 签署节点顺序,可以不传,不传会按照默认顺序发起。 如果传了的话 要求值一定和模板的签署方(TemplateInfo.TemplateBriefInfo.SignatoryLabelList表示的是模板的签署方)里的apiname保持一致

	DeadlineTimestamp *string `json:"deadline_timestamp,omitempty"` // DDL时间戳,精确到秒 10位

	AutoStampTimestamp *string `json:"auto_stamp_timestamp,omitempty"` // 自动盖章时间 精确到秒 10位 如1650339376

	ApprovalRole *string `json:"approval_role,omitempty"` // 审批角色--HR管理员审批
}

type SignatureFileSystemFieldBuilder added in v3.2.6

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

func NewSignatureFileSystemFieldBuilder added in v3.2.6

func NewSignatureFileSystemFieldBuilder() *SignatureFileSystemFieldBuilder

func (*SignatureFileSystemFieldBuilder) ApprovalRole added in v3.2.6

func (builder *SignatureFileSystemFieldBuilder) ApprovalRole(approvalRole string) *SignatureFileSystemFieldBuilder

审批角色--HR管理员审批

示例值:signature_admin_approval

func (*SignatureFileSystemFieldBuilder) AutoStampTimestamp added in v3.2.6

func (builder *SignatureFileSystemFieldBuilder) AutoStampTimestamp(autoStampTimestamp string) *SignatureFileSystemFieldBuilder

自动盖章时间 精确到秒 10位 如1650339376

示例值:1,023,123,213

func (*SignatureFileSystemFieldBuilder) Build added in v3.2.6

func (*SignatureFileSystemFieldBuilder) Deadline added in v3.2.6

过期时间

示例值:2018-01-02 11:11:11

func (*SignatureFileSystemFieldBuilder) DeadlineTimestamp added in v3.2.6

func (builder *SignatureFileSystemFieldBuilder) DeadlineTimestamp(deadlineTimestamp string) *SignatureFileSystemFieldBuilder

DDL时间戳,精确到秒 10位

示例值:1,001,231,231

func (*SignatureFileSystemFieldBuilder) EffectiveDate added in v3.2.6

func (builder *SignatureFileSystemFieldBuilder) EffectiveDate(effectiveDate string) *SignatureFileSystemFieldBuilder

生效日期

示例值:2018-01-02

func (*SignatureFileSystemFieldBuilder) OrderedNodeKeys added in v3.2.6

func (builder *SignatureFileSystemFieldBuilder) OrderedNodeKeys(orderedNodeKeys []string) *SignatureFileSystemFieldBuilder

签署节点顺序,可以不传,不传会按照默认顺序发起。 如果传了的话 要求值一定和模板的签署方(TemplateInfo.TemplateBriefInfo.SignatoryLabelList表示的是模板的签署方)里的apiname保持一致

示例值:

type SignatureFolder added in v3.2.6

type SignatureFolder struct {
	BizType *Enum `json:"biz_type,omitempty"` // 业务 会对应不同的topic

	OwnerInfo *SignatureHumanInfo `json:"owner_info,omitempty"` // 归属人信息

	SignatureTemplateFields []*SignatureTemplateIdWithSystemAndCustomField `json:"signature_template_fields,omitempty"` // 电子签模板字段列表

	UniqueKey *int `json:"unique_key,omitempty"` // 某个业务的唯一key,用于幂等。相同key不会重复发起文件,但会返回对应TaskID,并给发起成功回调

	BizProcessId *string `json:"biz_process_id,omitempty"` // 业务流程对应id 可不传
}

type SignatureFolderBuilder added in v3.2.6

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

func NewSignatureFolderBuilder added in v3.2.6

func NewSignatureFolderBuilder() *SignatureFolderBuilder

func (*SignatureFolderBuilder) BizProcessId added in v3.2.6

func (builder *SignatureFolderBuilder) BizProcessId(bizProcessId string) *SignatureFolderBuilder

业务流程对应id 可不传

示例值:123123232

func (*SignatureFolderBuilder) BizType added in v3.2.6

func (builder *SignatureFolderBuilder) BizType(bizType *Enum) *SignatureFolderBuilder

业务 会对应不同的topic

示例值:

func (*SignatureFolderBuilder) Build added in v3.2.6

func (builder *SignatureFolderBuilder) Build() *SignatureFolder

func (*SignatureFolderBuilder) OwnerInfo added in v3.2.6

func (builder *SignatureFolderBuilder) OwnerInfo(ownerInfo *SignatureHumanInfo) *SignatureFolderBuilder

归属人信息

示例值:

func (*SignatureFolderBuilder) SignatureTemplateFields added in v3.2.6

func (builder *SignatureFolderBuilder) SignatureTemplateFields(signatureTemplateFields []*SignatureTemplateIdWithSystemAndCustomField) *SignatureFolderBuilder

电子签模板字段列表

示例值:

func (*SignatureFolderBuilder) UniqueKey added in v3.2.6

func (builder *SignatureFolderBuilder) UniqueKey(uniqueKey int) *SignatureFolderBuilder

某个业务的唯一key,用于幂等。相同key不会重复发起文件,但会返回对应TaskID,并给发起成功回调

示例值:1000

type SignatureHumanInfo added in v3.2.6

type SignatureHumanInfo struct {
	EmployeeId *string `json:"employee_id,omitempty"` // 在职员工ID

	PreHireId *string `json:"pre_hire_id,omitempty"` // 员工待入职id

	UserIdType *string `json:"user_id_type,omitempty"` // 用户 ID 类型,适用于employee_id

	HumanType *Enum `json:"human_type,omitempty"` // 归属人类型
}

type SignatureHumanInfoBuilder added in v3.2.6

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

func NewSignatureHumanInfoBuilder added in v3.2.6

func NewSignatureHumanInfoBuilder() *SignatureHumanInfoBuilder

func (*SignatureHumanInfoBuilder) Build added in v3.2.6

func (*SignatureHumanInfoBuilder) EmployeeId added in v3.3.1

func (builder *SignatureHumanInfoBuilder) EmployeeId(employeeId string) *SignatureHumanInfoBuilder

在职员工ID

示例值:5ce6cd12

func (*SignatureHumanInfoBuilder) HumanType added in v3.2.6

func (builder *SignatureHumanInfoBuilder) HumanType(humanType *Enum) *SignatureHumanInfoBuilder

归属人类型

示例值:

func (*SignatureHumanInfoBuilder) PreHireId added in v3.3.1

func (builder *SignatureHumanInfoBuilder) PreHireId(preHireId string) *SignatureHumanInfoBuilder

员工待入职id

示例值:7278880340130022956

func (*SignatureHumanInfoBuilder) UserIdType added in v3.3.1

func (builder *SignatureHumanInfoBuilder) UserIdType(userIdType string) *SignatureHumanInfoBuilder

用户 ID 类型,适用于employee_id

示例值:people_corehr_id

type SignatureMetaInfo added in v3.2.6

type SignatureMetaInfo struct {
	ApiName *string `json:"api_name,omitempty"` // 元数据api_name

	WkId *string `json:"wk_id,omitempty"` // wukong id

	Label []*I18n `json:"label,omitempty"` // 多语描述
}

type SignatureMetaInfoBuilder added in v3.2.6

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

func NewSignatureMetaInfoBuilder added in v3.2.6

func NewSignatureMetaInfoBuilder() *SignatureMetaInfoBuilder

func (*SignatureMetaInfoBuilder) ApiName added in v3.2.6

func (builder *SignatureMetaInfoBuilder) ApiName(apiName string) *SignatureMetaInfoBuilder

元数据api_name

示例值:status

func (*SignatureMetaInfoBuilder) Build added in v3.2.6

func (builder *SignatureMetaInfoBuilder) Build() *SignatureMetaInfo

func (*SignatureMetaInfoBuilder) Label added in v3.2.6

func (builder *SignatureMetaInfoBuilder) Label(label []*I18n) *SignatureMetaInfoBuilder

多语描述

示例值:

func (*SignatureMetaInfoBuilder) WkId added in v3.2.6

wukong id

示例值:123124124124123

type SignatureNode added in v3.3.1

type SignatureNode struct {
	UserInfos []*SignatureUserInfo `json:"user_infos,omitempty"` // 电子签节点列表

	State *string `json:"state,omitempty"` // 电子签文件节点状态

	FinishTime *string `json:"finish_time,omitempty"` // 节点完成时间

	UpdatedTime *string `json:"updated_time,omitempty"` // 节点最近更新时间

	IsOngoing *bool `json:"is_ongoing,omitempty"` // 当前节点是否为正在处理的节点

	RoleLabel *SignatureEnumInfoLabel `json:"role_label,omitempty"` // 当前操作节点的角色名称

	SignRole *string `json:"sign_role,omitempty"` // 签署角色
}

type SignatureNodeBuilder added in v3.3.1

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

func NewSignatureNodeBuilder added in v3.3.1

func NewSignatureNodeBuilder() *SignatureNodeBuilder

func (*SignatureNodeBuilder) Build added in v3.3.1

func (builder *SignatureNodeBuilder) Build() *SignatureNode

func (*SignatureNodeBuilder) FinishTime added in v3.3.1

func (builder *SignatureNodeBuilder) FinishTime(finishTime string) *SignatureNodeBuilder

节点完成时间

示例值:2021-12-31 12:21:10

func (*SignatureNodeBuilder) IsOngoing added in v3.3.1

func (builder *SignatureNodeBuilder) IsOngoing(isOngoing bool) *SignatureNodeBuilder

当前节点是否为正在处理的节点

示例值:

func (*SignatureNodeBuilder) RoleLabel added in v3.3.1

func (builder *SignatureNodeBuilder) RoleLabel(roleLabel *SignatureEnumInfoLabel) *SignatureNodeBuilder

当前操作节点的角色名称

示例值:

func (*SignatureNodeBuilder) SignRole added in v3.3.1

func (builder *SignatureNodeBuilder) SignRole(signRole string) *SignatureNodeBuilder

签署角色

示例值:Initiator,发起人

func (*SignatureNodeBuilder) State added in v3.3.1

func (builder *SignatureNodeBuilder) State(state string) *SignatureNodeBuilder

电子签文件节点状态

示例值:Initiated

func (*SignatureNodeBuilder) UpdatedTime added in v3.3.1

func (builder *SignatureNodeBuilder) UpdatedTime(updatedTime string) *SignatureNodeBuilder

节点最近更新时间

示例值:2021-12-31 12:21:10

func (*SignatureNodeBuilder) UserInfos added in v3.3.1

func (builder *SignatureNodeBuilder) UserInfos(userInfos []*SignatureUserInfo) *SignatureNodeBuilder

电子签节点列表

示例值:

type SignatureSignatoryLabel added in v3.2.6

type SignatureSignatoryLabel struct {
	TemplateSignatoryType *Enum `json:"template_signatory_type,omitempty"` // 电子签模板签订人类型

	Label []*I18n `json:"label,omitempty"` // 中英文描述

	Apiname *string `json:"apiname,omitempty"` // 主数据apiname
}

type SignatureSignatoryLabelBuilder added in v3.2.6

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

func NewSignatureSignatoryLabelBuilder added in v3.2.6

func NewSignatureSignatoryLabelBuilder() *SignatureSignatoryLabelBuilder

func (*SignatureSignatoryLabelBuilder) Apiname added in v3.2.6

主数据apiname

示例值:status

func (*SignatureSignatoryLabelBuilder) Build added in v3.2.6

func (*SignatureSignatoryLabelBuilder) Label added in v3.2.6

中英文描述

示例值:

func (*SignatureSignatoryLabelBuilder) TemplateSignatoryType added in v3.2.6

func (builder *SignatureSignatoryLabelBuilder) TemplateSignatoryType(templateSignatoryType *Enum) *SignatureSignatoryLabelBuilder

电子签模板签订人类型

示例值:

type SignatureTemplate added in v3.2.6

type SignatureTemplate struct {
	Id *string `json:"id,omitempty"` // 电子签模板id

	BriefInfo *SignatureTemplateBriefInfo `json:"brief_info,omitempty"` // 简略信息

	ContentInfo *SignatureTemplateContentInfo `json:"content_info,omitempty"` // 模板内容信息
}

type SignatureTemplateAttachmentInfo added in v3.2.6

type SignatureTemplateAttachmentInfo struct {
	Id *string `json:"id,omitempty"` // 附件id

	Name *string `json:"name,omitempty"` // 附件名称

	Size *int `json:"size,omitempty"` // 附件大小
}

type SignatureTemplateAttachmentInfoBuilder added in v3.2.6

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

func NewSignatureTemplateAttachmentInfoBuilder added in v3.2.6

func NewSignatureTemplateAttachmentInfoBuilder() *SignatureTemplateAttachmentInfoBuilder

func (*SignatureTemplateAttachmentInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateAttachmentInfoBuilder) Id added in v3.2.6

附件id

示例值:131233213

func (*SignatureTemplateAttachmentInfoBuilder) Name added in v3.2.6

附件名称

示例值:附件test

func (*SignatureTemplateAttachmentInfoBuilder) Size added in v3.2.6

附件大小

示例值:1000

type SignatureTemplateBriefInfo added in v3.2.6

type SignatureTemplateBriefInfo struct {
	Id *string `json:"id,omitempty"` // id

	Label []*I18n `json:"label,omitempty"` // 名称 支持多语

	Category *Enum `json:"category,omitempty"` // 模版类别

	Usage *Enum `json:"usage,omitempty"` // 模版用法

	SignatoryLabels []*SignatureSignatoryLabel `json:"signatory_labels,omitempty"` // 模版签署人标签

	Active *bool `json:"active,omitempty"` // 是否激活

	CreateBy *string `json:"create_by,omitempty"` // 创建人

	ModifyBy *string `json:"modify_by,omitempty"` // 修改人

	Applicability *Enum `json:"applicability,omitempty"` // 适用范围

	CreationMethod *string `json:"creation_method,omitempty"` // 创建方法

	Version *string `json:"version,omitempty"` // 版本

	UpdateTime *string `json:"update_time,omitempty"` // 更新时间

	CreateTime *string `json:"create_time,omitempty"` // 创建时间

	TemplateSetting *SignatureTemplateSetting `json:"template_setting,omitempty"` // 模板设置,包含开启骑缝章的类型等

	TemplateRegionInfo *SignatureTemplateRegionInfo `json:"template_region_info,omitempty"` // 模板适用区域

	TemplateCode *string `json:"template_code,omitempty"` // 模板编码

	TemplateDesc []*I18n `json:"template_desc,omitempty"` // 模板描述 支持多语
}

type SignatureTemplateBriefInfoBuilder added in v3.2.6

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

func NewSignatureTemplateBriefInfoBuilder added in v3.2.6

func NewSignatureTemplateBriefInfoBuilder() *SignatureTemplateBriefInfoBuilder

func (*SignatureTemplateBriefInfoBuilder) Active added in v3.2.6

是否激活

示例值:true

func (*SignatureTemplateBriefInfoBuilder) Applicability added in v3.2.6

func (builder *SignatureTemplateBriefInfoBuilder) Applicability(applicability *Enum) *SignatureTemplateBriefInfoBuilder

适用范围

示例值:

func (*SignatureTemplateBriefInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateBriefInfoBuilder) Category added in v3.2.6

模版类别

示例值:

func (*SignatureTemplateBriefInfoBuilder) CreateBy added in v3.2.6

创建人

示例值:123123123123123123

func (*SignatureTemplateBriefInfoBuilder) CreateTime added in v3.2.6

创建时间

示例值:3123123211

func (*SignatureTemplateBriefInfoBuilder) CreationMethod added in v3.2.6

func (builder *SignatureTemplateBriefInfoBuilder) CreationMethod(creationMethod string) *SignatureTemplateBriefInfoBuilder

创建方法

示例值:online_edit

func (*SignatureTemplateBriefInfoBuilder) Id added in v3.2.6

id

示例值:1

func (*SignatureTemplateBriefInfoBuilder) Label added in v3.2.6

名称 支持多语

示例值:

func (*SignatureTemplateBriefInfoBuilder) ModifyBy added in v3.2.6

修改人

示例值:123123123123123123

func (*SignatureTemplateBriefInfoBuilder) SignatoryLabels added in v3.2.6

模版签署人标签

示例值:

func (*SignatureTemplateBriefInfoBuilder) TemplateCode added in v3.2.6

func (builder *SignatureTemplateBriefInfoBuilder) TemplateCode(templateCode string) *SignatureTemplateBriefInfoBuilder

模板编码

示例值:1234

func (*SignatureTemplateBriefInfoBuilder) TemplateDesc added in v3.2.6

func (builder *SignatureTemplateBriefInfoBuilder) TemplateDesc(templateDesc []*I18n) *SignatureTemplateBriefInfoBuilder

模板描述 支持多语

示例值:

func (*SignatureTemplateBriefInfoBuilder) TemplateRegionInfo added in v3.2.6

模板适用区域

示例值:

func (*SignatureTemplateBriefInfoBuilder) TemplateSetting added in v3.2.6

模板设置,包含开启骑缝章的类型等

示例值:

func (*SignatureTemplateBriefInfoBuilder) UpdateTime added in v3.2.6

更新时间

示例值:31231232123

func (*SignatureTemplateBriefInfoBuilder) Usage added in v3.2.6

模版用法

示例值:

func (*SignatureTemplateBriefInfoBuilder) Version added in v3.2.6

版本

示例值:v1

type SignatureTemplateBuilder added in v3.2.6

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

func NewSignatureTemplateBuilder added in v3.2.6

func NewSignatureTemplateBuilder() *SignatureTemplateBuilder

func (*SignatureTemplateBuilder) BriefInfo added in v3.2.6

简略信息

示例值:

func (*SignatureTemplateBuilder) Build added in v3.2.6

func (builder *SignatureTemplateBuilder) Build() *SignatureTemplate

func (*SignatureTemplateBuilder) ContentInfo added in v3.2.6

模板内容信息

示例值:

func (*SignatureTemplateBuilder) Id added in v3.2.6

电子签模板id

示例值:12313

type SignatureTemplateCombinationFieldInfo added in v3.2.6

type SignatureTemplateCombinationFieldInfo struct {
	TotalApiname *string `json:"total_apiname,omitempty"` // total_apiname

	Apiname *string `json:"apiname,omitempty"` // apiname

	Title []*I18n `json:"title,omitempty"` // 中英文描述

	Contents [][]*SignatureTemplateCombinationSubFieldInfo `json:"contents,omitempty"` // 适用区域名称

	Source *Enum `json:"source,omitempty"` // 电子签模板字段源类型
}

type SignatureTemplateCombinationFieldInfoBuilder added in v3.2.6

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

func NewSignatureTemplateCombinationFieldInfoBuilder added in v3.2.6

func NewSignatureTemplateCombinationFieldInfoBuilder() *SignatureTemplateCombinationFieldInfoBuilder

func (*SignatureTemplateCombinationFieldInfoBuilder) Apiname added in v3.2.6

apiname

示例值:status

func (*SignatureTemplateCombinationFieldInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateCombinationFieldInfoBuilder) Contents added in v3.2.6

适用区域名称

示例值:

func (*SignatureTemplateCombinationFieldInfoBuilder) Source added in v3.2.6

电子签模板字段源类型

示例值:

func (*SignatureTemplateCombinationFieldInfoBuilder) Title added in v3.2.6

中英文描述

示例值:

func (*SignatureTemplateCombinationFieldInfoBuilder) TotalApiname added in v3.2.6

total_apiname

示例值:status

type SignatureTemplateCombinationFieldInfoV2 added in v3.2.6

type SignatureTemplateCombinationFieldInfoV2 struct {
	TotalApiname *string `json:"total_apiname,omitempty"` // total_apiname

	Apiname *string `json:"apiname,omitempty"` // apiname

	Source *Enum `json:"source,omitempty"` // 电子签模板字段源类型
}

type SignatureTemplateCombinationFieldInfoV2Builder added in v3.2.6

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

func NewSignatureTemplateCombinationFieldInfoV2Builder added in v3.2.6

func NewSignatureTemplateCombinationFieldInfoV2Builder() *SignatureTemplateCombinationFieldInfoV2Builder

func (*SignatureTemplateCombinationFieldInfoV2Builder) Apiname added in v3.2.6

apiname

示例值:status

func (*SignatureTemplateCombinationFieldInfoV2Builder) Build added in v3.2.6

func (*SignatureTemplateCombinationFieldInfoV2Builder) Source added in v3.2.6

电子签模板字段源类型

示例值:

func (*SignatureTemplateCombinationFieldInfoV2Builder) TotalApiname added in v3.2.6

total_apiname

示例值:status

type SignatureTemplateCombinationSubFieldInfo added in v3.2.6

type SignatureTemplateCombinationSubFieldInfo struct {
	FieldType *Enum `json:"field_type,omitempty"` // 字段类型枚举

	Info *SignatureTemplateCommonFieldInfo `json:"info,omitempty"` // 公共字段信息

	Label []*I18n `json:"label,omitempty"` // 双语描述
}

type SignatureTemplateCombinationSubFieldInfoBuilder added in v3.2.6

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

func NewSignatureTemplateCombinationSubFieldInfoBuilder added in v3.2.6

func NewSignatureTemplateCombinationSubFieldInfoBuilder() *SignatureTemplateCombinationSubFieldInfoBuilder

func (*SignatureTemplateCombinationSubFieldInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateCombinationSubFieldInfoBuilder) FieldType added in v3.2.6

字段类型枚举

示例值:

func (*SignatureTemplateCombinationSubFieldInfoBuilder) Info added in v3.2.6

公共字段信息

示例值:

func (*SignatureTemplateCombinationSubFieldInfoBuilder) Label added in v3.2.6

双语描述

示例值:

type SignatureTemplateCommonFieldInfo added in v3.2.6

type SignatureTemplateCommonFieldInfo struct {
	Source *Enum `json:"source,omitempty"` // 模板字段源类型;枚举值填到enum_name中,如:"System" "MainData"

	Apiname *string `json:"apiname,omitempty"` // 主数据apiname
}

type SignatureTemplateCommonFieldInfoBuilder added in v3.2.6

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

func NewSignatureTemplateCommonFieldInfoBuilder added in v3.2.6

func NewSignatureTemplateCommonFieldInfoBuilder() *SignatureTemplateCommonFieldInfoBuilder

func (*SignatureTemplateCommonFieldInfoBuilder) Apiname added in v3.2.6

主数据apiname

示例值:status

func (*SignatureTemplateCommonFieldInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateCommonFieldInfoBuilder) Source added in v3.2.6

模板字段源类型;枚举值填到enum_name中,如:"System" "MainData"

示例值:

type SignatureTemplateContentInfo added in v3.2.6

type SignatureTemplateContentInfo struct {
	Contents []*SignatureTemplateContentItem `json:"contents,omitempty"` // 模版内容list

	CustomFields []*SignatureTemplateCustomField `json:"custom_fields,omitempty"` // 自定义字段列表

	FilterFields []*SignatureTemplateFilter `json:"filter_fields,omitempty"` // 筛选条件列表

	UsingFields []*SignatureTemplateCommonFieldInfo `json:"using_fields,omitempty"` // 模板公共字段信息列表

	SystemSettingFields []*SignatureTemplateField `json:"system_setting_fields,omitempty"` // 系统设置字段列表
}

type SignatureTemplateContentInfoBuilder added in v3.2.6

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

func NewSignatureTemplateContentInfoBuilder added in v3.2.6

func NewSignatureTemplateContentInfoBuilder() *SignatureTemplateContentInfoBuilder

func (*SignatureTemplateContentInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateContentInfoBuilder) Contents added in v3.2.6

模版内容list

示例值:

func (*SignatureTemplateContentInfoBuilder) CustomFields added in v3.2.6

自定义字段列表

示例值:

func (*SignatureTemplateContentInfoBuilder) FilterFields added in v3.2.6

筛选条件列表

示例值:

func (*SignatureTemplateContentInfoBuilder) SystemSettingFields added in v3.2.6

func (builder *SignatureTemplateContentInfoBuilder) SystemSettingFields(systemSettingFields []*SignatureTemplateField) *SignatureTemplateContentInfoBuilder

系统设置字段列表

示例值:

func (*SignatureTemplateContentInfoBuilder) UsingFields added in v3.2.6

模板公共字段信息列表

示例值:

type SignatureTemplateContentItem added in v3.2.6

type SignatureTemplateContentItem struct {
	ContentType *Enum `json:"content_type,omitempty"` // 电子签模版内容的类型

	FilterApiname *string `json:"filter_apiname,omitempty"` // 显示规则左值

	Content *string `json:"content,omitempty"` // 模版内容

	Label []*I18n `json:"label,omitempty"` // 中英文描述

	ContentDesc *string `json:"content_desc,omitempty"` // 内容描述
}

type SignatureTemplateContentItemBuilder added in v3.2.6

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

func NewSignatureTemplateContentItemBuilder added in v3.2.6

func NewSignatureTemplateContentItemBuilder() *SignatureTemplateContentItemBuilder

func (*SignatureTemplateContentItemBuilder) Build added in v3.2.6

func (*SignatureTemplateContentItemBuilder) Content added in v3.2.6

模版内容

示例值:111

func (*SignatureTemplateContentItemBuilder) ContentDesc added in v3.2.6

内容描述

示例值:111

func (*SignatureTemplateContentItemBuilder) ContentType added in v3.2.6

电子签模版内容的类型

示例值:

func (*SignatureTemplateContentItemBuilder) FilterApiname added in v3.2.6

显示规则左值

示例值:111

func (*SignatureTemplateContentItemBuilder) Label added in v3.2.6

中英文描述

示例值:

type SignatureTemplateCustomField added in v3.2.6

type SignatureTemplateCustomField struct {
	Label []*I18n `json:"label,omitempty"` // 中英文描述

	Apiname *string `json:"apiname,omitempty"` // 主数据apiname

	CustomFieldType *Enum `json:"custom_field_type,omitempty"` // 用户自定义字段类型

	Used *bool `json:"used,omitempty"` // 是否使用到

	IsRequired *bool `json:"is_required,omitempty"` // 是否需要

	CustomDesc *string `json:"custom_desc,omitempty"` // 自定义描述

	CommonInfo *SignatureTemplateCommonFieldInfo `json:"common_info,omitempty"` // 电子签模版公共字段信息
}

type SignatureTemplateCustomFieldBuilder added in v3.2.6

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

func NewSignatureTemplateCustomFieldBuilder added in v3.2.6

func NewSignatureTemplateCustomFieldBuilder() *SignatureTemplateCustomFieldBuilder

func (*SignatureTemplateCustomFieldBuilder) Apiname added in v3.2.6

主数据apiname

示例值:status

func (*SignatureTemplateCustomFieldBuilder) Build added in v3.2.6

func (*SignatureTemplateCustomFieldBuilder) CommonInfo added in v3.2.6

电子签模版公共字段信息

示例值:

func (*SignatureTemplateCustomFieldBuilder) CustomDesc added in v3.2.6

自定义描述

示例值:desc

func (*SignatureTemplateCustomFieldBuilder) CustomFieldType added in v3.2.6

func (builder *SignatureTemplateCustomFieldBuilder) CustomFieldType(customFieldType *Enum) *SignatureTemplateCustomFieldBuilder

用户自定义字段类型

示例值:

func (*SignatureTemplateCustomFieldBuilder) IsRequired added in v3.2.6

是否需要

示例值:

func (*SignatureTemplateCustomFieldBuilder) Label added in v3.2.6

中英文描述

示例值:

func (*SignatureTemplateCustomFieldBuilder) Used added in v3.2.6

是否使用到

示例值:

type SignatureTemplateField added in v3.2.6

type SignatureTemplateField struct {
	FieldType *Enum `json:"field_type,omitempty"` // 模板字段值类型枚举

	Label []*I18n `json:"label,omitempty"` // 双语描述

	CommonInfo *SignatureTemplateCommonFieldInfo `json:"common_info,omitempty"` // 通用字段信息

	CombinationInfo *SignatureTemplateCombinationFieldInfo `json:"combination_info,omitempty"` // 组合字段信息

	Children *string `json:"children,omitempty"` // 子模板配置信息列表对应的string,避免循环引用问题

	CombinationInfoV2 *SignatureTemplateCombinationFieldInfoV2 `json:"combination_info_v2,omitempty"` // 组合字段信息v2
}

type SignatureTemplateFieldBuilder added in v3.2.6

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

func NewSignatureTemplateFieldBuilder added in v3.2.6

func NewSignatureTemplateFieldBuilder() *SignatureTemplateFieldBuilder

func (*SignatureTemplateFieldBuilder) Build added in v3.2.6

func (*SignatureTemplateFieldBuilder) Children added in v3.2.6

子模板配置信息列表对应的string,避免循环引用问题

示例值:[]

func (*SignatureTemplateFieldBuilder) CombinationInfo added in v3.2.6

组合字段信息

示例值:

func (*SignatureTemplateFieldBuilder) CombinationInfoV2 added in v3.2.6

组合字段信息v2

示例值:

func (*SignatureTemplateFieldBuilder) CommonInfo added in v3.2.6

通用字段信息

示例值:

func (*SignatureTemplateFieldBuilder) FieldType added in v3.2.6

func (builder *SignatureTemplateFieldBuilder) FieldType(fieldType *Enum) *SignatureTemplateFieldBuilder

模板字段值类型枚举

示例值:

func (*SignatureTemplateFieldBuilder) Label added in v3.2.6

双语描述

示例值:

type SignatureTemplateFilter added in v3.2.6

type SignatureTemplateFilter struct {
	Label []*I18n `json:"label,omitempty"` // 双语描述

	Apiname *string `json:"apiname,omitempty"` // 主数据apiname

	Filters []*SignatureTemplateFilterItem `json:"filters,omitempty"` // 过滤条件列表

	Logic *Enum `json:"logic,omitempty"` // 多个生效条件的logic

	IsChecked *bool `json:"is_checked,omitempty"` // 是否被校验

	FilterDesc *string `json:"filter_desc,omitempty"` // 过滤条件描述

	CriterionList *string `json:"criterion_list,omitempty"` // 过滤条件列表,使用string类型描述list的原因是为了避免循环引用问题,因为该list的item类型就是这个数据类型
}

type SignatureTemplateFilterBuilder added in v3.2.6

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

func NewSignatureTemplateFilterBuilder added in v3.2.6

func NewSignatureTemplateFilterBuilder() *SignatureTemplateFilterBuilder

func (*SignatureTemplateFilterBuilder) Apiname added in v3.2.6

主数据apiname

示例值:status

func (*SignatureTemplateFilterBuilder) Build added in v3.2.6

func (*SignatureTemplateFilterBuilder) CriterionList added in v3.2.6

func (builder *SignatureTemplateFilterBuilder) CriterionList(criterionList string) *SignatureTemplateFilterBuilder

过滤条件列表,使用string类型描述list的原因是为了避免循环引用问题,因为该list的item类型就是这个数据类型

示例值:[]

func (*SignatureTemplateFilterBuilder) FilterDesc added in v3.2.6

func (builder *SignatureTemplateFilterBuilder) FilterDesc(filterDesc string) *SignatureTemplateFilterBuilder

过滤条件描述

示例值:desc

func (*SignatureTemplateFilterBuilder) Filters added in v3.2.6

过滤条件列表

示例值:

func (*SignatureTemplateFilterBuilder) IsChecked added in v3.2.6

是否被校验

示例值:

func (*SignatureTemplateFilterBuilder) Label added in v3.2.6

双语描述

示例值:

func (*SignatureTemplateFilterBuilder) Logic added in v3.2.6

多个生效条件的logic

示例值:

type SignatureTemplateFilterItem added in v3.2.6

type SignatureTemplateFilterItem struct {
	Left *string `json:"left,omitempty"` // 左值

	Rights []string `json:"rights,omitempty"` // 右值列表

	Op *Enum `json:"op,omitempty"` // 操作符
}

type SignatureTemplateFilterItemBuilder added in v3.2.6

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

func NewSignatureTemplateFilterItemBuilder added in v3.2.6

func NewSignatureTemplateFilterItemBuilder() *SignatureTemplateFilterItemBuilder

func (*SignatureTemplateFilterItemBuilder) Build added in v3.2.6

func (*SignatureTemplateFilterItemBuilder) Left added in v3.2.6

左值

示例值:aa

func (*SignatureTemplateFilterItemBuilder) Op added in v3.2.6

操作符

示例值:

func (*SignatureTemplateFilterItemBuilder) Rights added in v3.2.6

右值列表

示例值:

type SignatureTemplateIdWithSystemAndCustomField added in v3.2.6

type SignatureTemplateIdWithSystemAndCustomField struct {
	Id *string `json:"id,omitempty"` // 电子签模板id

	SystemFieldInfo *SignatureFileSystemField `json:"system_field_info,omitempty"` // 该电子签模板对应的系统字段

	CustomFields []*SignatureCustomFieldV1 `json:"custom_fields,omitempty"` // 该电子签模板对应的自定义字段列表 v1版本, 不支持多语类型

	CustomFieldsV2 []*SignatureCustomFieldV2 `json:"custom_fields_v2,omitempty"` // 该电子签模板对应的自定义字段列表 v2 版本, 支持多语类型
}

type SignatureTemplateIdWithSystemAndCustomFieldBuilder added in v3.2.6

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

func NewSignatureTemplateIdWithSystemAndCustomFieldBuilder added in v3.2.6

func NewSignatureTemplateIdWithSystemAndCustomFieldBuilder() *SignatureTemplateIdWithSystemAndCustomFieldBuilder

func (*SignatureTemplateIdWithSystemAndCustomFieldBuilder) Build added in v3.2.6

func (*SignatureTemplateIdWithSystemAndCustomFieldBuilder) CustomFields added in v3.2.9

该电子签模板对应的自定义字段列表 v1版本, 不支持多语类型

示例值:

func (*SignatureTemplateIdWithSystemAndCustomFieldBuilder) CustomFieldsV2 added in v3.2.9

该电子签模板对应的自定义字段列表 v2 版本, 支持多语类型

示例值:

func (*SignatureTemplateIdWithSystemAndCustomFieldBuilder) Id added in v3.2.6

电子签模板id

示例值:1231241

func (*SignatureTemplateIdWithSystemAndCustomFieldBuilder) SystemFieldInfo added in v3.2.6

该电子签模板对应的系统字段

示例值:

type SignatureTemplateInfo added in v3.2.6

type SignatureTemplateInfo struct {
	Id *string `json:"id,omitempty"` // 电子签模板id

	BriefInfo *SignatureTemplateBriefInfo `json:"brief_info,omitempty"` // 简略信息

	ContentInfo *SignatureTemplateContentInfo `json:"content_info,omitempty"` // 模板内容信息
}

type SignatureTemplateInfoBuilder added in v3.2.6

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

func NewSignatureTemplateInfoBuilder added in v3.2.6

func NewSignatureTemplateInfoBuilder() *SignatureTemplateInfoBuilder

func (*SignatureTemplateInfoBuilder) BriefInfo added in v3.2.6

简略信息

示例值:

func (*SignatureTemplateInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateInfoBuilder) ContentInfo added in v3.2.6

模板内容信息

示例值:

func (*SignatureTemplateInfoBuilder) Id added in v3.2.6

电子签模板id

示例值:12313

type SignatureTemplateInfoWithThumbnail added in v3.2.6

type SignatureTemplateInfoWithThumbnail struct {
	Id *string `json:"id,omitempty"` // id

	Label []*I18n `json:"label,omitempty"` // 名称 支持多语

	Category *Enum `json:"category,omitempty"` // 模版类别

	Usage *Enum `json:"usage,omitempty"` // 模版用法

	CreateTime *string `json:"create_time,omitempty"` // 创建日期

	ModifyTime *string `json:"modify_time,omitempty"` // 修改日期

	CreatedBy *SignatureUserInfo `json:"created_by,omitempty"` // 创建人

	UpdatedBy *SignatureUserInfo `json:"updated_by,omitempty"` // 修改人

	ThumbnailUrl *string `json:"thumbnail_url,omitempty"` // 缩略图url

	SignatoryLabels []*SignatureSignatoryLabel `json:"signatory_labels,omitempty"` // 模版签署人标签

	TemplateCode *string `json:"template_code,omitempty"` // 模板编码

	TemplateDesc *string `json:"template_desc,omitempty"` // 模板描述

	TemplateRegionInfo *SignatureTemplateRegionInfo `json:"template_region_info,omitempty"` // 模板适用区域
}

type SignatureTemplateInfoWithThumbnailBuilder added in v3.2.6

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

func NewSignatureTemplateInfoWithThumbnailBuilder added in v3.2.6

func NewSignatureTemplateInfoWithThumbnailBuilder() *SignatureTemplateInfoWithThumbnailBuilder

func (*SignatureTemplateInfoWithThumbnailBuilder) Build added in v3.2.6

func (*SignatureTemplateInfoWithThumbnailBuilder) Category added in v3.2.6

模版类别

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) CreateTime added in v3.2.6

创建日期

示例值:2021-12-21

func (*SignatureTemplateInfoWithThumbnailBuilder) CreatedBy added in v3.2.6

创建人

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) Id added in v3.2.6

id

示例值:1

func (*SignatureTemplateInfoWithThumbnailBuilder) Label added in v3.2.6

名称 支持多语

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) ModifyTime added in v3.2.6

修改日期

示例值:2021-12-21

func (*SignatureTemplateInfoWithThumbnailBuilder) SignatoryLabels added in v3.2.6

模版签署人标签

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) TemplateCode added in v3.2.6

模板编码

示例值:1234

func (*SignatureTemplateInfoWithThumbnailBuilder) TemplateDesc added in v3.2.6

模板描述

示例值:desc

func (*SignatureTemplateInfoWithThumbnailBuilder) TemplateRegionInfo added in v3.2.6

模板适用区域

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) ThumbnailUrl added in v3.2.6

缩略图url

示例值:1

func (*SignatureTemplateInfoWithThumbnailBuilder) UpdatedBy added in v3.2.6

修改人

示例值:

func (*SignatureTemplateInfoWithThumbnailBuilder) Usage added in v3.2.6

模版用法

示例值:

type SignatureTemplatePermissionInfo added in v3.2.6

type SignatureTemplatePermissionInfo struct {
	ReadPermission *bool `json:"read_permission,omitempty"` // 读权限

	WritePermission *bool `json:"write_permission,omitempty"` // 写权限

	SwitchPermission *bool `json:"switch_permission,omitempty"` // 转换权限

	CopyPermission *bool `json:"copy_permission,omitempty"` // 复制权限

	DeletePermission *bool `json:"delete_permission,omitempty"` // 删除权限
}

type SignatureTemplatePermissionInfoBuilder added in v3.2.6

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

func NewSignatureTemplatePermissionInfoBuilder added in v3.2.6

func NewSignatureTemplatePermissionInfoBuilder() *SignatureTemplatePermissionInfoBuilder

func (*SignatureTemplatePermissionInfoBuilder) Build added in v3.2.6

func (*SignatureTemplatePermissionInfoBuilder) CopyPermission added in v3.2.6

复制权限

示例值:

func (*SignatureTemplatePermissionInfoBuilder) DeletePermission added in v3.2.6

func (builder *SignatureTemplatePermissionInfoBuilder) DeletePermission(deletePermission bool) *SignatureTemplatePermissionInfoBuilder

删除权限

示例值:

func (*SignatureTemplatePermissionInfoBuilder) ReadPermission added in v3.2.6

读权限

示例值:

func (*SignatureTemplatePermissionInfoBuilder) SwitchPermission added in v3.2.6

func (builder *SignatureTemplatePermissionInfoBuilder) SwitchPermission(switchPermission bool) *SignatureTemplatePermissionInfoBuilder

转换权限

示例值:

func (*SignatureTemplatePermissionInfoBuilder) WritePermission added in v3.2.6

func (builder *SignatureTemplatePermissionInfoBuilder) WritePermission(writePermission bool) *SignatureTemplatePermissionInfoBuilder

写权限

示例值:

type SignatureTemplateRegionInfo added in v3.2.6

type SignatureTemplateRegionInfo struct {
	IsGlobalScope *string `json:"is_global_scope,omitempty"` // 是否全球适用

	MetaInfos []*SignatureMetaInfo `json:"meta_infos,omitempty"` // 适用区域名称
}

type SignatureTemplateRegionInfoBuilder added in v3.2.6

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

func NewSignatureTemplateRegionInfoBuilder added in v3.2.6

func NewSignatureTemplateRegionInfoBuilder() *SignatureTemplateRegionInfoBuilder

func (*SignatureTemplateRegionInfoBuilder) Build added in v3.2.6

func (*SignatureTemplateRegionInfoBuilder) IsGlobalScope added in v3.2.6

func (builder *SignatureTemplateRegionInfoBuilder) IsGlobalScope(isGlobalScope string) *SignatureTemplateRegionInfoBuilder

是否全球适用

示例值:global

func (*SignatureTemplateRegionInfoBuilder) MetaInfos added in v3.2.6

适用区域名称

示例值:

type SignatureTemplateSetting added in v3.2.6

type SignatureTemplateSetting struct {
	PageSealTypes []string `json:"page_seal_types,omitempty"` // 骑缝章类型
}

type SignatureTemplateSettingBuilder added in v3.2.6

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

func NewSignatureTemplateSettingBuilder added in v3.2.6

func NewSignatureTemplateSettingBuilder() *SignatureTemplateSettingBuilder

func (*SignatureTemplateSettingBuilder) Build added in v3.2.6

func (*SignatureTemplateSettingBuilder) PageSealTypes added in v3.2.6

func (builder *SignatureTemplateSettingBuilder) PageSealTypes(pageSealTypes []string) *SignatureTemplateSettingBuilder

骑缝章类型

示例值:

type SignatureUserInfo added in v3.2.6

type SignatureUserInfo struct {
	Id *string `json:"id,omitempty"` // employmentID
}

type SignatureUserInfoBuilder added in v3.2.6

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

func NewSignatureUserInfoBuilder added in v3.2.6

func NewSignatureUserInfoBuilder() *SignatureUserInfoBuilder

func (*SignatureUserInfoBuilder) Build added in v3.2.6

func (builder *SignatureUserInfoBuilder) Build() *SignatureUserInfo

func (*SignatureUserInfoBuilder) Id added in v3.2.6

employmentID

示例值:7300476612163913260

type StartProcessParam added in v3.4.0

type StartProcessParam struct {
	FlowDefinitionId *string `json:"flow_definition_id,omitempty"` // 流程定义ID

	InitiatorId *string `json:"initiator_id,omitempty"` // 发起人用户ID,按user_id_type类型传递。如果system_initiator为false,则必填;为true时非必填。

	SystemInitiator *bool `json:"system_initiator,omitempty"` // 是否为系统身份发起流程。 true - 使用系统身份发起,若使用系统身份;false - 按照所传的人员身份审批

	FlowData []*ProcessFormVariableV2 `json:"flow_data,omitempty"` // 业务数据
}

type StartProcessParamBuilder added in v3.4.0

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

func NewStartProcessParamBuilder added in v3.4.0

func NewStartProcessParamBuilder() *StartProcessParamBuilder

func (*StartProcessParamBuilder) Build added in v3.4.0

func (builder *StartProcessParamBuilder) Build() *StartProcessParam

func (*StartProcessParamBuilder) FlowData added in v3.4.0

业务数据

示例值:

func (*StartProcessParamBuilder) FlowDefinitionId added in v3.4.1

func (builder *StartProcessParamBuilder) FlowDefinitionId(flowDefinitionId string) *StartProcessParamBuilder

流程定义ID

示例值:people_7023711013443944467_7437160904904494892

func (*StartProcessParamBuilder) InitiatorId added in v3.4.0

func (builder *StartProcessParamBuilder) InitiatorId(initiatorId string) *StartProcessParamBuilder

发起人用户ID,按user_id_type类型传递。如果system_initiator为false,则必填;为true时非必填。

示例值:ou_91791271921729102012

func (*StartProcessParamBuilder) SystemInitiator added in v3.4.0

func (builder *StartProcessParamBuilder) SystemInitiator(systemInitiator bool) *StartProcessParamBuilder

是否为系统身份发起流程。 true - 使用系统身份发起,若使用系统身份;false - 按照所传的人员身份审批

示例值:true

type SubmitProbationPathReqBodyBuilder added in v3.2.9

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

func NewSubmitProbationPathReqBodyBuilder added in v3.2.9

func NewSubmitProbationPathReqBodyBuilder() *SubmitProbationPathReqBodyBuilder

func (*SubmitProbationPathReqBodyBuilder) ActualProbationEndDate added in v3.2.9

func (builder *SubmitProbationPathReqBodyBuilder) ActualProbationEndDate(actualProbationEndDate string) *SubmitProbationPathReqBodyBuilder

实际结束日期,如果为空则默认填入试用期预计结束日期,填入日期需满足:试用期开始时间 <= 实际结束日期 <= 试用期预计结束日期

示例值:2022-05-20

func (*SubmitProbationPathReqBodyBuilder) Build added in v3.2.9

func (*SubmitProbationPathReqBodyBuilder) ConversionMode added in v3.2.9

func (builder *SubmitProbationPathReqBodyBuilder) ConversionMode(conversionMode int) *SubmitProbationPathReqBodyBuilder

转正方式

示例值:1

func (*SubmitProbationPathReqBodyBuilder) CustomFields added in v3.2.9

自定义字段(试用期中如果有附件自定义字段,当前不支持使用「上传文件」接口写入)

示例值:

func (*SubmitProbationPathReqBodyBuilder) EmploymentId added in v3.2.9

func (builder *SubmitProbationPathReqBodyBuilder) EmploymentId(employmentId string) *SubmitProbationPathReqBodyBuilder

试用期人员的雇佣 ID

示例值:7140964208476371111

func (*SubmitProbationPathReqBodyBuilder) InitiatorId added in v3.2.9

发起人 ID,当发起方为 HR 时填写,为其他发起方时该字段会自动计算

示例值:7140964208476371111

func (*SubmitProbationPathReqBodyBuilder) Notes added in v3.2.9

备注,当为直接转正时必填

示例值:符合预期

func (*SubmitProbationPathReqBodyBuilder) SelfReview added in v3.2.9

员工自评

示例值:符合预期

func (*SubmitProbationPathReqBodyBuilder) SubmissionType added in v3.2.9

func (builder *SubmitProbationPathReqBodyBuilder) SubmissionType(submissionType string) *SubmitProbationPathReqBodyBuilder

发起方

示例值:system

type SubmitProbationReq added in v3.2.9

type SubmitProbationReq struct {
	Body *SubmitProbationReqBody `body:""`
	// contains filtered or unexported fields
}

type SubmitProbationReqBody added in v3.2.9

type SubmitProbationReqBody struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 试用期人员的雇佣 ID

	ConversionMode *int `json:"conversion_mode,omitempty"` // 转正方式

	ActualProbationEndDate *string `json:"actual_probation_end_date,omitempty"` // 实际结束日期,如果为空则默认填入试用期预计结束日期,填入日期需满足:试用期开始时间 <= 实际结束日期 <= 试用期预计结束日期

	SubmissionType *string `json:"submission_type,omitempty"` // 发起方

	InitiatorId *string `json:"initiator_id,omitempty"` // 发起人 ID,当发起方为 HR 时填写,为其他发起方时该字段会自动计算

	Notes *string `json:"notes,omitempty"` // 备注,当为直接转正时必填

	SelfReview *string `json:"self_review,omitempty"` // 员工自评

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段(试用期中如果有附件自定义字段,当前不支持使用「上传文件」接口写入)
}

type SubmitProbationReqBodyBuilder added in v3.2.9

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

func NewSubmitProbationReqBodyBuilder added in v3.2.9

func NewSubmitProbationReqBodyBuilder() *SubmitProbationReqBodyBuilder

func (*SubmitProbationReqBodyBuilder) ActualProbationEndDate added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) ActualProbationEndDate(actualProbationEndDate string) *SubmitProbationReqBodyBuilder

实际结束日期,如果为空则默认填入试用期预计结束日期,填入日期需满足:试用期开始时间 <= 实际结束日期 <= 试用期预计结束日期

示例值:2022-05-20

func (*SubmitProbationReqBodyBuilder) Build added in v3.2.9

func (*SubmitProbationReqBodyBuilder) ConversionMode added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) ConversionMode(conversionMode int) *SubmitProbationReqBodyBuilder

转正方式

示例值:1

func (*SubmitProbationReqBodyBuilder) CustomFields added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) CustomFields(customFields []*CustomFieldData) *SubmitProbationReqBodyBuilder

自定义字段(试用期中如果有附件自定义字段,当前不支持使用「上传文件」接口写入)

示例值:

func (*SubmitProbationReqBodyBuilder) EmploymentId added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) EmploymentId(employmentId string) *SubmitProbationReqBodyBuilder

试用期人员的雇佣 ID

示例值:7140964208476371111

func (*SubmitProbationReqBodyBuilder) InitiatorId added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) InitiatorId(initiatorId string) *SubmitProbationReqBodyBuilder

发起人 ID,当发起方为 HR 时填写,为其他发起方时该字段会自动计算

示例值:7140964208476371111

func (*SubmitProbationReqBodyBuilder) Notes added in v3.2.9

备注,当为直接转正时必填

示例值:符合预期

func (*SubmitProbationReqBodyBuilder) SelfReview added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) SelfReview(selfReview string) *SubmitProbationReqBodyBuilder

员工自评

示例值:符合预期

func (*SubmitProbationReqBodyBuilder) SubmissionType added in v3.2.9

func (builder *SubmitProbationReqBodyBuilder) SubmissionType(submissionType string) *SubmitProbationReqBodyBuilder

发起方

示例值:system

type SubmitProbationReqBuilder added in v3.2.9

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

func NewSubmitProbationReqBuilder added in v3.2.9

func NewSubmitProbationReqBuilder() *SubmitProbationReqBuilder

func (*SubmitProbationReqBuilder) Body added in v3.2.9

func (*SubmitProbationReqBuilder) Build added in v3.2.9

func (*SubmitProbationReqBuilder) ClientToken added in v3.2.9

func (builder *SubmitProbationReqBuilder) ClientToken(clientToken string) *SubmitProbationReqBuilder

根据 client_token 是否一致来判断是否为同一请求

示例值:6822122262122064111

func (*SubmitProbationReqBuilder) UserIdType added in v3.2.9

func (builder *SubmitProbationReqBuilder) UserIdType(userIdType string) *SubmitProbationReqBuilder

用户 ID 类型

示例值:open_id

type SubmitProbationResp added in v3.2.9

type SubmitProbationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SubmitProbationRespData `json:"data"` // 业务数据
}

func (*SubmitProbationResp) Success added in v3.2.9

func (resp *SubmitProbationResp) Success() bool

type SubmitProbationRespData added in v3.2.9

type SubmitProbationRespData struct {
	ProbationInfo *ProbationInfoForSubmit `json:"probation_info,omitempty"` // 试用期信息
}

type SubmitV2OffboardingPathReqBodyBuilder added in v3.4.0

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

func NewSubmitV2OffboardingPathReqBodyBuilder added in v3.4.0

func NewSubmitV2OffboardingPathReqBodyBuilder() *SubmitV2OffboardingPathReqBodyBuilder

func (*SubmitV2OffboardingPathReqBodyBuilder) AddBlockList added in v3.4.0

是否加入离职屏蔽名单

示例值:false

func (*SubmitV2OffboardingPathReqBodyBuilder) BlockReason added in v3.4.0

屏蔽原因

示例值:红线

func (*SubmitV2OffboardingPathReqBodyBuilder) BlockReasonExplanation added in v3.4.0

func (builder *SubmitV2OffboardingPathReqBodyBuilder) BlockReasonExplanation(blockReasonExplanation string) *SubmitV2OffboardingPathReqBodyBuilder

屏蔽原因说明

示例值:xx 年 xx 月 xx 日因 xx 原因红线

func (*SubmitV2OffboardingPathReqBodyBuilder) Build added in v3.4.0

func (*SubmitV2OffboardingPathReqBodyBuilder) CustomFields added in v3.4.0

自定义字段

示例值:

func (*SubmitV2OffboardingPathReqBodyBuilder) EmploymentId added in v3.4.0

雇员 id

示例值:6982509313466189342

func (*SubmitV2OffboardingPathReqBodyBuilder) InitiatorId added in v3.4.0

操作发起人 ID(employment_id),为空默认为系统发起。注意:只有操作发起人可以撤销流程

示例值:6982509313466189341

func (*SubmitV2OffboardingPathReqBodyBuilder) IsTransferWithWorkforce added in v3.4.1

func (builder *SubmitV2OffboardingPathReqBodyBuilder) IsTransferWithWorkforce(isTransferWithWorkforce bool) *SubmitV2OffboardingPathReqBodyBuilder

编制随人员一起调整

示例值:false

func (*SubmitV2OffboardingPathReqBodyBuilder) OffboardingDate added in v3.4.0

func (builder *SubmitV2OffboardingPathReqBodyBuilder) OffboardingDate(offboardingDate string) *SubmitV2OffboardingPathReqBodyBuilder

离职日期

示例值:2022-05-18

func (*SubmitV2OffboardingPathReqBodyBuilder) OffboardingMode added in v3.4.0

func (builder *SubmitV2OffboardingPathReqBodyBuilder) OffboardingMode(offboardingMode int) *SubmitV2OffboardingPathReqBodyBuilder

离职方式

示例值:1

func (*SubmitV2OffboardingPathReqBodyBuilder) OffboardingReasonExplanation added in v3.4.0

func (builder *SubmitV2OffboardingPathReqBodyBuilder) OffboardingReasonExplanation(offboardingReasonExplanation string) *SubmitV2OffboardingPathReqBodyBuilder

离职原因说明

示例值:离职原因说明

func (*SubmitV2OffboardingPathReqBodyBuilder) OffboardingReasonUniqueIdentifier added in v3.4.0

func (builder *SubmitV2OffboardingPathReqBodyBuilder) OffboardingReasonUniqueIdentifier(offboardingReasonUniqueIdentifier string) *SubmitV2OffboardingPathReqBodyBuilder

离职原因

示例值:reason_for_offboarding_option8

func (*SubmitV2OffboardingPathReqBodyBuilder) RetainAccount added in v3.4.0

离职是否保留飞书账号

示例值:false

type SubmitV2OffboardingReq added in v3.4.0

type SubmitV2OffboardingReq struct {
	Body *SubmitV2OffboardingReqBody `body:""`
	// contains filtered or unexported fields
}

type SubmitV2OffboardingReqBody added in v3.4.0

type SubmitV2OffboardingReqBody struct {
	OffboardingMode *int `json:"offboarding_mode,omitempty"` // 离职方式

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员 id

	OffboardingDate *string `json:"offboarding_date,omitempty"` // 离职日期

	OffboardingReasonUniqueIdentifier *string `json:"offboarding_reason_unique_identifier,omitempty"` // 离职原因

	OffboardingReasonExplanation *string `json:"offboarding_reason_explanation,omitempty"` // 离职原因说明

	InitiatorId *string `json:"initiator_id,omitempty"` // 操作发起人 ID(employment_id),为空默认为系统发起。注意:只有操作发起人可以撤销流程

	AddBlockList *bool `json:"add_block_list,omitempty"` // 是否加入离职屏蔽名单

	BlockReason *string `json:"block_reason,omitempty"` // 屏蔽原因

	BlockReasonExplanation *string `json:"block_reason_explanation,omitempty"` // 屏蔽原因说明

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段

	RetainAccount *bool `json:"retain_account,omitempty"` // 离职是否保留飞书账号

	IsTransferWithWorkforce *bool `json:"is_transfer_with_workforce,omitempty"` // 编制随人员一起调整
}

type SubmitV2OffboardingReqBodyBuilder added in v3.4.0

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

func NewSubmitV2OffboardingReqBodyBuilder added in v3.4.0

func NewSubmitV2OffboardingReqBodyBuilder() *SubmitV2OffboardingReqBodyBuilder

func (*SubmitV2OffboardingReqBodyBuilder) AddBlockList added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) AddBlockList(addBlockList bool) *SubmitV2OffboardingReqBodyBuilder

是否加入离职屏蔽名单

示例值:false

func (*SubmitV2OffboardingReqBodyBuilder) BlockReason added in v3.4.0

屏蔽原因

示例值:红线

func (*SubmitV2OffboardingReqBodyBuilder) BlockReasonExplanation added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) BlockReasonExplanation(blockReasonExplanation string) *SubmitV2OffboardingReqBodyBuilder

屏蔽原因说明

示例值:xx 年 xx 月 xx 日因 xx 原因红线

func (*SubmitV2OffboardingReqBodyBuilder) Build added in v3.4.0

func (*SubmitV2OffboardingReqBodyBuilder) CustomFields added in v3.4.0

自定义字段

示例值:

func (*SubmitV2OffboardingReqBodyBuilder) EmploymentId added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) EmploymentId(employmentId string) *SubmitV2OffboardingReqBodyBuilder

雇员 id

示例值:6982509313466189342

func (*SubmitV2OffboardingReqBodyBuilder) InitiatorId added in v3.4.0

操作发起人 ID(employment_id),为空默认为系统发起。注意:只有操作发起人可以撤销流程

示例值:6982509313466189341

func (*SubmitV2OffboardingReqBodyBuilder) IsTransferWithWorkforce added in v3.4.1

func (builder *SubmitV2OffboardingReqBodyBuilder) IsTransferWithWorkforce(isTransferWithWorkforce bool) *SubmitV2OffboardingReqBodyBuilder

编制随人员一起调整

示例值:false

func (*SubmitV2OffboardingReqBodyBuilder) OffboardingDate added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) OffboardingDate(offboardingDate string) *SubmitV2OffboardingReqBodyBuilder

离职日期

示例值:2022-05-18

func (*SubmitV2OffboardingReqBodyBuilder) OffboardingMode added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) OffboardingMode(offboardingMode int) *SubmitV2OffboardingReqBodyBuilder

离职方式

示例值:1

func (*SubmitV2OffboardingReqBodyBuilder) OffboardingReasonExplanation added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) OffboardingReasonExplanation(offboardingReasonExplanation string) *SubmitV2OffboardingReqBodyBuilder

离职原因说明

示例值:离职原因说明

func (*SubmitV2OffboardingReqBodyBuilder) OffboardingReasonUniqueIdentifier added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) OffboardingReasonUniqueIdentifier(offboardingReasonUniqueIdentifier string) *SubmitV2OffboardingReqBodyBuilder

离职原因

示例值:reason_for_offboarding_option8

func (*SubmitV2OffboardingReqBodyBuilder) RetainAccount added in v3.4.0

func (builder *SubmitV2OffboardingReqBodyBuilder) RetainAccount(retainAccount bool) *SubmitV2OffboardingReqBodyBuilder

离职是否保留飞书账号

示例值:false

type SubmitV2OffboardingReqBuilder added in v3.4.0

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

func NewSubmitV2OffboardingReqBuilder added in v3.4.0

func NewSubmitV2OffboardingReqBuilder() *SubmitV2OffboardingReqBuilder

func (*SubmitV2OffboardingReqBuilder) Body added in v3.4.0

func (*SubmitV2OffboardingReqBuilder) Build added in v3.4.0

func (*SubmitV2OffboardingReqBuilder) UserIdType added in v3.4.0

func (builder *SubmitV2OffboardingReqBuilder) UserIdType(userIdType string) *SubmitV2OffboardingReqBuilder

用户 ID 类型

示例值:people_corehr_id

type SubmitV2OffboardingResp added in v3.4.0

type SubmitV2OffboardingResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *SubmitV2OffboardingRespData `json:"data"` // 业务数据
}

func (*SubmitV2OffboardingResp) Success added in v3.4.0

func (resp *SubmitV2OffboardingResp) Success() bool

type SubmitV2OffboardingRespData added in v3.4.0

type SubmitV2OffboardingRespData struct {
	OffboardingId *string `json:"offboarding_id,omitempty"` // 离职记录 id

	EmploymentId *string `json:"employment_id,omitempty"` // 雇员 id

	OffboardingReasonUniqueIdentifier *string `json:"offboarding_reason_unique_identifier,omitempty"` // 离职原因

	OffboardingDate *string `json:"offboarding_date,omitempty"` // 离职日期

	OffboardingReasonExplanation *string `json:"offboarding_reason_explanation,omitempty"` // 离职原因说明

	AddBlockList *bool `json:"add_block_list,omitempty"` // 是否加入离职屏蔽名单

	BlockReason *string `json:"block_reason,omitempty"` // 屏蔽原因

	BlockReasonExplanation *string `json:"block_reason_explanation,omitempty"` // 屏蔽原因说明

	CreatedTime *string `json:"created_time,omitempty"` // 创建时间

	RetainAccount *bool `json:"retain_account,omitempty"` // 离职是否保留飞书账号

	IsTransferWithWorkforce *bool `json:"is_transfer_with_workforce,omitempty"` // 编制随人员一起调整
}

type TerminateSignatureFailIdAndReason added in v3.3.4

type TerminateSignatureFailIdAndReason struct {
	SignatureFileId *string `json:"signature_file_id,omitempty"` // 终止操作失败的文件ID

	FailReason *string `json:"fail_reason,omitempty"` // 终止失败的原因
}

type TerminateSignatureFailIdAndReasonBuilder added in v3.3.4

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

func NewTerminateSignatureFailIdAndReasonBuilder added in v3.3.4

func NewTerminateSignatureFailIdAndReasonBuilder() *TerminateSignatureFailIdAndReasonBuilder

func (*TerminateSignatureFailIdAndReasonBuilder) Build added in v3.3.4

func (*TerminateSignatureFailIdAndReasonBuilder) FailReason added in v3.3.4

终止失败的原因

示例值:文件状态不允许终止

func (*TerminateSignatureFailIdAndReasonBuilder) SignatureFileId added in v3.3.4

终止操作失败的文件ID

示例值:7345403447803379731

type TimeZone added in v3.3.5

type TimeZone struct {
	TimeZoneId *string `json:"time_zone_id,omitempty"` // 时区 ID

	Name []*I18n `json:"name,omitempty"` // 时区名称

	TimeZoneCode *string `json:"time_zone_code,omitempty"` // 编码

	UtcOffset *string `json:"utc_offset,omitempty"` // UTC 时区偏移量

	Status *int `json:"status,omitempty"` // 状态
}

type TimeZoneBuilder added in v3.3.5

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

func NewTimeZoneBuilder added in v3.3.5

func NewTimeZoneBuilder() *TimeZoneBuilder

func (*TimeZoneBuilder) Build added in v3.3.5

func (builder *TimeZoneBuilder) Build() *TimeZone

func (*TimeZoneBuilder) Name added in v3.3.5

func (builder *TimeZoneBuilder) Name(name []*I18n) *TimeZoneBuilder

时区名称

示例值:

func (*TimeZoneBuilder) Status added in v3.3.5

func (builder *TimeZoneBuilder) Status(status int) *TimeZoneBuilder

状态

示例值:1

func (*TimeZoneBuilder) TimeZoneCode added in v3.3.5

func (builder *TimeZoneBuilder) TimeZoneCode(timeZoneCode string) *TimeZoneBuilder

编码

示例值:Pacific/Niue

func (*TimeZoneBuilder) TimeZoneId added in v3.3.5

func (builder *TimeZoneBuilder) TimeZoneId(timeZoneId string) *TimeZoneBuilder

时区 ID

示例值:6862995813451171342

func (*TimeZoneBuilder) UtcOffset added in v3.3.5

func (builder *TimeZoneBuilder) UtcOffset(utcOffset string) *TimeZoneBuilder

UTC 时区偏移量

示例值:-660

type TranferEmploymentInfo

type TranferEmploymentInfo struct {
	RegularEmployeeStartDate *string `json:"regular_employee_start_date,omitempty"` // 转正式员工日期

	SeniorityDate *string `json:"seniority_date,omitempty"` // 司龄起算日期

	EmployeeNumber *string `json:"employee_number,omitempty"` // 员工编号

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type TranferEmploymentInfoBuilder

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

func NewTranferEmploymentInfoBuilder

func NewTranferEmploymentInfoBuilder() *TranferEmploymentInfoBuilder

func (*TranferEmploymentInfoBuilder) Build

func (*TranferEmploymentInfoBuilder) CustomFields

func (builder *TranferEmploymentInfoBuilder) CustomFields(customFields []*CustomFieldData) *TranferEmploymentInfoBuilder

自定义字段

示例值:

func (*TranferEmploymentInfoBuilder) EmployeeNumber

func (builder *TranferEmploymentInfoBuilder) EmployeeNumber(employeeNumber string) *TranferEmploymentInfoBuilder

员工编号

示例值:1111111

func (*TranferEmploymentInfoBuilder) RegularEmployeeStartDate

func (builder *TranferEmploymentInfoBuilder) RegularEmployeeStartDate(regularEmployeeStartDate string) *TranferEmploymentInfoBuilder

转正式员工日期

示例值:2023-01-01

func (*TranferEmploymentInfoBuilder) SeniorityDate

func (builder *TranferEmploymentInfoBuilder) SeniorityDate(seniorityDate string) *TranferEmploymentInfoBuilder

司龄起算日期

示例值:2023-01-01

type TransferInfo

type TransferInfo struct {
	Remark *string `json:"remark,omitempty"` // 备注

	OfferInfo *string `json:"offer_info,omitempty"` // offer信息

	TargetDottedManagerClean *bool `json:"target_dotted_manager_clean,omitempty"` // 是否撤销虚线上级

	ProbationExist *bool `json:"probation_exist,omitempty"` // 是否有试用期

	OriginalDepartment *string `json:"original_department,omitempty"` // 原部门

	TargetDepartment *string `json:"target_department,omitempty"` // 新部门

	TargetDraftDepartment *string `json:"target_draft_department,omitempty"` // 新部门,新建部门审批完成前会返回 td_xxx 的临时 ID

	OriginalDepartmentIdPath []*OrgdraftDepartmentId `json:"original_department_id_path,omitempty"` // 原部门全路径

	TargetDepartmentIdPath []*OrgdraftDepartmentId `json:"target_department_id_path,omitempty"` // 新部门全路径

	OriginalWorkLocation *string `json:"original_work_location,omitempty"` // 原工作地点

	TargetWorkLocation *string `json:"target_work_location,omitempty"` // 新工作地点

	OriginalDirectManager *string `json:"original_direct_manager,omitempty"` // 原直属上级

	TargetDirectManager *string `json:"target_direct_manager,omitempty"` // 新直属上级

	OriginalDottedManager *string `json:"original_dotted_manager,omitempty"` // 原虚线上级

	TargetDottedManager *string `json:"target_dotted_manager,omitempty"` // 新虚线上级

	OriginalJob *string `json:"original_job,omitempty"` // 原职务

	TargetJob *string `json:"target_job,omitempty"` // 新职务

	OriginalJobFamily *string `json:"original_job_family,omitempty"` // 原序列

	TargetJobFamily *string `json:"target_job_family,omitempty"` // 新序列

	OriginalJobLevel *string `json:"original_job_level,omitempty"` // 原级别

	TargetJobLevel *string `json:"target_job_level,omitempty"` // 新级别

	OriginalWorkforceType *string `json:"original_workforce_type,omitempty"` // 原人员类型

	TargetWorkforceType *string `json:"target_workforce_type,omitempty"` // 新人员类型

	OriginalEmployeeSubtype *string `json:"original_employee_subtype,omitempty"` // 原人员子类型

	TargetEmployeeSubtype *string `json:"target_employee_subtype,omitempty"` // 新人员子类型

	OriginalCompany *string `json:"original_company,omitempty"` // 原公司

	TargetCompany *string `json:"target_company,omitempty"` // 新公司

	OriginalContractNumber *string `json:"original_contract_number,omitempty"` // 原合同编号

	TargetContractNumber *string `json:"target_contract_number,omitempty"` // 新合同编号

	OriginalContractType *string `json:"original_contract_type,omitempty"` // 原合同类型

	TargetContractType *string `json:"target_contract_type,omitempty"` // 新合同类型

	OriginalDurationType *string `json:"original_duration_type,omitempty"` // 原期限类型

	TargetDurationType *string `json:"target_duration_type,omitempty"` // 新期限类型

	OriginalSigningType *string `json:"original_signing_type,omitempty"` // 原签订类型

	TargetSigningType *string `json:"target_signing_type,omitempty"` // 新签订类型

	OriginalContractStartDate *string `json:"original_contract_start_date,omitempty"` // 原合同开始日期

	TargetContractStartDate *string `json:"target_contract_start_date,omitempty"` // 新合同开始日期

	OriginalContractEndDate *string `json:"original_contract_end_date,omitempty"` // 原合同结束日期

	TargetContractEndDate *string `json:"target_contract_end_date,omitempty"` // 新合同结束日期

	OriginalWorkingHoursType *string `json:"original_working_hours_type,omitempty"` // 原工时制度

	TargetWorkingHoursType *string `json:"target_working_hours_type,omitempty"` // 新工时制度

	OriginalWorkingCalendar *string `json:"original_working_calendar,omitempty"` // 原工作日历

	TargetWorkingCalendar *string `json:"target_working_calendar,omitempty"` // 新工作日历

	OriginalProbationEndDate *string `json:"original_probation_end_date,omitempty"` // 原试用期预计结束日期

	TargetProbationEndDate *string `json:"target_probation_end_date,omitempty"` // 新试用期预计结束日期

	OriginalWeeklyWorkingHours *string `json:"original_weekly_working_hours,omitempty"` // 原周工作时长

	TargetWeeklyWorkingHours *string `json:"target_weekly_working_hours,omitempty"` // 新周工作时长

	OriginalWorkShift *string `json:"original_work_shift,omitempty"` // 原排班

	TargetWorkShift *string `json:"target_work_shift,omitempty"` // 新排班

	OriginalCostCenterRate []*JobDataCostCenter `json:"original_cost_center_rate,omitempty"` // 原成本中心分摊方式

	TargetCostCenterRate []*JobDataCostCenter `json:"target_cost_center_rate,omitempty"` // 新成本中心分摊方式

	OriginalEmploymentChange *TranferEmploymentInfo `json:"original_employment_change,omitempty"` // 原工作信息

	TargetEmploymentChange *TranferEmploymentInfo `json:"target_employment_change,omitempty"` // 新工作信息

	OriginalJobGrade *string `json:"original_job_grade,omitempty"` // 原职等

	TargetJobGrade *string `json:"target_job_grade,omitempty"` // 新职等

	OriginalCompensationType *string `json:"original_compensation_type,omitempty"` // 原薪资类型

	TargetCompensationType *string `json:"target_compensation_type,omitempty"` // 新薪资类型

	OriginalServiceCompany *string `json:"original_service_company,omitempty"` // 原任职公司

	TargetServiceCompany *string `json:"target_service_company,omitempty"` // 新任职公司

	OriginalPosition *string `json:"original_position,omitempty"` // 原岗位

	TargetPosition *string `json:"target_position,omitempty"` // 新岗位

	TargetDraftPosition *string `json:"target_draft_position,omitempty"` // 新岗位,新建岗位审批完成前会返回 td_xxx 的临时 ID

	OriginalSocialSecurityCity *string `json:"original_social_security_city,omitempty"` // 原社保城市

	TargetSocialSecurityCity *string `json:"target_social_security_city,omitempty"` // 新社保城市

	IsTransferWithWorkforce *bool `json:"is_transfer_with_workforce,omitempty"` // 编制随人员一起调整
}

type TransferInfoBuilder

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

func NewTransferInfoBuilder

func NewTransferInfoBuilder() *TransferInfoBuilder

func (*TransferInfoBuilder) Build

func (builder *TransferInfoBuilder) Build() *TransferInfo

func (*TransferInfoBuilder) IsTransferWithWorkforce added in v3.4.1

func (builder *TransferInfoBuilder) IsTransferWithWorkforce(isTransferWithWorkforce bool) *TransferInfoBuilder

编制随人员一起调整

示例值:false

func (*TransferInfoBuilder) OfferInfo

func (builder *TransferInfoBuilder) OfferInfo(offerInfo string) *TransferInfoBuilder

offer信息

示例值:优质人才,加急处理

func (*TransferInfoBuilder) OriginalCompany

func (builder *TransferInfoBuilder) OriginalCompany(originalCompany string) *TransferInfoBuilder

原公司

示例值:6974659700705068581

func (*TransferInfoBuilder) OriginalCompensationType added in v3.2.2

func (builder *TransferInfoBuilder) OriginalCompensationType(originalCompensationType string) *TransferInfoBuilder

原薪资类型

示例值:hourly

func (*TransferInfoBuilder) OriginalContractEndDate

func (builder *TransferInfoBuilder) OriginalContractEndDate(originalContractEndDate string) *TransferInfoBuilder

原合同结束日期

示例值:2024-07-01

func (*TransferInfoBuilder) OriginalContractNumber

func (builder *TransferInfoBuilder) OriginalContractNumber(originalContractNumber string) *TransferInfoBuilder

原合同编号

示例值:55332

func (*TransferInfoBuilder) OriginalContractStartDate

func (builder *TransferInfoBuilder) OriginalContractStartDate(originalContractStartDate string) *TransferInfoBuilder

原合同开始日期

示例值:2021-07-01

func (*TransferInfoBuilder) OriginalContractType

func (builder *TransferInfoBuilder) OriginalContractType(originalContractType string) *TransferInfoBuilder

原合同类型

示例值:labor_contract

func (*TransferInfoBuilder) OriginalCostCenterRate

func (builder *TransferInfoBuilder) OriginalCostCenterRate(originalCostCenterRate []*JobDataCostCenter) *TransferInfoBuilder

原成本中心分摊方式

示例值:

func (*TransferInfoBuilder) OriginalDepartment

func (builder *TransferInfoBuilder) OriginalDepartment(originalDepartment string) *TransferInfoBuilder

原部门

示例值:6966236933198579208

func (*TransferInfoBuilder) OriginalDepartmentIdPath added in v3.2.3

func (builder *TransferInfoBuilder) OriginalDepartmentIdPath(originalDepartmentIdPath []*OrgdraftDepartmentId) *TransferInfoBuilder

原部门全路径

示例值:

func (*TransferInfoBuilder) OriginalDirectManager

func (builder *TransferInfoBuilder) OriginalDirectManager(originalDirectManager string) *TransferInfoBuilder

原直属上级

示例值:6974641477444060708

func (*TransferInfoBuilder) OriginalDottedManager

func (builder *TransferInfoBuilder) OriginalDottedManager(originalDottedManager string) *TransferInfoBuilder

原虚线上级

示例值:6974648866876573198

func (*TransferInfoBuilder) OriginalDurationType

func (builder *TransferInfoBuilder) OriginalDurationType(originalDurationType string) *TransferInfoBuilder

原期限类型

示例值:fixed_term

func (*TransferInfoBuilder) OriginalEmployeeSubtype added in v3.3.4

func (builder *TransferInfoBuilder) OriginalEmployeeSubtype(originalEmployeeSubtype string) *TransferInfoBuilder

原人员子类型

示例值:6968386026792289828

func (*TransferInfoBuilder) OriginalEmploymentChange

func (builder *TransferInfoBuilder) OriginalEmploymentChange(originalEmploymentChange *TranferEmploymentInfo) *TransferInfoBuilder

原工作信息

示例值:

func (*TransferInfoBuilder) OriginalJob

func (builder *TransferInfoBuilder) OriginalJob(originalJob string) *TransferInfoBuilder

原职务

示例值:6969469398088287751

func (*TransferInfoBuilder) OriginalJobFamily

func (builder *TransferInfoBuilder) OriginalJobFamily(originalJobFamily string) *TransferInfoBuilder

原序列

示例值:6967287547462419975

func (*TransferInfoBuilder) OriginalJobGrade

func (builder *TransferInfoBuilder) OriginalJobGrade(originalJobGrade string) *TransferInfoBuilder

原职等

示例值:7289005963599693366

func (*TransferInfoBuilder) OriginalJobLevel

func (builder *TransferInfoBuilder) OriginalJobLevel(originalJobLevel string) *TransferInfoBuilder

原级别

示例值:6972085707674355214

func (*TransferInfoBuilder) OriginalPosition added in v3.2.8

func (builder *TransferInfoBuilder) OriginalPosition(originalPosition string) *TransferInfoBuilder

原岗位

示例值:7289005963599693367

func (*TransferInfoBuilder) OriginalProbationEndDate

func (builder *TransferInfoBuilder) OriginalProbationEndDate(originalProbationEndDate string) *TransferInfoBuilder

原试用期预计结束日期

示例值:2021-11-17

func (*TransferInfoBuilder) OriginalServiceCompany added in v3.2.2

func (builder *TransferInfoBuilder) OriginalServiceCompany(originalServiceCompany string) *TransferInfoBuilder

原任职公司

示例值:7289005963599693367

func (*TransferInfoBuilder) OriginalSigningType

func (builder *TransferInfoBuilder) OriginalSigningType(originalSigningType string) *TransferInfoBuilder

原签订类型

示例值:new

func (*TransferInfoBuilder) OriginalSocialSecurityCity added in v3.3.3

func (builder *TransferInfoBuilder) OriginalSocialSecurityCity(originalSocialSecurityCity string) *TransferInfoBuilder

原社保城市

示例值:7289005963599693367

func (*TransferInfoBuilder) OriginalWeeklyWorkingHours

func (builder *TransferInfoBuilder) OriginalWeeklyWorkingHours(originalWeeklyWorkingHours string) *TransferInfoBuilder

原周工作时长

示例值:162

func (*TransferInfoBuilder) OriginalWorkLocation

func (builder *TransferInfoBuilder) OriginalWorkLocation(originalWorkLocation string) *TransferInfoBuilder

原工作地点

示例值:6967271100992587295

func (*TransferInfoBuilder) OriginalWorkShift

func (builder *TransferInfoBuilder) OriginalWorkShift(originalWorkShift string) *TransferInfoBuilder

原排班

示例值:work_shift

func (*TransferInfoBuilder) OriginalWorkforceType

func (builder *TransferInfoBuilder) OriginalWorkforceType(originalWorkforceType string) *TransferInfoBuilder

原人员类型

示例值:6968386026792289828

func (*TransferInfoBuilder) OriginalWorkingCalendar

func (builder *TransferInfoBuilder) OriginalWorkingCalendar(originalWorkingCalendar string) *TransferInfoBuilder

原工作日历

示例值:6969087376740236087

func (*TransferInfoBuilder) OriginalWorkingHoursType

func (builder *TransferInfoBuilder) OriginalWorkingHoursType(originalWorkingHoursType string) *TransferInfoBuilder

原工时制度

示例值:6969087376740206087

func (*TransferInfoBuilder) ProbationExist

func (builder *TransferInfoBuilder) ProbationExist(probationExist bool) *TransferInfoBuilder

是否有试用期

示例值:false

func (*TransferInfoBuilder) Remark

func (builder *TransferInfoBuilder) Remark(remark string) *TransferInfoBuilder

备注

示例值:异动详情

func (*TransferInfoBuilder) TargetCompany

func (builder *TransferInfoBuilder) TargetCompany(targetCompany string) *TransferInfoBuilder

新公司

示例值:6974659700705068581

func (*TransferInfoBuilder) TargetCompensationType added in v3.2.2

func (builder *TransferInfoBuilder) TargetCompensationType(targetCompensationType string) *TransferInfoBuilder

新薪资类型

示例值:salary

func (*TransferInfoBuilder) TargetContractEndDate

func (builder *TransferInfoBuilder) TargetContractEndDate(targetContractEndDate string) *TransferInfoBuilder

新合同结束日期

示例值:2024-07-01

func (*TransferInfoBuilder) TargetContractNumber

func (builder *TransferInfoBuilder) TargetContractNumber(targetContractNumber string) *TransferInfoBuilder

新合同编号

示例值:55333

func (*TransferInfoBuilder) TargetContractStartDate

func (builder *TransferInfoBuilder) TargetContractStartDate(targetContractStartDate string) *TransferInfoBuilder

新合同开始日期

示例值:2021-07-01

func (*TransferInfoBuilder) TargetContractType

func (builder *TransferInfoBuilder) TargetContractType(targetContractType string) *TransferInfoBuilder

新合同类型

示例值:labor_contract

func (*TransferInfoBuilder) TargetCostCenterRate

func (builder *TransferInfoBuilder) TargetCostCenterRate(targetCostCenterRate []*JobDataCostCenter) *TransferInfoBuilder

新成本中心分摊方式

示例值:

func (*TransferInfoBuilder) TargetDepartment

func (builder *TransferInfoBuilder) TargetDepartment(targetDepartment string) *TransferInfoBuilder

新部门

示例值:6966236933198579208

func (*TransferInfoBuilder) TargetDepartmentIdPath added in v3.2.3

func (builder *TransferInfoBuilder) TargetDepartmentIdPath(targetDepartmentIdPath []*OrgdraftDepartmentId) *TransferInfoBuilder

新部门全路径

示例值:

func (*TransferInfoBuilder) TargetDirectManager

func (builder *TransferInfoBuilder) TargetDirectManager(targetDirectManager string) *TransferInfoBuilder

新直属上级

示例值:7013619729281713671

func (*TransferInfoBuilder) TargetDottedManager

func (builder *TransferInfoBuilder) TargetDottedManager(targetDottedManager string) *TransferInfoBuilder

新虚线上级

示例值:7013328578351842852

func (*TransferInfoBuilder) TargetDottedManagerClean

func (builder *TransferInfoBuilder) TargetDottedManagerClean(targetDottedManagerClean bool) *TransferInfoBuilder

是否撤销虚线上级

示例值:true

func (*TransferInfoBuilder) TargetDraftDepartment added in v3.2.3

func (builder *TransferInfoBuilder) TargetDraftDepartment(targetDraftDepartment string) *TransferInfoBuilder

新部门,新建部门审批完成前会返回 td_xxx 的临时 ID

示例值:6966236933198579208

func (*TransferInfoBuilder) TargetDraftPosition added in v3.3.4

func (builder *TransferInfoBuilder) TargetDraftPosition(targetDraftPosition string) *TransferInfoBuilder

新岗位,新建岗位审批完成前会返回 td_xxx 的临时 ID

示例值:7289005963599693367

func (*TransferInfoBuilder) TargetDurationType

func (builder *TransferInfoBuilder) TargetDurationType(targetDurationType string) *TransferInfoBuilder

新期限类型

示例值:fixed_term

func (*TransferInfoBuilder) TargetEmployeeSubtype added in v3.3.4

func (builder *TransferInfoBuilder) TargetEmployeeSubtype(targetEmployeeSubtype string) *TransferInfoBuilder

新人员子类型

示例值:7036268995372303885

func (*TransferInfoBuilder) TargetEmploymentChange

func (builder *TransferInfoBuilder) TargetEmploymentChange(targetEmploymentChange *TranferEmploymentInfo) *TransferInfoBuilder

新工作信息

示例值:

func (*TransferInfoBuilder) TargetJob

func (builder *TransferInfoBuilder) TargetJob(targetJob string) *TransferInfoBuilder

新职务

示例值:6969469557836760606

func (*TransferInfoBuilder) TargetJobFamily

func (builder *TransferInfoBuilder) TargetJobFamily(targetJobFamily string) *TransferInfoBuilder

新序列

示例值:6967287547462419975

func (*TransferInfoBuilder) TargetJobGrade

func (builder *TransferInfoBuilder) TargetJobGrade(targetJobGrade string) *TransferInfoBuilder

新职等

示例值:7289005963599693366

func (*TransferInfoBuilder) TargetJobLevel

func (builder *TransferInfoBuilder) TargetJobLevel(targetJobLevel string) *TransferInfoBuilder

新级别

示例值:6972085707674355214

func (*TransferInfoBuilder) TargetPosition added in v3.2.8

func (builder *TransferInfoBuilder) TargetPosition(targetPosition string) *TransferInfoBuilder

新岗位

示例值:7289005963599693367

func (*TransferInfoBuilder) TargetProbationEndDate

func (builder *TransferInfoBuilder) TargetProbationEndDate(targetProbationEndDate string) *TransferInfoBuilder

新试用期预计结束日期

示例值:2021-11-17

func (*TransferInfoBuilder) TargetServiceCompany added in v3.2.2

func (builder *TransferInfoBuilder) TargetServiceCompany(targetServiceCompany string) *TransferInfoBuilder

新任职公司

示例值:7289005963599693367

func (*TransferInfoBuilder) TargetSigningType

func (builder *TransferInfoBuilder) TargetSigningType(targetSigningType string) *TransferInfoBuilder

新签订类型

示例值:new

func (*TransferInfoBuilder) TargetSocialSecurityCity added in v3.3.3

func (builder *TransferInfoBuilder) TargetSocialSecurityCity(targetSocialSecurityCity string) *TransferInfoBuilder

新社保城市

示例值:7289005963599693367

func (*TransferInfoBuilder) TargetWeeklyWorkingHours

func (builder *TransferInfoBuilder) TargetWeeklyWorkingHours(targetWeeklyWorkingHours string) *TransferInfoBuilder

新周工作时长

示例值:160

func (*TransferInfoBuilder) TargetWorkLocation

func (builder *TransferInfoBuilder) TargetWorkLocation(targetWorkLocation string) *TransferInfoBuilder

新工作地点

示例值:6967271100992587295

func (*TransferInfoBuilder) TargetWorkShift

func (builder *TransferInfoBuilder) TargetWorkShift(targetWorkShift string) *TransferInfoBuilder

新排班

示例值:non_work_shift

func (*TransferInfoBuilder) TargetWorkforceType

func (builder *TransferInfoBuilder) TargetWorkforceType(targetWorkforceType string) *TransferInfoBuilder

新人员类型

示例值:7036268995372303885

func (*TransferInfoBuilder) TargetWorkingCalendar

func (builder *TransferInfoBuilder) TargetWorkingCalendar(targetWorkingCalendar string) *TransferInfoBuilder

新工作日历

示例值:6969087376740236087

func (*TransferInfoBuilder) TargetWorkingHoursType

func (builder *TransferInfoBuilder) TargetWorkingHoursType(targetWorkingHoursType string) *TransferInfoBuilder

新工时制度

示例值:6969087376740206087

type TransitTaskPreHirePathReqBodyBuilder added in v3.2.9

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

func NewTransitTaskPreHirePathReqBodyBuilder added in v3.2.9

func NewTransitTaskPreHirePathReqBodyBuilder() *TransitTaskPreHirePathReqBodyBuilder

func (*TransitTaskPreHirePathReqBodyBuilder) Build added in v3.2.9

func (*TransitTaskPreHirePathReqBodyBuilder) TaskId added in v3.2.9

系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID

示例值:1

type TransitTaskPreHireReq added in v3.2.9

type TransitTaskPreHireReq struct {
	Body *TransitTaskPreHireReqBody `body:""`
	// contains filtered or unexported fields
}

type TransitTaskPreHireReqBody added in v3.2.9

type TransitTaskPreHireReqBody struct {
	TaskId *string `json:"task_id,omitempty"` // 系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID
}

type TransitTaskPreHireReqBodyBuilder added in v3.2.9

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

func NewTransitTaskPreHireReqBodyBuilder added in v3.2.9

func NewTransitTaskPreHireReqBodyBuilder() *TransitTaskPreHireReqBodyBuilder

func (*TransitTaskPreHireReqBodyBuilder) Build added in v3.2.9

func (*TransitTaskPreHireReqBodyBuilder) TaskId added in v3.2.9

系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID

示例值:1

type TransitTaskPreHireReqBuilder added in v3.2.9

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

func NewTransitTaskPreHireReqBuilder added in v3.2.9

func NewTransitTaskPreHireReqBuilder() *TransitTaskPreHireReqBuilder

func (*TransitTaskPreHireReqBuilder) Body added in v3.2.9

任务流转

func (*TransitTaskPreHireReqBuilder) Build added in v3.2.9

func (*TransitTaskPreHireReqBuilder) PreHireId added in v3.2.9

func (builder *TransitTaskPreHireReqBuilder) PreHireId(preHireId string) *TransitTaskPreHireReqBuilder

待入职ID

示例值:7345005664477775407

type TransitTaskPreHireResp added in v3.2.9

type TransitTaskPreHireResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *TransitTaskPreHireRespData `json:"data"` // 业务数据
}

func (*TransitTaskPreHireResp) Success added in v3.2.9

func (resp *TransitTaskPreHireResp) Success() bool

type TransitTaskPreHireRespData added in v3.2.9

type TransitTaskPreHireRespData struct {
	Success *bool `json:"success,omitempty"` // 是否成功流转任务
}

type TreeDepartmentPathReqBodyBuilder added in v3.3.2

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

func NewTreeDepartmentPathReqBodyBuilder added in v3.3.2

func NewTreeDepartmentPathReqBodyBuilder() *TreeDepartmentPathReqBodyBuilder

func (*TreeDepartmentPathReqBodyBuilder) Build added in v3.3.2

func (*TreeDepartmentPathReqBodyBuilder) DepartmentId added in v3.3.2

func (builder *TreeDepartmentPathReqBodyBuilder) DepartmentId(departmentId string) *TreeDepartmentPathReqBodyBuilder

部门 ID,默认根部门

示例值:6893014062142064111

func (*TreeDepartmentPathReqBodyBuilder) EffectiveDate added in v3.3.2

func (builder *TreeDepartmentPathReqBodyBuilder) EffectiveDate(effectiveDate string) *TreeDepartmentPathReqBodyBuilder

生效日期,格式yyyy-mm-dd,默认当前日期

示例值:2024-01-01

func (*TreeDepartmentPathReqBodyBuilder) NeedInactive added in v3.3.2

func (builder *TreeDepartmentPathReqBodyBuilder) NeedInactive(needInactive bool) *TreeDepartmentPathReqBodyBuilder

是否包含失效部门,默认false

示例值:false

type TreeDepartmentReq added in v3.3.2

type TreeDepartmentReq struct {
	Body *TreeDepartmentReqBody `body:""`
	// contains filtered or unexported fields
}

type TreeDepartmentReqBody added in v3.3.2

type TreeDepartmentReqBody struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,默认根部门

	NeedInactive *bool `json:"need_inactive,omitempty"` // 是否包含失效部门,默认false

	EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期,格式yyyy-mm-dd,默认当前日期
}

type TreeDepartmentReqBodyBuilder added in v3.3.2

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

func NewTreeDepartmentReqBodyBuilder added in v3.3.2

func NewTreeDepartmentReqBodyBuilder() *TreeDepartmentReqBodyBuilder

func (*TreeDepartmentReqBodyBuilder) Build added in v3.3.2

func (*TreeDepartmentReqBodyBuilder) DepartmentId added in v3.3.2

func (builder *TreeDepartmentReqBodyBuilder) DepartmentId(departmentId string) *TreeDepartmentReqBodyBuilder

部门 ID,默认根部门

示例值:6893014062142064111

func (*TreeDepartmentReqBodyBuilder) EffectiveDate added in v3.3.2

func (builder *TreeDepartmentReqBodyBuilder) EffectiveDate(effectiveDate string) *TreeDepartmentReqBodyBuilder

生效日期,格式yyyy-mm-dd,默认当前日期

示例值:2024-01-01

func (*TreeDepartmentReqBodyBuilder) NeedInactive added in v3.3.2

func (builder *TreeDepartmentReqBodyBuilder) NeedInactive(needInactive bool) *TreeDepartmentReqBodyBuilder

是否包含失效部门,默认false

示例值:false

type TreeDepartmentReqBuilder added in v3.3.2

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

func NewTreeDepartmentReqBuilder added in v3.3.2

func NewTreeDepartmentReqBuilder() *TreeDepartmentReqBuilder

func (*TreeDepartmentReqBuilder) Body added in v3.3.2

func (*TreeDepartmentReqBuilder) Build added in v3.3.2

func (builder *TreeDepartmentReqBuilder) Build() *TreeDepartmentReq

func (*TreeDepartmentReqBuilder) DepartmentIdType added in v3.3.2

func (builder *TreeDepartmentReqBuilder) DepartmentIdType(departmentIdType string) *TreeDepartmentReqBuilder

此次调用中使用的部门 ID 类型

示例值:people_corehr_department_id

func (*TreeDepartmentReqBuilder) PageSize added in v3.3.2

func (builder *TreeDepartmentReqBuilder) PageSize(pageSize int) *TreeDepartmentReqBuilder

分页大小,最大 100

示例值:100

func (*TreeDepartmentReqBuilder) PageToken added in v3.3.2

func (builder *TreeDepartmentReqBuilder) PageToken(pageToken string) *TreeDepartmentReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:6891251722631890445

type TreeDepartmentResp added in v3.3.2

type TreeDepartmentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *TreeDepartmentRespData `json:"data"` // 业务数据
}

func (*TreeDepartmentResp) Success added in v3.3.2

func (resp *TreeDepartmentResp) Success() bool

type TreeDepartmentRespData added in v3.3.2

type TreeDepartmentRespData struct {
	Items []*DepartmentTree `json:"items,omitempty"` // 部门树节点

	PageToken *string `json:"page_token,omitempty"` // 下一页token

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type UpdateProcessApproverReq added in v3.3.0

type UpdateProcessApproverReq struct {
	ProcessApprover *ProcessApprover `body:""`
	// contains filtered or unexported fields
}

type UpdateProcessApproverReqBuilder added in v3.3.0

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

func NewUpdateProcessApproverReqBuilder added in v3.3.0

func NewUpdateProcessApproverReqBuilder() *UpdateProcessApproverReqBuilder

func (*UpdateProcessApproverReqBuilder) ApproverId added in v3.3.0

审批任务id

示例值:7328345235136726572

func (*UpdateProcessApproverReqBuilder) Build added in v3.3.0

func (*UpdateProcessApproverReqBuilder) DepartmentIdType added in v3.3.0

func (builder *UpdateProcessApproverReqBuilder) DepartmentIdType(departmentIdType string) *UpdateProcessApproverReqBuilder

此次调用中使用的部门 ID 类型

示例值:open_department_id

func (*UpdateProcessApproverReqBuilder) ProcessApprover added in v3.3.0

func (builder *UpdateProcessApproverReqBuilder) ProcessApprover(processApprover *ProcessApprover) *UpdateProcessApproverReqBuilder

func (*UpdateProcessApproverReqBuilder) ProcessId added in v3.3.0

流程实例id

示例值:7328345170959681068

func (*UpdateProcessApproverReqBuilder) UserIdType added in v3.3.0

用户 ID 类型

示例值:open_id

type UpdateProcessApproverResp added in v3.3.0

type UpdateProcessApproverResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UpdateProcessApproverRespData `json:"data"` // 业务数据
}

func (*UpdateProcessApproverResp) Success added in v3.3.0

func (resp *UpdateProcessApproverResp) Success() bool

type UpdateProcessApproverRespData added in v3.3.0

type UpdateProcessApproverRespData struct {
	Code *int `json:"code,omitempty"` // 错误码,非 0 表示失败

	Msg *string `json:"msg,omitempty"` // 错误描述
}

type UserContact

type UserContact struct {
	UserIds []string `json:"user_ids,omitempty"` // 手机号对应的在离职员工id列表

	Mobile *string `json:"mobile,omitempty"` // 手机号
}

type UserContactBuilder

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

func NewUserContactBuilder

func NewUserContactBuilder() *UserContactBuilder

func (*UserContactBuilder) Build

func (builder *UserContactBuilder) Build() *UserContact

func (*UserContactBuilder) Mobile

func (builder *UserContactBuilder) Mobile(mobile string) *UserContactBuilder

手机号

示例值:13011111111

func (*UserContactBuilder) UserIds

func (builder *UserContactBuilder) UserIds(userIds []string) *UserContactBuilder

手机号对应的在离职员工id列表

示例值:

type UserId added in v3.2.6

type UserId struct {
	UserId *string `json:"user_id,omitempty"` //

	OpenId *string `json:"open_id,omitempty"` //

	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder added in v3.2.6

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

func NewUserIdBuilder added in v3.2.6

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build added in v3.2.6

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId added in v3.2.6

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId added in v3.2.6

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId added in v3.2.6

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type UserInfo

type UserInfo struct {
	UserId *string `json:"user_id,omitempty"` // 员工id

	Name *string `json:"name,omitempty"` // 用户默认名

	ZhName *string `json:"zh_name,omitempty"` // 中文名

	EnName *string `json:"en_name,omitempty"` // 英文名

	Mobile *string `json:"mobile,omitempty"` // 手机号

	EmployeeNo *string `json:"employee_no,omitempty"` // 员工工号

	Email *string `json:"email,omitempty"` // 邮箱

	IsResigned *bool `json:"is_resigned,omitempty"` // 用户是否离职

	ResignTime *string `json:"resign_time,omitempty"` // 离职时间,时间戳格式,表示从1970年1月1日开始所经过的秒数

	ResignDate *string `json:"resign_date,omitempty"` // 离职日期
}

type UserInfoBuilder

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

func NewUserInfoBuilder

func NewUserInfoBuilder() *UserInfoBuilder

func (*UserInfoBuilder) Build

func (builder *UserInfoBuilder) Build() *UserInfo

func (*UserInfoBuilder) Email

func (builder *UserInfoBuilder) Email(email string) *UserInfoBuilder

邮箱

示例值:zhangsan@gmail.com

func (*UserInfoBuilder) EmployeeNo

func (builder *UserInfoBuilder) EmployeeNo(employeeNo string) *UserInfoBuilder

员工工号

示例值:1

func (*UserInfoBuilder) EnName

func (builder *UserInfoBuilder) EnName(enName string) *UserInfoBuilder

英文名

示例值:zhang san

func (*UserInfoBuilder) IsResigned

func (builder *UserInfoBuilder) IsResigned(isResigned bool) *UserInfoBuilder

用户是否离职

示例值:true

func (*UserInfoBuilder) Mobile

func (builder *UserInfoBuilder) Mobile(mobile string) *UserInfoBuilder

手机号

示例值:13011111111

func (*UserInfoBuilder) Name

func (builder *UserInfoBuilder) Name(name string) *UserInfoBuilder

用户默认名

示例值:张三

func (*UserInfoBuilder) ResignDate

func (builder *UserInfoBuilder) ResignDate(resignDate string) *UserInfoBuilder

离职日期

示例值:2023-01-01

func (*UserInfoBuilder) ResignTime

func (builder *UserInfoBuilder) ResignTime(resignTime string) *UserInfoBuilder

离职时间,时间戳格式,表示从1970年1月1日开始所经过的秒数

示例值:1672502400

func (*UserInfoBuilder) UserId

func (builder *UserInfoBuilder) UserId(userId string) *UserInfoBuilder

员工id

示例值:3e3cf96b

func (*UserInfoBuilder) ZhName

func (builder *UserInfoBuilder) ZhName(zhName string) *UserInfoBuilder

中文名

示例值:张三

type V2

type V2 struct {
	ApprovalGroups                    *approvalGroups                    // approval_groups
	Approver                          *approver                          // approver
	BasicInfoBank                     *basicInfoBank                     // basic_info.bank
	BasicInfoBankBranch               *basicInfoBankBranch               // basic_info.bank_branch
	BasicInfoCity                     *basicInfoCity                     // basic_info.city
	BasicInfoCountryRegion            *basicInfoCountryRegion            // basic_info.country_region
	BasicInfoCountryRegionSubdivision *basicInfoCountryRegionSubdivision // basic_info.country_region_subdivision
	BasicInfoCurrency                 *basicInfoCurrency                 // basic_info.currency
	BasicInfoDistrict                 *basicInfoDistrict                 // basic_info.district
	BasicInfoLanguage                 *basicInfoLanguage                 // basic_info.language
	BasicInfoNationality              *basicInfoNationality              // basic_info.nationality
	BasicInfoTimeZone                 *basicInfoTimeZone                 // basic_info.time_zone
	Bp                                *bp                                // bp
	Company                           *company                           // company
	Contract                          *contract                          // contract
	CostCenter                        *costCenter                        // cost_center
	CostCenterVersion                 *costCenterVersion                 // cost_center.version
	Department                        *department                        // department
	Employee                          *employee                          // employee
	EmployeesAdditionalJob            *employeesAdditionalJob            // employees.additional_job
	EmployeesBp                       *employeesBp                       // employees.bp
	EmployeesJobData                  *employeesJobData                  // employees.job_data
	Job                               *job                               // job
	JobChange                         *jobChange                         // job_change
	JobFamily                         *jobFamily                         // job_family
	JobGrade                          *jobGrade                          // job_grade
	JobLevel                          *jobLevel                          // job_level
	Location                          *location                          // location
	LocationAddress                   *locationAddress                   // location.address
	Offboarding                       *offboarding                       // offboarding
	Person                            *person                            // person
	PreHire                           *preHire                           // 待入职
	Probation                         *probation                         // probation
	ProbationAssessment               *probationAssessment               // probation.assessment
	Process                           *process                           // process
	ProcessApprover                   *processApprover                   // process.approver
	ProcessCc                         *processCc                         // process.cc
	ProcessFormVariableData           *processFormVariableData           // process.form_variable_data
	ProcessNode                       *processNode                       // process.node
	ProcessStatus                     *processStatus                     // process.status
	WorkforcePlan                     *workforcePlan                     // workforce_plan
	WorkforcePlanDetail               *workforcePlanDetail               // workforce_plan_detail
}

func New

func New(config *larkcore.Config) *V2

type WithdrawProbationPathReqBodyBuilder added in v3.2.9

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

func NewWithdrawProbationPathReqBodyBuilder added in v3.2.9

func NewWithdrawProbationPathReqBodyBuilder() *WithdrawProbationPathReqBodyBuilder

func (*WithdrawProbationPathReqBodyBuilder) Build added in v3.2.9

func (*WithdrawProbationPathReqBodyBuilder) EmploymentId added in v3.2.9

试用期人员的雇佣 ID

示例值:7140964208476371111

type WithdrawProbationReq added in v3.2.9

type WithdrawProbationReq struct {
	Body *WithdrawProbationReqBody `body:""`
	// contains filtered or unexported fields
}

type WithdrawProbationReqBody added in v3.2.9

type WithdrawProbationReqBody struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 试用期人员的雇佣 ID
}

type WithdrawProbationReqBodyBuilder added in v3.2.9

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

func NewWithdrawProbationReqBodyBuilder added in v3.2.9

func NewWithdrawProbationReqBodyBuilder() *WithdrawProbationReqBodyBuilder

func (*WithdrawProbationReqBodyBuilder) Build added in v3.2.9

func (*WithdrawProbationReqBodyBuilder) EmploymentId added in v3.2.9

func (builder *WithdrawProbationReqBodyBuilder) EmploymentId(employmentId string) *WithdrawProbationReqBodyBuilder

试用期人员的雇佣 ID

示例值:7140964208476371111

type WithdrawProbationReqBuilder added in v3.2.9

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

func NewWithdrawProbationReqBuilder added in v3.2.9

func NewWithdrawProbationReqBuilder() *WithdrawProbationReqBuilder

func (*WithdrawProbationReqBuilder) Body added in v3.2.9

func (*WithdrawProbationReqBuilder) Build added in v3.2.9

func (*WithdrawProbationReqBuilder) ClientToken added in v3.2.9

func (builder *WithdrawProbationReqBuilder) ClientToken(clientToken string) *WithdrawProbationReqBuilder

根据 client_token 是否一致来判断是否为同一请求

示例值:6822122262122064111

func (*WithdrawProbationReqBuilder) UserIdType added in v3.2.9

func (builder *WithdrawProbationReqBuilder) UserIdType(userIdType string) *WithdrawProbationReqBuilder

用户 ID 类型

示例值:open_id

type WithdrawProbationResp added in v3.2.9

type WithdrawProbationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*WithdrawProbationResp) Success added in v3.2.9

func (resp *WithdrawProbationResp) Success() bool

type WorkEmail

type WorkEmail struct {
	Email *string `json:"email,omitempty"` // 邮箱地址

	EmailUsage *Enum `json:"email_usage,omitempty"` // 邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得
}

type WorkEmailBuilder

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

func NewWorkEmailBuilder

func NewWorkEmailBuilder() *WorkEmailBuilder

func (*WorkEmailBuilder) Build

func (builder *WorkEmailBuilder) Build() *WorkEmail

func (*WorkEmailBuilder) Email

func (builder *WorkEmailBuilder) Email(email string) *WorkEmailBuilder

邮箱地址

示例值:1234567@bytedance.com

func (*WorkEmailBuilder) EmailUsage

func (builder *WorkEmailBuilder) EmailUsage(emailUsage *Enum) *WorkEmailBuilder

邮箱用途,枚举值可通过文档【飞书人事枚举常量】邮箱用途(email_usage)枚举定义获得

示例值:

type WorkEmailCheckResult added in v3.2.3

type WorkEmailCheckResult struct {
	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱值

	Success *bool `json:"success,omitempty"` // 校验结果是否通过
}

type WorkEmailCheckResultBuilder added in v3.2.3

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

func NewWorkEmailCheckResultBuilder added in v3.2.3

func NewWorkEmailCheckResultBuilder() *WorkEmailCheckResultBuilder

func (*WorkEmailCheckResultBuilder) Build added in v3.2.3

func (*WorkEmailCheckResultBuilder) Success added in v3.2.3

校验结果是否通过

示例值:true

func (*WorkEmailCheckResultBuilder) WorkEmail added in v3.2.3

func (builder *WorkEmailCheckResultBuilder) WorkEmail(workEmail string) *WorkEmailCheckResultBuilder

工作邮箱值

示例值:zhangsan.123@bytedance.com

type WorkEmailInfoList added in v3.2.3

type WorkEmailInfoList struct {
	WorkEmail *string `json:"work_email,omitempty"` // 工作邮箱值

	CountryRegionAlpha3Code *string `json:"country_region_alpha_3_code,omitempty"` // 国家地区三字码

	Pinyin *string `json:"pinyin,omitempty"` // 姓名拼音
}

type WorkEmailInfoListBuilder added in v3.2.3

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

func NewWorkEmailInfoListBuilder added in v3.2.3

func NewWorkEmailInfoListBuilder() *WorkEmailInfoListBuilder

func (*WorkEmailInfoListBuilder) Build added in v3.2.3

func (builder *WorkEmailInfoListBuilder) Build() *WorkEmailInfoList

func (*WorkEmailInfoListBuilder) CountryRegionAlpha3Code added in v3.2.3

func (builder *WorkEmailInfoListBuilder) CountryRegionAlpha3Code(countryRegionAlpha3Code string) *WorkEmailInfoListBuilder

国家地区三字码

示例值:CHN

func (*WorkEmailInfoListBuilder) Pinyin added in v3.2.3

func (builder *WorkEmailInfoListBuilder) Pinyin(pinyin string) *WorkEmailInfoListBuilder

姓名拼音

示例值:zhangsan

func (*WorkEmailInfoListBuilder) WorkEmail added in v3.2.3

func (builder *WorkEmailInfoListBuilder) WorkEmail(workEmail string) *WorkEmailInfoListBuilder

工作邮箱值

示例值:zhangsan.123@bytedance.com

type WorkExperience

type WorkExperience struct {
	CompanyName *string `json:"company_name,omitempty"` // 公司名称

	StartTime *string `json:"start_time,omitempty"` // 开始时间

	EndTime *string `json:"end_time,omitempty"` // 结束时间

	JobTitle *string `json:"job_title,omitempty"` // 岗位

	Description *string `json:"description,omitempty"` // 工作描述

	Department *string `json:"department,omitempty"` // 部门

	CustomFields []*ObjectFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type WorkExperienceBuilder

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

func NewWorkExperienceBuilder

func NewWorkExperienceBuilder() *WorkExperienceBuilder

func (*WorkExperienceBuilder) Build

func (builder *WorkExperienceBuilder) Build() *WorkExperience

func (*WorkExperienceBuilder) CompanyName

func (builder *WorkExperienceBuilder) CompanyName(companyName string) *WorkExperienceBuilder

公司名称

示例值:猎豹

func (*WorkExperienceBuilder) CustomFields added in v3.3.7

func (builder *WorkExperienceBuilder) CustomFields(customFields []*ObjectFieldData) *WorkExperienceBuilder

自定义字段

示例值:

func (*WorkExperienceBuilder) Department added in v3.2.8

func (builder *WorkExperienceBuilder) Department(department string) *WorkExperienceBuilder

部门

示例值:部门名称

func (*WorkExperienceBuilder) Description

func (builder *WorkExperienceBuilder) Description(description string) *WorkExperienceBuilder

工作描述

示例值:app

func (*WorkExperienceBuilder) EndTime

func (builder *WorkExperienceBuilder) EndTime(endTime string) *WorkExperienceBuilder

结束时间

示例值:2017-02-01

func (*WorkExperienceBuilder) JobTitle

func (builder *WorkExperienceBuilder) JobTitle(jobTitle string) *WorkExperienceBuilder

岗位

示例值:产品经理

func (*WorkExperienceBuilder) StartTime

func (builder *WorkExperienceBuilder) StartTime(startTime string) *WorkExperienceBuilder

开始时间

示例值:2015-02-01

type WorkExperienceInfo

type WorkExperienceInfo struct {
	CompanyOrganization []*I18n `json:"company_organization,omitempty"` // 公司 / 组织

	Department []*I18n `json:"department,omitempty"` // 部门

	Job []*I18n `json:"job,omitempty"` // 岗位

	Description []*I18n `json:"description,omitempty"` // 工作描述

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期

	CustomFields []*CustomFieldData `json:"custom_fields,omitempty"` // 自定义字段
}

type WorkExperienceInfoBuilder

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

func NewWorkExperienceInfoBuilder

func NewWorkExperienceInfoBuilder() *WorkExperienceInfoBuilder

func (*WorkExperienceInfoBuilder) Build

func (*WorkExperienceInfoBuilder) CompanyOrganization

func (builder *WorkExperienceInfoBuilder) CompanyOrganization(companyOrganization []*I18n) *WorkExperienceInfoBuilder

公司 / 组织

示例值:

func (*WorkExperienceInfoBuilder) CustomFields

func (builder *WorkExperienceInfoBuilder) CustomFields(customFields []*CustomFieldData) *WorkExperienceInfoBuilder

自定义字段

示例值:

func (*WorkExperienceInfoBuilder) Department

func (builder *WorkExperienceInfoBuilder) Department(department []*I18n) *WorkExperienceInfoBuilder

部门

示例值:

func (*WorkExperienceInfoBuilder) Description

func (builder *WorkExperienceInfoBuilder) Description(description []*I18n) *WorkExperienceInfoBuilder

工作描述

示例值:

func (*WorkExperienceInfoBuilder) EndDate

func (builder *WorkExperienceInfoBuilder) EndDate(endDate string) *WorkExperienceInfoBuilder

结束日期

示例值:2020-01-01

func (*WorkExperienceInfoBuilder) Job

岗位

示例值:

func (*WorkExperienceInfoBuilder) StartDate

func (builder *WorkExperienceInfoBuilder) StartDate(startDate string) *WorkExperienceInfoBuilder

开始日期

示例值:2020-01-01

type WorkforcePlan

type WorkforcePlan struct {
	WorkforcePlanId *string `json:"workforce_plan_id,omitempty"` // 编制规划方案 ID

	WorkforcePlanName []*I18n `json:"workforce_plan_name,omitempty"` // 编制规划方案名称

	StartDate *string `json:"start_date,omitempty"` // 开始日期

	EndDate *string `json:"end_date,omitempty"` // 结束日期

	Active *bool `json:"active,omitempty"` // 是否启用
}

type WorkforcePlanBuilder

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

func NewWorkforcePlanBuilder

func NewWorkforcePlanBuilder() *WorkforcePlanBuilder

func (*WorkforcePlanBuilder) Active

func (builder *WorkforcePlanBuilder) Active(active bool) *WorkforcePlanBuilder

是否启用

示例值:true

func (*WorkforcePlanBuilder) Build

func (builder *WorkforcePlanBuilder) Build() *WorkforcePlan

func (*WorkforcePlanBuilder) EndDate

func (builder *WorkforcePlanBuilder) EndDate(endDate string) *WorkforcePlanBuilder

结束日期

示例值:"2020-10-31"

func (*WorkforcePlanBuilder) StartDate

func (builder *WorkforcePlanBuilder) StartDate(startDate string) *WorkforcePlanBuilder

开始日期

示例值:"2020-10-01"

func (*WorkforcePlanBuilder) WorkforcePlanId

func (builder *WorkforcePlanBuilder) WorkforcePlanId(workforcePlanId string) *WorkforcePlanBuilder

编制规划方案 ID

示例值:"123456"

func (*WorkforcePlanBuilder) WorkforcePlanName

func (builder *WorkforcePlanBuilder) WorkforcePlanName(workforcePlanName []*I18n) *WorkforcePlanBuilder

编制规划方案名称

示例值:

type WorkforcePlanDetail

type WorkforcePlanDetail struct {
	WorkforcePlanDetailId *string `json:"workforce_plan_detail_id,omitempty"` // 编制规划明细 ID

	Department *DimensionInfo `json:"department,omitempty"` // 部门信息

	EmployeeType *DimensionInfo `json:"employee_type,omitempty"` // 人员类型信息

	WorkLocation *DimensionInfo `json:"work_location,omitempty"` // 工作地点信息

	JobFamily *DimensionInfo `json:"job_family,omitempty"` // 序列信息

	JobLevel *DimensionInfo `json:"job_level,omitempty"` // 职级信息

	Job *DimensionInfo `json:"job,omitempty"` // 职务信息

	CostCenter *DimensionInfo `json:"cost_center,omitempty"` // 成本中心信息

	WorkforcePlan *string `json:"workforce_plan,omitempty"` // 编制规划值

	ActiveIndividuals *string `json:"active_individuals,omitempty"` // 在职人数

	IndividualsToBeAdded *string `json:"individuals_to_be_added,omitempty"` // 预增员数量

	IndividualsToBeRemoved *string `json:"individuals_to_be_removed,omitempty"` // 预减员

	Vacancy *string `json:"vacancy,omitempty"` // 缺编数

	VacancyIncludingIndividualsToBeAddedAndRemoved *string `json:"vacancy_including_individuals_to_be_added_and_removed,omitempty"` // 缺编数(含在途)

	FulfillmentRate *string `json:"fulfillment_rate,omitempty"` // 满编率, 返回 0.5 表示满编率为 50%

	FulfillmentRateIncludingIndividualsToBeAddedAndRemoved *string `json:"fulfillment_rate_including_individuals_to_be_added_and_removed,omitempty"` // 满编率(含在途), 返回 0.5 表示满编率为 50%

	EstimatedActiveIndividualsDetail []*WorkforcePlanEaiDetail `json:"estimated_active_individuals_detail,omitempty"` // 预估在职人数明细
}

type WorkforcePlanDetailBuilder

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

func NewWorkforcePlanDetailBuilder

func NewWorkforcePlanDetailBuilder() *WorkforcePlanDetailBuilder

func (*WorkforcePlanDetailBuilder) ActiveIndividuals added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) ActiveIndividuals(activeIndividuals string) *WorkforcePlanDetailBuilder

在职人数

示例值:10.00

func (*WorkforcePlanDetailBuilder) Build

func (*WorkforcePlanDetailBuilder) CostCenter

func (builder *WorkforcePlanDetailBuilder) CostCenter(costCenter *DimensionInfo) *WorkforcePlanDetailBuilder

成本中心信息

示例值:

func (*WorkforcePlanDetailBuilder) Department

func (builder *WorkforcePlanDetailBuilder) Department(department *DimensionInfo) *WorkforcePlanDetailBuilder

部门信息

示例值:

func (*WorkforcePlanDetailBuilder) EmployeeType

func (builder *WorkforcePlanDetailBuilder) EmployeeType(employeeType *DimensionInfo) *WorkforcePlanDetailBuilder

人员类型信息

示例值:

func (*WorkforcePlanDetailBuilder) EstimatedActiveIndividualsDetail

func (builder *WorkforcePlanDetailBuilder) EstimatedActiveIndividualsDetail(estimatedActiveIndividualsDetail []*WorkforcePlanEaiDetail) *WorkforcePlanDetailBuilder

预估在职人数明细

示例值:

func (*WorkforcePlanDetailBuilder) FulfillmentRate added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) FulfillmentRate(fulfillmentRate string) *WorkforcePlanDetailBuilder

满编率, 返回 0.5 表示满编率为 50%

示例值:0.5

func (*WorkforcePlanDetailBuilder) FulfillmentRateIncludingIndividualsToBeAddedAndRemoved added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) FulfillmentRateIncludingIndividualsToBeAddedAndRemoved(fulfillmentRateIncludingIndividualsToBeAddedAndRemoved string) *WorkforcePlanDetailBuilder

满编率(含在途), 返回 0.5 表示满编率为 50%

示例值:0.5

func (*WorkforcePlanDetailBuilder) IndividualsToBeAdded added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) IndividualsToBeAdded(individualsToBeAdded string) *WorkforcePlanDetailBuilder

预增员数量

示例值:10.00

func (*WorkforcePlanDetailBuilder) IndividualsToBeRemoved added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) IndividualsToBeRemoved(individualsToBeRemoved string) *WorkforcePlanDetailBuilder

预减员

示例值:10.00

func (*WorkforcePlanDetailBuilder) Job

职务信息

示例值:

func (*WorkforcePlanDetailBuilder) JobFamily

序列信息

示例值:

func (*WorkforcePlanDetailBuilder) JobLevel

职级信息

示例值:

func (*WorkforcePlanDetailBuilder) Vacancy added in v3.4.2

缺编数

示例值:10.00

func (*WorkforcePlanDetailBuilder) VacancyIncludingIndividualsToBeAddedAndRemoved added in v3.4.2

func (builder *WorkforcePlanDetailBuilder) VacancyIncludingIndividualsToBeAddedAndRemoved(vacancyIncludingIndividualsToBeAddedAndRemoved string) *WorkforcePlanDetailBuilder

缺编数(含在途)

示例值:10.00

func (*WorkforcePlanDetailBuilder) WorkLocation

func (builder *WorkforcePlanDetailBuilder) WorkLocation(workLocation *DimensionInfo) *WorkforcePlanDetailBuilder

工作地点信息

示例值:

func (*WorkforcePlanDetailBuilder) WorkforcePlan

func (builder *WorkforcePlanDetailBuilder) WorkforcePlan(workforcePlan string) *WorkforcePlanDetailBuilder

编制规划值

示例值:10.00

func (*WorkforcePlanDetailBuilder) WorkforcePlanDetailId

func (builder *WorkforcePlanDetailBuilder) WorkforcePlanDetailId(workforcePlanDetailId string) *WorkforcePlanDetailBuilder

编制规划明细 ID

示例值:"123456"

type WorkforcePlanDetailReq added in v3.3.7

type WorkforcePlanDetailReq struct {
	WorkforcePlanId *string `json:"workforce_plan_id,omitempty"` // 编制规划id

	Items []*WorkforcePlanDetailRow `json:"items,omitempty"` // 编制规划的多个明细行
}

type WorkforcePlanDetailReqBuilder added in v3.3.7

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

func NewWorkforcePlanDetailReqBuilder added in v3.3.7

func NewWorkforcePlanDetailReqBuilder() *WorkforcePlanDetailReqBuilder

func (*WorkforcePlanDetailReqBuilder) Build added in v3.3.7

func (*WorkforcePlanDetailReqBuilder) Items added in v3.3.7

编制规划的多个明细行

示例值:

func (*WorkforcePlanDetailReqBuilder) WorkforcePlanId added in v3.4.0

func (builder *WorkforcePlanDetailReqBuilder) WorkforcePlanId(workforcePlanId string) *WorkforcePlanDetailReqBuilder

编制规划id

示例值:7430330781544564268

type WorkforcePlanDetailRow added in v3.3.7

type WorkforcePlanDetailRow struct {
	Dimensions []*DimensionEntity `json:"dimensions,omitempty"` // 维度信息

	EaiDetails []*WorkforcePlanEaiDetail `json:"eai_details,omitempty"` // 预估在职人数

	PlanValue *string `json:"plan_value,omitempty"` // 编制规划值
}

type WorkforcePlanDetailRowBuilder added in v3.3.7

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

func NewWorkforcePlanDetailRowBuilder added in v3.3.7

func NewWorkforcePlanDetailRowBuilder() *WorkforcePlanDetailRowBuilder

func (*WorkforcePlanDetailRowBuilder) Build added in v3.3.7

func (*WorkforcePlanDetailRowBuilder) Dimensions added in v3.3.7

维度信息

示例值:

func (*WorkforcePlanDetailRowBuilder) EaiDetails added in v3.4.0

预估在职人数

示例值:

func (*WorkforcePlanDetailRowBuilder) PlanValue added in v3.3.7

编制规划值

示例值:12

type WorkforcePlanDetailV2 added in v3.2.3

type WorkforcePlanDetailV2 struct {
	WorkforcePlanDetailId *string `json:"workforce_plan_detail_id,omitempty"` // 编制规划明细 ID

	DimensionInfoDatas []*DimensionInfoData `json:"dimension_info_datas,omitempty"` // 维度信息

	WorkforcePlan *string `json:"workforce_plan,omitempty"` // 编制规划值

	ActiveIndividuals *string `json:"active_individuals,omitempty"` // 在职人数

	IndividualsToBeAdded *string `json:"individuals_to_be_added,omitempty"` // 预增员数量

	IndividualsToBeRemoved *string `json:"individuals_to_be_removed,omitempty"` // 预减员

	Vacancy *string `json:"vacancy,omitempty"` // 缺编数

	VacancyIncludingIndividualsToBeAddedAndRemoved *string `json:"vacancy_including_individuals_to_be_added_and_removed,omitempty"` // 缺编数(含在途)

	FulfillmentRate *string `json:"fulfillment_rate,omitempty"` // 满编率, 返回 0.5 表示满编率为 50%

	FulfillmentRateIncludingIndividualsToBeAddedAndRemoved *string `json:"fulfillment_rate_including_individuals_to_be_added_and_removed,omitempty"` // 满编率(含在途), 返回 0.5 表示满编率为 50%

	EstimatedActiveIndividualsDetails []*WorkforcePlanEaiDetail `json:"estimated_active_individuals_details,omitempty"` // 预估在职人数明细
}

type WorkforcePlanDetailV2Builder added in v3.2.3

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

func NewWorkforcePlanDetailV2Builder added in v3.2.3

func NewWorkforcePlanDetailV2Builder() *WorkforcePlanDetailV2Builder

func (*WorkforcePlanDetailV2Builder) ActiveIndividuals added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) ActiveIndividuals(activeIndividuals string) *WorkforcePlanDetailV2Builder

在职人数

示例值:10.00

func (*WorkforcePlanDetailV2Builder) Build added in v3.2.3

func (*WorkforcePlanDetailV2Builder) DimensionInfoDatas added in v3.2.3

func (builder *WorkforcePlanDetailV2Builder) DimensionInfoDatas(dimensionInfoDatas []*DimensionInfoData) *WorkforcePlanDetailV2Builder

维度信息

示例值:

func (*WorkforcePlanDetailV2Builder) EstimatedActiveIndividualsDetails added in v3.2.3

func (builder *WorkforcePlanDetailV2Builder) EstimatedActiveIndividualsDetails(estimatedActiveIndividualsDetails []*WorkforcePlanEaiDetail) *WorkforcePlanDetailV2Builder

预估在职人数明细

示例值:

func (*WorkforcePlanDetailV2Builder) FulfillmentRate added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) FulfillmentRate(fulfillmentRate string) *WorkforcePlanDetailV2Builder

满编率, 返回 0.5 表示满编率为 50%

示例值:0.5

func (*WorkforcePlanDetailV2Builder) FulfillmentRateIncludingIndividualsToBeAddedAndRemoved added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) FulfillmentRateIncludingIndividualsToBeAddedAndRemoved(fulfillmentRateIncludingIndividualsToBeAddedAndRemoved string) *WorkforcePlanDetailV2Builder

满编率(含在途), 返回 0.5 表示满编率为 50%

示例值:0.5

func (*WorkforcePlanDetailV2Builder) IndividualsToBeAdded added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) IndividualsToBeAdded(individualsToBeAdded string) *WorkforcePlanDetailV2Builder

预增员数量

示例值:10.00

func (*WorkforcePlanDetailV2Builder) IndividualsToBeRemoved added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) IndividualsToBeRemoved(individualsToBeRemoved string) *WorkforcePlanDetailV2Builder

预减员

示例值:10.00

func (*WorkforcePlanDetailV2Builder) Vacancy added in v3.4.2

缺编数

示例值:10.00

func (*WorkforcePlanDetailV2Builder) VacancyIncludingIndividualsToBeAddedAndRemoved added in v3.4.2

func (builder *WorkforcePlanDetailV2Builder) VacancyIncludingIndividualsToBeAddedAndRemoved(vacancyIncludingIndividualsToBeAddedAndRemoved string) *WorkforcePlanDetailV2Builder

缺编数(含在途)

示例值:10.00

func (*WorkforcePlanDetailV2Builder) WorkforcePlan added in v3.2.3

func (builder *WorkforcePlanDetailV2Builder) WorkforcePlan(workforcePlan string) *WorkforcePlanDetailV2Builder

编制规划值

示例值:10.00

func (*WorkforcePlanDetailV2Builder) WorkforcePlanDetailId added in v3.2.3

func (builder *WorkforcePlanDetailV2Builder) WorkforcePlanDetailId(workforcePlanDetailId string) *WorkforcePlanDetailV2Builder

编制规划明细 ID

示例值:"123456"

type WorkforcePlanEaiDetail

type WorkforcePlanEaiDetail struct {
	Date *string `json:"date,omitempty"` // 预估月份

	EstimatedActiveIndividuals *string `json:"estimated_active_individuals,omitempty"` // 预估在职人数
}

type WorkforcePlanEaiDetailBuilder

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

func NewWorkforcePlanEaiDetailBuilder

func NewWorkforcePlanEaiDetailBuilder() *WorkforcePlanEaiDetailBuilder

func (*WorkforcePlanEaiDetailBuilder) Build

func (*WorkforcePlanEaiDetailBuilder) Date

预估月份

示例值:“2020-10-31”

func (*WorkforcePlanEaiDetailBuilder) EstimatedActiveIndividuals

func (builder *WorkforcePlanEaiDetailBuilder) EstimatedActiveIndividuals(estimatedActiveIndividuals string) *WorkforcePlanEaiDetailBuilder

预估在职人数

示例值:“10.00”

Jump to

Keyboard shortcuts

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