Documentation ¶
Index ¶
- Constants
- type Attachment
- type AttachmentBuilder
- func (builder *AttachmentBuilder) Build() *Attachment
- func (builder *AttachmentBuilder) Id(id string) *AttachmentBuilder
- func (builder *AttachmentBuilder) MimeType(mimeType string) *AttachmentBuilder
- func (builder *AttachmentBuilder) Name(name string) *AttachmentBuilder
- func (builder *AttachmentBuilder) Size(size int64) *AttachmentBuilder
- type ContractCompany
- type ContractCompanyBuilder
- type CustomFields
- type CustomFieldsBuilder
- func (builder *CustomFieldsBuilder) Build() *CustomFields
- func (builder *CustomFieldsBuilder) Key(key string) *CustomFieldsBuilder
- func (builder *CustomFieldsBuilder) Label(label string) *CustomFieldsBuilder
- func (builder *CustomFieldsBuilder) Type(type_ string) *CustomFieldsBuilder
- func (builder *CustomFieldsBuilder) Value(value string) *CustomFieldsBuilder
- type DepartmentId
- type DepartmentIdBuilder
- type Education
- type EducationBuilder
- func (builder *EducationBuilder) Build() *Education
- func (builder *EducationBuilder) Degree(degree int) *EducationBuilder
- func (builder *EducationBuilder) End(end string) *EducationBuilder
- func (builder *EducationBuilder) Level(level int) *EducationBuilder
- func (builder *EducationBuilder) Major(major string) *EducationBuilder
- func (builder *EducationBuilder) School(school string) *EducationBuilder
- func (builder *EducationBuilder) Start(start string) *EducationBuilder
- type EhrService
- type EmergencyContact
- type EmergencyContactBuilder
- func (builder *EmergencyContactBuilder) Build() *EmergencyContact
- func (builder *EmergencyContactBuilder) Mobile(mobile string) *EmergencyContactBuilder
- func (builder *EmergencyContactBuilder) Name(name string) *EmergencyContactBuilder
- func (builder *EmergencyContactBuilder) Relationship(relationship int) *EmergencyContactBuilder
- type Employee
- type EmployeeBuilder
- func (builder *EmployeeBuilder) Build() *Employee
- func (builder *EmployeeBuilder) CustomFields(customFields []*CustomFields) *EmployeeBuilder
- func (builder *EmployeeBuilder) SystemFields(systemFields *SystemFields) *EmployeeBuilder
- func (builder *EmployeeBuilder) UserId(userId string) *EmployeeBuilder
- type GetAttachmentReq
- type GetAttachmentReqBuilder
- type GetAttachmentResp
- type Job
- type JobBuilder
- type JobLevel
- type JobLevelBuilder
- type ListEmployeeIterator
- type ListEmployeeReq
- type ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) Build() *ListEmployeeReq
- func (builder *ListEmployeeReqBuilder) EndTime(endTime string) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) Limit(limit int) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) PageSize(pageSize int) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) PageToken(pageToken string) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) StartTime(startTime string) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) Status(status []int) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) Type(type_ []int) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) UserIdType(userIdType string) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) UserIds(userIds []string) *ListEmployeeReqBuilder
- func (builder *ListEmployeeReqBuilder) View(view string) *ListEmployeeReqBuilder
- type ListEmployeeResp
- type ListEmployeeRespData
- type Manager
- type ManagerBuilder
- type NativeRegion
- type NativeRegionBuilder
- type SystemFields
- type SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Application(application int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ApplicationStatus(applicationStatus int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) BankAccountNumber(bankAccountNumber string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) BankName(bankName string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Birthday(birthday string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Build() *SystemFields
- func (builder *SystemFieldsBuilder) CancelOnboardingNotes(cancelOnboardingNotes string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) CancelOnboardingReason(cancelOnboardingReason int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) CertOfMerit(certOfMerit []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ContractCompany(contractCompany *ContractCompany) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ContractExpirationDate(contractExpirationDate string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ContractSignTimes(contractSignTimes int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ContractStartDate(contractStartDate string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ContractType(contractType int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ConversionDate(conversionDate string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) CreateTime(createTime int64) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) DepartmentId(departmentId string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) DepartureNotes(departureNotes string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) DepartureReason(departureReason int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) DepartureType(departureType int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) DiplomaPhoto(diplomaPhoto []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Education(education []*Education) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Email(email string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EmergencyContact(emergencyContact []*EmergencyContact) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EmployeeFormStatus(employeeFormStatus int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EmployeeNo(employeeNo string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EmployeeType(employeeType int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EnName(enName string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) EnteredWorkforceDate(enteredWorkforceDate string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Ethnicity(ethnicity int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) FamilyAddress(familyAddress string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) FormerWorkExp(formerWorkExp *WorkExperience) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Gender(gender int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) GraduationCert(graduationCert []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) HighestLevelOfEdu(highestLevelOfEdu *Education) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) HireDate(hireDate string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) HukouLocation(hukouLocation string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) HukouType(hukouType int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) IdNumber(idNumber string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) IdPhoto(idPhoto []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) IdPhotoEmSide(idPhotoEmSide []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) IdPhotoPoSide(idPhotoPoSide []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) IdType(idType int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Job(job *Job) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) JobLevel(jobLevel *JobLevel) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) LastDay(lastDay string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Manager(manager *Manager) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) MaritalStatus(maritalStatus int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Mobile(mobile string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Name(name string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) NativeRegion(nativeRegion *NativeRegion) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) OffboardingFile(offboardingFile []*Attachment) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) PersonalEmail(personalEmail string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) PoliticalStatus(politicalStatus int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) PrimaryEmergencyContact(primaryEmergencyContact *EmergencyContact) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ProbationMonths(probationMonths float64) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) ProvidentFundAccount(providentFundAccount string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) SocialSecurityAccount(socialSecurityAccount string) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) Status(status int) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) UpdateTime(updateTime int64) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) WorkExp(workExp []*WorkExperience) *SystemFieldsBuilder
- func (builder *SystemFieldsBuilder) WorkLocation(workLocation *WorkLocation) *SystemFieldsBuilder
- type WorkExperience
- type WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) Build() *WorkExperience
- func (builder *WorkExperienceBuilder) Company(company string) *WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) Department(department string) *WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) Description(description string) *WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) End(end string) *WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) Job(job string) *WorkExperienceBuilder
- func (builder *WorkExperienceBuilder) Start(start string) *WorkExperienceBuilder
- type WorkLocation
- type WorkLocationBuilder
Constants ¶
const ( ViewBasic = "basic" // 概览, 只返回 id、name 等基本信息 ViewFull = "full" // 返回详细信息 )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type AttachmentBuilder ¶
type AttachmentBuilder struct {
// contains filtered or unexported fields
}
func NewAttachmentBuilder ¶
func NewAttachmentBuilder() *AttachmentBuilder
func (*AttachmentBuilder) Build ¶
func (builder *AttachmentBuilder) Build() *Attachment
func (*AttachmentBuilder) Id ¶
func (builder *AttachmentBuilder) Id(id string) *AttachmentBuilder
下载文件所需要的 Token
示例值:c7273e07ed9e40a394f88c7dccb49212
func (*AttachmentBuilder) MimeType ¶
func (builder *AttachmentBuilder) MimeType(mimeType string) *AttachmentBuilder
文件类型
示例值:png
func (*AttachmentBuilder) Name ¶
func (builder *AttachmentBuilder) Name(name string) *AttachmentBuilder
名称
示例值:Custom Code.png
func (*AttachmentBuilder) Size ¶
func (builder *AttachmentBuilder) Size(size int64) *AttachmentBuilder
大小
示例值:57380
type ContractCompany ¶
type ContractCompanyBuilder ¶
type ContractCompanyBuilder struct {
// contains filtered or unexported fields
}
func NewContractCompanyBuilder ¶
func NewContractCompanyBuilder() *ContractCompanyBuilder
func (*ContractCompanyBuilder) Build ¶
func (builder *ContractCompanyBuilder) Build() *ContractCompany
func (*ContractCompanyBuilder) Id ¶
func (builder *ContractCompanyBuilder) Id(id int64) *ContractCompanyBuilder
公司 ID
示例值:1695838220091399
func (*ContractCompanyBuilder) Name ¶
func (builder *ContractCompanyBuilder) Name(name string) *ContractCompanyBuilder
公司名称
示例值:油条一号
type CustomFields ¶
type CustomFieldsBuilder ¶
type CustomFieldsBuilder struct {
// contains filtered or unexported fields
}
func NewCustomFieldsBuilder ¶
func NewCustomFieldsBuilder() *CustomFieldsBuilder
func (*CustomFieldsBuilder) Build ¶
func (builder *CustomFieldsBuilder) Build() *CustomFields
func (*CustomFieldsBuilder) Key ¶
func (builder *CustomFieldsBuilder) Key(key string) *CustomFieldsBuilder
自定义字段key
示例值:field_xxxxxxxx
func (*CustomFieldsBuilder) Label ¶
func (builder *CustomFieldsBuilder) Label(label string) *CustomFieldsBuilder
自定义字段名称
示例值:自定义字段 1
func (*CustomFieldsBuilder) Type ¶
func (builder *CustomFieldsBuilder) Type(type_ string) *CustomFieldsBuilder
自定义字段类型
示例值:date
func (*CustomFieldsBuilder) Value ¶
func (builder *CustomFieldsBuilder) Value(value string) *CustomFieldsBuilder
根据 type 不同,结构不同,不同 type 对应的数据结构在 type 的枚举值中有描述
示例值:2021-01-13
type DepartmentId ¶ added in v3.0.29
type DepartmentIdBuilder ¶ added in v3.0.29
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶ added in v3.0.29
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder
示例值:
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) Degree ¶
func (builder *EducationBuilder) Degree(degree int) *EducationBuilder
学位
示例值:2
func (*EducationBuilder) End ¶
func (builder *EducationBuilder) End(end string) *EducationBuilder
结束日期
示例值:2020-01-01
func (*EducationBuilder) Level ¶
func (builder *EducationBuilder) Level(level int) *EducationBuilder
学历
示例值:8
func (*EducationBuilder) Major ¶
func (builder *EducationBuilder) Major(major string) *EducationBuilder
专业
示例值:XXX专业
func (*EducationBuilder) School ¶
func (builder *EducationBuilder) School(school string) *EducationBuilder
毕业学校
示例值:XXXX大学
func (*EducationBuilder) Start ¶
func (builder *EducationBuilder) Start(start string) *EducationBuilder
开始日期
示例值:2020-01-01
type EhrService ¶
type EhrService struct { Attachment *attachment // 飞书人事(标准版) Employee *employee // 飞书人事(标准版) // contains filtered or unexported fields }
func NewService ¶
func NewService(config *larkcore.Config) *EhrService
type EmergencyContact ¶
type EmergencyContactBuilder ¶
type EmergencyContactBuilder struct {
// contains filtered or unexported fields
}
func NewEmergencyContactBuilder ¶
func NewEmergencyContactBuilder() *EmergencyContactBuilder
func (*EmergencyContactBuilder) Build ¶
func (builder *EmergencyContactBuilder) Build() *EmergencyContact
func (*EmergencyContactBuilder) Mobile ¶
func (builder *EmergencyContactBuilder) Mobile(mobile string) *EmergencyContactBuilder
手机号
示例值:(+86) 13812345678
func (*EmergencyContactBuilder) Name ¶
func (builder *EmergencyContactBuilder) Name(name string) *EmergencyContactBuilder
紧急联系人姓名
示例值:张三
func (*EmergencyContactBuilder) Relationship ¶
func (builder *EmergencyContactBuilder) Relationship(relationship int) *EmergencyContactBuilder
与紧急联系人的关系
示例值:1
type Employee ¶
type Employee struct { UserId *string `json:"user_id,omitempty"` // 员工的用户 ID;;;user_id_type 为 user_id 时返回 user_id;;;;user_id_type 为 open_id 时返回 open_id;;;;user_id_type 为 union_id 时返回 union_id;;;;「待入职」和「已取消入职」的员工,此字段值为 null SystemFields *SystemFields `json:"system_fields,omitempty"` // 系统字段 CustomFields []*CustomFields `json:"custom_fields,omitempty"` // 自定义字段 }
type EmployeeBuilder ¶
type EmployeeBuilder struct {
// contains filtered or unexported fields
}
func NewEmployeeBuilder ¶
func NewEmployeeBuilder() *EmployeeBuilder
func (*EmployeeBuilder) Build ¶
func (builder *EmployeeBuilder) Build() *Employee
func (*EmployeeBuilder) CustomFields ¶
func (builder *EmployeeBuilder) CustomFields(customFields []*CustomFields) *EmployeeBuilder
自定义字段
示例值:
func (*EmployeeBuilder) SystemFields ¶
func (builder *EmployeeBuilder) SystemFields(systemFields *SystemFields) *EmployeeBuilder
系统字段
示例值:
func (*EmployeeBuilder) UserId ¶
func (builder *EmployeeBuilder) UserId(userId string) *EmployeeBuilder
员工的用户 ID;;;user_id_type 为 user_id 时返回 user_id;;;;user_id_type 为 open_id 时返回 open_id;;;;user_id_type 为 union_id 时返回 union_id;;;;「待入职」和「已取消入职」的员工,此字段值为 null
示例值:ou_db362c0e79f5a26db1ca8e94698ee417
type GetAttachmentReq ¶
type GetAttachmentReq struct {
// contains filtered or unexported fields
}
type GetAttachmentReqBuilder ¶
type GetAttachmentReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetAttachmentReqBuilder ¶
func NewGetAttachmentReqBuilder() *GetAttachmentReqBuilder
func (*GetAttachmentReqBuilder) Build ¶
func (builder *GetAttachmentReqBuilder) Build() *GetAttachmentReq
func (*GetAttachmentReqBuilder) Token ¶
func (builder *GetAttachmentReqBuilder) Token(token string) *GetAttachmentReqBuilder
文件 token
示例值:09bf7b924f9a4a69875788891b5970d8
type GetAttachmentResp ¶
type GetAttachmentResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError File io.Reader `json:"-"` FileName string `json:"-"` }
func (*GetAttachmentResp) Success ¶
func (resp *GetAttachmentResp) Success() bool
func (*GetAttachmentResp) WriteFile ¶
func (resp *GetAttachmentResp) WriteFile(fileName string) error
type JobBuilder ¶
type JobBuilder struct {
// contains filtered or unexported fields
}
func NewJobBuilder ¶
func NewJobBuilder() *JobBuilder
func (*JobBuilder) Build ¶
func (builder *JobBuilder) Build() *Job
func (*JobBuilder) Id ¶
func (builder *JobBuilder) Id(id int64) *JobBuilder
职位 ID
示例值:1695838220091399
type JobLevelBuilder ¶
type JobLevelBuilder struct {
// contains filtered or unexported fields
}
func NewJobLevelBuilder ¶
func NewJobLevelBuilder() *JobLevelBuilder
func (*JobLevelBuilder) Build ¶
func (builder *JobLevelBuilder) Build() *JobLevel
func (*JobLevelBuilder) Id ¶
func (builder *JobLevelBuilder) Id(id int64) *JobLevelBuilder
职级 ID
示例值:1695838220091399
func (*JobLevelBuilder) Name ¶
func (builder *JobLevelBuilder) Name(name string) *JobLevelBuilder
职级名称
示例值:CEO
type ListEmployeeIterator ¶
type ListEmployeeIterator struct {
// contains filtered or unexported fields
}
func (*ListEmployeeIterator) Next ¶
func (iterator *ListEmployeeIterator) Next() (bool, *Employee, error)
func (*ListEmployeeIterator) NextPageToken ¶
func (iterator *ListEmployeeIterator) NextPageToken() *string
type ListEmployeeReq ¶
type ListEmployeeReq struct { Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type ListEmployeeReqBuilder ¶
type ListEmployeeReqBuilder struct {
// contains filtered or unexported fields
}
func NewListEmployeeReqBuilder ¶
func NewListEmployeeReqBuilder() *ListEmployeeReqBuilder
func (*ListEmployeeReqBuilder) Build ¶
func (builder *ListEmployeeReqBuilder) Build() *ListEmployeeReq
func (*ListEmployeeReqBuilder) EndTime ¶
func (builder *ListEmployeeReqBuilder) EndTime(endTime string) *ListEmployeeReqBuilder
查询结束时间(创建时间 <= 此时间)
示例值:1608690517811
func (*ListEmployeeReqBuilder) Limit ¶
func (builder *ListEmployeeReqBuilder) Limit(limit int) *ListEmployeeReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*ListEmployeeReqBuilder) PageSize ¶
func (builder *ListEmployeeReqBuilder) PageSize(pageSize int) *ListEmployeeReqBuilder
分页大小,取值范围 1~100,默认 10
示例值:10
func (*ListEmployeeReqBuilder) PageToken ¶
func (builder *ListEmployeeReqBuilder) PageToken(pageToken string) *ListEmployeeReqBuilder
分页标记,第一次请求可以不填,表示从头开始遍历;分页查询返回结果has_more 为 true 时会同时返回新的 page_token, 下次遍历可使用该返回的 page_token 获取更多信息。
示例值:10
func (*ListEmployeeReqBuilder) StartTime ¶
func (builder *ListEmployeeReqBuilder) StartTime(startTime string) *ListEmployeeReqBuilder
查询开始时间(创建时间 >= 此时间)
示例值:1608690517811
func (*ListEmployeeReqBuilder) Status ¶
func (builder *ListEmployeeReqBuilder) Status(status []int) *ListEmployeeReqBuilder
员工状态,不传代表查询所有员工状态;;实际在职 = 2&4;;可同时查询多个状态的记录,如 status=2&status=4
示例值:2
func (*ListEmployeeReqBuilder) Type ¶
func (builder *ListEmployeeReqBuilder) Type(type_ []int) *ListEmployeeReqBuilder
雇员类型,不传代表查询所有雇员类型
示例值:1
func (*ListEmployeeReqBuilder) UserIdType ¶
func (builder *ListEmployeeReqBuilder) UserIdType(userIdType string) *ListEmployeeReqBuilder
此次调用中使用的用户ID的类型
示例值:
func (*ListEmployeeReqBuilder) UserIds ¶
func (builder *ListEmployeeReqBuilder) UserIds(userIds []string) *ListEmployeeReqBuilder
user_id、open_id 或 union_id,默认为 open_id。;;如果传入的值不是 open_id,需要一并传入 user_id_type 参数。;;可一次查询多个 id 的用户,例如:user_ids=ou_8ebd4f35d7101ffdeb4771d7c8ec517e&user_ids=ou_7abc4f35d7101ffdeb4771dabcde;;[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
示例值:ou_8ebd4f35d7101ffdeb4771d7c8ec517e
func (*ListEmployeeReqBuilder) View ¶
func (builder *ListEmployeeReqBuilder) View(view string) *ListEmployeeReqBuilder
返回数据类型
示例值:basic
type ListEmployeeResp ¶
type ListEmployeeResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListEmployeeRespData `json:"data"` // 业务数据 }
func (*ListEmployeeResp) Success ¶
func (resp *ListEmployeeResp) Success() bool
type ListEmployeeRespData ¶
type ManagerBuilder ¶
type ManagerBuilder struct {
// contains filtered or unexported fields
}
func NewManagerBuilder ¶
func NewManagerBuilder() *ManagerBuilder
func (*ManagerBuilder) Build ¶
func (builder *ManagerBuilder) Build() *Manager
func (*ManagerBuilder) EnName ¶
func (builder *ManagerBuilder) EnName(enName string) *ManagerBuilder
英文名
示例值:Tom Li
func (*ManagerBuilder) Name ¶
func (builder *ManagerBuilder) Name(name string) *ManagerBuilder
中文名
示例值:李四
func (*ManagerBuilder) UserId ¶
func (builder *ManagerBuilder) UserId(userId string) *ManagerBuilder
上级的用户 ID(user_id)
示例值:ou_db362c0e79f5a26db1ca8e94698ee417
type NativeRegion ¶
type NativeRegionBuilder ¶
type NativeRegionBuilder struct {
// contains filtered or unexported fields
}
func NewNativeRegionBuilder ¶
func NewNativeRegionBuilder() *NativeRegionBuilder
func (*NativeRegionBuilder) Build ¶
func (builder *NativeRegionBuilder) Build() *NativeRegion
func (*NativeRegionBuilder) IsoCode ¶
func (builder *NativeRegionBuilder) IsoCode(isoCode string) *NativeRegionBuilder
ISO 编码
示例值:CHN-11
func (*NativeRegionBuilder) Name ¶
func (builder *NativeRegionBuilder) Name(name string) *NativeRegionBuilder
名称
示例值:北京
type SystemFields ¶
type SystemFields struct { Name *string `json:"name,omitempty"` // 中文姓名 EnName *string `json:"en_name,omitempty"` // 英文姓名 Email *string `json:"email,omitempty"` // 邮箱 Mobile *string `json:"mobile,omitempty"` // 手机号码 DepartmentId *string `json:"department_id,omitempty"` // 部门的飞书 open_department_id Manager *Manager `json:"manager,omitempty"` // 上级 Job *Job `json:"job,omitempty"` // 职位 JobLevel *JobLevel `json:"job_level,omitempty"` // 职级 WorkLocation *WorkLocation `json:"work_location,omitempty"` // 工作地点 Gender *int `json:"gender,omitempty"` // 性别 Birthday *string `json:"birthday,omitempty"` // 出生日期 NativeRegion *NativeRegion `json:"native_region,omitempty"` // 籍贯 Ethnicity *int `json:"ethnicity,omitempty"` // 民族 MaritalStatus *int `json:"marital_status,omitempty"` // 婚姻状况 PoliticalStatus *int `json:"political_status,omitempty"` // 政治面貌 EnteredWorkforceDate *string `json:"entered_workforce_date,omitempty"` // 参加工作日期 IdType *int `json:"id_type,omitempty"` // 证件类型 IdNumber *string `json:"id_number,omitempty"` // 证件号 HukouType *int `json:"hukou_type,omitempty"` // 户口类型 HukouLocation *string `json:"hukou_location,omitempty"` // 户口所在地 BankAccountNumber *string `json:"bank_account_number,omitempty"` // 银行卡号 BankName *string `json:"bank_name,omitempty"` // 开户行 SocialSecurityAccount *string `json:"social_security_account,omitempty"` // 社保账号 ProvidentFundAccount *string `json:"provident_fund_account,omitempty"` // 公积金账号 EmployeeNo *string `json:"employee_no,omitempty"` // 工号 EmployeeType *int `json:"employee_type,omitempty"` // 雇员类型 Status *int `json:"status,omitempty"` // 员工状态 HireDate *string `json:"hire_date,omitempty"` // 入职日期 ProbationMonths *float64 `json:"probation_months,omitempty"` // 试用期(月) ConversionDate *string `json:"conversion_date,omitempty"` // 转正日期 Application *int `json:"application,omitempty"` // 转正申请 ApplicationStatus *int `json:"application_status,omitempty"` // 转正状态 LastDay *string `json:"last_day,omitempty"` // 离职日期 DepartureType *int `json:"departure_type,omitempty"` // 离职类型 DepartureReason *int `json:"departure_reason,omitempty"` // 离职原因 DepartureNotes *string `json:"departure_notes,omitempty"` // 离职备注 ContractCompany *ContractCompany `json:"contract_company,omitempty"` // 合同公司 ContractType *int `json:"contract_type,omitempty"` // 合同类型 ContractStartDate *string `json:"contract_start_date,omitempty"` // 合同开始日期 ContractExpirationDate *string `json:"contract_expiration_date,omitempty"` // 合同到期日期 ContractSignTimes *int `json:"contract_sign_times,omitempty"` // 劳动合同签订次数 PersonalEmail *string `json:"personal_email,omitempty"` // 个人邮箱 FamilyAddress *string `json:"family_address,omitempty"` // 家庭地址 PrimaryEmergencyContact *EmergencyContact `json:"primary_emergency_contact,omitempty"` // 主要紧急联系人 EmergencyContact []*EmergencyContact `json:"emergency_contact,omitempty"` // 紧急联系人 HighestLevelOfEdu *Education `json:"highest_level_of_edu,omitempty"` // 最高学历 Education []*Education `json:"education,omitempty"` // 教育经历 FormerWorkExp *WorkExperience `json:"former_work_exp,omitempty"` // 前工作经历 WorkExp []*WorkExperience `json:"work_exp,omitempty"` // 工作经历 IdPhotoPoSide []*Attachment `json:"id_photo_po_side,omitempty"` // 身份证照片(人像面) IdPhotoEmSide []*Attachment `json:"id_photo_em_side,omitempty"` // 身份证照片(国徽面) IdPhoto []*Attachment `json:"id_photo,omitempty"` // 证件照 DiplomaPhoto []*Attachment `json:"diploma_photo,omitempty"` // 学位证书 GraduationCert []*Attachment `json:"graduation_cert,omitempty"` // 毕业证书 CertOfMerit []*Attachment `json:"cert_of_merit,omitempty"` // 奖励证明 OffboardingFile []*Attachment `json:"offboarding_file,omitempty"` // 离职证明 CancelOnboardingReason *int `json:"cancel_onboarding_reason,omitempty"` // 取消入职原因 CancelOnboardingNotes *string `json:"cancel_onboarding_notes,omitempty"` // 取消入职备注 EmployeeFormStatus *int `json:"employee_form_status,omitempty"` // 入职登记表状态 CreateTime *int64 `json:"create_time,omitempty"` // 创建时间 UpdateTime *int64 `json:"update_time,omitempty"` // 更新时间 }
type SystemFieldsBuilder ¶
type SystemFieldsBuilder struct {
// contains filtered or unexported fields
}
func NewSystemFieldsBuilder ¶
func NewSystemFieldsBuilder() *SystemFieldsBuilder
func (*SystemFieldsBuilder) Application ¶
func (builder *SystemFieldsBuilder) Application(application int) *SystemFieldsBuilder
转正申请
示例值:1
func (*SystemFieldsBuilder) ApplicationStatus ¶
func (builder *SystemFieldsBuilder) ApplicationStatus(applicationStatus int) *SystemFieldsBuilder
转正状态
示例值:2
func (*SystemFieldsBuilder) BankAccountNumber ¶
func (builder *SystemFieldsBuilder) BankAccountNumber(bankAccountNumber string) *SystemFieldsBuilder
银行卡号
示例值:1243253453
func (*SystemFieldsBuilder) BankName ¶
func (builder *SystemFieldsBuilder) BankName(bankName string) *SystemFieldsBuilder
开户行
示例值:招商银行
func (*SystemFieldsBuilder) Birthday ¶
func (builder *SystemFieldsBuilder) Birthday(birthday string) *SystemFieldsBuilder
出生日期
示例值:2020-01-01
func (*SystemFieldsBuilder) Build ¶
func (builder *SystemFieldsBuilder) Build() *SystemFields
func (*SystemFieldsBuilder) CancelOnboardingNotes ¶
func (builder *SystemFieldsBuilder) CancelOnboardingNotes(cancelOnboardingNotes string) *SystemFieldsBuilder
取消入职备注
示例值:个人原因
func (*SystemFieldsBuilder) CancelOnboardingReason ¶
func (builder *SystemFieldsBuilder) CancelOnboardingReason(cancelOnboardingReason int) *SystemFieldsBuilder
取消入职原因
示例值:2
func (*SystemFieldsBuilder) CertOfMerit ¶
func (builder *SystemFieldsBuilder) CertOfMerit(certOfMerit []*Attachment) *SystemFieldsBuilder
奖励证明
示例值:
func (*SystemFieldsBuilder) ContractCompany ¶
func (builder *SystemFieldsBuilder) ContractCompany(contractCompany *ContractCompany) *SystemFieldsBuilder
合同公司
示例值:
func (*SystemFieldsBuilder) ContractExpirationDate ¶
func (builder *SystemFieldsBuilder) ContractExpirationDate(contractExpirationDate string) *SystemFieldsBuilder
合同到期日期
示例值:2020-01-01
func (*SystemFieldsBuilder) ContractSignTimes ¶
func (builder *SystemFieldsBuilder) ContractSignTimes(contractSignTimes int) *SystemFieldsBuilder
劳动合同签订次数
示例值:2
func (*SystemFieldsBuilder) ContractStartDate ¶
func (builder *SystemFieldsBuilder) ContractStartDate(contractStartDate string) *SystemFieldsBuilder
合同开始日期
示例值:2020-01-01
func (*SystemFieldsBuilder) ContractType ¶
func (builder *SystemFieldsBuilder) ContractType(contractType int) *SystemFieldsBuilder
合同类型
示例值:1
func (*SystemFieldsBuilder) ConversionDate ¶
func (builder *SystemFieldsBuilder) ConversionDate(conversionDate string) *SystemFieldsBuilder
转正日期
示例值:2020-01-01
func (*SystemFieldsBuilder) CreateTime ¶
func (builder *SystemFieldsBuilder) CreateTime(createTime int64) *SystemFieldsBuilder
创建时间
示例值:1608690517811
func (*SystemFieldsBuilder) DepartmentId ¶
func (builder *SystemFieldsBuilder) DepartmentId(departmentId string) *SystemFieldsBuilder
部门的飞书 open_department_id
示例值:od-4d551617a5da3cec26666d33175dc8ca
func (*SystemFieldsBuilder) DepartureNotes ¶
func (builder *SystemFieldsBuilder) DepartureNotes(departureNotes string) *SystemFieldsBuilder
离职备注
示例值:世界那么大
func (*SystemFieldsBuilder) DepartureReason ¶
func (builder *SystemFieldsBuilder) DepartureReason(departureReason int) *SystemFieldsBuilder
离职原因
示例值:4
func (*SystemFieldsBuilder) DepartureType ¶
func (builder *SystemFieldsBuilder) DepartureType(departureType int) *SystemFieldsBuilder
离职类型
示例值:1
func (*SystemFieldsBuilder) DiplomaPhoto ¶
func (builder *SystemFieldsBuilder) DiplomaPhoto(diplomaPhoto []*Attachment) *SystemFieldsBuilder
学位证书
示例值:
func (*SystemFieldsBuilder) Education ¶
func (builder *SystemFieldsBuilder) Education(education []*Education) *SystemFieldsBuilder
教育经历
示例值:
func (*SystemFieldsBuilder) Email ¶
func (builder *SystemFieldsBuilder) Email(email string) *SystemFieldsBuilder
邮箱
示例值:a@b.com
func (*SystemFieldsBuilder) EmergencyContact ¶
func (builder *SystemFieldsBuilder) EmergencyContact(emergencyContact []*EmergencyContact) *SystemFieldsBuilder
紧急联系人
示例值:
func (*SystemFieldsBuilder) EmployeeFormStatus ¶
func (builder *SystemFieldsBuilder) EmployeeFormStatus(employeeFormStatus int) *SystemFieldsBuilder
入职登记表状态
示例值:1
func (*SystemFieldsBuilder) EmployeeNo ¶
func (builder *SystemFieldsBuilder) EmployeeNo(employeeNo string) *SystemFieldsBuilder
工号
示例值:TM-00001
func (*SystemFieldsBuilder) EmployeeType ¶
func (builder *SystemFieldsBuilder) EmployeeType(employeeType int) *SystemFieldsBuilder
雇员类型
示例值:1
func (*SystemFieldsBuilder) EnName ¶
func (builder *SystemFieldsBuilder) EnName(enName string) *SystemFieldsBuilder
英文姓名
示例值:Tony Zhang
func (*SystemFieldsBuilder) EnteredWorkforceDate ¶
func (builder *SystemFieldsBuilder) EnteredWorkforceDate(enteredWorkforceDate string) *SystemFieldsBuilder
参加工作日期
示例值:2020-01-01
func (*SystemFieldsBuilder) Ethnicity ¶
func (builder *SystemFieldsBuilder) Ethnicity(ethnicity int) *SystemFieldsBuilder
民族
示例值:2
func (*SystemFieldsBuilder) FamilyAddress ¶
func (builder *SystemFieldsBuilder) FamilyAddress(familyAddress string) *SystemFieldsBuilder
家庭地址
示例值:北京市海淀区XXXXX
func (*SystemFieldsBuilder) FormerWorkExp ¶
func (builder *SystemFieldsBuilder) FormerWorkExp(formerWorkExp *WorkExperience) *SystemFieldsBuilder
前工作经历
示例值:
func (*SystemFieldsBuilder) Gender ¶
func (builder *SystemFieldsBuilder) Gender(gender int) *SystemFieldsBuilder
性别
示例值:1
func (*SystemFieldsBuilder) GraduationCert ¶
func (builder *SystemFieldsBuilder) GraduationCert(graduationCert []*Attachment) *SystemFieldsBuilder
毕业证书
示例值:
func (*SystemFieldsBuilder) HighestLevelOfEdu ¶
func (builder *SystemFieldsBuilder) HighestLevelOfEdu(highestLevelOfEdu *Education) *SystemFieldsBuilder
最高学历
示例值:
func (*SystemFieldsBuilder) HireDate ¶
func (builder *SystemFieldsBuilder) HireDate(hireDate string) *SystemFieldsBuilder
入职日期
示例值:2020-01-01
func (*SystemFieldsBuilder) HukouLocation ¶
func (builder *SystemFieldsBuilder) HukouLocation(hukouLocation string) *SystemFieldsBuilder
户口所在地
示例值:北京市海淀区XXXX
func (*SystemFieldsBuilder) HukouType ¶
func (builder *SystemFieldsBuilder) HukouType(hukouType int) *SystemFieldsBuilder
户口类型
示例值:1
func (*SystemFieldsBuilder) IdNumber ¶
func (builder *SystemFieldsBuilder) IdNumber(idNumber string) *SystemFieldsBuilder
证件号
示例值:110122XXXXXX
func (*SystemFieldsBuilder) IdPhoto ¶
func (builder *SystemFieldsBuilder) IdPhoto(idPhoto []*Attachment) *SystemFieldsBuilder
证件照
示例值:
func (*SystemFieldsBuilder) IdPhotoEmSide ¶
func (builder *SystemFieldsBuilder) IdPhotoEmSide(idPhotoEmSide []*Attachment) *SystemFieldsBuilder
身份证照片(国徽面)
示例值:
func (*SystemFieldsBuilder) IdPhotoPoSide ¶
func (builder *SystemFieldsBuilder) IdPhotoPoSide(idPhotoPoSide []*Attachment) *SystemFieldsBuilder
身份证照片(人像面)
示例值:
func (*SystemFieldsBuilder) IdType ¶
func (builder *SystemFieldsBuilder) IdType(idType int) *SystemFieldsBuilder
证件类型
示例值:1
func (*SystemFieldsBuilder) Job ¶
func (builder *SystemFieldsBuilder) Job(job *Job) *SystemFieldsBuilder
职位
示例值:
func (*SystemFieldsBuilder) JobLevel ¶
func (builder *SystemFieldsBuilder) JobLevel(jobLevel *JobLevel) *SystemFieldsBuilder
职级
示例值:
func (*SystemFieldsBuilder) LastDay ¶
func (builder *SystemFieldsBuilder) LastDay(lastDay string) *SystemFieldsBuilder
离职日期
示例值:2020-01-01
func (*SystemFieldsBuilder) Manager ¶
func (builder *SystemFieldsBuilder) Manager(manager *Manager) *SystemFieldsBuilder
上级
示例值:
func (*SystemFieldsBuilder) MaritalStatus ¶
func (builder *SystemFieldsBuilder) MaritalStatus(maritalStatus int) *SystemFieldsBuilder
婚姻状况
示例值:2
func (*SystemFieldsBuilder) Mobile ¶
func (builder *SystemFieldsBuilder) Mobile(mobile string) *SystemFieldsBuilder
手机号码
示例值:(+86) 13812345678
func (*SystemFieldsBuilder) Name ¶
func (builder *SystemFieldsBuilder) Name(name string) *SystemFieldsBuilder
中文姓名
示例值:张三
func (*SystemFieldsBuilder) NativeRegion ¶
func (builder *SystemFieldsBuilder) NativeRegion(nativeRegion *NativeRegion) *SystemFieldsBuilder
籍贯
示例值:
func (*SystemFieldsBuilder) OffboardingFile ¶
func (builder *SystemFieldsBuilder) OffboardingFile(offboardingFile []*Attachment) *SystemFieldsBuilder
离职证明
示例值:
func (*SystemFieldsBuilder) PersonalEmail ¶
func (builder *SystemFieldsBuilder) PersonalEmail(personalEmail string) *SystemFieldsBuilder
个人邮箱
示例值:personal@email.com
func (*SystemFieldsBuilder) PoliticalStatus ¶
func (builder *SystemFieldsBuilder) PoliticalStatus(politicalStatus int) *SystemFieldsBuilder
政治面貌
示例值:2
func (*SystemFieldsBuilder) PrimaryEmergencyContact ¶
func (builder *SystemFieldsBuilder) PrimaryEmergencyContact(primaryEmergencyContact *EmergencyContact) *SystemFieldsBuilder
主要紧急联系人
示例值:
func (*SystemFieldsBuilder) ProbationMonths ¶
func (builder *SystemFieldsBuilder) ProbationMonths(probationMonths float64) *SystemFieldsBuilder
试用期(月)
示例值:2
func (*SystemFieldsBuilder) ProvidentFundAccount ¶
func (builder *SystemFieldsBuilder) ProvidentFundAccount(providentFundAccount string) *SystemFieldsBuilder
公积金账号
示例值:123124235
func (*SystemFieldsBuilder) SocialSecurityAccount ¶
func (builder *SystemFieldsBuilder) SocialSecurityAccount(socialSecurityAccount string) *SystemFieldsBuilder
社保账号
示例值:123124124
func (*SystemFieldsBuilder) Status ¶
func (builder *SystemFieldsBuilder) Status(status int) *SystemFieldsBuilder
员工状态
示例值:2
func (*SystemFieldsBuilder) UpdateTime ¶
func (builder *SystemFieldsBuilder) UpdateTime(updateTime int64) *SystemFieldsBuilder
更新时间
示例值:1608690517811
func (*SystemFieldsBuilder) WorkExp ¶
func (builder *SystemFieldsBuilder) WorkExp(workExp []*WorkExperience) *SystemFieldsBuilder
工作经历
示例值:
func (*SystemFieldsBuilder) WorkLocation ¶
func (builder *SystemFieldsBuilder) WorkLocation(workLocation *WorkLocation) *SystemFieldsBuilder
工作地点
示例值:
type WorkExperience ¶
type WorkExperience struct { Company *string `json:"company,omitempty"` // 公司 Department *string `json:"department,omitempty"` // 部门 Job *string `json:"job,omitempty"` // 职位 Start *string `json:"start,omitempty"` // 开始日期 End *string `json:"end,omitempty"` // 截止日期 Description *string `json:"description,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) Company ¶
func (builder *WorkExperienceBuilder) Company(company string) *WorkExperienceBuilder
公司
示例值:XXXX公司
func (*WorkExperienceBuilder) Department ¶
func (builder *WorkExperienceBuilder) Department(department string) *WorkExperienceBuilder
部门
示例值:部门1
func (*WorkExperienceBuilder) Description ¶
func (builder *WorkExperienceBuilder) Description(description string) *WorkExperienceBuilder
工作描述
示例值:工作描述
func (*WorkExperienceBuilder) End ¶
func (builder *WorkExperienceBuilder) End(end string) *WorkExperienceBuilder
截止日期
示例值:2020-01-01
func (*WorkExperienceBuilder) Job ¶
func (builder *WorkExperienceBuilder) Job(job string) *WorkExperienceBuilder
职位
示例值:职位
func (*WorkExperienceBuilder) Start ¶
func (builder *WorkExperienceBuilder) Start(start string) *WorkExperienceBuilder
开始日期
示例值:2020-01-01
type WorkLocation ¶
type WorkLocationBuilder ¶
type WorkLocationBuilder struct {
// contains filtered or unexported fields
}
func NewWorkLocationBuilder ¶
func NewWorkLocationBuilder() *WorkLocationBuilder
func (*WorkLocationBuilder) Build ¶
func (builder *WorkLocationBuilder) Build() *WorkLocation
func (*WorkLocationBuilder) Id ¶
func (builder *WorkLocationBuilder) Id(id int64) *WorkLocationBuilder
工作地点 ID
示例值:1695838220091399
func (*WorkLocationBuilder) Name ¶
func (builder *WorkLocationBuilder) Name(name string) *WorkLocationBuilder
工作地点名称
示例值:武汉