larkattendance

package
v3.4.6-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

View Source
const (
	EmployeeTypeEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeGetGroupEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeGetGroupEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	UserIdTypeLeaveBalancesLeaveUserIDTypeOpenID         = "open_id"          // 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。
	UserIdTypeLeaveBalancesLeaveUserIDTypePeopleCorehrID = "people_corehr_id" // 以飞书人事的 ID 来识别用户
	UserIdTypeLeaveBalancesLeaveUserIDTypeUnionID        = "union_id"         // 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。
	UserIdTypeLeaveBalancesLeaveUserIDTypeUserID         = "user_id"          // 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。
)
View Source
const (
	UserIdTypeGetLeaveEmployExpireRecordLeaveBalancesLeaveUserIDTypeOpenID         = "open_id"          // 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。
	UserIdTypeGetLeaveEmployExpireRecordLeaveBalancesLeaveUserIDTypePeopleCorehrID = "people_corehr_id" // 以飞书人事的ID来识别用户
	UserIdTypeGetLeaveEmployExpireRecordLeaveBalancesLeaveUserIDTypeUnionID        = "union_id"         // 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。
	UserIdTypeGetLeaveEmployExpireRecordLeaveBalancesLeaveUserIDTypeUserID         = "user_id"          // 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。
)
View Source
const (
	EmployeeTypeCreateShiftEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeCreateShiftEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeCreateUserApprovalEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeCreateUserApprovalEmployeeNo = "employee_no" // 员工工号
	EmployeeTypeCreateUserApprovalOpenId     = "open_id"     // 用户在某个应用中的身份
)
View Source
const (
	CheckDateTypePeriodTime = "PeriodTime" // 单据作用时间(即写入的end_time)
	CheckDateTypeCreateTime = "CreateTime" // 单据创建时间
	CheckDateTypeUpdateTime = "UpdateTime" // 单据状态更新时间
)
View Source
const (
	ApprovalStatusTodo     = 0 // 待审批
	ApprovalStatusRejected = 1 // 审批未通过
	ApprovalStatusApproved = 2 // 审批通过
	ApprovalStatusCanceled = 3 // 审批已取消
	ApprovalStatusReverted = 4 // 已撤回

)
View Source
const (
	EmployeeTypeQueryUserApprovalEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserApprovalEmployeeNo = "employee_no" // 员工工号
	EmployeeTypeQueryUserApprovalOpenId     = "open_id"     // 用户在某个应用中的身份
)
View Source
const (
	EmployeeTypeBatchCreateUserDailyShiftEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeBatchCreateUserDailyShiftEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeBatchCreateTempUserDailyShiftEmployeeID = "employee_id" // employee_id
	EmployeeTypeBatchCreateTempUserDailyShiftEmployeeNo = "employee_no" // employee_no
)
View Source
const (
	EmployeeTypeQueryUserDailyShiftEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserDailyShiftEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeBatchCreateUserFlowEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeBatchCreateUserFlowEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeGetUserFlowEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeGetUserFlowEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeQueryUserFlowEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserFlowEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeModifyUserSettingEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeModifyUserSettingEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeQueryUserSettingEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserSettingEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	LocaleEn = "en" // 英文
	LocaleJa = "ja" // 日文
	LocaleZh = "zh" // 中文
)
View Source
const (
	StatsTypeDaily = "daily" // 日度统计
	StatsTypeMonth = "month" // 月度统计
)
View Source
const (
	EmployeeTypeQueryUserStatsDataEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserStatsDataEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	LocaleQueryUserStatsFieldEn = "en" // 英文
	LocaleQueryUserStatsFieldJa = "ja" // 日文
	LocaleQueryUserStatsFieldZh = "zh" // 中文
)
View Source
const (
	StatsTypeQueryUserStatsFieldDaily = "daily" // 日度统计
	StatsTypeQueryUserStatsFieldMonth = "month" // 月度统计
)
View Source
const (
	EmployeeTypeQueryUserStatsFieldEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserStatsFieldEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	LocaleQueryUserStatsViewEn = "en" // 英文
	LocaleQueryUserStatsViewJa = "ja" // 日文
	LocaleQueryUserStatsViewZh = "zh" // 中文
)
View Source
const (
	StatsTypeQueryUserStatsViewDaily = "daily" // 日度统计
	StatsTypeQueryUserStatsViewMonth = "month" // 月度统计
)
View Source
const (
	EmployeeTypeQueryUserStatsViewEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserStatsViewEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeUpdateUserStatsViewEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeUpdateUserStatsViewEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeQueryUserTaskEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserTaskEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeCreateUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeCreateUserTaskRemedyEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	CheckDateTypeQueryUserTaskRemedyPeriodTime = "PeriodTime" // 单据作用时间(即remedy_time)
	CheckDateTypeQueryUserTaskRemedyCreateTime = "CreateTime" // 单据创建时间
	CheckDateTypeQueryUserTaskRemedyUpdateTime = "UpdateTime" // 单据状态更新时间
)
View Source
const (
	RemedyStatusPending  = 0 // 待审批
	RemedyStatusRejected = 1 // 未通过
	RemedyStatusPass     = 2 // 已通过
	RemedyStatusCancel   = 3 // 已取消
	RemedyStatusWithdraw = 4 // 已撤回

)
View Source
const (
	EmployeeTypeQueryUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserTaskRemedyEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	EmployeeTypeQueryUserAllowedRemedysUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId
	EmployeeTypeQueryUserAllowedRemedysUserTaskRemedyEmployeeNo = "employee_no" // 员工工号
)
View Source
const (
	DeptTypeGetGroupOpenId = "open_id" // 开放openID
)
View Source
const (
	DeptTypeOpenId = "open_id" // 开放openID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalDailyDetail added in v3.3.7

type ApprovalDailyDetail struct {
	Date *string `json:"date,omitempty"` // 日期

	Duration *string `json:"duration,omitempty"` // 加班时长

	OvertimeUnit *int `json:"overtime_unit,omitempty"` // 加班时长单位

	OvertimeDateType *int `json:"overtime_date_type,omitempty"` // 加班日期类型

	SettleTypeEnum *int `json:"settle_type_enum,omitempty"` // 加班结算方式类型
}

type ApprovalDailyDetailBuilder added in v3.3.7

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

func NewApprovalDailyDetailBuilder added in v3.3.7

func NewApprovalDailyDetailBuilder() *ApprovalDailyDetailBuilder

func (*ApprovalDailyDetailBuilder) Build added in v3.3.7

func (*ApprovalDailyDetailBuilder) Date added in v3.3.7

日期

示例值:2024-10-21

func (*ApprovalDailyDetailBuilder) Duration added in v3.3.7

func (builder *ApprovalDailyDetailBuilder) Duration(duration string) *ApprovalDailyDetailBuilder

加班时长

示例值:5

func (*ApprovalDailyDetailBuilder) OvertimeDateType added in v3.3.7

func (builder *ApprovalDailyDetailBuilder) OvertimeDateType(overtimeDateType int) *ApprovalDailyDetailBuilder

加班日期类型

示例值:

func (*ApprovalDailyDetailBuilder) OvertimeUnit added in v3.3.7

func (builder *ApprovalDailyDetailBuilder) OvertimeUnit(overtimeUnit int) *ApprovalDailyDetailBuilder

加班时长单位

示例值:

func (*ApprovalDailyDetailBuilder) SettleTypeEnum added in v3.3.7

func (builder *ApprovalDailyDetailBuilder) SettleTypeEnum(settleTypeEnum int) *ApprovalDailyDetailBuilder

加班结算方式类型

示例值:1

type ApprovalInfo

type ApprovalInfo struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID

	ApprovalType *string `json:"approval_type,omitempty"` // 审批类型

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

type ApprovalInfoBuilder

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

func NewApprovalInfoBuilder

func NewApprovalInfoBuilder() *ApprovalInfoBuilder

func (*ApprovalInfoBuilder) ApprovalId

func (builder *ApprovalInfoBuilder) ApprovalId(approvalId string) *ApprovalInfoBuilder

审批实例 ID

示例值:6737202939523236113

func (*ApprovalInfoBuilder) ApprovalType

func (builder *ApprovalInfoBuilder) ApprovalType(approvalType string) *ApprovalInfoBuilder

审批类型

示例值:remedy

func (*ApprovalInfoBuilder) Build

func (builder *ApprovalInfoBuilder) Build() *ApprovalInfo

func (*ApprovalInfoBuilder) Status

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

审批状态

示例值:0

type ArchiveField added in v3.2.5

type ArchiveField struct {
	Code *string `json:"code,omitempty"` // 字段编号

	Title *string `json:"title,omitempty"` // 字段名称

	UpperTitles []string `json:"upper_titles,omitempty"` // 一级表头名字
}

type ArchiveFieldBuilder added in v3.2.5

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

func NewArchiveFieldBuilder added in v3.2.5

func NewArchiveFieldBuilder() *ArchiveFieldBuilder

func (*ArchiveFieldBuilder) Build added in v3.2.5

func (builder *ArchiveFieldBuilder) Build() *ArchiveField

func (*ArchiveFieldBuilder) Code added in v3.2.5

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

字段编号

示例值:1

func (*ArchiveFieldBuilder) Title added in v3.2.5

func (builder *ArchiveFieldBuilder) Title(title string) *ArchiveFieldBuilder

字段名称

示例值:工号

func (*ArchiveFieldBuilder) UpperTitles added in v3.2.5

func (builder *ArchiveFieldBuilder) UpperTitles(upperTitles []string) *ArchiveFieldBuilder

一级表头名字

示例值:

type ArchiveFieldData added in v3.2.3

type ArchiveFieldData struct {
	Code *string `json:"code,omitempty"` // 字段编码(查询归档报表表头返回)

	Value *string `json:"value,omitempty"` // 字段结果值
}

type ArchiveFieldDataBuilder added in v3.2.3

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

func NewArchiveFieldDataBuilder added in v3.2.3

func NewArchiveFieldDataBuilder() *ArchiveFieldDataBuilder

func (*ArchiveFieldDataBuilder) Build added in v3.2.3

func (builder *ArchiveFieldDataBuilder) Build() *ArchiveFieldData

func (*ArchiveFieldDataBuilder) Code added in v3.2.3

字段编码(查询归档报表表头返回)

示例值:abd754f7

func (*ArchiveFieldDataBuilder) Value added in v3.2.3

字段结果值

示例值:1

type ArchiveReportData added in v3.2.3

type ArchiveReportData struct {
	MemberId *string `json:"member_id,omitempty"` // 用户ID

	StartTime *string `json:"start_time,omitempty"` // 考勤开始时间

	EndTime *string `json:"end_time,omitempty"` // 考勤结束时间

	FieldDatas []*ArchiveFieldData `json:"field_datas,omitempty"` // 字段结果(不超过200个)
}

type ArchiveReportDataBuilder added in v3.2.3

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

func NewArchiveReportDataBuilder added in v3.2.3

func NewArchiveReportDataBuilder() *ArchiveReportDataBuilder

func (*ArchiveReportDataBuilder) Build added in v3.2.3

func (builder *ArchiveReportDataBuilder) Build() *ArchiveReportData

func (*ArchiveReportDataBuilder) EndTime added in v3.2.3

func (builder *ArchiveReportDataBuilder) EndTime(endTime string) *ArchiveReportDataBuilder

考勤结束时间

示例值:20210109

func (*ArchiveReportDataBuilder) FieldDatas added in v3.2.3

func (builder *ArchiveReportDataBuilder) FieldDatas(fieldDatas []*ArchiveFieldData) *ArchiveReportDataBuilder

字段结果(不超过200个)

示例值:

func (*ArchiveReportDataBuilder) MemberId added in v3.2.3

func (builder *ArchiveReportDataBuilder) MemberId(memberId string) *ArchiveReportDataBuilder

用户ID

示例值:1aaxxd

func (*ArchiveReportDataBuilder) StartTime added in v3.2.3

func (builder *ArchiveReportDataBuilder) StartTime(startTime string) *ArchiveReportDataBuilder

考勤开始时间

示例值:20210109

type ArchiveReportMeta added in v3.2.3

type ArchiveReportMeta struct {
	ReportId *string `json:"report_id,omitempty"` // 引用报表 ID

	ReportName *I18nMap `json:"report_name,omitempty"` // 引用报表name

	ArchiveRuleId *string `json:"archive_rule_id,omitempty"` // 归档报表规则id

	ArchiveRuleName *I18nMap `json:"archive_rule_name,omitempty"` // 归档报表name
}

type ArchiveReportMetaBuilder added in v3.2.3

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

func NewArchiveReportMetaBuilder added in v3.2.3

func NewArchiveReportMetaBuilder() *ArchiveReportMetaBuilder

func (*ArchiveReportMetaBuilder) ArchiveRuleId added in v3.2.3

func (builder *ArchiveReportMetaBuilder) ArchiveRuleId(archiveRuleId string) *ArchiveReportMetaBuilder

归档报表规则id

示例值:7341290237441605652

func (*ArchiveReportMetaBuilder) ArchiveRuleName added in v3.2.3

func (builder *ArchiveReportMetaBuilder) ArchiveRuleName(archiveRuleName *I18nMap) *ArchiveReportMetaBuilder

归档报表name

示例值:归档全员

func (*ArchiveReportMetaBuilder) Build added in v3.2.3

func (builder *ArchiveReportMetaBuilder) Build() *ArchiveReportMeta

func (*ArchiveReportMetaBuilder) ReportId added in v3.2.3

func (builder *ArchiveReportMetaBuilder) ReportId(reportId string) *ArchiveReportMetaBuilder

引用报表 ID

示例值:7341290237441605652

func (*ArchiveReportMetaBuilder) ReportName added in v3.2.3

func (builder *ArchiveReportMetaBuilder) ReportName(reportName *I18nMap) *ArchiveReportMetaBuilder

引用报表name

示例值:月报汇总

type Area

type Area struct {
	Type *string `json:"type,omitempty"` // 区域类型

	Center *Coordinate `json:"center,omitempty"` // 中心点

	Radius *string `json:"radius,omitempty"` // 半径

	Coords []*Coordinate `json:"coords,omitempty"` //
}

type AreaBuilder

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

func NewAreaBuilder

func NewAreaBuilder() *AreaBuilder

func (*AreaBuilder) Build

func (builder *AreaBuilder) Build() *Area

func (*AreaBuilder) Center

func (builder *AreaBuilder) Center(center *Coordinate) *AreaBuilder

中心点

示例值:

func (*AreaBuilder) Coords

func (builder *AreaBuilder) Coords(coords []*Coordinate) *AreaBuilder

示例值:

func (*AreaBuilder) Radius

func (builder *AreaBuilder) Radius(radius string) *AreaBuilder

半径

示例值:

func (*AreaBuilder) Type

func (builder *AreaBuilder) Type(type_ string) *AreaBuilder

区域类型

示例值:

type ArrangeShiftGroup added in v3.0.32

type ArrangeShiftGroup struct {
	ShiftGroupId *string `json:"shift_group_id,omitempty"` // 班组id

	GroupId *string `json:"group_id,omitempty"` // 考勤组id

	ShiftGroupName *string `json:"shift_group_name,omitempty"` // 班组名称
}

type ArrangeShiftGroupBuilder added in v3.0.32

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

func NewArrangeShiftGroupBuilder added in v3.0.32

func NewArrangeShiftGroupBuilder() *ArrangeShiftGroupBuilder

func (*ArrangeShiftGroupBuilder) Build added in v3.0.32

func (builder *ArrangeShiftGroupBuilder) Build() *ArrangeShiftGroup

func (*ArrangeShiftGroupBuilder) GroupId added in v3.0.32

func (builder *ArrangeShiftGroupBuilder) GroupId(groupId string) *ArrangeShiftGroupBuilder

考勤组id

示例值:7171200888781537301

func (*ArrangeShiftGroupBuilder) ShiftGroupId added in v3.0.32

func (builder *ArrangeShiftGroupBuilder) ShiftGroupId(shiftGroupId string) *ArrangeShiftGroupBuilder

班组id

示例值:7071200888781537300

func (*ArrangeShiftGroupBuilder) ShiftGroupName added in v3.0.32

func (builder *ArrangeShiftGroupBuilder) ShiftGroupName(shiftGroupName string) *ArrangeShiftGroupBuilder

班组名称

示例值:班组-测试班组

type BatchCreateTempUserDailyShiftPathReqBodyBuilder added in v3.4.5

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

func NewBatchCreateTempUserDailyShiftPathReqBodyBuilder added in v3.4.5

func NewBatchCreateTempUserDailyShiftPathReqBodyBuilder() *BatchCreateTempUserDailyShiftPathReqBodyBuilder

func (*BatchCreateTempUserDailyShiftPathReqBodyBuilder) Build added in v3.4.5

func (*BatchCreateTempUserDailyShiftPathReqBodyBuilder) OperatorId added in v3.4.5

操作人uid

示例值:dd31248a

func (*BatchCreateTempUserDailyShiftPathReqBodyBuilder) UserTmpDailyShifts added in v3.4.5

临时班表信息列表(数量限制50以内)

示例值:

type BatchCreateTempUserDailyShiftReq added in v3.4.5

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

type BatchCreateTempUserDailyShiftReqBody added in v3.4.5

type BatchCreateTempUserDailyShiftReqBody struct {
	UserTmpDailyShifts []*UserTmpDailyShift `json:"user_tmp_daily_shifts,omitempty"` // 临时班表信息列表(数量限制50以内)

	OperatorId *string `json:"operator_id,omitempty"` // 操作人uid
}

type BatchCreateTempUserDailyShiftReqBodyBuilder added in v3.4.5

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

func NewBatchCreateTempUserDailyShiftReqBodyBuilder added in v3.4.5

func NewBatchCreateTempUserDailyShiftReqBodyBuilder() *BatchCreateTempUserDailyShiftReqBodyBuilder

func (*BatchCreateTempUserDailyShiftReqBodyBuilder) Build added in v3.4.5

func (*BatchCreateTempUserDailyShiftReqBodyBuilder) OperatorId added in v3.4.5

操作人uid

示例值:dd31248a

func (*BatchCreateTempUserDailyShiftReqBodyBuilder) UserTmpDailyShifts added in v3.4.5

临时班表信息列表(数量限制50以内)

示例值:

type BatchCreateTempUserDailyShiftReqBuilder added in v3.4.5

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

func NewBatchCreateTempUserDailyShiftReqBuilder added in v3.4.5

func NewBatchCreateTempUserDailyShiftReqBuilder() *BatchCreateTempUserDailyShiftReqBuilder

func (*BatchCreateTempUserDailyShiftReqBuilder) Body added in v3.4.5

func (*BatchCreateTempUserDailyShiftReqBuilder) Build added in v3.4.5

func (*BatchCreateTempUserDailyShiftReqBuilder) EmployeeType added in v3.4.5

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

type BatchCreateTempUserDailyShiftResp added in v3.4.5

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

func (*BatchCreateTempUserDailyShiftResp) Success added in v3.4.5

func (resp *BatchCreateTempUserDailyShiftResp) Success() bool

type BatchCreateTempUserDailyShiftRespData added in v3.4.5

type BatchCreateTempUserDailyShiftRespData struct {
	UserTmpDailyShifts []*UserTmpDailyShift `json:"user_tmp_daily_shifts,omitempty"` // 临时班表信息列表
}

type BatchCreateUserDailyShiftPathReqBodyBuilder

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

func NewBatchCreateUserDailyShiftPathReqBodyBuilder

func NewBatchCreateUserDailyShiftPathReqBodyBuilder() *BatchCreateUserDailyShiftPathReqBodyBuilder

func (*BatchCreateUserDailyShiftPathReqBodyBuilder) Build

func (*BatchCreateUserDailyShiftPathReqBodyBuilder) OperatorId

操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段

示例值:dd31248a

func (*BatchCreateUserDailyShiftPathReqBodyBuilder) UserDailyShifts

班表信息列表(数量限制50以内)

示例值:

type BatchCreateUserDailyShiftReq

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

type BatchCreateUserDailyShiftReqBody

type BatchCreateUserDailyShiftReqBody struct {
	UserDailyShifts []*UserDailyShift `json:"user_daily_shifts,omitempty"` // 班表信息列表(数量限制50以内)

	OperatorId *string `json:"operator_id,omitempty"` // 操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段
}

type BatchCreateUserDailyShiftReqBodyBuilder

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

func NewBatchCreateUserDailyShiftReqBodyBuilder

func NewBatchCreateUserDailyShiftReqBodyBuilder() *BatchCreateUserDailyShiftReqBodyBuilder

func (*BatchCreateUserDailyShiftReqBodyBuilder) Build

func (*BatchCreateUserDailyShiftReqBodyBuilder) OperatorId

操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段

示例值:dd31248a

func (*BatchCreateUserDailyShiftReqBodyBuilder) UserDailyShifts

班表信息列表(数量限制50以内)

示例值:

type BatchCreateUserDailyShiftReqBuilder

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

func NewBatchCreateUserDailyShiftReqBuilder

func NewBatchCreateUserDailyShiftReqBuilder() *BatchCreateUserDailyShiftReqBuilder

func (*BatchCreateUserDailyShiftReqBuilder) Body

班表是用来描述考勤组内人员每天按哪个班次进行上班。目前班表支持按一个整月对一位或多位人员进行排班。

func (*BatchCreateUserDailyShiftReqBuilder) Build

func (*BatchCreateUserDailyShiftReqBuilder) EmployeeType

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

type BatchCreateUserDailyShiftResp

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

func (*BatchCreateUserDailyShiftResp) Success

func (resp *BatchCreateUserDailyShiftResp) Success() bool

type BatchCreateUserDailyShiftRespData

type BatchCreateUserDailyShiftRespData struct {
	UserDailyShifts []*UserDailyShift `json:"user_daily_shifts,omitempty"` // 班表信息列表
}

type BatchCreateUserFlowPathReqBodyBuilder

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

func NewBatchCreateUserFlowPathReqBodyBuilder

func NewBatchCreateUserFlowPathReqBodyBuilder() *BatchCreateUserFlowPathReqBodyBuilder

func (*BatchCreateUserFlowPathReqBodyBuilder) Build

func (*BatchCreateUserFlowPathReqBodyBuilder) FlowRecords

打卡流水记录列表(数量限制50)

示例值:

type BatchCreateUserFlowReq

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

type BatchCreateUserFlowReqBody

type BatchCreateUserFlowReqBody struct {
	FlowRecords []*UserFlow `json:"flow_records,omitempty"` // 打卡流水记录列表(数量限制50)
}

type BatchCreateUserFlowReqBodyBuilder

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

func NewBatchCreateUserFlowReqBodyBuilder

func NewBatchCreateUserFlowReqBodyBuilder() *BatchCreateUserFlowReqBodyBuilder

func (*BatchCreateUserFlowReqBodyBuilder) Build

func (*BatchCreateUserFlowReqBodyBuilder) FlowRecords

打卡流水记录列表(数量限制50)

示例值:

type BatchCreateUserFlowReqBuilder

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

func NewBatchCreateUserFlowReqBuilder

func NewBatchCreateUserFlowReqBuilder() *BatchCreateUserFlowReqBuilder

func (*BatchCreateUserFlowReqBuilder) Body

导入授权内员工的打卡流水记录。导入后,会根据员工所在的考勤组班次规则,计算最终的打卡状态与结果。

func (*BatchCreateUserFlowReqBuilder) Build

func (*BatchCreateUserFlowReqBuilder) EmployeeType

func (builder *BatchCreateUserFlowReqBuilder) EmployeeType(employeeType string) *BatchCreateUserFlowReqBuilder

请求体和响应体中的 user_id 和 creator_id 的员工工号类型

示例值:employee_id

type BatchCreateUserFlowResp

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

func (*BatchCreateUserFlowResp) Success

func (resp *BatchCreateUserFlowResp) Success() bool

type BatchCreateUserFlowRespData

type BatchCreateUserFlowRespData struct {
	FlowRecords []*UserFlow `json:"flow_records,omitempty"` // 打卡流水记录列表
}

type ChildField

type ChildField struct {
	Code *string `json:"code,omitempty"` // 子字段编号

	Title *string `json:"title,omitempty"` // 子字段名称

	TimeUnit *string `json:"time_unit,omitempty"` // 时间单位
}

type ChildFieldBuilder

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

func NewChildFieldBuilder

func NewChildFieldBuilder() *ChildFieldBuilder

func (*ChildFieldBuilder) Build

func (builder *ChildFieldBuilder) Build() *ChildField

func (*ChildFieldBuilder) Code

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

子字段编号

示例值:50121

func (*ChildFieldBuilder) TimeUnit

func (builder *ChildFieldBuilder) TimeUnit(timeUnit string) *ChildFieldBuilder

时间单位

示例值:

func (*ChildFieldBuilder) Title

func (builder *ChildFieldBuilder) Title(title string) *ChildFieldBuilder

子字段名称

示例值:工号

type ChildItem

type ChildItem struct {
	Code *string `json:"code,omitempty"` // 子标题编号

	Value *string `json:"value,omitempty"` // 开关字段,0:关闭,1:开启(非开关字段场景:code = 51501 可选值为1-6)

	Title *string `json:"title,omitempty"` // 子标题名称

	ColumnType *int `json:"column_type,omitempty"` // 列类型

	ReadOnly *bool `json:"read_only,omitempty"` // 是否只读

	MinValue *string `json:"min_value,omitempty"` // 最小值

	MaxValue *string `json:"max_value,omitempty"` // 最大值
}

type ChildItemBuilder

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

func NewChildItemBuilder

func NewChildItemBuilder() *ChildItemBuilder

func (*ChildItemBuilder) Build

func (builder *ChildItemBuilder) Build() *ChildItem

func (*ChildItemBuilder) Code

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

子标题编号

示例值:50101

func (*ChildItemBuilder) ColumnType

func (builder *ChildItemBuilder) ColumnType(columnType int) *ChildItemBuilder

列类型

示例值:

func (*ChildItemBuilder) MaxValue

func (builder *ChildItemBuilder) MaxValue(maxValue string) *ChildItemBuilder

最大值

示例值:

func (*ChildItemBuilder) MinValue

func (builder *ChildItemBuilder) MinValue(minValue string) *ChildItemBuilder

最小值

示例值:

func (*ChildItemBuilder) ReadOnly

func (builder *ChildItemBuilder) ReadOnly(readOnly bool) *ChildItemBuilder

是否只读

示例值:

func (*ChildItemBuilder) Title

func (builder *ChildItemBuilder) Title(title string) *ChildItemBuilder

子标题名称

示例值:工号

func (*ChildItemBuilder) Value

func (builder *ChildItemBuilder) Value(value string) *ChildItemBuilder

开关字段,0:关闭,1:开启(非开关字段场景:code = 51501 可选值为1-6)

示例值:0

type Coordinate

type Coordinate struct {
	Longitude *float64 `json:"longitude,omitempty"` // 经度

	Latitude *float64 `json:"latitude,omitempty"` // 纬度

	Accuracy *float64 `json:"accuracy,omitempty"` // 精度
}

type CoordinateBuilder

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

func NewCoordinateBuilder

func NewCoordinateBuilder() *CoordinateBuilder

func (*CoordinateBuilder) Accuracy

func (builder *CoordinateBuilder) Accuracy(accuracy float64) *CoordinateBuilder

精度

示例值:

func (*CoordinateBuilder) Build

func (builder *CoordinateBuilder) Build() *Coordinate

func (*CoordinateBuilder) Latitude

func (builder *CoordinateBuilder) Latitude(latitude float64) *CoordinateBuilder

纬度

示例值:

func (*CoordinateBuilder) Longitude

func (builder *CoordinateBuilder) Longitude(longitude float64) *CoordinateBuilder

经度

示例值:

type CreateGroupPathReqBodyBuilder

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

func NewCreateGroupPathReqBodyBuilder

func NewCreateGroupPathReqBodyBuilder() *CreateGroupPathReqBodyBuilder

func (*CreateGroupPathReqBodyBuilder) Build

func (*CreateGroupPathReqBodyBuilder) Group

6921319402260496386

示例值:

func (*CreateGroupPathReqBodyBuilder) OperatorId

func (builder *CreateGroupPathReqBodyBuilder) OperatorId(operatorId string) *CreateGroupPathReqBodyBuilder

操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段

示例值:dd31248a

type CreateGroupReq

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

type CreateGroupReqBody

type CreateGroupReqBody struct {
	Group *Group `json:"group,omitempty"` // 6921319402260496386

	OperatorId *string `json:"operator_id,omitempty"` // 操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段
}

type CreateGroupReqBodyBuilder

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

func NewCreateGroupReqBodyBuilder

func NewCreateGroupReqBodyBuilder() *CreateGroupReqBodyBuilder

func (*CreateGroupReqBodyBuilder) Build

func (*CreateGroupReqBodyBuilder) Group

6921319402260496386

示例值:

func (*CreateGroupReqBodyBuilder) OperatorId

func (builder *CreateGroupReqBodyBuilder) OperatorId(operatorId string) *CreateGroupReqBodyBuilder

操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段

示例值:dd31248a

type CreateGroupReqBuilder

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

func NewCreateGroupReqBuilder

func NewCreateGroupReqBuilder() *CreateGroupReqBuilder

func (*CreateGroupReqBuilder) Body

考勤组,是对部门或者员工在某个特定场所及特定时间段内的出勤情况(包括上下班、迟到、早退、病假、婚假、丧假、公休、工作时间、加班情况等)的一种规则设定。;;通过设置考勤组,可以从部门、员工两个维度,来设定考勤方式、考勤时间、考勤地点等考勤规则。

func (*CreateGroupReqBuilder) Build

func (builder *CreateGroupReqBuilder) Build() *CreateGroupReq

func (*CreateGroupReqBuilder) DeptType

func (builder *CreateGroupReqBuilder) DeptType(deptType string) *CreateGroupReqBuilder

部门 ID 的类型

示例值:od-fcb45c28a45311afd441b8869541ece8

func (*CreateGroupReqBuilder) EmployeeType

func (builder *CreateGroupReqBuilder) EmployeeType(employeeType string) *CreateGroupReqBuilder

用户 ID 的类型

示例值:employee_id

type CreateGroupResp

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

func (*CreateGroupResp) Success

func (resp *CreateGroupResp) Success() bool

type CreateGroupRespData

type CreateGroupRespData struct {
	Group *Group `json:"group,omitempty"` // 6921319402260496386
}

type CreateShiftReq

type CreateShiftReq struct {
	Shift *Shift `body:""`
	// contains filtered or unexported fields
}

type CreateShiftReqBuilder

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

func NewCreateShiftReqBuilder

func NewCreateShiftReqBuilder() *CreateShiftReqBuilder

func (*CreateShiftReqBuilder) Build

func (builder *CreateShiftReqBuilder) Build() *CreateShiftReq

func (*CreateShiftReqBuilder) EmployeeType added in v3.3.3

func (builder *CreateShiftReqBuilder) EmployeeType(employeeType string) *CreateShiftReqBuilder

用户 ID 的类型 不提供则用户相关字段无效

示例值:

func (*CreateShiftReqBuilder) Shift

func (builder *CreateShiftReqBuilder) Shift(shift *Shift) *CreateShiftReqBuilder

班次是描述一次考勤任务时间规则的统称,比如一天打多少次卡,每次卡的上下班时间,晚到多长时间算迟到,晚到多长时间算缺卡等。

type CreateShiftResp

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

func (*CreateShiftResp) Success

func (resp *CreateShiftResp) Success() bool

type CreateShiftRespData

type CreateShiftRespData struct {
	Shift *Shift `json:"shift,omitempty"` // 班次
}

type CreateUserApprovalPathReqBodyBuilder

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

func NewCreateUserApprovalPathReqBodyBuilder

func NewCreateUserApprovalPathReqBodyBuilder() *CreateUserApprovalPathReqBodyBuilder

func (*CreateUserApprovalPathReqBodyBuilder) Build

func (*CreateUserApprovalPathReqBodyBuilder) UserApproval

审批信息

示例值:

type CreateUserApprovalReq

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

type CreateUserApprovalReqBody

type CreateUserApprovalReqBody struct {
	UserApproval *UserApproval `json:"user_approval,omitempty"` // 审批信息
}

type CreateUserApprovalReqBodyBuilder

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

func NewCreateUserApprovalReqBodyBuilder

func NewCreateUserApprovalReqBodyBuilder() *CreateUserApprovalReqBodyBuilder

func (*CreateUserApprovalReqBodyBuilder) Build

func (*CreateUserApprovalReqBodyBuilder) UserApproval

审批信息

示例值:

type CreateUserApprovalReqBuilder

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

func NewCreateUserApprovalReqBuilder

func NewCreateUserApprovalReqBuilder() *CreateUserApprovalReqBuilder

func (*CreateUserApprovalReqBuilder) Body

由于部分企业使用的是自己的审批系统,而不是飞书审批系统,因此员工的请假、加班等数据无法流入到飞书考勤系统中,导致员工在请假时间段内依然收到打卡提醒,并且被记为缺卡。;;对于这些只使用飞书考勤系统,而未使用飞书审批系统的企业,可以通过考勤开放接口的形式,将三方审批结果数据回写到飞书考勤系统中。

func (*CreateUserApprovalReqBuilder) Build

func (*CreateUserApprovalReqBuilder) EmployeeType

func (builder *CreateUserApprovalReqBuilder) EmployeeType(employeeType string) *CreateUserApprovalReqBuilder

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

type CreateUserApprovalResp

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

func (*CreateUserApprovalResp) Success

func (resp *CreateUserApprovalResp) Success() bool

type CreateUserApprovalRespData

type CreateUserApprovalRespData struct {
	UserApproval *UserApproval `json:"user_approval,omitempty"` // 审批信息
}

type CreateUserTaskRemedyReq

type CreateUserTaskRemedyReq struct {
	UserTaskRemedy *UserTaskRemedy `body:""`
	// contains filtered or unexported fields
}

type CreateUserTaskRemedyReqBuilder

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

func NewCreateUserTaskRemedyReqBuilder

func NewCreateUserTaskRemedyReqBuilder() *CreateUserTaskRemedyReqBuilder

func (*CreateUserTaskRemedyReqBuilder) Build

func (*CreateUserTaskRemedyReqBuilder) EmployeeType

func (builder *CreateUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *CreateUserTaskRemedyReqBuilder

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

func (*CreateUserTaskRemedyReqBuilder) UserTaskRemedy

func (builder *CreateUserTaskRemedyReqBuilder) UserTaskRemedy(userTaskRemedy *UserTaskRemedy) *CreateUserTaskRemedyReqBuilder

对于只使用飞书考勤系统而未使用飞书审批系统的企业,可以通过该接口,将在三方审批系统中发起的补卡审批数据,写入到飞书考勤系统中,状态为审批中。写入后可以由[通知审批状态更新](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/approval_info/process) 进行状态更新

type CreateUserTaskRemedyResp

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

func (*CreateUserTaskRemedyResp) Success

func (resp *CreateUserTaskRemedyResp) Success() bool

type CreateUserTaskRemedyRespData

type CreateUserTaskRemedyRespData struct {
	UserRemedy *UserTaskRemedy `json:"user_remedy,omitempty"` // 补卡审批信息
}

type DelReportArchiveRulePathReqBodyBuilder added in v3.3.1

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

func NewDelReportArchiveRulePathReqBodyBuilder added in v3.3.1

func NewDelReportArchiveRulePathReqBodyBuilder() *DelReportArchiveRulePathReqBodyBuilder

func (*DelReportArchiveRulePathReqBodyBuilder) ArchiveRuleId added in v3.3.1

归档规则id

示例值:1

func (*DelReportArchiveRulePathReqBodyBuilder) Build added in v3.3.1

func (*DelReportArchiveRulePathReqBodyBuilder) Month added in v3.3.1

月份

示例值:202409

func (*DelReportArchiveRulePathReqBodyBuilder) OperatorId added in v3.3.1

操作者ID

示例值:a111xd

func (*DelReportArchiveRulePathReqBodyBuilder) UserIds added in v3.3.1

用户id

示例值:

type DelReportArchiveRuleReq added in v3.3.1

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

type DelReportArchiveRuleReqBody added in v3.3.1

type DelReportArchiveRuleReqBody struct {
	Month *string `json:"month,omitempty"` // 月份

	OperatorId *string `json:"operator_id,omitempty"` // 操作者ID

	ArchiveRuleId *string `json:"archive_rule_id,omitempty"` // 归档规则id

	UserIds []string `json:"user_ids,omitempty"` // 用户id
}

type DelReportArchiveRuleReqBodyBuilder added in v3.3.1

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

func NewDelReportArchiveRuleReqBodyBuilder added in v3.3.1

func NewDelReportArchiveRuleReqBodyBuilder() *DelReportArchiveRuleReqBodyBuilder

func (*DelReportArchiveRuleReqBodyBuilder) ArchiveRuleId added in v3.3.1

func (builder *DelReportArchiveRuleReqBodyBuilder) ArchiveRuleId(archiveRuleId string) *DelReportArchiveRuleReqBodyBuilder

归档规则id

示例值:1

func (*DelReportArchiveRuleReqBodyBuilder) Build added in v3.3.1

func (*DelReportArchiveRuleReqBodyBuilder) Month added in v3.3.1

月份

示例值:202409

func (*DelReportArchiveRuleReqBodyBuilder) OperatorId added in v3.3.1

操作者ID

示例值:a111xd

func (*DelReportArchiveRuleReqBodyBuilder) UserIds added in v3.3.1

用户id

示例值:

type DelReportArchiveRuleReqBuilder added in v3.3.1

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

func NewDelReportArchiveRuleReqBuilder added in v3.3.1

func NewDelReportArchiveRuleReqBuilder() *DelReportArchiveRuleReqBuilder

func (*DelReportArchiveRuleReqBuilder) Body added in v3.3.1

func (*DelReportArchiveRuleReqBuilder) Build added in v3.3.1

func (*DelReportArchiveRuleReqBuilder) EmployeeType added in v3.3.1

func (builder *DelReportArchiveRuleReqBuilder) EmployeeType(employeeType string) *DelReportArchiveRuleReqBuilder

员工工号类型

示例值:employee_id

type DelReportArchiveRuleResp added in v3.3.1

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

func (*DelReportArchiveRuleResp) Success added in v3.3.1

func (resp *DelReportArchiveRuleResp) Success() bool

type DeleteGroupReq

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

type DeleteGroupReqBuilder

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

func NewDeleteGroupReqBuilder

func NewDeleteGroupReqBuilder() *DeleteGroupReqBuilder

func (*DeleteGroupReqBuilder) Build

func (builder *DeleteGroupReqBuilder) Build() *DeleteGroupReq

func (*DeleteGroupReqBuilder) GroupId

func (builder *DeleteGroupReqBuilder) GroupId(groupId string) *DeleteGroupReqBuilder

考勤组 ID,获取方式:1)[创建或修改考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create) 2)[按名称查询考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search) 3)[获取打卡结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query)

示例值:6919358128597097404

type DeleteGroupResp

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

func (*DeleteGroupResp) Success

func (resp *DeleteGroupResp) Success() bool

type DeleteShiftReq

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

type DeleteShiftReqBuilder

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

func NewDeleteShiftReqBuilder

func NewDeleteShiftReqBuilder() *DeleteShiftReqBuilder

func (*DeleteShiftReqBuilder) Build

func (builder *DeleteShiftReqBuilder) Build() *DeleteShiftReq

func (*DeleteShiftReqBuilder) ShiftId

func (builder *DeleteShiftReqBuilder) ShiftId(shiftId string) *DeleteShiftReqBuilder

班次 ID,获取方式:1)[按名称查询班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query) 2)[创建班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create)

示例值:6919358778597097404

type DeleteShiftResp

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

func (*DeleteShiftResp) Success

func (resp *DeleteShiftResp) Success() bool

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId *string `json:"department_id,omitempty"` //

	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

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 DownloadFileReq

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

type DownloadFileReqBuilder

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

func NewDownloadFileReqBuilder

func NewDownloadFileReqBuilder() *DownloadFileReqBuilder

func (*DownloadFileReqBuilder) Build

func (builder *DownloadFileReqBuilder) Build() *DownloadFileReq

func (*DownloadFileReqBuilder) FileId

func (builder *DownloadFileReqBuilder) FileId(fileId string) *DownloadFileReqBuilder

文件 ID

示例值:xxxxxb306842b1c189bc5212eefxxxxx

type DownloadFileResp

type DownloadFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*DownloadFileResp) Success

func (resp *DownloadFileResp) Success() bool

func (*DownloadFileResp) WriteFile

func (resp *DownloadFileResp) WriteFile(fileName string) error

type DurationItem added in v3.0.32

type DurationItem struct {
	Date *string `json:"date,omitempty"` // 日期

	Duration *float64 `json:"duration,omitempty"` // 加班时长

	Unit *int `json:"unit,omitempty"` // 加班单位

	SettlementType *int `json:"settlement_type,omitempty"` // 加班类型
}

type DurationItemBuilder added in v3.0.32

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

func NewDurationItemBuilder added in v3.0.32

func NewDurationItemBuilder() *DurationItemBuilder

func (*DurationItemBuilder) Build added in v3.0.32

func (builder *DurationItemBuilder) Build() *DurationItem

func (*DurationItemBuilder) Date added in v3.0.32

func (builder *DurationItemBuilder) Date(date string) *DurationItemBuilder

日期

示例值:20231010

func (*DurationItemBuilder) Duration added in v3.0.32

func (builder *DurationItemBuilder) Duration(duration float64) *DurationItemBuilder

加班时长

示例值:20.0

func (*DurationItemBuilder) SettlementType added in v3.0.32

func (builder *DurationItemBuilder) SettlementType(settlementType int) *DurationItemBuilder

加班类型

示例值:1

func (*DurationItemBuilder) Unit added in v3.0.32

func (builder *DurationItemBuilder) Unit(unit int) *DurationItemBuilder

加班单位

示例值:1

type Field

type Field struct {
	Code *string `json:"code,omitempty"` // 字段编号

	Title *string `json:"title,omitempty"` // 字段名称

	ChildFields []*ChildField `json:"child_fields,omitempty"` // 子字段列表
}

type FieldBuilder

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

func NewFieldBuilder

func NewFieldBuilder() *FieldBuilder

func (*FieldBuilder) Build

func (builder *FieldBuilder) Build() *Field

func (*FieldBuilder) ChildFields

func (builder *FieldBuilder) ChildFields(childFields []*ChildField) *FieldBuilder

子字段列表

示例值:

func (*FieldBuilder) Code

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

字段编号

示例值:50121

func (*FieldBuilder) Title

func (builder *FieldBuilder) Title(title string) *FieldBuilder

字段名称

示例值:工号

type File

type File struct {
	FileId *string `json:"file_id,omitempty"` // 文件 ID
}

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) FileId

func (builder *FileBuilder) FileId(fileId string) *FileBuilder

文件 ID

示例值:6b30e7636a38861bbe02869c726a4612

type FilterItem added in v3.2.3

type FilterItem struct {
	FilterType *string `json:"filter_type,omitempty"` // 筛选类型

	FilterIds []string `json:"filter_ids,omitempty"` // 筛选的ID
}

type FilterItemBuilder added in v3.2.3

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

func NewFilterItemBuilder added in v3.2.3

func NewFilterItemBuilder() *FilterItemBuilder

func (*FilterItemBuilder) Build added in v3.2.3

func (builder *FilterItemBuilder) Build() *FilterItem

func (*FilterItemBuilder) FilterIds added in v3.2.3

func (builder *FilterItemBuilder) FilterIds(filterIds []string) *FilterItemBuilder

筛选的ID

示例值:

func (*FilterItemBuilder) FilterType added in v3.2.3

func (builder *FilterItemBuilder) FilterType(filterType string) *FilterItemBuilder

筛选类型

示例值:

type FlexibleRule added in v3.0.1

type FlexibleRule struct {
	FlexibleEarlyMinutes *int `json:"flexible_early_minutes,omitempty"` // 下班最多可早走(上班早到几分钟,下班可早走几分钟)

	FlexibleLateMinutes *int `json:"flexible_late_minutes,omitempty"` // 上班最多可晚到(上班晚到几分钟,下班须晚走几分钟)
}

type FlexibleRuleBuilder added in v3.0.1

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

func NewFlexibleRuleBuilder added in v3.0.1

func NewFlexibleRuleBuilder() *FlexibleRuleBuilder

func (*FlexibleRuleBuilder) Build added in v3.0.1

func (builder *FlexibleRuleBuilder) Build() *FlexibleRule

func (*FlexibleRuleBuilder) FlexibleEarlyMinutes added in v3.0.1

func (builder *FlexibleRuleBuilder) FlexibleEarlyMinutes(flexibleEarlyMinutes int) *FlexibleRuleBuilder

下班最多可早走(上班早到几分钟,下班可早走几分钟)

示例值:60

func (*FlexibleRuleBuilder) FlexibleLateMinutes added in v3.0.1

func (builder *FlexibleRuleBuilder) FlexibleLateMinutes(flexibleLateMinutes int) *FlexibleRuleBuilder

上班最多可晚到(上班晚到几分钟,下班须晚走几分钟)

示例值:60

type FreePunchCfg

type FreePunchCfg struct {
	FreeStartTime *string `json:"free_start_time,omitempty"` // 自由班制打卡开始时间

	FreeEndTime *string `json:"free_end_time,omitempty"` // 自由班制打卡结束时间

	PunchDay *int `json:"punch_day,omitempty"` // 打卡的时间,为 7 位数字,每一位依次代表周一到周日,0 为不上班,1 为上班

	WorkDayNoPunchAsLack *bool `json:"work_day_no_punch_as_lack,omitempty"` // 工作日不打卡是否记为缺卡

	WorkHoursDemand *bool `json:"work_hours_demand,omitempty"` // 工作日出勤是否需满足时长要求

	WorkHours *int `json:"work_hours,omitempty"` // 每日工作时长(分钟),范围[0,1440]
}

type FreePunchCfgBuilder

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

func NewFreePunchCfgBuilder

func NewFreePunchCfgBuilder() *FreePunchCfgBuilder

func (*FreePunchCfgBuilder) Build

func (builder *FreePunchCfgBuilder) Build() *FreePunchCfg

func (*FreePunchCfgBuilder) FreeEndTime

func (builder *FreePunchCfgBuilder) FreeEndTime(freeEndTime string) *FreePunchCfgBuilder

自由班制打卡结束时间

示例值:18:00

func (*FreePunchCfgBuilder) FreeStartTime

func (builder *FreePunchCfgBuilder) FreeStartTime(freeStartTime string) *FreePunchCfgBuilder

自由班制打卡开始时间

示例值:7:00

func (*FreePunchCfgBuilder) PunchDay

func (builder *FreePunchCfgBuilder) PunchDay(punchDay int) *FreePunchCfgBuilder

打卡的时间,为 7 位数字,每一位依次代表周一到周日,0 为不上班,1 为上班

示例值:1111100

func (*FreePunchCfgBuilder) WorkDayNoPunchAsLack

func (builder *FreePunchCfgBuilder) WorkDayNoPunchAsLack(workDayNoPunchAsLack bool) *FreePunchCfgBuilder

工作日不打卡是否记为缺卡

示例值:true

func (*FreePunchCfgBuilder) WorkHours added in v3.0.22

func (builder *FreePunchCfgBuilder) WorkHours(workHours int) *FreePunchCfgBuilder

每日工作时长(分钟),范围[0,1440]

示例值:480

func (*FreePunchCfgBuilder) WorkHoursDemand added in v3.0.22

func (builder *FreePunchCfgBuilder) WorkHoursDemand(workHoursDemand bool) *FreePunchCfgBuilder

工作日出勤是否需满足时长要求

示例值:false

type GetGroupReq

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

type GetGroupReqBuilder

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

func NewGetGroupReqBuilder

func NewGetGroupReqBuilder() *GetGroupReqBuilder

func (*GetGroupReqBuilder) Build

func (builder *GetGroupReqBuilder) Build() *GetGroupReq

func (*GetGroupReqBuilder) DeptType

func (builder *GetGroupReqBuilder) DeptType(deptType string) *GetGroupReqBuilder

部门 ID 的类型

示例值:od-fcb45c28a45311afd441b8869541ece8

func (*GetGroupReqBuilder) EmployeeType

func (builder *GetGroupReqBuilder) EmployeeType(employeeType string) *GetGroupReqBuilder

用户 ID 的类型

示例值:employee_id

func (*GetGroupReqBuilder) GroupId

func (builder *GetGroupReqBuilder) GroupId(groupId string) *GetGroupReqBuilder

考勤组 ID,获取方式:1)[创建或修改考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create) 2)[按名称查询考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search) 3)[获取打卡结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query)

示例值:6919358128597097404

type GetGroupResp

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

func (*GetGroupResp) Success

func (resp *GetGroupResp) Success() bool

type GetGroupRespData

type GetGroupRespData struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组的Id, 需要从获取用户打卡结果信息的接口中获取groupId,修改考勤组时必填

	GroupName *string `json:"group_name,omitempty"` // 考勤组名称

	TimeZone *string `json:"time_zone,omitempty"` // 考勤组时区

	BindDeptIds []string `json:"bind_dept_ids,omitempty"` // 参加考勤的部门id列表

	ExceptDeptIds []string `json:"except_dept_ids,omitempty"` // 无需考勤的部门id列表

	BindUserIds []string `json:"bind_user_ids,omitempty"` // 参加考勤的人员id列表

	ExceptUserIds []string `json:"except_user_ids,omitempty"` // 参加考勤的人员id列表

	GroupLeaderIds []string `json:"group_leader_ids,omitempty"` // 考勤组主负责人id列表

	SubGroupLeaderIds []string `json:"sub_group_leader_ids,omitempty"` // 考勤组子负责人id列表

	AllowOutPunch *bool `json:"allow_out_punch,omitempty"` // 是否允许外勤打卡

	OutPunchNeedApproval *bool `json:"out_punch_need_approval,omitempty"` // 外勤打卡需审批,先审批后打卡(需要允许外勤打卡才能设置生效)

	OutPunchNeedPostApproval *bool `json:"out_punch_need_post_approval,omitempty"` // 外勤打卡需审批,先打卡后审批(需要允许外勤打卡才能设置生效)

	OutPunchNeedRemark *bool `json:"out_punch_need_remark,omitempty"` // 外勤打卡需填写备注(需要允许外勤打卡才能设置生效)

	OutPunchNeedPhoto *bool `json:"out_punch_need_photo,omitempty"` // 外勤打卡需拍照(需要允许外勤打卡才能设置生效)

	OutPunchAllowedHideAddr *bool `json:"out_punch_allowed_hide_addr,omitempty"` // 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)

	OutPunchAllowedAdjustAddr *bool `json:"out_punch_allowed_adjust_addr,omitempty"` // 外勤打卡允许微调地址(需要允许外勤打卡才能设置生效)

	AdjustRange *int `json:"adjust_range,omitempty"` // 微调范围,默认为 50 米

	AllowPcPunch *bool `json:"allow_pc_punch,omitempty"` // 是否允许pc打卡

	AllowRemedy *bool `json:"allow_remedy,omitempty"` // 是否允许补卡

	RemedyLimit *bool `json:"remedy_limit,omitempty"` // 补卡次数是否限制(需要允许补卡才能设置生效)

	RemedyLimitCount *int `json:"remedy_limit_count,omitempty"` // 补卡次数(需要允许补卡才能设置生效)

	RemedyDateLimit *bool `json:"remedy_date_limit,omitempty"` // 补卡时间是否限制(需要允许补卡才能设置生效)

	RemedyDateNum *int `json:"remedy_date_num,omitempty"` // 补卡时间,几天内可以发起补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeLack *bool `json:"allow_remedy_type_lack,omitempty"` // 允许缺卡补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeLate *bool `json:"allow_remedy_type_late,omitempty"` // 允许迟到补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeEarly *bool `json:"allow_remedy_type_early,omitempty"` // 允许早退补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeNormal *bool `json:"allow_remedy_type_normal,omitempty"` // 允许正常补卡(需要允许补卡才能设置生效)

	ShowCumulativeTime *bool `json:"show_cumulative_time,omitempty"` // 是否展示累计时长

	ShowOverTime *bool `json:"show_over_time,omitempty"` // 是否展示加班时长

	HideStaffPunchTime *bool `json:"hide_staff_punch_time,omitempty"` // 是否隐藏员工打卡详情

	FacePunch *bool `json:"face_punch,omitempty"` // 是否开启人脸打卡

	FacePunchCfg *int `json:"face_punch_cfg,omitempty"` // 人脸打卡规则, 1:每次打卡均需人脸识别 2:疑似需要

	FaceLiveNeedAction *bool `json:"face_live_need_action,omitempty"` // 人脸打卡规则, false:开启活体验证 true:0动作验证,仅在 face_punch_cfg = 1 时有效

	FaceDowngrade *bool `json:"face_downgrade,omitempty"` // 脸识别失败时允许普通拍照打卡

	ReplaceBasicPic *bool `json:"replace_basic_pic,omitempty"` // 是否允许替换基准图片

	Machines []*Machine `json:"machines,omitempty"` // 考勤机信息

	GpsRange *int `json:"gps_range,omitempty"` // GPS打卡的地址范围

	Locations []*Location `json:"locations,omitempty"` // GPS打卡的地址信息

	GroupType *int `json:"group_type,omitempty"` // 考勤类型 0:固定考勤  2:排班考勤, 3:自由班次

	PunchDayShiftIds []string `json:"punch_day_shift_ids,omitempty"` // 固定班次必需填

	FreePunchCfg *FreePunchCfg `json:"free_punch_cfg,omitempty"` //

	CalendarId *int `json:"calendar_id,omitempty"` // 国家日历 id,(0:不根据国家日历休息, 1:中国,2:美国,3:日本,4:印度,5:新加坡),默认 1

	NeedPunchSpecialDays []*PunchSpecialDateShift `json:"need_punch_special_days,omitempty"` // 强制需要打卡的日期

	NoNeedPunchSpecialDays []*PunchSpecialDateShift `json:"no_need_punch_special_days,omitempty"` // 强制不需要打卡的日期

	WorkDayNoPunchAsLack *bool `json:"work_day_no_punch_as_lack,omitempty"` // 自由班次下工作日不打卡是否记为缺卡

	RemedyPeriodType *int `json:"remedy_period_type,omitempty"` // 补卡周期类型

	RemedyPeriodCustomDate *int `json:"remedy_period_custom_date,omitempty"` // 补卡自定义周期起始日期

	PunchType *int `json:"punch_type,omitempty"` // 打卡类型,位运算。1:GPS打卡;2:wifi打卡;4:考勤机打卡;8:IP打卡

	EffectTime *string `json:"effect_time,omitempty"` // 生效时间,精确到秒的时间戳

	FixshiftEffectTime *string `json:"fixshift_effect_time,omitempty"` // 固定班次生效时间,精确到秒的时间戳

	MemberEffectTime *string `json:"member_effect_time,omitempty"` // 参加考勤的人员、部门变动生效时间,精确到秒的时间戳

	RestClockInNeedApproval *bool `json:"rest_clockIn_need_approval,omitempty"` // 休息日打卡需审批

	ClockInNeedPhoto *bool `json:"clockIn_need_photo,omitempty"` // 每次打卡均需拍照

	MemberStatusChange *MemberStatusChange `json:"member_status_change,omitempty"` // 人员异动打卡设置

	LeaveNeedPunch *bool `json:"leave_need_punch,omitempty"` // 请假离岗或返岗是否需打卡

	LeaveNeedPunchCfg *LeaveNeedPunchCfg `json:"leave_need_punch_cfg,omitempty"` // 请假离岗或返岗打卡规则

	GoOutNeedPunch *int `json:"go_out_need_punch,omitempty"` // 外出期间是否需打卡

	GoOutNeedPunchCfg *LeaveNeedPunchCfg `json:"go_out_need_punch_cfg,omitempty"` // 外出期间打卡规则

	TravelNeedPunch *int `json:"travel_need_punch,omitempty"` // 出差期间是否需打卡

	TravelNeedPunchCfg *LeaveNeedPunchCfg `json:"travel_need_punch_cfg,omitempty"` // 出差期间打卡规则

	NeedPunchMembers []*PunchMember `json:"need_punch_members,omitempty"` // 需要打卡的人员配置(新)

	NoNeedPunchMembers []*PunchMember `json:"no_need_punch_members,omitempty"` // 无需打卡的人员配置(新)

	SaveAutoChanges *bool `json:"save_auto_changes,omitempty"` // 是否直接保存可以自动变更的冲突规则

	OrgChangeAutoAdjust *bool `json:"org_change_auto_adjust,omitempty"` // 人员异动开关(人员组织架构变更后是否允许自动调整到该考勤组)

	BindDefaultDeptIds []string `json:"bind_default_dept_ids,omitempty"` // 默认出勤的部门id列表

	BindDefaultUserIds []string `json:"bind_default_user_ids,omitempty"` // 默认出勤的用户ID列表

	OvertimeClockCfg *OvertimeClockCfg `json:"overtime_clock_cfg,omitempty"` // 加班打卡规则

	NewCalendarId *string `json:"new_calendar_id,omitempty"` // 节假日id,(如果考勤组使用了自定义节假日,请用此参数传入节假日id)

	AllowApplyPunch *bool `json:"allow_apply_punch,omitempty"` // 定位不准时是否允许申请打卡
}

type GetLeaveEmployExpireRecordPathReqBodyBuilder added in v3.0.22

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

func NewGetLeaveEmployExpireRecordPathReqBodyBuilder added in v3.0.22

func NewGetLeaveEmployExpireRecordPathReqBodyBuilder() *GetLeaveEmployExpireRecordPathReqBodyBuilder

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) Build added in v3.0.22

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) EmploymentId added in v3.0.22

员工ID

示例值:1

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) EndExpirationDate added in v3.0.22

失效最晚日期 2023-05-10 格式

示例值:2023-05-10

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) LeaveTypeId added in v3.0.22

假期类型ID

示例值:1

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) StartExpirationDate added in v3.0.22

失效最早日期 2023-04-10 格式

示例值:2023-04-10

func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) TimeOffset added in v3.0.22

时间偏移,东八区:480 8*60, 如果没有这个参数,默认东八区

示例值:480

type GetLeaveEmployExpireRecordReq added in v3.0.22

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

type GetLeaveEmployExpireRecordReqBody added in v3.0.22

type GetLeaveEmployExpireRecordReqBody struct {
	EmploymentId *string `json:"employment_id,omitempty"` // 员工ID

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	StartExpirationDate *string `json:"start_expiration_date,omitempty"` // 失效最早日期  2023-04-10 格式

	EndExpirationDate *string `json:"end_expiration_date,omitempty"` // 失效最晚日期 2023-05-10 格式

	TimeOffset *int `json:"time_offset,omitempty"` // 时间偏移,东八区:480	8*60, 如果没有这个参数,默认东八区
}

type GetLeaveEmployExpireRecordReqBodyBuilder added in v3.0.22

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

func NewGetLeaveEmployExpireRecordReqBodyBuilder added in v3.0.22

func NewGetLeaveEmployExpireRecordReqBodyBuilder() *GetLeaveEmployExpireRecordReqBodyBuilder

func (*GetLeaveEmployExpireRecordReqBodyBuilder) Build added in v3.0.22

func (*GetLeaveEmployExpireRecordReqBodyBuilder) EmploymentId added in v3.0.22

员工ID

示例值:1

func (*GetLeaveEmployExpireRecordReqBodyBuilder) EndExpirationDate added in v3.0.22

func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) EndExpirationDate(endExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder

失效最晚日期 2023-05-10 格式

示例值:2023-05-10

func (*GetLeaveEmployExpireRecordReqBodyBuilder) LeaveTypeId added in v3.0.22

假期类型ID

示例值:1

func (*GetLeaveEmployExpireRecordReqBodyBuilder) StartExpirationDate added in v3.0.22

func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) StartExpirationDate(startExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder

失效最早日期 2023-04-10 格式

示例值:2023-04-10

func (*GetLeaveEmployExpireRecordReqBodyBuilder) TimeOffset added in v3.0.22

时间偏移,东八区:480 8*60, 如果没有这个参数,默认东八区

示例值:480

type GetLeaveEmployExpireRecordReqBuilder added in v3.0.22

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

func NewGetLeaveEmployExpireRecordReqBuilder added in v3.0.22

func NewGetLeaveEmployExpireRecordReqBuilder() *GetLeaveEmployExpireRecordReqBuilder

func (*GetLeaveEmployExpireRecordReqBuilder) Body added in v3.0.22

func (*GetLeaveEmployExpireRecordReqBuilder) Build added in v3.0.22

func (*GetLeaveEmployExpireRecordReqBuilder) LeaveId added in v3.0.22

假期类型ID

示例值:1

func (*GetLeaveEmployExpireRecordReqBuilder) UserIdType added in v3.0.24

用户 ID 类型

示例值:open_id

type GetLeaveEmployExpireRecordResp added in v3.0.22

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

func (*GetLeaveEmployExpireRecordResp) Success added in v3.0.22

func (resp *GetLeaveEmployExpireRecordResp) Success() bool

type GetLeaveEmployExpireRecordRespData added in v3.0.22

type GetLeaveEmployExpireRecordRespData struct {
	Records []*LeaveEmployExpireRecord `json:"records,omitempty"` // 员工过期日期的授予记录
}

type GetShiftReq

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

type GetShiftReqBuilder

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

func NewGetShiftReqBuilder

func NewGetShiftReqBuilder() *GetShiftReqBuilder

func (*GetShiftReqBuilder) Build

func (builder *GetShiftReqBuilder) Build() *GetShiftReq

func (*GetShiftReqBuilder) ShiftId

func (builder *GetShiftReqBuilder) ShiftId(shiftId string) *GetShiftReqBuilder

班次 ID,获取方式:1)[按名称查询班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query) 2)[创建班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create)

示例值:6919358778597097404

type GetShiftResp

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

func (*GetShiftResp) Success

func (resp *GetShiftResp) Success() bool

type GetShiftRespData

type GetShiftRespData struct {
	ShiftId *string `json:"shift_id,omitempty"` // 班次Id

	ShiftName *string `json:"shift_name,omitempty"` // 班次名称

	PunchTimes *int `json:"punch_times,omitempty"` // 打卡次数

	SubShiftLeaderIds []string `json:"sub_shift_leader_ids,omitempty"` // 排班组子负责人id列表

	IsFlexible *bool `json:"is_flexible,omitempty"` // 是否弹性打卡

	FlexibleMinutes *int `json:"flexible_minutes,omitempty"` // 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效

	FlexibleRule []*FlexibleRule `json:"flexible_rule,omitempty"` // 弹性打卡时间设置

	NoNeedOff *bool `json:"no_need_off,omitempty"` // 不需要打下班卡

	PunchTimeRule []*PunchTimeRule `json:"punch_time_rule,omitempty"` // 打卡规则

	LateOffLateOnRule []*LateOffLateOnRule `json:"late_off_late_on_rule,omitempty"` // 晚走晚到规则

	RestTimeRule []*RestRule `json:"rest_time_rule,omitempty"` // 休息规则

	OvertimeRule []*OvertimeRule `json:"overtime_rule,omitempty"` // 打卡规则

	DayType *int `json:"day_type,omitempty"` // 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日”  可选值:1:工作日 2:休息日	 示例值:(默认值)1

	OvertimeRestTimeRule []*RestRule `json:"overtime_rest_time_rule,omitempty"` // 班外休息规则

	LateMinutesAsSeriousLate *int `json:"late_minutes_as_serious_late,omitempty"` // 晚到多久记为严重迟到(优先级比原有字段高)

	ShiftMiddleTimeRule *ShiftMiddleTimeRule `json:"shift_middle_time_rule,omitempty"` // 半天分割规则

	ShiftAttendanceTimeConfig *ShiftAttendanceTimeConfig `json:"shift_attendance_time_config,omitempty"` // 应出勤配置

	LateOffLateOnSetting *LateOffLateOnSetting `json:"late_off_late_on_setting,omitempty"` // 晚走次日晚到配置规则

	Id *string `json:"id,omitempty"` // 班次id(更新班次时需要传递)

	RestTimeFlexibleConfigs []*RestTimeFlexibleConfig `json:"rest_time_flexible_configs,omitempty"` // 休息弹性设置
}

type GetUserFlowReq

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

type GetUserFlowReqBuilder

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

func NewGetUserFlowReqBuilder

func NewGetUserFlowReqBuilder() *GetUserFlowReqBuilder

func (*GetUserFlowReqBuilder) Build

func (builder *GetUserFlowReqBuilder) Build() *GetUserFlowReq

func (*GetUserFlowReqBuilder) EmployeeType

func (builder *GetUserFlowReqBuilder) EmployeeType(employeeType string) *GetUserFlowReqBuilder

响应体中的 user_id 和 creator_id 的员工工号类型

示例值:employee_id

func (*GetUserFlowReqBuilder) UserFlowId

func (builder *GetUserFlowReqBuilder) UserFlowId(userFlowId string) *GetUserFlowReqBuilder

打卡流水记录 ID,获取方式:1)[批量查询打卡流水记录](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/query) 2)[获取打卡结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query) 3)[导入打卡流水记录](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/batch_create)

示例值:6708236686834352397

type GetUserFlowResp

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

func (*GetUserFlowResp) Success

func (resp *GetUserFlowResp) Success() bool

type GetUserFlowRespData

type GetUserFlowRespData struct {
	UserId *string `json:"user_id,omitempty"` // 用户工号

	CreatorId *string `json:"creator_id,omitempty"` // 记录创建者的工号

	LocationName *string `json:"location_name,omitempty"` // 打卡位置名称信息

	CheckTime *string `json:"check_time,omitempty"` // 打卡时间,精确到秒的时间戳

	Comment *string `json:"comment,omitempty"` // 打卡备注

	RecordId *string `json:"record_id,omitempty"` // 打卡记录ID

	Longitude *float64 `json:"longitude,omitempty"` // 打卡经度

	Latitude *float64 `json:"latitude,omitempty"` // 打卡纬度

	Ssid *string `json:"ssid,omitempty"` // 打卡wifi ssid

	Bssid *string `json:"bssid,omitempty"` // 打卡wifi MAC地址

	IsField *bool `json:"is_field,omitempty"` // 是否为外勤打卡

	IsWifi *bool `json:"is_wifi,omitempty"` // 是否为wifi打卡

	Type *int `json:"type,omitempty"` // 记录生成方式

	PhotoUrls []string `json:"photo_urls,omitempty"` // 打卡照片列表

	DeviceId *string `json:"device_id,omitempty"` // 打卡设备ID

	CheckResult *string `json:"check_result,omitempty"` // 打卡结果

	ExternalId *string `json:"external_id,omitempty"` // 用户导入的外部打卡记录ID

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键
}

type Group

type Group struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组 ID(仅修改时提供), 需要从“获取打卡结果”的接口中获取 groupId

	GroupName *string `json:"group_name,omitempty"` // 考勤组名称

	TimeZone *string `json:"time_zone,omitempty"` // 时区

	BindDeptIds []string `json:"bind_dept_ids,omitempty"` // 绑定的部门 ID

	ExceptDeptIds []string `json:"except_dept_ids,omitempty"` // 排除的部门 ID

	BindUserIds []string `json:"bind_user_ids,omitempty"` // 绑定的用户 ID

	ExceptUserIds []string `json:"except_user_ids,omitempty"` // 排除的用户 ID

	GroupLeaderIds []string `json:"group_leader_ids,omitempty"` // 考勤主负责人 ID 列表,必选字段(需至少拥有考勤组管理员权限)

	SubGroupLeaderIds []string `json:"sub_group_leader_ids,omitempty"` // 考勤子负责人 ID 列表

	AllowOutPunch *bool `json:"allow_out_punch,omitempty"` // 是否允许外勤打卡

	OutPunchNeedApproval *bool `json:"out_punch_need_approval,omitempty"` // 外勤打卡需审批(需要允许外勤打卡才能设置生效)

	OutPunchNeedPostApproval *bool `json:"out_punch_need_post_approval,omitempty"` // 外勤打卡需审批,先打卡后审批(需要允许外勤打卡才能设置生效)

	OutPunchNeedRemark *bool `json:"out_punch_need_remark,omitempty"` // 外勤打卡需填写备注(需要允许外勤打卡才能设置生效)

	OutPunchNeedPhoto *bool `json:"out_punch_need_photo,omitempty"` // 外勤打卡需拍照(需要允许外勤打卡才能设置生效)

	OutPunchAllowedHideAddr *bool `json:"out_punch_allowed_hide_addr,omitempty"` // 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)

	OutPunchAllowedAdjustAddr *bool `json:"out_punch_allowed_adjust_addr,omitempty"` // 外勤打卡允许微调地址(需要允许外勤打卡才能设置生效)

	AdjustRange *int `json:"adjust_range,omitempty"` // 微调范围,默认为 50 米

	AllowPcPunch *bool `json:"allow_pc_punch,omitempty"` // 是否允许 PC 端打卡

	AllowRemedy *bool `json:"allow_remedy,omitempty"` // 是否限制补卡

	RemedyLimit *bool `json:"remedy_limit,omitempty"` // 是否限制补卡次数

	RemedyLimitCount *int `json:"remedy_limit_count,omitempty"` // 补卡次数

	RemedyDateLimit *bool `json:"remedy_date_limit,omitempty"` // 是否限制补卡时间

	RemedyDateNum *int `json:"remedy_date_num,omitempty"` // 补卡时间,几天内补卡

	AllowRemedyTypeLack *bool `json:"allow_remedy_type_lack,omitempty"` // 允许缺卡补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeLate *bool `json:"allow_remedy_type_late,omitempty"` // 允许迟到补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeEarly *bool `json:"allow_remedy_type_early,omitempty"` // 允许早退补卡(需要允许补卡才能设置生效)

	AllowRemedyTypeNormal *bool `json:"allow_remedy_type_normal,omitempty"` // 允许正常补卡(需要允许补卡才能设置生效)

	ShowCumulativeTime *bool `json:"show_cumulative_time,omitempty"` // 是否展示累计时长

	ShowOverTime *bool `json:"show_over_time,omitempty"` // 是否展示加班时长

	HideStaffPunchTime *bool `json:"hide_staff_punch_time,omitempty"` // 是否隐藏员工打卡详情

	FacePunch *bool `json:"face_punch,omitempty"` // 是否开启人脸识别打卡

	FacePunchCfg *int `json:"face_punch_cfg,omitempty"` // 人脸识别打卡规则,1:每次打卡均需人脸识别,2:疑似作弊打卡时需要人脸识别

	FaceLiveNeedAction *bool `json:"face_live_need_action,omitempty"` // 人脸打卡规则, false:开启活体验证 true:0动作验证,仅在 face_punch_cfg = 1 时有效

	FaceDowngrade *bool `json:"face_downgrade,omitempty"` // 人脸识别失败时是否允许普通拍照打卡

	ReplaceBasicPic *bool `json:"replace_basic_pic,omitempty"` // 人脸识别失败时是否允许替换基准图片

	Machines []*Machine `json:"machines,omitempty"` // 考勤机列表

	GpsRange *int `json:"gps_range,omitempty"` // GPS 打卡的有效范围(不建议使用)

	Locations []*Location `json:"locations,omitempty"` // 地址列表

	GroupType *int `json:"group_type,omitempty"` // 考勤类型,0:固定班制,2:排班制, 3:自由班制

	PunchDayShiftIds []string `json:"punch_day_shift_ids,omitempty"` // 固定班制必须填

	FreePunchCfg *FreePunchCfg `json:"free_punch_cfg,omitempty"` // 配置自由班制

	CalendarId *int `json:"calendar_id,omitempty"` // 国家日历  ID,0:不根据国家日历排休,1:中国大陆,2:美国,3:日本,4:印度,5:新加坡,默认 1

	NeedPunchSpecialDays []*PunchSpecialDateShift `json:"need_punch_special_days,omitempty"` // 必须打卡的特殊日期

	NoNeedPunchSpecialDays []*PunchSpecialDateShift `json:"no_need_punch_special_days,omitempty"` // 无需打卡的特殊日期

	WorkDayNoPunchAsLack *bool `json:"work_day_no_punch_as_lack,omitempty"` // 自由班制下工作日不打卡是否记为缺卡

	EffectNow *bool `json:"effect_now,omitempty"` // 是否立即生效,默认 false

	RemedyPeriodType *int `json:"remedy_period_type,omitempty"` // 补卡周期类型

	RemedyPeriodCustomDate *int `json:"remedy_period_custom_date,omitempty"` // 补卡自定义周期起始日期

	PunchType *int `json:"punch_type,omitempty"` // 打卡类型,位运算。1:GPS 打卡,2:Wi-Fi 打卡,4:考勤机打卡,8:IP 打卡

	EffectTime *string `json:"effect_time,omitempty"` // 生效时间,精确到秒的时间戳

	FixshiftEffectTime *string `json:"fixshift_effect_time,omitempty"` // 固定班次生效时间,精确到秒的时间戳

	MemberEffectTime *string `json:"member_effect_time,omitempty"` // 参加考勤的人员、部门变动生效时间,精确到秒的时间戳

	RestClockInNeedApproval *bool `json:"rest_clockIn_need_approval,omitempty"` // 休息日打卡需审批

	ClockInNeedPhoto *bool `json:"clockIn_need_photo,omitempty"` // 每次打卡均需拍照

	MemberStatusChange *MemberStatusChange `json:"member_status_change,omitempty"` // 人员异动打卡设置

	LeaveNeedPunch *bool `json:"leave_need_punch,omitempty"` // 请假离岗或返岗是否需打卡

	LeaveNeedPunchCfg *LeaveNeedPunchCfg `json:"leave_need_punch_cfg,omitempty"` // 请假离岗或返岗打卡规则

	GoOutNeedPunch *int `json:"go_out_need_punch,omitempty"` // 外出期间是否需打卡

	GoOutNeedPunchCfg *LeaveNeedPunchCfg `json:"go_out_need_punch_cfg,omitempty"` // 外出期间打卡规则

	TravelNeedPunch *int `json:"travel_need_punch,omitempty"` // 出差期间是否需打卡

	TravelNeedPunchCfg *LeaveNeedPunchCfg `json:"travel_need_punch_cfg,omitempty"` // 出差期间打卡规则

	NeedPunchMembers []*PunchMember `json:"need_punch_members,omitempty"` // 需要打卡的人员配置(新)

	NoNeedPunchMembers []*PunchMember `json:"no_need_punch_members,omitempty"` // 无需打卡的人员配置(新)

	SaveAutoChanges *bool `json:"save_auto_changes,omitempty"` // 是否直接保存可以自动变更的冲突规则

	OrgChangeAutoAdjust *bool `json:"org_change_auto_adjust,omitempty"` // 人员异动开关(人员组织架构变更后是否允许自动调整到该考勤组)

	BindDefaultDeptIds []string `json:"bind_default_dept_ids,omitempty"` // 默认出勤的部门id列表

	BindDefaultUserIds []string `json:"bind_default_user_ids,omitempty"` // 默认出勤的用户ID列表

	OvertimeClockCfg *OvertimeClockCfg `json:"overtime_clock_cfg,omitempty"` // 加班打卡规则

	NewCalendarId *string `json:"new_calendar_id,omitempty"` // 节假日id,(如果考勤组使用了自定义节假日,请用此参数传入节假日id)

	AllowApplyPunch *bool `json:"allow_apply_punch,omitempty"` // 定位不准时是否允许申请打卡
}

type GroupBuilder

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

func NewGroupBuilder

func NewGroupBuilder() *GroupBuilder

func (*GroupBuilder) AdjustRange added in v3.1.2

func (builder *GroupBuilder) AdjustRange(adjustRange int) *GroupBuilder

微调范围,默认为 50 米

示例值:50

func (*GroupBuilder) AllowApplyPunch added in v3.1.2

func (builder *GroupBuilder) AllowApplyPunch(allowApplyPunch bool) *GroupBuilder

定位不准时是否允许申请打卡

示例值:true

func (*GroupBuilder) AllowOutPunch

func (builder *GroupBuilder) AllowOutPunch(allowOutPunch bool) *GroupBuilder

是否允许外勤打卡

示例值:true

func (*GroupBuilder) AllowPcPunch

func (builder *GroupBuilder) AllowPcPunch(allowPcPunch bool) *GroupBuilder

是否允许 PC 端打卡

示例值:true

func (*GroupBuilder) AllowRemedy

func (builder *GroupBuilder) AllowRemedy(allowRemedy bool) *GroupBuilder

是否限制补卡

示例值:true

func (*GroupBuilder) AllowRemedyTypeEarly added in v3.0.1

func (builder *GroupBuilder) AllowRemedyTypeEarly(allowRemedyTypeEarly bool) *GroupBuilder

允许早退补卡(需要允许补卡才能设置生效)

示例值:true

func (*GroupBuilder) AllowRemedyTypeLack added in v3.0.1

func (builder *GroupBuilder) AllowRemedyTypeLack(allowRemedyTypeLack bool) *GroupBuilder

允许缺卡补卡(需要允许补卡才能设置生效)

示例值:true

func (*GroupBuilder) AllowRemedyTypeLate added in v3.0.1

func (builder *GroupBuilder) AllowRemedyTypeLate(allowRemedyTypeLate bool) *GroupBuilder

允许迟到补卡(需要允许补卡才能设置生效)

示例值:true

func (*GroupBuilder) AllowRemedyTypeNormal added in v3.0.1

func (builder *GroupBuilder) AllowRemedyTypeNormal(allowRemedyTypeNormal bool) *GroupBuilder

允许正常补卡(需要允许补卡才能设置生效)

示例值:true

func (*GroupBuilder) BindDefaultDeptIds added in v3.0.25

func (builder *GroupBuilder) BindDefaultDeptIds(bindDefaultDeptIds []string) *GroupBuilder

默认出勤的部门id列表

示例值:

func (*GroupBuilder) BindDefaultUserIds added in v3.0.25

func (builder *GroupBuilder) BindDefaultUserIds(bindDefaultUserIds []string) *GroupBuilder

默认出勤的用户ID列表

示例值:

func (*GroupBuilder) BindDeptIds

func (builder *GroupBuilder) BindDeptIds(bindDeptIds []string) *GroupBuilder

绑定的部门 ID

示例值:od-fcb45c28a45311afd440b7869541fce8

func (*GroupBuilder) BindUserIds

func (builder *GroupBuilder) BindUserIds(bindUserIds []string) *GroupBuilder

绑定的用户 ID

示例值:52aa1fa1

func (*GroupBuilder) Build

func (builder *GroupBuilder) Build() *Group

func (*GroupBuilder) CalendarId

func (builder *GroupBuilder) CalendarId(calendarId int) *GroupBuilder

国家日历 ID,0:不根据国家日历排休,1:中国大陆,2:美国,3:日本,4:印度,5:新加坡,默认 1

示例值:1

func (*GroupBuilder) ClockInNeedPhoto added in v3.0.1

func (builder *GroupBuilder) ClockInNeedPhoto(clockInNeedPhoto bool) *GroupBuilder

每次打卡均需拍照

示例值:true

func (*GroupBuilder) EffectNow

func (builder *GroupBuilder) EffectNow(effectNow bool) *GroupBuilder

是否立即生效,默认 false

示例值:true

func (*GroupBuilder) EffectTime added in v3.0.1

func (builder *GroupBuilder) EffectTime(effectTime string) *GroupBuilder

生效时间,精确到秒的时间戳

示例值:1611476284

func (*GroupBuilder) ExceptDeptIds

func (builder *GroupBuilder) ExceptDeptIds(exceptDeptIds []string) *GroupBuilder

排除的部门 ID

示例值:od-fcb45c28a45311afd440b7869541fce8

func (*GroupBuilder) ExceptUserIds

func (builder *GroupBuilder) ExceptUserIds(exceptUserIds []string) *GroupBuilder

排除的用户 ID

示例值:52aa1fa1

func (*GroupBuilder) FaceDowngrade

func (builder *GroupBuilder) FaceDowngrade(faceDowngrade bool) *GroupBuilder

人脸识别失败时是否允许普通拍照打卡

示例值:true

func (*GroupBuilder) FaceLiveNeedAction added in v3.0.22

func (builder *GroupBuilder) FaceLiveNeedAction(faceLiveNeedAction bool) *GroupBuilder

人脸打卡规则, false:开启活体验证 true:0动作验证,仅在 face_punch_cfg = 1 时有效

示例值:false

func (*GroupBuilder) FacePunch

func (builder *GroupBuilder) FacePunch(facePunch bool) *GroupBuilder

是否开启人脸识别打卡

示例值:true

func (*GroupBuilder) FacePunchCfg

func (builder *GroupBuilder) FacePunchCfg(facePunchCfg int) *GroupBuilder

人脸识别打卡规则,1:每次打卡均需人脸识别,2:疑似作弊打卡时需要人脸识别

示例值:1

func (*GroupBuilder) FixshiftEffectTime added in v3.0.3

func (builder *GroupBuilder) FixshiftEffectTime(fixshiftEffectTime string) *GroupBuilder

固定班次生效时间,精确到秒的时间戳

示例值:1611476284

func (*GroupBuilder) FreePunchCfg

func (builder *GroupBuilder) FreePunchCfg(freePunchCfg *FreePunchCfg) *GroupBuilder

配置自由班制

示例值:

func (*GroupBuilder) GoOutNeedPunch added in v3.0.22

func (builder *GroupBuilder) GoOutNeedPunch(goOutNeedPunch int) *GroupBuilder

外出期间是否需打卡

示例值:0

func (*GroupBuilder) GoOutNeedPunchCfg added in v3.0.22

func (builder *GroupBuilder) GoOutNeedPunchCfg(goOutNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder

外出期间打卡规则

示例值:

func (*GroupBuilder) GpsRange

func (builder *GroupBuilder) GpsRange(gpsRange int) *GroupBuilder

GPS 打卡的有效范围(不建议使用)

示例值:300

func (*GroupBuilder) GroupId

func (builder *GroupBuilder) GroupId(groupId string) *GroupBuilder

考勤组 ID(仅修改时提供), 需要从“获取打卡结果”的接口中获取 groupId

示例值:6919358128597097404

func (*GroupBuilder) GroupLeaderIds

func (builder *GroupBuilder) GroupLeaderIds(groupLeaderIds []string) *GroupBuilder

考勤主负责人 ID 列表,必选字段(需至少拥有考勤组管理员权限)

示例值:2bg4a9be

func (*GroupBuilder) GroupName

func (builder *GroupBuilder) GroupName(groupName string) *GroupBuilder

考勤组名称

示例值:开心考勤

func (*GroupBuilder) GroupType

func (builder *GroupBuilder) GroupType(groupType int) *GroupBuilder

考勤类型,0:固定班制,2:排班制, 3:自由班制

示例值:0

func (*GroupBuilder) HideStaffPunchTime

func (builder *GroupBuilder) HideStaffPunchTime(hideStaffPunchTime bool) *GroupBuilder

是否隐藏员工打卡详情

示例值:true

func (*GroupBuilder) LeaveNeedPunch added in v3.0.22

func (builder *GroupBuilder) LeaveNeedPunch(leaveNeedPunch bool) *GroupBuilder

请假离岗或返岗是否需打卡

示例值:false

func (*GroupBuilder) LeaveNeedPunchCfg added in v3.0.22

func (builder *GroupBuilder) LeaveNeedPunchCfg(leaveNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder

请假离岗或返岗打卡规则

示例值:

func (*GroupBuilder) Locations

func (builder *GroupBuilder) Locations(locations []*Location) *GroupBuilder

地址列表

示例值:

func (*GroupBuilder) Machines

func (builder *GroupBuilder) Machines(machines []*Machine) *GroupBuilder

考勤机列表

示例值:

func (*GroupBuilder) MemberEffectTime added in v3.0.3

func (builder *GroupBuilder) MemberEffectTime(memberEffectTime string) *GroupBuilder

参加考勤的人员、部门变动生效时间,精确到秒的时间戳

示例值:1611476284

func (*GroupBuilder) MemberStatusChange added in v3.0.20

func (builder *GroupBuilder) MemberStatusChange(memberStatusChange *MemberStatusChange) *GroupBuilder

人员异动打卡设置

示例值:

func (*GroupBuilder) NeedPunchMembers added in v3.0.23

func (builder *GroupBuilder) NeedPunchMembers(needPunchMembers []*PunchMember) *GroupBuilder

需要打卡的人员配置(新)

示例值:

func (*GroupBuilder) NeedPunchSpecialDays

func (builder *GroupBuilder) NeedPunchSpecialDays(needPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder

必须打卡的特殊日期

示例值:

func (*GroupBuilder) NewCalendarId added in v3.0.34

func (builder *GroupBuilder) NewCalendarId(newCalendarId string) *GroupBuilder

节假日id,(如果考勤组使用了自定义节假日,请用此参数传入节假日id)

示例值:通过查询考勤组接口获取的new_calendar_id,例如7302191700771358252

func (*GroupBuilder) NoNeedPunchMembers added in v3.0.23

func (builder *GroupBuilder) NoNeedPunchMembers(noNeedPunchMembers []*PunchMember) *GroupBuilder

无需打卡的人员配置(新)

示例值:

func (*GroupBuilder) NoNeedPunchSpecialDays

func (builder *GroupBuilder) NoNeedPunchSpecialDays(noNeedPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder

无需打卡的特殊日期

示例值:

func (*GroupBuilder) OrgChangeAutoAdjust added in v3.0.25

func (builder *GroupBuilder) OrgChangeAutoAdjust(orgChangeAutoAdjust bool) *GroupBuilder

人员异动开关(人员组织架构变更后是否允许自动调整到该考勤组)

示例值:false

func (*GroupBuilder) OutPunchAllowedAdjustAddr added in v3.1.2

func (builder *GroupBuilder) OutPunchAllowedAdjustAddr(outPunchAllowedAdjustAddr bool) *GroupBuilder

外勤打卡允许微调地址(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OutPunchAllowedHideAddr added in v3.0.1

func (builder *GroupBuilder) OutPunchAllowedHideAddr(outPunchAllowedHideAddr bool) *GroupBuilder

外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OutPunchNeedApproval added in v3.0.1

func (builder *GroupBuilder) OutPunchNeedApproval(outPunchNeedApproval bool) *GroupBuilder

外勤打卡需审批(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OutPunchNeedPhoto added in v3.0.1

func (builder *GroupBuilder) OutPunchNeedPhoto(outPunchNeedPhoto bool) *GroupBuilder

外勤打卡需拍照(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OutPunchNeedPostApproval added in v3.1.2

func (builder *GroupBuilder) OutPunchNeedPostApproval(outPunchNeedPostApproval bool) *GroupBuilder

外勤打卡需审批,先打卡后审批(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OutPunchNeedRemark added in v3.0.1

func (builder *GroupBuilder) OutPunchNeedRemark(outPunchNeedRemark bool) *GroupBuilder

外勤打卡需填写备注(需要允许外勤打卡才能设置生效)

示例值:true

func (*GroupBuilder) OvertimeClockCfg added in v3.0.31

func (builder *GroupBuilder) OvertimeClockCfg(overtimeClockCfg *OvertimeClockCfg) *GroupBuilder

加班打卡规则

示例值:

func (*GroupBuilder) PunchDayShiftIds

func (builder *GroupBuilder) PunchDayShiftIds(punchDayShiftIds []string) *GroupBuilder

固定班制必须填

示例值:6921319402260496386

func (*GroupBuilder) PunchType

func (builder *GroupBuilder) PunchType(punchType int) *GroupBuilder

打卡类型,位运算。1:GPS 打卡,2:Wi-Fi 打卡,4:考勤机打卡,8:IP 打卡

示例值:1

func (*GroupBuilder) RemedyDateLimit

func (builder *GroupBuilder) RemedyDateLimit(remedyDateLimit bool) *GroupBuilder

是否限制补卡时间

示例值:true

func (*GroupBuilder) RemedyDateNum

func (builder *GroupBuilder) RemedyDateNum(remedyDateNum int) *GroupBuilder

补卡时间,几天内补卡

示例值:3

func (*GroupBuilder) RemedyLimit

func (builder *GroupBuilder) RemedyLimit(remedyLimit bool) *GroupBuilder

是否限制补卡次数

示例值:true

func (*GroupBuilder) RemedyLimitCount

func (builder *GroupBuilder) RemedyLimitCount(remedyLimitCount int) *GroupBuilder

补卡次数

示例值:3

func (*GroupBuilder) RemedyPeriodCustomDate

func (builder *GroupBuilder) RemedyPeriodCustomDate(remedyPeriodCustomDate int) *GroupBuilder

补卡自定义周期起始日期

示例值:1

func (*GroupBuilder) RemedyPeriodType

func (builder *GroupBuilder) RemedyPeriodType(remedyPeriodType int) *GroupBuilder

补卡周期类型

示例值:0

func (*GroupBuilder) ReplaceBasicPic

func (builder *GroupBuilder) ReplaceBasicPic(replaceBasicPic bool) *GroupBuilder

人脸识别失败时是否允许替换基准图片

示例值:true

func (*GroupBuilder) RestClockInNeedApproval added in v3.0.1

func (builder *GroupBuilder) RestClockInNeedApproval(restClockInNeedApproval bool) *GroupBuilder

休息日打卡需审批

示例值:true

func (*GroupBuilder) SaveAutoChanges added in v3.0.25

func (builder *GroupBuilder) SaveAutoChanges(saveAutoChanges bool) *GroupBuilder

是否直接保存可以自动变更的冲突规则

示例值:false

func (*GroupBuilder) ShowCumulativeTime

func (builder *GroupBuilder) ShowCumulativeTime(showCumulativeTime bool) *GroupBuilder

是否展示累计时长

示例值:true

func (*GroupBuilder) ShowOverTime

func (builder *GroupBuilder) ShowOverTime(showOverTime bool) *GroupBuilder

是否展示加班时长

示例值:true

func (*GroupBuilder) SubGroupLeaderIds added in v3.0.1

func (builder *GroupBuilder) SubGroupLeaderIds(subGroupLeaderIds []string) *GroupBuilder

考勤子负责人 ID 列表

示例值:52aa1fa1

func (*GroupBuilder) TimeZone

func (builder *GroupBuilder) TimeZone(timeZone string) *GroupBuilder

时区

示例值:Asia/Shanghai

func (*GroupBuilder) TravelNeedPunch added in v3.0.22

func (builder *GroupBuilder) TravelNeedPunch(travelNeedPunch int) *GroupBuilder

出差期间是否需打卡

示例值:0

func (*GroupBuilder) TravelNeedPunchCfg added in v3.0.22

func (builder *GroupBuilder) TravelNeedPunchCfg(travelNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder

出差期间打卡规则

示例值:

func (*GroupBuilder) WorkDayNoPunchAsLack

func (builder *GroupBuilder) WorkDayNoPunchAsLack(workDayNoPunchAsLack bool) *GroupBuilder

自由班制下工作日不打卡是否记为缺卡

示例值:true

type GroupMeta

type GroupMeta struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组 ID

	GroupName *string `json:"group_name,omitempty"` // 考勤组名称
}

type GroupMetaBuilder

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

func NewGroupMetaBuilder

func NewGroupMetaBuilder() *GroupMetaBuilder

func (*GroupMetaBuilder) Build

func (builder *GroupMetaBuilder) Build() *GroupMeta

func (*GroupMetaBuilder) GroupId

func (builder *GroupMetaBuilder) GroupId(groupId string) *GroupMetaBuilder

考勤组 ID

示例值:6919358128597097404

func (*GroupMetaBuilder) GroupName

func (builder *GroupMetaBuilder) GroupName(groupName string) *GroupMetaBuilder

考勤组名称

示例值:考勤组1

type I18nMap added in v3.2.5

type I18nMap struct {
	Zh *string `json:"zh,omitempty"` // 中文名称

	En *string `json:"en,omitempty"` // 英文名称

	Ja *string `json:"ja,omitempty"` // 日文名称
}

type I18nMapBuilder added in v3.2.5

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

func NewI18nMapBuilder added in v3.2.5

func NewI18nMapBuilder() *I18nMapBuilder

func (*I18nMapBuilder) Build added in v3.2.5

func (builder *I18nMapBuilder) Build() *I18nMap

func (*I18nMapBuilder) En added in v3.2.5

func (builder *I18nMapBuilder) En(en string) *I18nMapBuilder

英文名称

示例值:alice

func (*I18nMapBuilder) Ja added in v3.2.5

func (builder *I18nMapBuilder) Ja(ja string) *I18nMapBuilder

日文名称

示例值:1

func (*I18nMapBuilder) Zh added in v3.2.5

func (builder *I18nMapBuilder) Zh(zh string) *I18nMapBuilder

中文名称

示例值:1

type I18nNames

type I18nNames struct {
	Ch *string `json:"ch,omitempty"` // 中文描述

	En *string `json:"en,omitempty"` // 英语描述

	Ja *string `json:"ja,omitempty"` // 日语描述
}

type I18nNamesBuilder

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

func NewI18nNamesBuilder

func NewI18nNamesBuilder() *I18nNamesBuilder

func (*I18nNamesBuilder) Build

func (builder *I18nNamesBuilder) Build() *I18nNames

func (*I18nNamesBuilder) Ch

func (builder *I18nNamesBuilder) Ch(ch string) *I18nNamesBuilder

中文描述

示例值:中文描述

func (*I18nNamesBuilder) En

func (builder *I18nNamesBuilder) En(en string) *I18nNamesBuilder

英语描述

示例值:English description

func (*I18nNamesBuilder) Ja

func (builder *I18nNamesBuilder) Ja(ja string) *I18nNamesBuilder

日语描述

示例值:日本語の説明

type Item

type Item struct {
	Code *string `json:"code,omitempty"` // 标题编号

	Title *string `json:"title,omitempty"` // 标题名称

	ChildItems []*ChildItem `json:"child_items,omitempty"` // 子标题
}

type ItemBuilder

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

func NewItemBuilder

func NewItemBuilder() *ItemBuilder

func (*ItemBuilder) Build

func (builder *ItemBuilder) Build() *Item

func (*ItemBuilder) ChildItems

func (builder *ItemBuilder) ChildItems(childItems []*ChildItem) *ItemBuilder

子标题

示例值:

func (*ItemBuilder) Code

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

标题编号

示例值:522

func (*ItemBuilder) Title

func (builder *ItemBuilder) Title(title string) *ItemBuilder

标题名称

示例值:基本信息

type LangText added in v3.0.22

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

	Value *string `json:"value,omitempty"` // 语言码对应的文本
}

type LangTextBuilder added in v3.0.22

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

func NewLangTextBuilder added in v3.0.22

func NewLangTextBuilder() *LangTextBuilder

func (*LangTextBuilder) Build added in v3.0.22

func (builder *LangTextBuilder) Build() *LangText

func (*LangTextBuilder) Lang added in v3.0.22

func (builder *LangTextBuilder) Lang(lang string) *LangTextBuilder

语言码

示例值:cn_zh

func (*LangTextBuilder) Value added in v3.0.22

func (builder *LangTextBuilder) Value(value string) *LangTextBuilder

语言码对应的文本

示例值:test

type LateOffLateOnRule

type LateOffLateOnRule struct {
	LateOffMinutes *int `json:"late_off_minutes,omitempty"` // 晚走多久

	LateOnMinutes *int `json:"late_on_minutes,omitempty"` // 晚到多久
}

type LateOffLateOnRuleBuilder

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

func NewLateOffLateOnRuleBuilder

func NewLateOffLateOnRuleBuilder() *LateOffLateOnRuleBuilder

func (*LateOffLateOnRuleBuilder) Build

func (builder *LateOffLateOnRuleBuilder) Build() *LateOffLateOnRule

func (*LateOffLateOnRuleBuilder) LateOffMinutes

func (builder *LateOffLateOnRuleBuilder) LateOffMinutes(lateOffMinutes int) *LateOffLateOnRuleBuilder

晚走多久

示例值:60

func (*LateOffLateOnRuleBuilder) LateOnMinutes

func (builder *LateOffLateOnRuleBuilder) LateOnMinutes(lateOnMinutes int) *LateOffLateOnRuleBuilder

晚到多久

示例值:30

type LateOffLateOnSetting added in v3.2.6

type LateOffLateOnSetting struct {
	LateOffBaseOnTimeType *int `json:"late_off_base_on_time_type,omitempty"` // 当日晚走时间计算规则

	LateOnBaseOnTimeType *int `json:"late_on_base_on_time_type,omitempty"` // 次日晚到时间计算规则
}

type LateOffLateOnSettingBuilder added in v3.2.6

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

func NewLateOffLateOnSettingBuilder added in v3.2.6

func NewLateOffLateOnSettingBuilder() *LateOffLateOnSettingBuilder

func (*LateOffLateOnSettingBuilder) Build added in v3.2.6

func (*LateOffLateOnSettingBuilder) LateOffBaseOnTimeType added in v3.2.6

func (builder *LateOffLateOnSettingBuilder) LateOffBaseOnTimeType(lateOffBaseOnTimeType int) *LateOffLateOnSettingBuilder

当日晚走时间计算规则

示例值:0

func (*LateOffLateOnSettingBuilder) LateOnBaseOnTimeType added in v3.2.6

func (builder *LateOffLateOnSettingBuilder) LateOnBaseOnTimeType(lateOnBaseOnTimeType int) *LateOffLateOnSettingBuilder

次日晚到时间计算规则

示例值:0

type LeaveAccrualRecord added in v3.0.22

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

	SectionType *int `json:"section_type,omitempty"` // 是否参与折算
}

type LeaveAccrualRecordBuilder added in v3.0.22

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

func NewLeaveAccrualRecordBuilder added in v3.0.22

func NewLeaveAccrualRecordBuilder() *LeaveAccrualRecordBuilder

func (*LeaveAccrualRecordBuilder) Build added in v3.0.22

func (*LeaveAccrualRecordBuilder) CreatedAt added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) CreatedAt(createdAt string) *LeaveAccrualRecordBuilder

授予记录的创建时间,unix时间戳

示例值:1

func (*LeaveAccrualRecordBuilder) CreatedBy added in v3.0.22

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

授予记录的创建人的ID

示例值:1

func (*LeaveAccrualRecordBuilder) EffectiveDate added in v3.0.22

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

生效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveAccrualRecordBuilder) EmploymentId added in v3.0.22

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

员工ID

示例值:1

func (*LeaveAccrualRecordBuilder) ExpirationDate added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) ExpirationDate(expirationDate string) *LeaveAccrualRecordBuilder

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveAccrualRecordBuilder) GrantedBy added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) GrantedBy(grantedBy int) *LeaveAccrualRecordBuilder

授予来源,1:系统授予;2:手动授予;3:外部系统授予

示例值:1

func (*LeaveAccrualRecordBuilder) GrantingQuantity added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveAccrualRecordBuilder

授予数量

示例值:1

func (*LeaveAccrualRecordBuilder) GrantingUnit added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) GrantingUnit(grantingUnit int) *LeaveAccrualRecordBuilder

授予单位,1表示天,2表示小时

示例值:1

func (*LeaveAccrualRecordBuilder) Id added in v3.0.22

授予记录唯一ID

示例值:1

func (*LeaveAccrualRecordBuilder) LeaveTypeId added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveAccrualRecordBuilder

假期类型ID

示例值:1

func (*LeaveAccrualRecordBuilder) Reason added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) Reason(reason []*LangText) *LeaveAccrualRecordBuilder

授予原因

示例值:

func (*LeaveAccrualRecordBuilder) SectionType added in v3.2.1

func (builder *LeaveAccrualRecordBuilder) SectionType(sectionType int) *LeaveAccrualRecordBuilder

是否参与折算

示例值:1

func (*LeaveAccrualRecordBuilder) UpdatedAt added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) UpdatedAt(updatedAt string) *LeaveAccrualRecordBuilder

授予记录的更新时间,unix时间戳

示例值:1

func (*LeaveAccrualRecordBuilder) UpdatedBy added in v3.0.22

func (builder *LeaveAccrualRecordBuilder) UpdatedBy(updatedBy string) *LeaveAccrualRecordBuilder

授予记录的更新人的ID

示例值:1

type LeaveEmployExpireRecord added in v3.0.22

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

	SectionType *int `json:"section_type,omitempty"` // 是否参与清算
}

type LeaveEmployExpireRecordBuilder added in v3.0.22

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

func NewLeaveEmployExpireRecordBuilder added in v3.0.22

func NewLeaveEmployExpireRecordBuilder() *LeaveEmployExpireRecordBuilder

func (*LeaveEmployExpireRecordBuilder) AccrualSource added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) AccrualSource(accrualSource int) *LeaveEmployExpireRecordBuilder

授予来源

示例值:1

func (*LeaveEmployExpireRecordBuilder) Build added in v3.0.22

func (*LeaveEmployExpireRecordBuilder) EffectiveDate added in v3.0.22

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

生效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveEmployExpireRecordBuilder) EmploymentId added in v3.0.22

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

员工ID

示例值:1

func (*LeaveEmployExpireRecordBuilder) ExpirationDate added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) ExpirationDate(expirationDate string) *LeaveEmployExpireRecordBuilder

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*LeaveEmployExpireRecordBuilder) GrantingQuantity added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveEmployExpireRecordBuilder

授予余额数量

示例值:1

func (*LeaveEmployExpireRecordBuilder) GrantingUnit added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) GrantingUnit(grantingUnit int) *LeaveEmployExpireRecordBuilder

授予单位,1表示天,2表示小时

示例值:1

func (*LeaveEmployExpireRecordBuilder) Id added in v3.0.22

record id

示例值:1

func (*LeaveEmployExpireRecordBuilder) IsUpdateByExternal added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) IsUpdateByExternal(isUpdateByExternal bool) *LeaveEmployExpireRecordBuilder

是否已经被外部系统更改过

示例值:true

func (*LeaveEmployExpireRecordBuilder) LeaveSubTypeId added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) LeaveSubTypeId(leaveSubTypeId string) *LeaveEmployExpireRecordBuilder

假期子类型id

示例值:1

func (*LeaveEmployExpireRecordBuilder) LeaveTypeId added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveEmployExpireRecordBuilder

假期类型ID

示例值:1

func (*LeaveEmployExpireRecordBuilder) LeftGrantingQuantity added in v3.0.22

func (builder *LeaveEmployExpireRecordBuilder) LeftGrantingQuantity(leftGrantingQuantity string) *LeaveEmployExpireRecordBuilder

授予数量 扣减完后的授予数量

示例值:1

func (*LeaveEmployExpireRecordBuilder) Reason added in v3.0.22

授予原因

示例值:

func (*LeaveEmployExpireRecordBuilder) SectionType added in v3.2.1

func (builder *LeaveEmployExpireRecordBuilder) SectionType(sectionType int) *LeaveEmployExpireRecordBuilder

是否参与清算

示例值:1

type LeaveNeedPunchCfg added in v3.0.22

type LeaveNeedPunchCfg struct {
	LateMinutesAsLate *int `json:"late_minutes_as_late,omitempty"` // 晚到超过多久记为迟到

	LateMinutesAsLack *int `json:"late_minutes_as_lack,omitempty"` // 晚到超过多久记为缺卡

	EarlyMinutesAsEarly *int `json:"early_minutes_as_early,omitempty"` // 早走超过多久记为早退

	EarlyMinutesAsLack *int `json:"early_minutes_as_lack,omitempty"` // 早走超过多久记为缺卡
}

type LeaveNeedPunchCfgBuilder added in v3.0.22

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

func NewLeaveNeedPunchCfgBuilder added in v3.0.22

func NewLeaveNeedPunchCfgBuilder() *LeaveNeedPunchCfgBuilder

func (*LeaveNeedPunchCfgBuilder) Build added in v3.0.22

func (builder *LeaveNeedPunchCfgBuilder) Build() *LeaveNeedPunchCfg

func (*LeaveNeedPunchCfgBuilder) EarlyMinutesAsEarly added in v3.0.22

func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsEarly(earlyMinutesAsEarly int) *LeaveNeedPunchCfgBuilder

早走超过多久记为早退

示例值:0

func (*LeaveNeedPunchCfgBuilder) EarlyMinutesAsLack added in v3.0.22

func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsLack(earlyMinutesAsLack int) *LeaveNeedPunchCfgBuilder

早走超过多久记为缺卡

示例值:0

func (*LeaveNeedPunchCfgBuilder) LateMinutesAsLack added in v3.0.22

func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLack(lateMinutesAsLack int) *LeaveNeedPunchCfgBuilder

晚到超过多久记为缺卡

示例值:0

func (*LeaveNeedPunchCfgBuilder) LateMinutesAsLate added in v3.0.22

func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLate(lateMinutesAsLate int) *LeaveNeedPunchCfgBuilder

晚到超过多久记为迟到

示例值:0

type ListArchiveRuleIterator added in v3.3.0

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

func (*ListArchiveRuleIterator) Next added in v3.3.0

func (iterator *ListArchiveRuleIterator) Next() (bool, *ArchiveReportMeta, error)

func (*ListArchiveRuleIterator) NextPageToken added in v3.3.0

func (iterator *ListArchiveRuleIterator) NextPageToken() *string

type ListArchiveRuleReq added in v3.3.0

type ListArchiveRuleReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListArchiveRuleReqBuilder added in v3.3.0

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

func NewListArchiveRuleReqBuilder added in v3.3.0

func NewListArchiveRuleReqBuilder() *ListArchiveRuleReqBuilder

func (*ListArchiveRuleReqBuilder) Build added in v3.3.0

func (*ListArchiveRuleReqBuilder) Limit added in v3.3.0

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

func (*ListArchiveRuleReqBuilder) PageSize added in v3.3.0

func (builder *ListArchiveRuleReqBuilder) PageSize(pageSize int) *ListArchiveRuleReqBuilder

分页大小

示例值:10

func (*ListArchiveRuleReqBuilder) PageToken added in v3.3.0

func (builder *ListArchiveRuleReqBuilder) PageToken(pageToken string) *ListArchiveRuleReqBuilder

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

示例值:xxx

type ListArchiveRuleResp added in v3.3.0

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

func (*ListArchiveRuleResp) Success added in v3.3.0

func (resp *ListArchiveRuleResp) Success() bool

type ListArchiveRuleRespData added in v3.3.0

type ListArchiveRuleRespData struct {
	Items []*ArchiveReportMeta `json:"items,omitempty"` // 分页查询结果项

	PageToken *string `json:"page_token,omitempty"` // 分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

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

type ListGroupIterator

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

func (*ListGroupIterator) Next

func (iterator *ListGroupIterator) Next() (bool, *GroupMeta, error)

func (*ListGroupIterator) NextPageToken

func (iterator *ListGroupIterator) NextPageToken() *string

type ListGroupReq

type ListGroupReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListGroupReqBuilder

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

func NewListGroupReqBuilder

func NewListGroupReqBuilder() *ListGroupReqBuilder

func (*ListGroupReqBuilder) Build

func (builder *ListGroupReqBuilder) Build() *ListGroupReq

func (*ListGroupReqBuilder) Limit

func (builder *ListGroupReqBuilder) Limit(limit int) *ListGroupReqBuilder

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

func (*ListGroupReqBuilder) PageSize

func (builder *ListGroupReqBuilder) PageSize(pageSize int) *ListGroupReqBuilder

分页大小

示例值:10

func (*ListGroupReqBuilder) PageToken

func (builder *ListGroupReqBuilder) PageToken(pageToken string) *ListGroupReqBuilder

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

示例值:wgNOR1rmxogRvAsGl6CXlQ==

type ListGroupResp

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

func (*ListGroupResp) Success

func (resp *ListGroupResp) Success() bool

type ListGroupRespData

type ListGroupRespData struct {
	GroupList []*GroupMeta `json:"group_list,omitempty"` // 考勤组列表

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

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

type ListShiftIterator

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

func (*ListShiftIterator) Next

func (iterator *ListShiftIterator) Next() (bool, *Shift, error)

func (*ListShiftIterator) NextPageToken

func (iterator *ListShiftIterator) NextPageToken() *string

type ListShiftReq

type ListShiftReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListShiftReqBuilder

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

func NewListShiftReqBuilder

func NewListShiftReqBuilder() *ListShiftReqBuilder

func (*ListShiftReqBuilder) Build

func (builder *ListShiftReqBuilder) Build() *ListShiftReq

func (*ListShiftReqBuilder) Limit

func (builder *ListShiftReqBuilder) Limit(limit int) *ListShiftReqBuilder

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

func (*ListShiftReqBuilder) PageSize

func (builder *ListShiftReqBuilder) PageSize(pageSize int) *ListShiftReqBuilder

分页大小

示例值:10

func (*ListShiftReqBuilder) PageToken

func (builder *ListShiftReqBuilder) PageToken(pageToken string) *ListShiftReqBuilder

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

示例值:YrkvQ1wGaPVta45tkxuGiQ==

type ListShiftResp

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

func (*ListShiftResp) Success

func (resp *ListShiftResp) Success() bool

type ListShiftRespData

type ListShiftRespData struct {
	ShiftList []*Shift `json:"shift_list,omitempty"` // 班次列表

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

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

type ListUserGroupReq added in v3.4.1

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

type ListUserGroupReqBuilder added in v3.4.1

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

func NewListUserGroupReqBuilder added in v3.4.1

func NewListUserGroupReqBuilder() *ListUserGroupReqBuilder

func (*ListUserGroupReqBuilder) Build added in v3.4.1

func (builder *ListUserGroupReqBuilder) Build() *ListUserGroupReq

func (*ListUserGroupReqBuilder) DeptType added in v3.4.1

func (builder *ListUserGroupReqBuilder) DeptType(deptType string) *ListUserGroupReqBuilder

部门 ID 的类型

示例值:open_id

func (*ListUserGroupReqBuilder) EmployeeType added in v3.4.1

func (builder *ListUserGroupReqBuilder) EmployeeType(employeeType string) *ListUserGroupReqBuilder

用户 ID 的类型

示例值:employee_id

func (*ListUserGroupReqBuilder) GroupId added in v3.4.1

func (builder *ListUserGroupReqBuilder) GroupId(groupId string) *ListUserGroupReqBuilder

考勤组id

示例值:6919358128597097404

func (*ListUserGroupReqBuilder) MemberClockType added in v3.4.1

func (builder *ListUserGroupReqBuilder) MemberClockType(memberClockType int) *ListUserGroupReqBuilder

打卡类型

示例值:1

func (*ListUserGroupReqBuilder) PageSize added in v3.4.1

func (builder *ListUserGroupReqBuilder) PageSize(pageSize int) *ListUserGroupReqBuilder

分页大小

示例值:10

func (*ListUserGroupReqBuilder) PageToken added in v3.4.1

func (builder *ListUserGroupReqBuilder) PageToken(pageToken string) *ListUserGroupReqBuilder

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

示例值:92xKiuWrBCSweSZJBSTpag%3D%3D

type ListUserGroupResp added in v3.4.1

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

func (*ListUserGroupResp) Success added in v3.4.1

func (resp *ListUserGroupResp) Success() bool

type ListUserGroupRespData added in v3.4.1

type ListUserGroupRespData struct {
	Users []*UserBase `json:"users,omitempty"` // 考勤组成员列表

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

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

type Location

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

	LocationName *string `json:"location_name,omitempty"` // 地址名称

	LocationType *int `json:"location_type,omitempty"` // 地址类型,1:GPS,2:Wi-Fi,8:IP

	Latitude *float64 `json:"latitude,omitempty"` // 地址纬度

	Longitude *float64 `json:"longitude,omitempty"` // 地址经度

	Ssid *string `json:"ssid,omitempty"` // Wi-Fi 名称

	Bssid *string `json:"bssid,omitempty"` // Wi-Fi 的 MAC 地址

	MapType *int `json:"map_type,omitempty"` // 地图类型,1:高德, 2:谷歌

	Address *string `json:"address,omitempty"` // 地址名称

	Ip *string `json:"ip,omitempty"` // IP 地址

	Feature *string `json:"feature,omitempty"` // 额外信息,例如:运营商信息

	GpsRange *int `json:"gps_range,omitempty"` // GPS 打卡的有效范围
}

type LocationBuilder

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

func NewLocationBuilder

func NewLocationBuilder() *LocationBuilder

func (*LocationBuilder) Address

func (builder *LocationBuilder) Address(address string) *LocationBuilder

地址名称

示例值:北京市海淀区中航广场

func (*LocationBuilder) Bssid

func (builder *LocationBuilder) Bssid(bssid string) *LocationBuilder

Wi-Fi 的 MAC 地址

示例值:08:00:20:0A:8C:6D

func (*LocationBuilder) Build

func (builder *LocationBuilder) Build() *Location

func (*LocationBuilder) Feature

func (builder *LocationBuilder) Feature(feature string) *LocationBuilder

额外信息,例如:运营商信息

示例值:中国电信

func (*LocationBuilder) GpsRange

func (builder *LocationBuilder) GpsRange(gpsRange int) *LocationBuilder

GPS 打卡的有效范围

示例值:300

func (*LocationBuilder) Ip

func (builder *LocationBuilder) Ip(ip string) *LocationBuilder

IP 地址

示例值:122.224.123.146

func (*LocationBuilder) Latitude

func (builder *LocationBuilder) Latitude(latitude float64) *LocationBuilder

地址纬度

示例值:30.28994

func (*LocationBuilder) LocationId

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

地址 ID

示例值:6921213751454744578

func (*LocationBuilder) LocationName

func (builder *LocationBuilder) LocationName(locationName string) *LocationBuilder

地址名称

示例值:浙江省杭州市余杭区五常街道木桥头西溪八方城

func (*LocationBuilder) LocationType

func (builder *LocationBuilder) LocationType(locationType int) *LocationBuilder

地址类型,1:GPS,2:Wi-Fi,8:IP

示例值:1

func (*LocationBuilder) Longitude

func (builder *LocationBuilder) Longitude(longitude float64) *LocationBuilder

地址经度

示例值:120.04509

func (*LocationBuilder) MapType

func (builder *LocationBuilder) MapType(mapType int) *LocationBuilder

地图类型,1:高德, 2:谷歌

示例值:1

func (*LocationBuilder) Ssid

func (builder *LocationBuilder) Ssid(ssid string) *LocationBuilder

Wi-Fi 名称

示例值:TP-Link-af12ca

type LocationInfo

type LocationInfo struct {
	Status *int `json:"status,omitempty"` // 开关状态

	Geofences []*Area `json:"geofences,omitempty"` //
}

type LocationInfoBuilder

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

func NewLocationInfoBuilder

func NewLocationInfoBuilder() *LocationInfoBuilder

func (*LocationInfoBuilder) Build

func (builder *LocationInfoBuilder) Build() *LocationInfo

func (*LocationInfoBuilder) Geofences

func (builder *LocationInfoBuilder) Geofences(geofences []*Area) *LocationInfoBuilder

示例值:

func (*LocationInfoBuilder) Status

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

开关状态

示例值:

type LocationInfoEvent

type LocationInfoEvent struct {
	Coord *Coordinate `json:"coord,omitempty"` //
}

type LocationInfoEventBuilder

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

func NewLocationInfoEventBuilder

func NewLocationInfoEventBuilder() *LocationInfoEventBuilder

func (*LocationInfoEventBuilder) Build

func (builder *LocationInfoEventBuilder) Build() *LocationInfoEvent

func (*LocationInfoEventBuilder) Coord

示例值:

type LocationRecord

type LocationRecord struct {
	UserId *UserId `json:"user_id,omitempty"` // 用户id

	Timestamp *string `json:"timestamp,omitempty"` // 时间点

	Location *LocationInfoEvent `json:"location,omitempty"` // 位置信息

	Wifi *WifiInfoEvent `json:"wifi,omitempty"` // wifi信息

	RuleSnapshotId *string `json:"rule_snapshot_id,omitempty"` // 规则快照id

	Type *string `json:"type,omitempty"` // 事件类型

	ScanWifiList []*ScanWifiInfo `json:"scan_wifi_list,omitempty"` // 附近的wifi设备列表

	DeviceId *string `json:"device_id,omitempty"` // 上报事件的设备ID

	ClientInfo *string `json:"client_info,omitempty"` //
}

type LocationRecordBuilder

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

func NewLocationRecordBuilder

func NewLocationRecordBuilder() *LocationRecordBuilder

func (*LocationRecordBuilder) Build

func (builder *LocationRecordBuilder) Build() *LocationRecord

func (*LocationRecordBuilder) ClientInfo

func (builder *LocationRecordBuilder) ClientInfo(clientInfo string) *LocationRecordBuilder

示例值:

func (*LocationRecordBuilder) DeviceId

func (builder *LocationRecordBuilder) DeviceId(deviceId string) *LocationRecordBuilder

上报事件的设备ID

示例值:

func (*LocationRecordBuilder) Location

func (builder *LocationRecordBuilder) Location(location *LocationInfoEvent) *LocationRecordBuilder

位置信息

示例值:

func (*LocationRecordBuilder) RuleSnapshotId

func (builder *LocationRecordBuilder) RuleSnapshotId(ruleSnapshotId string) *LocationRecordBuilder

规则快照id

示例值:

func (*LocationRecordBuilder) ScanWifiList

func (builder *LocationRecordBuilder) ScanWifiList(scanWifiList []*ScanWifiInfo) *LocationRecordBuilder

附近的wifi设备列表

示例值:

func (*LocationRecordBuilder) Timestamp

func (builder *LocationRecordBuilder) Timestamp(timestamp string) *LocationRecordBuilder

时间点

示例值:

func (*LocationRecordBuilder) Type

func (builder *LocationRecordBuilder) Type(type_ string) *LocationRecordBuilder

事件类型

示例值:

func (*LocationRecordBuilder) UserId

func (builder *LocationRecordBuilder) UserId(userId *UserId) *LocationRecordBuilder

用户id

示例值:

func (*LocationRecordBuilder) Wifi

wifi信息

示例值:

type LocationSetting

type LocationSetting struct {
	Location *LocationInfo `json:"location,omitempty"` // 位置配置

	Wifi *WifiInfo `json:"wifi,omitempty"` // wifi配置

	UserId *string `json:"user_id,omitempty"` //
}

type LocationSettingBuilder

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

func NewLocationSettingBuilder

func NewLocationSettingBuilder() *LocationSettingBuilder

func (*LocationSettingBuilder) Build

func (builder *LocationSettingBuilder) Build() *LocationSetting

func (*LocationSettingBuilder) Location

func (builder *LocationSettingBuilder) Location(location *LocationInfo) *LocationSettingBuilder

位置配置

示例值:

func (*LocationSettingBuilder) UserId

func (builder *LocationSettingBuilder) UserId(userId string) *LocationSettingBuilder

示例值:

func (*LocationSettingBuilder) Wifi

wifi配置

示例值:

type Machine

type Machine struct {
	MachineSn *string `json:"machine_sn,omitempty"` // 考勤机序列号

	MachineName *string `json:"machine_name,omitempty"` // 考勤机名称
}

type MachineBuilder

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

func NewMachineBuilder

func NewMachineBuilder() *MachineBuilder

func (*MachineBuilder) Build

func (builder *MachineBuilder) Build() *Machine

func (*MachineBuilder) MachineName

func (builder *MachineBuilder) MachineName(machineName string) *MachineBuilder

考勤机名称

示例值:创实 9 楼

func (*MachineBuilder) MachineSn

func (builder *MachineBuilder) MachineSn(machineSn string) *MachineBuilder

考勤机序列号

示例值:FS0701

type MemberStatusChange added in v3.0.20

type MemberStatusChange struct {
	OnboardingOnNoNeedPunch *bool `json:"onboarding_on_no_need_punch,omitempty"` // 是否入职日上班无需打卡

	OnboardingOffNoNeedPunch *bool `json:"onboarding_off_no_need_punch,omitempty"` // 是否入职日下班无需打卡

	OffboardingOnNoNeedPunch *bool `json:"offboarding_on_no_need_punch,omitempty"` // 是否离职日上班无需打卡

	OffboardingOffNoNeedPunch *bool `json:"offboarding_off_no_need_punch,omitempty"` // 是否离职日下班无需打卡
}

type MemberStatusChangeBuilder added in v3.0.20

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

func NewMemberStatusChangeBuilder added in v3.0.20

func NewMemberStatusChangeBuilder() *MemberStatusChangeBuilder

func (*MemberStatusChangeBuilder) Build added in v3.0.20

func (*MemberStatusChangeBuilder) OffboardingOffNoNeedPunch added in v3.0.20

func (builder *MemberStatusChangeBuilder) OffboardingOffNoNeedPunch(offboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder

是否离职日下班无需打卡

示例值:false

func (*MemberStatusChangeBuilder) OffboardingOnNoNeedPunch added in v3.0.20

func (builder *MemberStatusChangeBuilder) OffboardingOnNoNeedPunch(offboardingOnNoNeedPunch bool) *MemberStatusChangeBuilder

是否离职日上班无需打卡

示例值:false

func (*MemberStatusChangeBuilder) OnboardingOffNoNeedPunch added in v3.0.20

func (builder *MemberStatusChangeBuilder) OnboardingOffNoNeedPunch(onboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder

是否入职日下班无需打卡

示例值:false

func (*MemberStatusChangeBuilder) OnboardingOnNoNeedPunch added in v3.0.20

func (builder *MemberStatusChangeBuilder) OnboardingOnNoNeedPunch(onboardingOnNoNeedPunch bool) *MemberStatusChangeBuilder

是否入职日上班无需打卡

示例值:false

type ModifyUserSettingPathReqBodyBuilder

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

func NewModifyUserSettingPathReqBodyBuilder

func NewModifyUserSettingPathReqBodyBuilder() *ModifyUserSettingPathReqBodyBuilder

func (*ModifyUserSettingPathReqBodyBuilder) Build

func (*ModifyUserSettingPathReqBodyBuilder) UserSetting

用户设置

示例值:

type ModifyUserSettingReq

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

type ModifyUserSettingReqBody

type ModifyUserSettingReqBody struct {
	UserSetting *UserSetting `json:"user_setting,omitempty"` // 用户设置
}

type ModifyUserSettingReqBodyBuilder

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

func NewModifyUserSettingReqBodyBuilder

func NewModifyUserSettingReqBodyBuilder() *ModifyUserSettingReqBodyBuilder

func (*ModifyUserSettingReqBodyBuilder) Build

func (*ModifyUserSettingReqBodyBuilder) UserSetting

用户设置

示例值:

type ModifyUserSettingReqBuilder

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

func NewModifyUserSettingReqBuilder

func NewModifyUserSettingReqBuilder() *ModifyUserSettingReqBuilder

func (*ModifyUserSettingReqBuilder) Body

修改授权内员工的用户设置信息,包括人脸照片文件 ID。

func (*ModifyUserSettingReqBuilder) Build

func (*ModifyUserSettingReqBuilder) EmployeeType

func (builder *ModifyUserSettingReqBuilder) EmployeeType(employeeType string) *ModifyUserSettingReqBuilder

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

type ModifyUserSettingResp

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

func (*ModifyUserSettingResp) Success

func (resp *ModifyUserSettingResp) Success() bool

type ModifyUserSettingRespData

type ModifyUserSettingRespData struct {
	UserSetting *UserSetting `json:"user_setting,omitempty"` // 用户设置
}

type OpenApplyTimeRange added in v3.0.34

type OpenApplyTimeRange struct {
	OvertimeAttributionDate *string `json:"overtime_attribution_date,omitempty"` // 加班所属日期

	TimeRange *OvertimeTimeRange `json:"time_range,omitempty"` // 时段信息
}

type OpenApplyTimeRangeBuilder added in v3.0.34

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

func NewOpenApplyTimeRangeBuilder added in v3.0.34

func NewOpenApplyTimeRangeBuilder() *OpenApplyTimeRangeBuilder

func (*OpenApplyTimeRangeBuilder) Build added in v3.0.34

func (*OpenApplyTimeRangeBuilder) OvertimeAttributionDate added in v3.0.34

func (builder *OpenApplyTimeRangeBuilder) OvertimeAttributionDate(overtimeAttributionDate string) *OpenApplyTimeRangeBuilder

加班所属日期

示例值:2023-09-25

func (*OpenApplyTimeRangeBuilder) TimeRange added in v3.0.34

时段信息

示例值:

type OvertimeApplyDetail added in v3.1.2

type OvertimeApplyDetail struct {
	UserId *string `json:"user_id,omitempty"` // 加班明细用户ID(根据date_type_id)

	Date *string `json:"date,omitempty"` // 加班日期

	DateType *int `json:"date_type,omitempty"` // 日期类型

	Duration *string `json:"duration,omitempty"` // 加班时长,两位小数

	Unit *int `json:"unit,omitempty"` // 加班单位

	IsTimeBank *bool `json:"is_time_bank,omitempty"` // 是否是综合工时

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

type OvertimeApplyDetailBuilder added in v3.1.2

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

func NewOvertimeApplyDetailBuilder added in v3.1.2

func NewOvertimeApplyDetailBuilder() *OvertimeApplyDetailBuilder

func (*OvertimeApplyDetailBuilder) Build added in v3.1.2

func (*OvertimeApplyDetailBuilder) Date added in v3.1.2

加班日期

示例值:2006-01-02

func (*OvertimeApplyDetailBuilder) DateType added in v3.1.2

func (builder *OvertimeApplyDetailBuilder) DateType(dateType int) *OvertimeApplyDetailBuilder

日期类型

示例值:1

func (*OvertimeApplyDetailBuilder) Duration added in v3.1.2

func (builder *OvertimeApplyDetailBuilder) Duration(duration string) *OvertimeApplyDetailBuilder

加班时长,两位小数

示例值:0.5

func (*OvertimeApplyDetailBuilder) IsTimeBank added in v3.1.2

func (builder *OvertimeApplyDetailBuilder) IsTimeBank(isTimeBank bool) *OvertimeApplyDetailBuilder

是否是综合工时

示例值:false

func (*OvertimeApplyDetailBuilder) Unit added in v3.1.2

加班单位

示例值:1

func (*OvertimeApplyDetailBuilder) UpdateTime added in v3.1.3

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

添加更新数据时间

示例值:2023-12-31 12:00:00

func (*OvertimeApplyDetailBuilder) UserId added in v3.1.2

加班明细用户ID(根据date_type_id)

示例值:7271137794704015379

type OvertimeApproval added in v3.3.7

type OvertimeApproval struct {
	UserId *string `json:"user_id,omitempty"` // 用户id

	StartTime *string `json:"start_time,omitempty"` // 加班开始时间

	EndTime *string `json:"end_time,omitempty"` // 加班结束时间

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

	ApprovalDailyDetails []*ApprovalDailyDetail `json:"approval_daily_details,omitempty"` // 审批单每日加班详情

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

type OvertimeApprovalBuilder added in v3.3.7

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

func NewOvertimeApprovalBuilder added in v3.3.7

func NewOvertimeApprovalBuilder() *OvertimeApprovalBuilder

func (*OvertimeApprovalBuilder) ApprovalDailyDetails added in v3.3.7

func (builder *OvertimeApprovalBuilder) ApprovalDailyDetails(approvalDailyDetails []*ApprovalDailyDetail) *OvertimeApprovalBuilder

审批单每日加班详情

示例值:

func (*OvertimeApprovalBuilder) Build added in v3.3.7

func (builder *OvertimeApprovalBuilder) Build() *OvertimeApproval

func (*OvertimeApprovalBuilder) CreateTime added in v3.3.7

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

审批单创建时间

示例值:2024-10-22 15:15

func (*OvertimeApprovalBuilder) EndTime added in v3.3.7

func (builder *OvertimeApprovalBuilder) EndTime(endTime string) *OvertimeApprovalBuilder

加班结束时间

示例值:2024-10-22 15:15

func (*OvertimeApprovalBuilder) StartTime added in v3.3.7

func (builder *OvertimeApprovalBuilder) StartTime(startTime string) *OvertimeApprovalBuilder

加班开始时间

示例值:2024-10-21 15:15

func (*OvertimeApprovalBuilder) Status added in v3.4.0

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

审批单状态

示例值:0

func (*OvertimeApprovalBuilder) UserId added in v3.3.7

func (builder *OvertimeApprovalBuilder) UserId(userId string) *OvertimeApprovalBuilder

用户id

示例值:

type OvertimeClockCfg added in v3.0.31

type OvertimeClockCfg struct {
	AllowPunchApproval *bool `json:"allow_punch_approval,omitempty"` // 是否允许在非打卡时段申请打卡(仅灰度租户可用)

	NeedClockOverTimeStartAndEnd *bool `json:"need_clock_over_time_start_and_end,omitempty"` // 加班开始和结束需打卡(需灰度)
}

type OvertimeClockCfgBuilder added in v3.0.31

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

func NewOvertimeClockCfgBuilder added in v3.0.31

func NewOvertimeClockCfgBuilder() *OvertimeClockCfgBuilder

func (*OvertimeClockCfgBuilder) AllowPunchApproval added in v3.0.31

func (builder *OvertimeClockCfgBuilder) AllowPunchApproval(allowPunchApproval bool) *OvertimeClockCfgBuilder

是否允许在非打卡时段申请打卡(仅灰度租户可用)

示例值:false

func (*OvertimeClockCfgBuilder) Build added in v3.0.31

func (builder *OvertimeClockCfgBuilder) Build() *OvertimeClockCfg

func (*OvertimeClockCfgBuilder) NeedClockOverTimeStartAndEnd added in v3.2.1

func (builder *OvertimeClockCfgBuilder) NeedClockOverTimeStartAndEnd(needClockOverTimeStartAndEnd bool) *OvertimeClockCfgBuilder

加班开始和结束需打卡(需灰度)

示例值:false

type OvertimeDetail added in v3.0.31

type OvertimeDetail struct {
	Id *string `json:"id,omitempty"` // 加班明细ID

	UserId *string `json:"user_id,omitempty"` // 加班明细用户ID(根据date_type_id)

	StartTime *string `json:"start_time,omitempty"` // 加班开始时间格式(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)

	EndTime *string `json:"end_time,omitempty"` // 加班结束时间(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)

	Duration *string `json:"duration,omitempty"` // 加班时长,两位小数

	Unit *int `json:"unit,omitempty"` // 加班单位

	DateType *int `json:"date_type,omitempty"` // 日期类型

	SettleType *int `json:"settle_type,omitempty"` // 结算方式

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

	ProgressStartTime *string `json:"progress_start_time,omitempty"` // 流程开始时间戳

	Date *string `json:"date,omitempty"` // 加班日期

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

	IsTimeBank *bool `json:"is_time_bank,omitempty"` // 是否是综合工时产生的加班明细

	InstanceId *string `json:"instance_id,omitempty"` // 加班明细对应的审批单ID,如果为空代表改加班明细不是审批转入的
}

type OvertimeDetailBuilder added in v3.0.31

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

func NewOvertimeDetailBuilder added in v3.0.31

func NewOvertimeDetailBuilder() *OvertimeDetailBuilder

func (*OvertimeDetailBuilder) Build added in v3.0.31

func (builder *OvertimeDetailBuilder) Build() *OvertimeDetail

func (*OvertimeDetailBuilder) Date added in v3.0.31

func (builder *OvertimeDetailBuilder) Date(date string) *OvertimeDetailBuilder

加班日期

示例值:2006-01-02

func (*OvertimeDetailBuilder) DateType added in v3.0.31

func (builder *OvertimeDetailBuilder) DateType(dateType int) *OvertimeDetailBuilder

日期类型

示例值:1

func (*OvertimeDetailBuilder) Duration added in v3.0.31

func (builder *OvertimeDetailBuilder) Duration(duration string) *OvertimeDetailBuilder

加班时长,两位小数

示例值:0.5

func (*OvertimeDetailBuilder) EffectiveTime added in v3.0.31

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

生效时间时间戳

示例值:1694592064

func (*OvertimeDetailBuilder) EndTime added in v3.0.31

func (builder *OvertimeDetailBuilder) EndTime(endTime string) *OvertimeDetailBuilder

加班结束时间(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)

示例值:2006-01-02 00:00:00

func (*OvertimeDetailBuilder) Id added in v3.0.31

加班明细ID

示例值:1

func (*OvertimeDetailBuilder) InstanceId added in v3.1.3

func (builder *OvertimeDetailBuilder) InstanceId(instanceId string) *OvertimeDetailBuilder

加班明细对应的审批单ID,如果为空代表改加班明细不是审批转入的

示例值:1234

func (*OvertimeDetailBuilder) IsTimeBank added in v3.1.3

func (builder *OvertimeDetailBuilder) IsTimeBank(isTimeBank bool) *OvertimeDetailBuilder

是否是综合工时产生的加班明细

示例值:false

func (*OvertimeDetailBuilder) ProgressStartTime added in v3.0.31

func (builder *OvertimeDetailBuilder) ProgressStartTime(progressStartTime string) *OvertimeDetailBuilder

流程开始时间戳

示例值:1694592064

func (*OvertimeDetailBuilder) SettleType added in v3.0.31

func (builder *OvertimeDetailBuilder) SettleType(settleType int) *OvertimeDetailBuilder

结算方式

示例值:1

func (*OvertimeDetailBuilder) StartTime added in v3.0.31

func (builder *OvertimeDetailBuilder) StartTime(startTime string) *OvertimeDetailBuilder

加班开始时间格式(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)

示例值:2006-01-02 00:00:00

func (*OvertimeDetailBuilder) Unit added in v3.0.31

func (builder *OvertimeDetailBuilder) Unit(unit int) *OvertimeDetailBuilder

加班单位

示例值:1

func (*OvertimeDetailBuilder) UpdateTime added in v3.1.3

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

数据更新时间

示例值:2023-12-31

func (*OvertimeDetailBuilder) UserId added in v3.0.31

func (builder *OvertimeDetailBuilder) UserId(userId string) *OvertimeDetailBuilder

加班明细用户ID(根据date_type_id)

示例值:7271137794704015379

type OvertimeRule added in v3.0.24

type OvertimeRule struct {
	OnOvertime *string `json:"on_overtime,omitempty"` // 加班上班时间

	OffOvertime *string `json:"off_overtime,omitempty"` // 加班下班时间
}

type OvertimeRuleBuilder added in v3.0.24

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

func NewOvertimeRuleBuilder added in v3.0.24

func NewOvertimeRuleBuilder() *OvertimeRuleBuilder

func (*OvertimeRuleBuilder) Build added in v3.0.24

func (builder *OvertimeRuleBuilder) Build() *OvertimeRule

func (*OvertimeRuleBuilder) OffOvertime added in v3.0.24

func (builder *OvertimeRuleBuilder) OffOvertime(offOvertime string) *OvertimeRuleBuilder

加班下班时间

示例值:18:00, 第二天凌晨2点, 26:00

func (*OvertimeRuleBuilder) OnOvertime added in v3.0.24

func (builder *OvertimeRuleBuilder) OnOvertime(onOvertime string) *OvertimeRuleBuilder

加班上班时间

示例值:9:00

type OvertimeTimeRange added in v3.0.32

type OvertimeTimeRange struct {
	StartTime *string `json:"start_time,omitempty"` // 开始时间

	EndTime *string `json:"end_time,omitempty"` // 结束时间
}

type OvertimeTimeRangeBuilder added in v3.0.32

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

func NewOvertimeTimeRangeBuilder added in v3.0.32

func NewOvertimeTimeRangeBuilder() *OvertimeTimeRangeBuilder

func (*OvertimeTimeRangeBuilder) Build added in v3.0.32

func (builder *OvertimeTimeRangeBuilder) Build() *OvertimeTimeRange

func (*OvertimeTimeRangeBuilder) EndTime added in v3.0.32

func (builder *OvertimeTimeRangeBuilder) EndTime(endTime string) *OvertimeTimeRangeBuilder

结束时间

示例值:2023-09-25 23:30:00

func (*OvertimeTimeRangeBuilder) StartTime added in v3.0.32

func (builder *OvertimeTimeRangeBuilder) StartTime(startTime string) *OvertimeTimeRangeBuilder

开始时间

示例值:2023-09-25 07:00:00

type PatchLeaveAccrualRecordPathReqBodyBuilder added in v3.0.22

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

func NewPatchLeaveAccrualRecordPathReqBodyBuilder added in v3.0.22

func NewPatchLeaveAccrualRecordPathReqBodyBuilder() *PatchLeaveAccrualRecordPathReqBodyBuilder

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Build added in v3.0.22

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) EmploymentId added in v3.0.22

员工ID

示例值:1

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) ExpirationDate added in v3.0.22

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveGrantingRecordId added in v3.0.22

func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordPathReqBodyBuilder

授予记录的唯一ID

示例值:1

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveTypeId added in v3.0.22

假期类型ID

示例值:1

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Quantity added in v3.0.22

修改source 余额

示例值:1

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Reason added in v3.0.22

修改授予记录原因

示例值:

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) SectionType added in v3.2.1

是否参与清算

示例值:1

func (*PatchLeaveAccrualRecordPathReqBodyBuilder) TimeOffset added in v3.0.22

时间偏移,东八区:480 8*60

示例值:480

type PatchLeaveAccrualRecordReq added in v3.0.22

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

type PatchLeaveAccrualRecordReqBody added in v3.0.22

type PatchLeaveAccrualRecordReqBody struct {
	LeaveGrantingRecordId *string `json:"leave_granting_record_id,omitempty"` // 授予记录的唯一ID

	EmploymentId *string `json:"employment_id,omitempty"` // 员工ID

	LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID

	Reason []*LangText `json:"reason,omitempty"` // 修改授予记录原因

	TimeOffset *int `json:"time_offset,omitempty"` // 时间偏移,东八区:480	8*60

	ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期,格式"2020-01-01"

	Quantity *string `json:"quantity,omitempty"` // 修改source 余额

	SectionType *int `json:"section_type,omitempty"` // 是否参与清算
}

type PatchLeaveAccrualRecordReqBodyBuilder added in v3.0.22

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

func NewPatchLeaveAccrualRecordReqBodyBuilder added in v3.0.22

func NewPatchLeaveAccrualRecordReqBodyBuilder() *PatchLeaveAccrualRecordReqBodyBuilder

func (*PatchLeaveAccrualRecordReqBodyBuilder) Build added in v3.0.22

func (*PatchLeaveAccrualRecordReqBodyBuilder) EmploymentId added in v3.0.22

员工ID

示例值:1

func (*PatchLeaveAccrualRecordReqBodyBuilder) ExpirationDate added in v3.0.22

失效日期,格式"2020-01-01"

示例值:2020-01-01

func (*PatchLeaveAccrualRecordReqBodyBuilder) LeaveGrantingRecordId added in v3.0.22

func (builder *PatchLeaveAccrualRecordReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordReqBodyBuilder

授予记录的唯一ID

示例值:1

func (*PatchLeaveAccrualRecordReqBodyBuilder) LeaveTypeId added in v3.0.22

假期类型ID

示例值:1

func (*PatchLeaveAccrualRecordReqBodyBuilder) Quantity added in v3.0.22

修改source 余额

示例值:1

func (*PatchLeaveAccrualRecordReqBodyBuilder) Reason added in v3.0.22

修改授予记录原因

示例值:

func (*PatchLeaveAccrualRecordReqBodyBuilder) SectionType added in v3.2.1

是否参与清算

示例值:1

func (*PatchLeaveAccrualRecordReqBodyBuilder) TimeOffset added in v3.0.22

时间偏移,东八区:480 8*60

示例值:480

type PatchLeaveAccrualRecordReqBuilder added in v3.0.22

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

func NewPatchLeaveAccrualRecordReqBuilder added in v3.0.22

func NewPatchLeaveAccrualRecordReqBuilder() *PatchLeaveAccrualRecordReqBuilder

func (*PatchLeaveAccrualRecordReqBuilder) Body added in v3.0.22

func (*PatchLeaveAccrualRecordReqBuilder) Build added in v3.0.22

func (*PatchLeaveAccrualRecordReqBuilder) LeaveId added in v3.0.22

假期类型ID

示例值:1

func (*PatchLeaveAccrualRecordReqBuilder) UserIdType added in v3.0.24

用户 ID 类型

示例值:open_id

type PatchLeaveAccrualRecordResp added in v3.0.22

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

func (*PatchLeaveAccrualRecordResp) Success added in v3.0.22

func (resp *PatchLeaveAccrualRecordResp) Success() bool

type PatchLeaveAccrualRecordRespData added in v3.0.22

type PatchLeaveAccrualRecordRespData struct {
	Record *LeaveAccrualRecord `json:"record,omitempty"` // 员工过期日期的授予记录
}

type ProcessApprovalInfoPathReqBodyBuilder

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

func NewProcessApprovalInfoPathReqBodyBuilder

func NewProcessApprovalInfoPathReqBodyBuilder() *ProcessApprovalInfoPathReqBodyBuilder

func (*ProcessApprovalInfoPathReqBodyBuilder) ApprovalId

审批实例 ID,获取方式:1)[获取审批通过数据](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query) 2)[写入审批结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create) 3)[通知补卡审批发起(补卡情况下)](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create)

示例值:6737202939523236113

func (*ProcessApprovalInfoPathReqBodyBuilder) ApprovalType

审批类型,leave:请假,out:外出,overtime:加班,trip:出差,remedy:补卡

示例值:remedy

func (*ProcessApprovalInfoPathReqBodyBuilder) Build

func (*ProcessApprovalInfoPathReqBodyBuilder) Status

审批状态,1:不通过,2:通过,4:撤销

示例值:4

type ProcessApprovalInfoReq

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

type ProcessApprovalInfoReqBody

type ProcessApprovalInfoReqBody struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID,获取方式:1)[获取审批通过数据](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query) 2)[写入审批结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create) 3)[通知补卡审批发起(补卡情况下)](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create)

	ApprovalType *string `json:"approval_type,omitempty"` // 审批类型,leave:请假,out:外出,overtime:加班,trip:出差,remedy:补卡

	Status *int `json:"status,omitempty"` // 审批状态,1:不通过,2:通过,4:撤销
}

type ProcessApprovalInfoReqBodyBuilder

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

func NewProcessApprovalInfoReqBodyBuilder

func NewProcessApprovalInfoReqBodyBuilder() *ProcessApprovalInfoReqBodyBuilder

func (*ProcessApprovalInfoReqBodyBuilder) ApprovalId

审批实例 ID,获取方式:1)[获取审批通过数据](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query) 2)[写入审批结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create) 3)[通知补卡审批发起(补卡情况下)](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create)

示例值:6737202939523236113

func (*ProcessApprovalInfoReqBodyBuilder) ApprovalType

func (builder *ProcessApprovalInfoReqBodyBuilder) ApprovalType(approvalType string) *ProcessApprovalInfoReqBodyBuilder

审批类型,leave:请假,out:外出,overtime:加班,trip:出差,remedy:补卡

示例值:remedy

func (*ProcessApprovalInfoReqBodyBuilder) Build

func (*ProcessApprovalInfoReqBodyBuilder) Status

审批状态,1:不通过,2:通过,4:撤销

示例值:4

type ProcessApprovalInfoReqBuilder

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

func NewProcessApprovalInfoReqBuilder

func NewProcessApprovalInfoReqBuilder() *ProcessApprovalInfoReqBuilder

func (*ProcessApprovalInfoReqBuilder) Body

对于只使用飞书考勤系统而未使用飞书审批系统的企业,可以通过该接口更新写入飞书考勤系统中的三方系统审批状态,例如请假、加班、外出、出差、补卡等审批,状态包括通过、不通过、撤销等。

func (*ProcessApprovalInfoReqBuilder) Build

type ProcessApprovalInfoResp

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

func (*ProcessApprovalInfoResp) Success

func (resp *ProcessApprovalInfoResp) Success() bool

type ProcessApprovalInfoRespData

type ProcessApprovalInfoRespData struct {
	ApprovalInfo *ApprovalInfo `json:"approval_info,omitempty"` // 审批信息
}

type PunchMember added in v3.0.23

type PunchMember struct {
	RuleScopeType *int `json:"rule_scope_type,omitempty"` // 圈人方式:0 无 1全部 2自定义

	ScopeGroupList *ScopeGroup `json:"scope_group_list,omitempty"` // 圈人规则列表
}

type PunchMemberBuilder added in v3.0.23

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

func NewPunchMemberBuilder added in v3.0.23

func NewPunchMemberBuilder() *PunchMemberBuilder

func (*PunchMemberBuilder) Build added in v3.0.23

func (builder *PunchMemberBuilder) Build() *PunchMember

func (*PunchMemberBuilder) RuleScopeType added in v3.0.23

func (builder *PunchMemberBuilder) RuleScopeType(ruleScopeType int) *PunchMemberBuilder

圈人方式:0 无 1全部 2自定义

示例值:0

func (*PunchMemberBuilder) ScopeGroupList added in v3.0.23

func (builder *PunchMemberBuilder) ScopeGroupList(scopeGroupList *ScopeGroup) *PunchMemberBuilder

圈人规则列表

示例值:

type PunchSpecialDateShift

type PunchSpecialDateShift struct {
	PunchDay *int `json:"punch_day,omitempty"` // 打卡日期

	ShiftId *string `json:"shift_id,omitempty"` // 班次 ID
}

type PunchSpecialDateShiftBuilder

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

func NewPunchSpecialDateShiftBuilder

func NewPunchSpecialDateShiftBuilder() *PunchSpecialDateShiftBuilder

func (*PunchSpecialDateShiftBuilder) Build

func (*PunchSpecialDateShiftBuilder) PunchDay

func (builder *PunchSpecialDateShiftBuilder) PunchDay(punchDay int) *PunchSpecialDateShiftBuilder

打卡日期

示例值:20190101

func (*PunchSpecialDateShiftBuilder) ShiftId

班次 ID

示例值:6919668827865513935

type PunchTimeRule

type PunchTimeRule struct {
	OnTime *string `json:"on_time,omitempty"` // 上班时间

	OffTime *string `json:"off_time,omitempty"` // 下班时间

	LateMinutesAsLate *int `json:"late_minutes_as_late,omitempty"` // 晚到多久记为迟到

	LateMinutesAsLack *int `json:"late_minutes_as_lack,omitempty"` // 晚到多久记为缺卡

	OnAdvanceMinutes *int `json:"on_advance_minutes,omitempty"` // 最早多久可打上班卡

	EarlyMinutesAsEarly *int `json:"early_minutes_as_early,omitempty"` // 早退多久记为早退

	EarlyMinutesAsLack *int `json:"early_minutes_as_lack,omitempty"` // 早退多久记为缺卡

	OffDelayMinutes *int `json:"off_delay_minutes,omitempty"` // 最晚多久可打下班卡

	LateMinutesAsSeriousLate *int `json:"late_minutes_as_serious_late,omitempty"` // 晚到多久记为严重迟到

	NoNeedOn *bool `json:"no_need_on,omitempty"` // 不需要打上班卡

	NoNeedOff *bool `json:"no_need_off,omitempty"` // 不需要打下班卡
}

type PunchTimeRuleBuilder

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

func NewPunchTimeRuleBuilder

func NewPunchTimeRuleBuilder() *PunchTimeRuleBuilder

func (*PunchTimeRuleBuilder) Build

func (builder *PunchTimeRuleBuilder) Build() *PunchTimeRule

func (*PunchTimeRuleBuilder) EarlyMinutesAsEarly

func (builder *PunchTimeRuleBuilder) EarlyMinutesAsEarly(earlyMinutesAsEarly int) *PunchTimeRuleBuilder

早退多久记为早退

示例值:30

func (*PunchTimeRuleBuilder) EarlyMinutesAsLack

func (builder *PunchTimeRuleBuilder) EarlyMinutesAsLack(earlyMinutesAsLack int) *PunchTimeRuleBuilder

早退多久记为缺卡

示例值:60

func (*PunchTimeRuleBuilder) LateMinutesAsLack

func (builder *PunchTimeRuleBuilder) LateMinutesAsLack(lateMinutesAsLack int) *PunchTimeRuleBuilder

晚到多久记为缺卡

示例值:60

func (*PunchTimeRuleBuilder) LateMinutesAsLate

func (builder *PunchTimeRuleBuilder) LateMinutesAsLate(lateMinutesAsLate int) *PunchTimeRuleBuilder

晚到多久记为迟到

示例值:30

func (*PunchTimeRuleBuilder) LateMinutesAsSeriousLate added in v3.0.1

func (builder *PunchTimeRuleBuilder) LateMinutesAsSeriousLate(lateMinutesAsSeriousLate int) *PunchTimeRuleBuilder

晚到多久记为严重迟到

示例值:40

func (*PunchTimeRuleBuilder) NoNeedOff added in v3.2.6

func (builder *PunchTimeRuleBuilder) NoNeedOff(noNeedOff bool) *PunchTimeRuleBuilder

不需要打下班卡

示例值:true

func (*PunchTimeRuleBuilder) NoNeedOn added in v3.2.6

func (builder *PunchTimeRuleBuilder) NoNeedOn(noNeedOn bool) *PunchTimeRuleBuilder

不需要打上班卡

示例值:true

func (*PunchTimeRuleBuilder) OffDelayMinutes

func (builder *PunchTimeRuleBuilder) OffDelayMinutes(offDelayMinutes int) *PunchTimeRuleBuilder

最晚多久可打下班卡

示例值:60

func (*PunchTimeRuleBuilder) OffTime

func (builder *PunchTimeRuleBuilder) OffTime(offTime string) *PunchTimeRuleBuilder

下班时间

示例值:18:00, 第二天凌晨2点, 26:00

func (*PunchTimeRuleBuilder) OnAdvanceMinutes

func (builder *PunchTimeRuleBuilder) OnAdvanceMinutes(onAdvanceMinutes int) *PunchTimeRuleBuilder

最早多久可打上班卡

示例值:60

func (*PunchTimeRuleBuilder) OnTime

func (builder *PunchTimeRuleBuilder) OnTime(onTime string) *PunchTimeRuleBuilder

上班时间

示例值:9:00

type PunchTimeSimpleRule added in v3.2.3

type PunchTimeSimpleRule struct {
	OnTime *string `json:"on_time,omitempty"` // 上班时间

	OffTime *string `json:"off_time,omitempty"` // 下班时间
}

type PunchTimeSimpleRuleBuilder added in v3.2.3

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

func NewPunchTimeSimpleRuleBuilder added in v3.2.3

func NewPunchTimeSimpleRuleBuilder() *PunchTimeSimpleRuleBuilder

func (*PunchTimeSimpleRuleBuilder) Build added in v3.2.3

func (*PunchTimeSimpleRuleBuilder) OffTime added in v3.2.3

下班时间

示例值:18:00, 第二天凌晨2点, 26:00

func (*PunchTimeSimpleRuleBuilder) OnTime added in v3.2.3

上班时间

示例值:9:00

type QueryShiftReq

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

type QueryShiftReqBuilder

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

func NewQueryShiftReqBuilder

func NewQueryShiftReqBuilder() *QueryShiftReqBuilder

func (*QueryShiftReqBuilder) Build

func (builder *QueryShiftReqBuilder) Build() *QueryShiftReq

func (*QueryShiftReqBuilder) ShiftName

func (builder *QueryShiftReqBuilder) ShiftName(shiftName string) *QueryShiftReqBuilder

班次名称

示例值:早班

type QueryShiftResp

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

func (*QueryShiftResp) Success

func (resp *QueryShiftResp) Success() bool

type QueryShiftRespData

type QueryShiftRespData struct {
	ShiftId *string `json:"shift_id,omitempty"` // 班次Id

	ShiftName *string `json:"shift_name,omitempty"` // 班次名称

	PunchTimes *int `json:"punch_times,omitempty"` // 打卡次数

	SubShiftLeaderIds []string `json:"sub_shift_leader_ids,omitempty"` // 排班组子负责人id列表

	IsFlexible *bool `json:"is_flexible,omitempty"` // 是否弹性打卡

	FlexibleMinutes *int `json:"flexible_minutes,omitempty"` // 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效

	FlexibleRule []*FlexibleRule `json:"flexible_rule,omitempty"` // 弹性打卡时间设置

	NoNeedOff *bool `json:"no_need_off,omitempty"` // 不需要打下班卡

	PunchTimeRule []*PunchTimeRule `json:"punch_time_rule,omitempty"` // 打卡规则

	LateOffLateOnRule []*LateOffLateOnRule `json:"late_off_late_on_rule,omitempty"` // 晚走晚到规则

	RestTimeRule []*RestRule `json:"rest_time_rule,omitempty"` // 休息规则

	OvertimeRule []*OvertimeRule `json:"overtime_rule,omitempty"` // 打卡规则

	DayType *int `json:"day_type,omitempty"` // 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日”  可选值:1:工作日 2:休息日	 示例值:(默认值)1

	OvertimeRestTimeRule []*RestRule `json:"overtime_rest_time_rule,omitempty"` // 班外休息规则

	LateMinutesAsSeriousLate *int `json:"late_minutes_as_serious_late,omitempty"` // 晚到多久记为严重迟到(优先级比原有字段高)

	ShiftMiddleTimeRule *ShiftMiddleTimeRule `json:"shift_middle_time_rule,omitempty"` // 半天分割规则

	ShiftAttendanceTimeConfig *ShiftAttendanceTimeConfig `json:"shift_attendance_time_config,omitempty"` // 应出勤配置

	LateOffLateOnSetting *LateOffLateOnSetting `json:"late_off_late_on_setting,omitempty"` // 晚走次日晚到配置规则

	Id *string `json:"id,omitempty"` // 班次id(更新班次时需要传递)

	RestTimeFlexibleConfigs []*RestTimeFlexibleConfig `json:"rest_time_flexible_configs,omitempty"` // 休息弹性设置
}

type QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder

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

func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) Build

func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) RemedyDate

补卡日期

示例值:20210104

func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) UserId

用户 ID

示例值:abd754f7

type QueryUserAllowedRemedysUserTaskRemedyReq

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

type QueryUserAllowedRemedysUserTaskRemedyReqBody

type QueryUserAllowedRemedysUserTaskRemedyReqBody struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	RemedyDate *int `json:"remedy_date,omitempty"` // 补卡日期
}

type QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder

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

func NewQueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder

func NewQueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder() *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder

func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) Build

func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) RemedyDate

补卡日期

示例值:20210104

func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) UserId

用户 ID

示例值:abd754f7

type QueryUserAllowedRemedysUserTaskRemedyReqBuilder

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

func NewQueryUserAllowedRemedysUserTaskRemedyReqBuilder

func NewQueryUserAllowedRemedysUserTaskRemedyReqBuilder() *QueryUserAllowedRemedysUserTaskRemedyReqBuilder

func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Body

获取用户某天可以补的第几次上 / 下班卡的时间。

func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Build

func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) EmployeeType

请求体和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserAllowedRemedysUserTaskRemedyResp

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

func (*QueryUserAllowedRemedysUserTaskRemedyResp) Success

type QueryUserAllowedRemedysUserTaskRemedyRespData

type QueryUserAllowedRemedysUserTaskRemedyRespData struct {
	UserAllowedRemedys []*UserAllowedRemedy `json:"user_allowed_remedys,omitempty"` // 用户可补卡时间
}

type QueryUserApprovalPathReqBodyBuilder

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

func NewQueryUserApprovalPathReqBodyBuilder

func NewQueryUserApprovalPathReqBodyBuilder() *QueryUserApprovalPathReqBodyBuilder

func (*QueryUserApprovalPathReqBodyBuilder) Build

func (*QueryUserApprovalPathReqBodyBuilder) CheckDateFrom

func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserApprovalPathReqBodyBuilder

查询的起始工作日

示例值:20190817

func (*QueryUserApprovalPathReqBodyBuilder) CheckDateTo

查询的结束工作日,与 check_date_from 的时间间隔不超过 30 天

示例值:20190820

func (*QueryUserApprovalPathReqBodyBuilder) CheckDateType added in v3.0.1

查询依据的时间类型(不填默认依据PeriodTime)

示例值:PeriodTime

func (*QueryUserApprovalPathReqBodyBuilder) CheckTimeFrom added in v3.0.10

查询的起始时间,精确到秒的时间戳

示例值:1566641088

func (*QueryUserApprovalPathReqBodyBuilder) CheckTimeTo added in v3.0.10

查询的结束时间,精确到秒的时间戳

示例值:1592561088

func (*QueryUserApprovalPathReqBodyBuilder) Status added in v3.0.1

查询状态(不填默认查询已通过状态)

示例值:2

func (*QueryUserApprovalPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserApprovalReq

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

type QueryUserApprovalReqBody

type QueryUserApprovalReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表

	CheckDateFrom *int `json:"check_date_from,omitempty"` // 查询的起始工作日

	CheckDateTo *int `json:"check_date_to,omitempty"` // 查询的结束工作日,与 check_date_from 的时间间隔不超过 30 天

	CheckDateType *string `json:"check_date_type,omitempty"` // 查询依据的时间类型(不填默认依据PeriodTime)

	Status *int `json:"status,omitempty"` // 查询状态(不填默认查询已通过状态)

	CheckTimeFrom *string `json:"check_time_from,omitempty"` // 查询的起始时间,精确到秒的时间戳

	CheckTimeTo *string `json:"check_time_to,omitempty"` // 查询的结束时间,精确到秒的时间戳
}

type QueryUserApprovalReqBodyBuilder

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

func NewQueryUserApprovalReqBodyBuilder

func NewQueryUserApprovalReqBodyBuilder() *QueryUserApprovalReqBodyBuilder

func (*QueryUserApprovalReqBodyBuilder) Build

func (*QueryUserApprovalReqBodyBuilder) CheckDateFrom

func (builder *QueryUserApprovalReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserApprovalReqBodyBuilder

查询的起始工作日

示例值:20190817

func (*QueryUserApprovalReqBodyBuilder) CheckDateTo

func (builder *QueryUserApprovalReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserApprovalReqBodyBuilder

查询的结束工作日,与 check_date_from 的时间间隔不超过 30 天

示例值:20190820

func (*QueryUserApprovalReqBodyBuilder) CheckDateType added in v3.0.1

func (builder *QueryUserApprovalReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserApprovalReqBodyBuilder

查询依据的时间类型(不填默认依据PeriodTime)

示例值:PeriodTime

func (*QueryUserApprovalReqBodyBuilder) CheckTimeFrom added in v3.0.10

func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserApprovalReqBodyBuilder

查询的起始时间,精确到秒的时间戳

示例值:1566641088

func (*QueryUserApprovalReqBodyBuilder) CheckTimeTo added in v3.0.10

func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserApprovalReqBodyBuilder

查询的结束时间,精确到秒的时间戳

示例值:1592561088

func (*QueryUserApprovalReqBodyBuilder) Status added in v3.0.1

查询状态(不填默认查询已通过状态)

示例值:2

func (*QueryUserApprovalReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserApprovalReqBuilder

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

func NewQueryUserApprovalReqBuilder

func NewQueryUserApprovalReqBuilder() *QueryUserApprovalReqBuilder

func (*QueryUserApprovalReqBuilder) Body

获取员工在某段时间内的请假、加班、外出和出差四种审批的通过数据。

func (*QueryUserApprovalReqBuilder) Build

func (*QueryUserApprovalReqBuilder) EmployeeType

func (builder *QueryUserApprovalReqBuilder) EmployeeType(employeeType string) *QueryUserApprovalReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserApprovalResp

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

func (*QueryUserApprovalResp) Success

func (resp *QueryUserApprovalResp) Success() bool

type QueryUserApprovalRespData

type QueryUserApprovalRespData struct {
	UserApprovals []*UserApproval `json:"user_approvals,omitempty"` // 审批结果列表
}

type QueryUserDailyShiftPathReqBodyBuilder

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

func NewQueryUserDailyShiftPathReqBodyBuilder

func NewQueryUserDailyShiftPathReqBodyBuilder() *QueryUserDailyShiftPathReqBodyBuilder

func (*QueryUserDailyShiftPathReqBodyBuilder) Build

func (*QueryUserDailyShiftPathReqBodyBuilder) CheckDateFrom

查询的起始工作日

示例值:20190817

func (*QueryUserDailyShiftPathReqBodyBuilder) CheckDateTo

查询的结束工作日

示例值:20190820

func (*QueryUserDailyShiftPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserDailyShiftReq

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

type QueryUserDailyShiftReqBody

type QueryUserDailyShiftReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表

	CheckDateFrom *int `json:"check_date_from,omitempty"` // 查询的起始工作日

	CheckDateTo *int `json:"check_date_to,omitempty"` // 查询的结束工作日
}

type QueryUserDailyShiftReqBodyBuilder

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

func NewQueryUserDailyShiftReqBodyBuilder

func NewQueryUserDailyShiftReqBodyBuilder() *QueryUserDailyShiftReqBodyBuilder

func (*QueryUserDailyShiftReqBodyBuilder) Build

func (*QueryUserDailyShiftReqBodyBuilder) CheckDateFrom

func (builder *QueryUserDailyShiftReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserDailyShiftReqBodyBuilder

查询的起始工作日

示例值:20190817

func (*QueryUserDailyShiftReqBodyBuilder) CheckDateTo

func (builder *QueryUserDailyShiftReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserDailyShiftReqBodyBuilder

查询的结束工作日

示例值:20190820

func (*QueryUserDailyShiftReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserDailyShiftReqBuilder

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

func NewQueryUserDailyShiftReqBuilder

func NewQueryUserDailyShiftReqBuilder() *QueryUserDailyShiftReqBuilder

func (*QueryUserDailyShiftReqBuilder) Body

支持查询多个用户的排班情况,查询的时间跨度不能超过 30 天。

func (*QueryUserDailyShiftReqBuilder) Build

func (*QueryUserDailyShiftReqBuilder) EmployeeType

func (builder *QueryUserDailyShiftReqBuilder) EmployeeType(employeeType string) *QueryUserDailyShiftReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserDailyShiftResp

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

func (*QueryUserDailyShiftResp) Success

func (resp *QueryUserDailyShiftResp) Success() bool

type QueryUserDailyShiftRespData

type QueryUserDailyShiftRespData struct {
	UserDailyShifts []*UserDailyShift `json:"user_daily_shifts,omitempty"` // 班表信息列表
}

type QueryUserFlowPathReqBodyBuilder

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

func NewQueryUserFlowPathReqBodyBuilder

func NewQueryUserFlowPathReqBodyBuilder() *QueryUserFlowPathReqBodyBuilder

func (*QueryUserFlowPathReqBodyBuilder) Build

func (*QueryUserFlowPathReqBodyBuilder) CheckTimeFrom

func (builder *QueryUserFlowPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserFlowPathReqBodyBuilder

查询的起始时间,时间戳

示例值:1566641088

func (*QueryUserFlowPathReqBodyBuilder) CheckTimeTo

func (builder *QueryUserFlowPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserFlowPathReqBodyBuilder

查询的结束时间,时间戳

示例值:1566641088

func (*QueryUserFlowPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表,长度不超过 50

示例值:[ "abd754f7"]

type QueryUserFlowReq

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

type QueryUserFlowReqBody

type QueryUserFlowReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表,长度不超过 50

	CheckTimeFrom *string `json:"check_time_from,omitempty"` // 查询的起始时间,时间戳

	CheckTimeTo *string `json:"check_time_to,omitempty"` // 查询的结束时间,时间戳
}

type QueryUserFlowReqBodyBuilder

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

func NewQueryUserFlowReqBodyBuilder

func NewQueryUserFlowReqBodyBuilder() *QueryUserFlowReqBodyBuilder

func (*QueryUserFlowReqBodyBuilder) Build

func (*QueryUserFlowReqBodyBuilder) CheckTimeFrom

func (builder *QueryUserFlowReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserFlowReqBodyBuilder

查询的起始时间,时间戳

示例值:1566641088

func (*QueryUserFlowReqBodyBuilder) CheckTimeTo

func (builder *QueryUserFlowReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserFlowReqBodyBuilder

查询的结束时间,时间戳

示例值:1566641088

func (*QueryUserFlowReqBodyBuilder) UserIds

func (builder *QueryUserFlowReqBodyBuilder) UserIds(userIds []string) *QueryUserFlowReqBodyBuilder

employee_no 或 employee_id 列表,长度不超过 50

示例值:[ "abd754f7"]

type QueryUserFlowReqBuilder

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

func NewQueryUserFlowReqBuilder

func NewQueryUserFlowReqBuilder() *QueryUserFlowReqBuilder

func (*QueryUserFlowReqBuilder) Body

批量查询授权内员工的实际打卡流水记录。例如,企业给一个员工设定的班次是上午 9 点和下午 6 点各打一次上下班卡,但是该员工在这期间打了多次卡,该接口会把所有的打卡记录都返回。

func (*QueryUserFlowReqBuilder) Build

func (builder *QueryUserFlowReqBuilder) Build() *QueryUserFlowReq

func (*QueryUserFlowReqBuilder) EmployeeType

func (builder *QueryUserFlowReqBuilder) EmployeeType(employeeType string) *QueryUserFlowReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

func (*QueryUserFlowReqBuilder) IncludeTerminatedUser

func (builder *QueryUserFlowReqBuilder) IncludeTerminatedUser(includeTerminatedUser bool) *QueryUserFlowReqBuilder

由于新入职用户可以复用已离职用户的employee_no/employee_id。如果true,返回employee_no/employee_id对应的所有在职+离职用户数据;如果false,只返回employee_no/employee_id对应的在职或最近一个离职用户数据

示例值:true

type QueryUserFlowResp

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

func (*QueryUserFlowResp) Success

func (resp *QueryUserFlowResp) Success() bool

type QueryUserFlowRespData

type QueryUserFlowRespData struct {
	UserFlowResults []*UserFlow `json:"user_flow_results,omitempty"` // 打卡记录列表
}

type QueryUserSettingPathReqBodyBuilder

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

func NewQueryUserSettingPathReqBodyBuilder

func NewQueryUserSettingPathReqBodyBuilder() *QueryUserSettingPathReqBodyBuilder

func (*QueryUserSettingPathReqBodyBuilder) Build

func (*QueryUserSettingPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserSettingReq

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

type QueryUserSettingReqBody

type QueryUserSettingReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表
}

type QueryUserSettingReqBodyBuilder

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

func NewQueryUserSettingReqBodyBuilder

func NewQueryUserSettingReqBodyBuilder() *QueryUserSettingReqBodyBuilder

func (*QueryUserSettingReqBodyBuilder) Build

func (*QueryUserSettingReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserSettingReqBuilder

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

func NewQueryUserSettingReqBuilder

func NewQueryUserSettingReqBuilder() *QueryUserSettingReqBuilder

func (*QueryUserSettingReqBuilder) Body

批量查询授权内员工的用户设置信息,包括人脸照片文件 ID、人脸照片更新时间。

func (*QueryUserSettingReqBuilder) Build

func (*QueryUserSettingReqBuilder) EmployeeType

func (builder *QueryUserSettingReqBuilder) EmployeeType(employeeType string) *QueryUserSettingReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserSettingResp

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

func (*QueryUserSettingResp) Success

func (resp *QueryUserSettingResp) Success() bool

type QueryUserSettingRespData

type QueryUserSettingRespData struct {
	UserSettings []*UserSetting `json:"user_settings,omitempty"` // 用户设置信息列表
}

type QueryUserStatsDataPathReqBodyBuilder

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

func NewQueryUserStatsDataPathReqBodyBuilder

func NewQueryUserStatsDataPathReqBodyBuilder() *QueryUserStatsDataPathReqBodyBuilder

func (*QueryUserStatsDataPathReqBodyBuilder) Build

func (*QueryUserStatsDataPathReqBodyBuilder) CurrentGroupOnly

func (builder *QueryUserStatsDataPathReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataPathReqBodyBuilder

只展示当前考勤组

示例值:true

func (*QueryUserStatsDataPathReqBodyBuilder) EndDate

结束时间;(时间间隔不超过 31 天)

示例值:20210323

func (*QueryUserStatsDataPathReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsDataPathReqBodyBuilder) NeedHistory

是否需要历史数据

示例值:true

func (*QueryUserStatsDataPathReqBodyBuilder) StartDate

开始时间

示例值:20210316

func (*QueryUserStatsDataPathReqBodyBuilder) StatsType

统计类型

示例值:month

func (*QueryUserStatsDataPathReqBodyBuilder) UserId

查询用户id,同【更新统计设置】、【查询统计设置】user_id(新系统用户必填,否则会报错)

示例值:ec8ddg56

func (*QueryUserStatsDataPathReqBodyBuilder) UserIds

查询的用户 ID 列表;(用户数量不超过 200)

示例值:[; "ec8ddg56",; "4dbb52f2",; "4167842e"; ]

type QueryUserStatsDataReq

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

type QueryUserStatsDataReqBody

type QueryUserStatsDataReqBody struct {
	Locale *string `json:"locale,omitempty"` // 语言类型

	StatsType *string `json:"stats_type,omitempty"` // 统计类型

	StartDate *int `json:"start_date,omitempty"` // 开始时间

	EndDate *int `json:"end_date,omitempty"` // 结束时间;(时间间隔不超过 31 天)

	UserIds []string `json:"user_ids,omitempty"` // 查询的用户 ID 列表;(用户数量不超过 200)

	NeedHistory *bool `json:"need_history,omitempty"` // 是否需要历史数据

	CurrentGroupOnly *bool `json:"current_group_only,omitempty"` // 只展示当前考勤组

	UserId *string `json:"user_id,omitempty"` // 查询用户id,同【更新统计设置】、【查询统计设置】user_id(新系统用户必填,否则会报错)
}

type QueryUserStatsDataReqBodyBuilder

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

func NewQueryUserStatsDataReqBodyBuilder

func NewQueryUserStatsDataReqBodyBuilder() *QueryUserStatsDataReqBodyBuilder

func (*QueryUserStatsDataReqBodyBuilder) Build

func (*QueryUserStatsDataReqBodyBuilder) CurrentGroupOnly

func (builder *QueryUserStatsDataReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataReqBodyBuilder

只展示当前考勤组

示例值:true

func (*QueryUserStatsDataReqBodyBuilder) EndDate

结束时间;(时间间隔不超过 31 天)

示例值:20210323

func (*QueryUserStatsDataReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsDataReqBodyBuilder) NeedHistory

func (builder *QueryUserStatsDataReqBodyBuilder) NeedHistory(needHistory bool) *QueryUserStatsDataReqBodyBuilder

是否需要历史数据

示例值:true

func (*QueryUserStatsDataReqBodyBuilder) StartDate

开始时间

示例值:20210316

func (*QueryUserStatsDataReqBodyBuilder) StatsType

统计类型

示例值:month

func (*QueryUserStatsDataReqBodyBuilder) UserId

查询用户id,同【更新统计设置】、【查询统计设置】user_id(新系统用户必填,否则会报错)

示例值:ec8ddg56

func (*QueryUserStatsDataReqBodyBuilder) UserIds

查询的用户 ID 列表;(用户数量不超过 200)

示例值:[; "ec8ddg56",; "4dbb52f2",; "4167842e"; ]

type QueryUserStatsDataReqBuilder

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

func NewQueryUserStatsDataReqBuilder

func NewQueryUserStatsDataReqBuilder() *QueryUserStatsDataReqBuilder

func (*QueryUserStatsDataReqBuilder) Body

查询日度统计或月度统计的统计数据。

func (*QueryUserStatsDataReqBuilder) Build

func (*QueryUserStatsDataReqBuilder) EmployeeType

func (builder *QueryUserStatsDataReqBuilder) EmployeeType(employeeType string) *QueryUserStatsDataReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserStatsDataResp

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

func (*QueryUserStatsDataResp) Success

func (resp *QueryUserStatsDataResp) Success() bool

type QueryUserStatsDataRespData

type QueryUserStatsDataRespData struct {
	UserDatas []*UserStatsData `json:"user_datas,omitempty"` // 用户统计数据(限制1000条,超过1000条会截断)

	InvalidUserList []string `json:"invalid_user_list,omitempty"` // 无权限获取的用户列表
}

type QueryUserStatsFieldPathReqBodyBuilder

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

func NewQueryUserStatsFieldPathReqBodyBuilder

func NewQueryUserStatsFieldPathReqBodyBuilder() *QueryUserStatsFieldPathReqBodyBuilder

func (*QueryUserStatsFieldPathReqBodyBuilder) Build

func (*QueryUserStatsFieldPathReqBodyBuilder) EndDate

结束时间(时间间隔不超过 40 天)

示例值:20210323

func (*QueryUserStatsFieldPathReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsFieldPathReqBodyBuilder) StartDate

开始时间

示例值:20210316

func (*QueryUserStatsFieldPathReqBodyBuilder) StatsType

统计类型

示例值:daily

type QueryUserStatsFieldReq

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

type QueryUserStatsFieldReqBody

type QueryUserStatsFieldReqBody struct {
	Locale *string `json:"locale,omitempty"` // 语言类型

	StatsType *string `json:"stats_type,omitempty"` // 统计类型

	StartDate *int `json:"start_date,omitempty"` // 开始时间

	EndDate *int `json:"end_date,omitempty"` // 结束时间(时间间隔不超过 40 天)
}

type QueryUserStatsFieldReqBodyBuilder

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

func NewQueryUserStatsFieldReqBodyBuilder

func NewQueryUserStatsFieldReqBodyBuilder() *QueryUserStatsFieldReqBodyBuilder

func (*QueryUserStatsFieldReqBodyBuilder) Build

func (*QueryUserStatsFieldReqBodyBuilder) EndDate

结束时间(时间间隔不超过 40 天)

示例值:20210323

func (*QueryUserStatsFieldReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsFieldReqBodyBuilder) StartDate

开始时间

示例值:20210316

func (*QueryUserStatsFieldReqBodyBuilder) StatsType

统计类型

示例值:daily

type QueryUserStatsFieldReqBuilder

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

func NewQueryUserStatsFieldReqBuilder

func NewQueryUserStatsFieldReqBuilder() *QueryUserStatsFieldReqBuilder

func (*QueryUserStatsFieldReqBuilder) Body

查询考勤统计支持的日度统计或月度统计的统计表头。

func (*QueryUserStatsFieldReqBuilder) Build

func (*QueryUserStatsFieldReqBuilder) EmployeeType

func (builder *QueryUserStatsFieldReqBuilder) EmployeeType(employeeType string) *QueryUserStatsFieldReqBuilder

响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserStatsFieldResp

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

func (*QueryUserStatsFieldResp) Success

func (resp *QueryUserStatsFieldResp) Success() bool

type QueryUserStatsFieldRespData

type QueryUserStatsFieldRespData struct {
	UserStatsField *UserStatsField `json:"user_stats_field,omitempty"` // 统计数据表头
}

type QueryUserStatsViewPathReqBodyBuilder

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

func NewQueryUserStatsViewPathReqBodyBuilder

func NewQueryUserStatsViewPathReqBodyBuilder() *QueryUserStatsViewPathReqBodyBuilder

func (*QueryUserStatsViewPathReqBodyBuilder) Build

func (*QueryUserStatsViewPathReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsViewPathReqBodyBuilder) StatsType

统计类型

示例值:daily

func (*QueryUserStatsViewPathReqBodyBuilder) UserId

查询用户id,同【查询统计数据】、【更新统计设置】user_id

示例值:dd31248a

type QueryUserStatsViewReq

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

type QueryUserStatsViewReqBody

type QueryUserStatsViewReqBody struct {
	Locale *string `json:"locale,omitempty"` // 语言类型

	StatsType *string `json:"stats_type,omitempty"` // 统计类型

	UserId *string `json:"user_id,omitempty"` // 查询用户id,同【查询统计数据】、【更新统计设置】user_id
}

type QueryUserStatsViewReqBodyBuilder

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

func NewQueryUserStatsViewReqBodyBuilder

func NewQueryUserStatsViewReqBodyBuilder() *QueryUserStatsViewReqBodyBuilder

func (*QueryUserStatsViewReqBodyBuilder) Build

func (*QueryUserStatsViewReqBodyBuilder) Locale

语言类型

示例值:zh

func (*QueryUserStatsViewReqBodyBuilder) StatsType

统计类型

示例值:daily

func (*QueryUserStatsViewReqBodyBuilder) UserId

查询用户id,同【查询统计数据】、【更新统计设置】user_id

示例值:dd31248a

type QueryUserStatsViewReqBuilder

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

func NewQueryUserStatsViewReqBuilder

func NewQueryUserStatsViewReqBuilder() *QueryUserStatsViewReqBuilder

func (*QueryUserStatsViewReqBuilder) Body

查询开发者定制的日度统计或月度统计的统计报表表头设置信息。

func (*QueryUserStatsViewReqBuilder) Build

func (*QueryUserStatsViewReqBuilder) EmployeeType

func (builder *QueryUserStatsViewReqBuilder) EmployeeType(employeeType string) *QueryUserStatsViewReqBuilder

响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserStatsViewResp

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

func (*QueryUserStatsViewResp) Success

func (resp *QueryUserStatsViewResp) Success() bool

type QueryUserStatsViewRespData

type QueryUserStatsViewRespData struct {
	View *UserStatsView `json:"view,omitempty"` // 统计视图
}

type QueryUserTaskPathReqBodyBuilder

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

func NewQueryUserTaskPathReqBodyBuilder

func NewQueryUserTaskPathReqBodyBuilder() *QueryUserTaskPathReqBodyBuilder

func (*QueryUserTaskPathReqBodyBuilder) Build

func (*QueryUserTaskPathReqBodyBuilder) CheckDateFrom

func (builder *QueryUserTaskPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserTaskPathReqBodyBuilder

查询的起始工作日

示例值:20190817

func (*QueryUserTaskPathReqBodyBuilder) CheckDateTo

func (builder *QueryUserTaskPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserTaskPathReqBodyBuilder

查询的结束工作日

示例值:20190820

func (*QueryUserTaskPathReqBodyBuilder) NeedOvertimeResult added in v3.0.24

func (builder *QueryUserTaskPathReqBodyBuilder) NeedOvertimeResult(needOvertimeResult bool) *QueryUserTaskPathReqBodyBuilder

是否需要加班班段打卡结果

示例值:true

func (*QueryUserTaskPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表,长度不超过 50

示例值:abd754f7

type QueryUserTaskRemedyPathReqBodyBuilder

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

func NewQueryUserTaskRemedyPathReqBodyBuilder

func NewQueryUserTaskRemedyPathReqBodyBuilder() *QueryUserTaskRemedyPathReqBodyBuilder

func (*QueryUserTaskRemedyPathReqBodyBuilder) Build

func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckDateType added in v3.0.1

查询依据的时间类型(默认依据PeriodTime,如果使用非默认的,非特定租户不支持)

示例值:PeriodTime

func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeFrom

查询的起始时间,精确到秒的时间戳

示例值:1566641088

func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeTo

查询的结束时间,精确到秒的时间戳

示例值:1592561088

func (*QueryUserTaskRemedyPathReqBodyBuilder) Status added in v3.0.1

查询状态(不填默认查询已通过状态)

示例值:2

func (*QueryUserTaskRemedyPathReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserTaskRemedyReq

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

type QueryUserTaskRemedyReqBody

type QueryUserTaskRemedyReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表

	CheckTimeFrom *string `json:"check_time_from,omitempty"` // 查询的起始时间,精确到秒的时间戳

	CheckTimeTo *string `json:"check_time_to,omitempty"` // 查询的结束时间,精确到秒的时间戳

	CheckDateType *string `json:"check_date_type,omitempty"` // 查询依据的时间类型(默认依据PeriodTime,如果使用非默认的,非特定租户不支持)

	Status *int `json:"status,omitempty"` // 查询状态(不填默认查询已通过状态)
}

type QueryUserTaskRemedyReqBodyBuilder

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

func NewQueryUserTaskRemedyReqBodyBuilder

func NewQueryUserTaskRemedyReqBodyBuilder() *QueryUserTaskRemedyReqBodyBuilder

func (*QueryUserTaskRemedyReqBodyBuilder) Build

func (*QueryUserTaskRemedyReqBodyBuilder) CheckDateType added in v3.0.1

func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserTaskRemedyReqBodyBuilder

查询依据的时间类型(默认依据PeriodTime,如果使用非默认的,非特定租户不支持)

示例值:PeriodTime

func (*QueryUserTaskRemedyReqBodyBuilder) CheckTimeFrom

func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserTaskRemedyReqBodyBuilder

查询的起始时间,精确到秒的时间戳

示例值:1566641088

func (*QueryUserTaskRemedyReqBodyBuilder) CheckTimeTo

查询的结束时间,精确到秒的时间戳

示例值:1592561088

func (*QueryUserTaskRemedyReqBodyBuilder) Status added in v3.0.1

查询状态(不填默认查询已通过状态)

示例值:2

func (*QueryUserTaskRemedyReqBodyBuilder) UserIds

employee_no 或 employee_id 列表

示例值:["abd754f7"]

type QueryUserTaskRemedyReqBuilder

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

func NewQueryUserTaskRemedyReqBuilder

func NewQueryUserTaskRemedyReqBuilder() *QueryUserTaskRemedyReqBuilder

func (*QueryUserTaskRemedyReqBuilder) Body

获取授权内员工的补卡记录。

func (*QueryUserTaskRemedyReqBuilder) Build

func (*QueryUserTaskRemedyReqBuilder) EmployeeType

func (builder *QueryUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *QueryUserTaskRemedyReqBuilder

请求体中的 user_ids 和响应体中的 user_id 的员工工号类型

示例值:employee_id

type QueryUserTaskRemedyResp

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

func (*QueryUserTaskRemedyResp) Success

func (resp *QueryUserTaskRemedyResp) Success() bool

type QueryUserTaskRemedyRespData

type QueryUserTaskRemedyRespData struct {
	UserRemedys []*UserTaskRemedy `json:"user_remedys,omitempty"` // 补卡记录列表
}

type QueryUserTaskReq

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

type QueryUserTaskReqBody

type QueryUserTaskReqBody struct {
	UserIds []string `json:"user_ids,omitempty"` // employee_no 或 employee_id 列表,长度不超过 50

	CheckDateFrom *int `json:"check_date_from,omitempty"` // 查询的起始工作日

	CheckDateTo *int `json:"check_date_to,omitempty"` // 查询的结束工作日

	NeedOvertimeResult *bool `json:"need_overtime_result,omitempty"` // 是否需要加班班段打卡结果
}

type QueryUserTaskReqBodyBuilder

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

func NewQueryUserTaskReqBodyBuilder

func NewQueryUserTaskReqBodyBuilder() *QueryUserTaskReqBodyBuilder

func (*QueryUserTaskReqBodyBuilder) Build

func (*QueryUserTaskReqBodyBuilder) CheckDateFrom

func (builder *QueryUserTaskReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserTaskReqBodyBuilder

查询的起始工作日

示例值:20190817

func (*QueryUserTaskReqBodyBuilder) CheckDateTo

func (builder *QueryUserTaskReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserTaskReqBodyBuilder

查询的结束工作日

示例值:20190820

func (*QueryUserTaskReqBodyBuilder) NeedOvertimeResult added in v3.0.24

func (builder *QueryUserTaskReqBodyBuilder) NeedOvertimeResult(needOvertimeResult bool) *QueryUserTaskReqBodyBuilder

是否需要加班班段打卡结果

示例值:true

func (*QueryUserTaskReqBodyBuilder) UserIds

func (builder *QueryUserTaskReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskReqBodyBuilder

employee_no 或 employee_id 列表,长度不超过 50

示例值:abd754f7

type QueryUserTaskReqBuilder

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

func NewQueryUserTaskReqBuilder

func NewQueryUserTaskReqBuilder() *QueryUserTaskReqBuilder

func (*QueryUserTaskReqBuilder) Body

获取企业内员工的实际打卡结果,包括上班打卡结果和下班打卡结果。

func (*QueryUserTaskReqBuilder) Build

func (builder *QueryUserTaskReqBuilder) Build() *QueryUserTaskReq

func (*QueryUserTaskReqBuilder) EmployeeType

func (builder *QueryUserTaskReqBuilder) EmployeeType(employeeType string) *QueryUserTaskReqBuilder

员工工号类型

示例值:employee_id

func (*QueryUserTaskReqBuilder) IgnoreInvalidUsers

func (builder *QueryUserTaskReqBuilder) IgnoreInvalidUsers(ignoreInvalidUsers bool) *QueryUserTaskReqBuilder

是否忽略无效和没有权限的用户。如果 true,则返回有效用户的信息,并告知无效和没有权限的用户信息;如果 false,且 user_ids 中存在无效或没有权限的用户,则返回错误

示例值:true

func (*QueryUserTaskReqBuilder) IncludeTerminatedUser

func (builder *QueryUserTaskReqBuilder) IncludeTerminatedUser(includeTerminatedUser bool) *QueryUserTaskReqBuilder

由于新入职员工可以复用已离职员工的 employee_no/employee_id,如果 true,则返回 employee_no/employee_id 对应的所有在职 + 离职员工的数据;如果 false,则只返回 employee_no/employee_id 对应的在职或最近一个离职员工的数据

示例值:true

type QueryUserTaskResp

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

func (*QueryUserTaskResp) Success

func (resp *QueryUserTaskResp) Success() bool

type QueryUserTaskRespData

type QueryUserTaskRespData struct {
	UserTaskResults []*UserTask `json:"user_task_results,omitempty"` // 打卡任务列表

	InvalidUserIds []string `json:"invalid_user_ids,omitempty"` // 无效用户 ID 列表

	UnauthorizedUserIds []string `json:"unauthorized_user_ids,omitempty"` // 没有权限用户 ID 列表
}

type RegionPlace added in v3.4.5

type RegionPlace struct {
	RegionLevel *string `json:"region_level,omitempty"` // 地理位置的等级 国家|省|市|区 一共四个级别

	RegionId *string `json:"region_id,omitempty"` // 地理位置的id,从标准地理库获取
}

type RegionPlaceBuilder added in v3.4.5

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

func NewRegionPlaceBuilder added in v3.4.5

func NewRegionPlaceBuilder() *RegionPlaceBuilder

func (*RegionPlaceBuilder) Build added in v3.4.5

func (builder *RegionPlaceBuilder) Build() *RegionPlace

func (*RegionPlaceBuilder) RegionId added in v3.4.5

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

地理位置的id,从标准地理库获取

示例值:6863333418483058189

func (*RegionPlaceBuilder) RegionLevel added in v3.4.5

func (builder *RegionPlaceBuilder) RegionLevel(regionLevel string) *RegionPlaceBuilder

地理位置的等级 国家|省|市|区 一共四个级别

示例值:l1

type ReportData added in v3.2.3

type ReportData struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID

	FieldData map[string]*ReportValue `json:"field_data,omitempty"` // 字段对应的zhi
}

type ReportDataBuilder added in v3.2.3

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

func NewReportDataBuilder added in v3.2.3

func NewReportDataBuilder() *ReportDataBuilder

func (*ReportDataBuilder) Build added in v3.2.3

func (builder *ReportDataBuilder) Build() *ReportData

func (*ReportDataBuilder) FieldData added in v3.2.3

func (builder *ReportDataBuilder) FieldData(fieldData map[string]*ReportValue) *ReportDataBuilder

字段对应的zhi

示例值:

func (*ReportDataBuilder) UserId added in v3.2.3

func (builder *ReportDataBuilder) UserId(userId string) *ReportDataBuilder

用户ID

示例值:

type ReportValue added in v3.2.3

type ReportValue struct {
	Value *string `json:"value,omitempty"` // 结果值

	FieldId *string `json:"field_id,omitempty"` // 字段ID
}

type ReportValueBuilder added in v3.2.3

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

func NewReportValueBuilder added in v3.2.3

func NewReportValueBuilder() *ReportValueBuilder

func (*ReportValueBuilder) Build added in v3.2.3

func (builder *ReportValueBuilder) Build() *ReportValue

func (*ReportValueBuilder) FieldId added in v3.2.3

func (builder *ReportValueBuilder) FieldId(fieldId string) *ReportValueBuilder

字段ID

示例值:1

func (*ReportValueBuilder) Value added in v3.2.3

func (builder *ReportValueBuilder) Value(value string) *ReportValueBuilder

结果值

示例值:1

type RestRule

type RestRule struct {
	RestBeginTime *string `json:"rest_begin_time,omitempty"` // 休息开始

	RestEndTime *string `json:"rest_end_time,omitempty"` // 休息结束
}

type RestRuleBuilder

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

func NewRestRuleBuilder

func NewRestRuleBuilder() *RestRuleBuilder

func (*RestRuleBuilder) Build

func (builder *RestRuleBuilder) Build() *RestRule

func (*RestRuleBuilder) RestBeginTime

func (builder *RestRuleBuilder) RestBeginTime(restBeginTime string) *RestRuleBuilder

休息开始

示例值:13:00

func (*RestRuleBuilder) RestEndTime

func (builder *RestRuleBuilder) RestEndTime(restEndTime string) *RestRuleBuilder

休息结束

示例值:14:00

type RestTimeFlexibleConfig added in v3.4.5

type RestTimeFlexibleConfig struct {
	NeedFlexible *bool `json:"need_flexible,omitempty"` // 是否有弹性

	LateMins *int `json:"late_mins,omitempty"` // 向后弹的时间
}

type RestTimeFlexibleConfigBuilder added in v3.4.5

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

func NewRestTimeFlexibleConfigBuilder added in v3.4.5

func NewRestTimeFlexibleConfigBuilder() *RestTimeFlexibleConfigBuilder

func (*RestTimeFlexibleConfigBuilder) Build added in v3.4.5

func (*RestTimeFlexibleConfigBuilder) LateMins added in v3.4.5

向后弹的时间

示例值:0

func (*RestTimeFlexibleConfigBuilder) NeedFlexible added in v3.4.5

func (builder *RestTimeFlexibleConfigBuilder) NeedFlexible(needFlexible bool) *RestTimeFlexibleConfigBuilder

是否有弹性

示例值:false

type ScanWifiInfo

type ScanWifiInfo struct {
	Ssid *string `json:"ssid,omitempty"` //

	Bssid *string `json:"bssid,omitempty"` //
}

type ScanWifiInfoBuilder

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

func NewScanWifiInfoBuilder

func NewScanWifiInfoBuilder() *ScanWifiInfoBuilder

func (*ScanWifiInfoBuilder) Bssid

func (builder *ScanWifiInfoBuilder) Bssid(bssid string) *ScanWifiInfoBuilder

示例值:

func (*ScanWifiInfoBuilder) Build

func (builder *ScanWifiInfoBuilder) Build() *ScanWifiInfo

func (*ScanWifiInfoBuilder) Ssid

func (builder *ScanWifiInfoBuilder) Ssid(ssid string) *ScanWifiInfoBuilder

示例值:

type Schedule

type Schedule struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组名称

	Shifts []string `json:"shifts,omitempty"` // 班次列表
}

type ScheduleBuilder

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

func NewScheduleBuilder

func NewScheduleBuilder() *ScheduleBuilder

func (*ScheduleBuilder) Build

func (builder *ScheduleBuilder) Build() *Schedule

func (*ScheduleBuilder) GroupId

func (builder *ScheduleBuilder) GroupId(groupId string) *ScheduleBuilder

考勤组名称

示例值:6919358778597097404

func (*ScheduleBuilder) Shifts

func (builder *ScheduleBuilder) Shifts(shifts []string) *ScheduleBuilder

班次列表

示例值:

type ScopeGroup added in v3.0.23

type ScopeGroup struct {
	ScopeValueType *int `json:"scope_value_type,omitempty"` // 类型: 1: 部门 2:人员 3:国家地区 4:员工类型 5:工作城市 6:职级 7:序列 8:职务(企业版)9:工时制度(企业版) 100:自定义字段(企业版)

	OperationType *int `json:"operation_type,omitempty"` // 范围类型(是否包含)

	Right []*ScopeValue `json:"right,omitempty"` // 如果是人员/部门类型 不需要使用该字段

	MemberIds []string `json:"member_ids,omitempty"` // 部门/人员id列表(具体类型根据scope_value_type判断)

	CustomFieldID *string `json:"custom_field_ID,omitempty"` // 企业版自定义字段唯一键 ID, 需要从飞书人事那边获取

	CustomFieldObjType *string `json:"custom_field_obj_type,omitempty"` // 企业版自定义字段对象类型  "employment":主数据对象,员工雇佣信息 , "person":主数据对象,个人
}

type ScopeGroupBuilder added in v3.0.23

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

func NewScopeGroupBuilder added in v3.0.23

func NewScopeGroupBuilder() *ScopeGroupBuilder

func (*ScopeGroupBuilder) Build added in v3.0.23

func (builder *ScopeGroupBuilder) Build() *ScopeGroup

func (*ScopeGroupBuilder) CustomFieldID added in v3.0.27

func (builder *ScopeGroupBuilder) CustomFieldID(customFieldID string) *ScopeGroupBuilder

企业版自定义字段唯一键 ID, 需要从飞书人事那边获取

示例值:123213123

func (*ScopeGroupBuilder) CustomFieldObjType added in v3.0.27

func (builder *ScopeGroupBuilder) CustomFieldObjType(customFieldObjType string) *ScopeGroupBuilder

企业版自定义字段对象类型 "employment":主数据对象,员工雇佣信息 , "person":主数据对象,个人

示例值:employment

func (*ScopeGroupBuilder) MemberIds added in v3.0.23

func (builder *ScopeGroupBuilder) MemberIds(memberIds []string) *ScopeGroupBuilder

部门/人员id列表(具体类型根据scope_value_type判断)

示例值:

func (*ScopeGroupBuilder) OperationType added in v3.0.23

func (builder *ScopeGroupBuilder) OperationType(operationType int) *ScopeGroupBuilder

范围类型(是否包含)

示例值:1

func (*ScopeGroupBuilder) Right added in v3.0.23

func (builder *ScopeGroupBuilder) Right(right []*ScopeValue) *ScopeGroupBuilder

如果是人员/部门类型 不需要使用该字段

示例值:

func (*ScopeGroupBuilder) ScopeValueType added in v3.0.23

func (builder *ScopeGroupBuilder) ScopeValueType(scopeValueType int) *ScopeGroupBuilder

类型: 1: 部门 2:人员 3:国家地区 4:员工类型 5:工作城市 6:职级 7:序列 8:职务(企业版)9:工时制度(企业版) 100:自定义字段(企业版)

示例值:1

type ScopeValue added in v3.0.23

type ScopeValue struct {
	Key *string `json:"key,omitempty"` //  标识Key

	Name *string `json:"name,omitempty"` // 名称
}

type ScopeValueBuilder added in v3.0.23

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

func NewScopeValueBuilder added in v3.0.23

func NewScopeValueBuilder() *ScopeValueBuilder

func (*ScopeValueBuilder) Build added in v3.0.23

func (builder *ScopeValueBuilder) Build() *ScopeValue

func (*ScopeValueBuilder) Key added in v3.0.23

func (builder *ScopeValueBuilder) Key(key string) *ScopeValueBuilder
标识Key

示例值:CH

func (*ScopeValueBuilder) Name added in v3.0.23

func (builder *ScopeValueBuilder) Name(name string) *ScopeValueBuilder

名称

示例值:中国大陆

type SearchGroupPathReqBodyBuilder

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

func NewSearchGroupPathReqBodyBuilder

func NewSearchGroupPathReqBodyBuilder() *SearchGroupPathReqBodyBuilder

func (*SearchGroupPathReqBodyBuilder) Build

func (*SearchGroupPathReqBodyBuilder) GroupName

考勤组名称

示例值:考勤组1

type SearchGroupReq

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

type SearchGroupReqBody

type SearchGroupReqBody struct {
	GroupName *string `json:"group_name,omitempty"` // 考勤组名称

	ExactlyMatched *bool `json:"exactly_matched,omitempty"` // 是否精准匹配,默认为false:模糊匹配; true:精准匹配
}

type SearchGroupReqBodyBuilder

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

func NewSearchGroupReqBodyBuilder

func NewSearchGroupReqBodyBuilder() *SearchGroupReqBodyBuilder

func (*SearchGroupReqBodyBuilder) Build

func (*SearchGroupReqBodyBuilder) GroupName

func (builder *SearchGroupReqBodyBuilder) GroupName(groupName string) *SearchGroupReqBodyBuilder

考勤组名称

示例值:考勤组1

type SearchGroupReqBuilder

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

func NewSearchGroupReqBuilder

func NewSearchGroupReqBuilder() *SearchGroupReqBuilder

func (*SearchGroupReqBuilder) Body

按考勤组名称查询考勤组摘要信息。查询条件支持名称精确匹配和模糊匹配两种方式。查询结果按考勤组修改时间 desc 排序,且最大记录数为 10 条。

func (*SearchGroupReqBuilder) Build

func (builder *SearchGroupReqBuilder) Build() *SearchGroupReq

type SearchGroupResp

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

func (*SearchGroupResp) Success

func (resp *SearchGroupResp) Success() bool

type SearchGroupRespData

type SearchGroupRespData struct {
	GroupList []*GroupMeta `json:"group_list,omitempty"` // 考勤组列表
}

type Shift

type Shift struct {
	ShiftId *string `json:"shift_id,omitempty"` // 班次 ID

	ShiftName *string `json:"shift_name,omitempty"` // 班次名称

	PunchTimes *int `json:"punch_times,omitempty"` // 打卡次数

	SubShiftLeaderIds []string `json:"sub_shift_leader_ids,omitempty"` // 排班组子负责人id列表

	IsFlexible *bool `json:"is_flexible,omitempty"` // 是否弹性打卡

	FlexibleMinutes *int `json:"flexible_minutes,omitempty"` // 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效

	FlexibleRule []*FlexibleRule `json:"flexible_rule,omitempty"` // 弹性打卡时间设置

	NoNeedOff *bool `json:"no_need_off,omitempty"` // 不需要打下班卡

	PunchTimeRule []*PunchTimeRule `json:"punch_time_rule,omitempty"` // 打卡规则

	LateOffLateOnRule []*LateOffLateOnRule `json:"late_off_late_on_rule,omitempty"` // 晚走晚到规则

	RestTimeRule []*RestRule `json:"rest_time_rule,omitempty"` // 休息规则

	OvertimeRule []*OvertimeRule `json:"overtime_rule,omitempty"` // 打卡规则

	DayType *int `json:"day_type,omitempty"` // 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日”  可选值:1:工作日 2:休息日	 示例值:(默认值)1

	OvertimeRestTimeRule []*RestRule `json:"overtime_rest_time_rule,omitempty"` // 班外休息规则

	LateMinutesAsSeriousLate *int `json:"late_minutes_as_serious_late,omitempty"` // 晚到多久记为严重迟到(优先级比原有字段高)

	ShiftMiddleTimeRule *ShiftMiddleTimeRule `json:"shift_middle_time_rule,omitempty"` // 半天分割规则

	ShiftAttendanceTimeConfig *ShiftAttendanceTimeConfig `json:"shift_attendance_time_config,omitempty"` // 应出勤配置

	LateOffLateOnSetting *LateOffLateOnSetting `json:"late_off_late_on_setting,omitempty"` // 晚走次日晚到配置规则

	Id *string `json:"id,omitempty"` // 班次id(更新班次时需要传递)

	RestTimeFlexibleConfigs []*RestTimeFlexibleConfig `json:"rest_time_flexible_configs,omitempty"` // 休息弹性设置
}

type ShiftAttendanceTimeConfig added in v3.3.5

type ShiftAttendanceTimeConfig struct {
	AttendanceTime *float64 `json:"attendance_time,omitempty"` // 应出勤时长

	OnAttendanceTime *float64 `json:"on_attendance_time,omitempty"` // 上半天应出勤时长

	OffAttendanceTime *float64 `json:"off_attendance_time,omitempty"` // 下半天应出勤时长
}

type ShiftAttendanceTimeConfigBuilder added in v3.3.5

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

func NewShiftAttendanceTimeConfigBuilder added in v3.3.5

func NewShiftAttendanceTimeConfigBuilder() *ShiftAttendanceTimeConfigBuilder

func (*ShiftAttendanceTimeConfigBuilder) AttendanceTime added in v3.3.5

func (builder *ShiftAttendanceTimeConfigBuilder) AttendanceTime(attendanceTime float64) *ShiftAttendanceTimeConfigBuilder

应出勤时长

示例值:1

func (*ShiftAttendanceTimeConfigBuilder) Build added in v3.3.5

func (*ShiftAttendanceTimeConfigBuilder) OffAttendanceTime added in v3.3.5

func (builder *ShiftAttendanceTimeConfigBuilder) OffAttendanceTime(offAttendanceTime float64) *ShiftAttendanceTimeConfigBuilder

下半天应出勤时长

示例值:1

func (*ShiftAttendanceTimeConfigBuilder) OnAttendanceTime added in v3.3.5

func (builder *ShiftAttendanceTimeConfigBuilder) OnAttendanceTime(onAttendanceTime float64) *ShiftAttendanceTimeConfigBuilder

上半天应出勤时长

示例值:1

type ShiftBuilder

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

func NewShiftBuilder

func NewShiftBuilder() *ShiftBuilder

func (*ShiftBuilder) Build

func (builder *ShiftBuilder) Build() *Shift

func (*ShiftBuilder) DayType added in v3.2.1

func (builder *ShiftBuilder) DayType(dayType int) *ShiftBuilder

日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日” 可选值:1:工作日 2:休息日 示例值:(默认值)1

示例值:1

func (*ShiftBuilder) FlexibleMinutes

func (builder *ShiftBuilder) FlexibleMinutes(flexibleMinutes int) *ShiftBuilder

弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效

示例值:60

func (*ShiftBuilder) FlexibleRule added in v3.0.1

func (builder *ShiftBuilder) FlexibleRule(flexibleRule []*FlexibleRule) *ShiftBuilder

弹性打卡时间设置

示例值:

func (*ShiftBuilder) Id added in v3.3.5

func (builder *ShiftBuilder) Id(id string) *ShiftBuilder

班次id(更新班次时需要传递)

示例值:6919358778597097404

func (*ShiftBuilder) IsFlexible

func (builder *ShiftBuilder) IsFlexible(isFlexible bool) *ShiftBuilder

是否弹性打卡

示例值:false

func (*ShiftBuilder) LateMinutesAsSeriousLate added in v3.2.6

func (builder *ShiftBuilder) LateMinutesAsSeriousLate(lateMinutesAsSeriousLate int) *ShiftBuilder

晚到多久记为严重迟到(优先级比原有字段高)

示例值:40

func (*ShiftBuilder) LateOffLateOnRule

func (builder *ShiftBuilder) LateOffLateOnRule(lateOffLateOnRule []*LateOffLateOnRule) *ShiftBuilder

晚走晚到规则

示例值:

func (*ShiftBuilder) LateOffLateOnSetting added in v3.2.6

func (builder *ShiftBuilder) LateOffLateOnSetting(lateOffLateOnSetting *LateOffLateOnSetting) *ShiftBuilder

晚走次日晚到配置规则

示例值:

func (*ShiftBuilder) NoNeedOff

func (builder *ShiftBuilder) NoNeedOff(noNeedOff bool) *ShiftBuilder

不需要打下班卡

示例值:true

func (*ShiftBuilder) OvertimeRestTimeRule added in v3.2.1

func (builder *ShiftBuilder) OvertimeRestTimeRule(overtimeRestTimeRule []*RestRule) *ShiftBuilder

班外休息规则

示例值:

func (*ShiftBuilder) OvertimeRule added in v3.0.24

func (builder *ShiftBuilder) OvertimeRule(overtimeRule []*OvertimeRule) *ShiftBuilder

打卡规则

示例值:

func (*ShiftBuilder) PunchTimeRule

func (builder *ShiftBuilder) PunchTimeRule(punchTimeRule []*PunchTimeRule) *ShiftBuilder

打卡规则

示例值:

func (*ShiftBuilder) PunchTimes

func (builder *ShiftBuilder) PunchTimes(punchTimes int) *ShiftBuilder

打卡次数

示例值:1

func (*ShiftBuilder) RestTimeFlexibleConfigs added in v3.4.5

func (builder *ShiftBuilder) RestTimeFlexibleConfigs(restTimeFlexibleConfigs []*RestTimeFlexibleConfig) *ShiftBuilder

休息弹性设置

示例值:

func (*ShiftBuilder) RestTimeRule

func (builder *ShiftBuilder) RestTimeRule(restTimeRule []*RestRule) *ShiftBuilder

休息规则

示例值:

func (*ShiftBuilder) ShiftAttendanceTimeConfig added in v3.3.5

func (builder *ShiftBuilder) ShiftAttendanceTimeConfig(shiftAttendanceTimeConfig *ShiftAttendanceTimeConfig) *ShiftBuilder

应出勤配置

示例值:

func (*ShiftBuilder) ShiftId

func (builder *ShiftBuilder) ShiftId(shiftId string) *ShiftBuilder

班次 ID

示例值:6919358778597097404

func (*ShiftBuilder) ShiftMiddleTimeRule added in v3.2.6

func (builder *ShiftBuilder) ShiftMiddleTimeRule(shiftMiddleTimeRule *ShiftMiddleTimeRule) *ShiftBuilder

半天分割规则

示例值:

func (*ShiftBuilder) ShiftName

func (builder *ShiftBuilder) ShiftName(shiftName string) *ShiftBuilder

班次名称

示例值:早班

func (*ShiftBuilder) SubShiftLeaderIds added in v3.0.25

func (builder *ShiftBuilder) SubShiftLeaderIds(subShiftLeaderIds []string) *ShiftBuilder

排班组子负责人id列表

示例值:

type ShiftGroupUser added in v3.0.34

type ShiftGroupUser struct {
	ShiftGroupId *string `json:"shift_group_id,omitempty"` // 班组ID

	UserId *string `json:"user_id,omitempty"` // 用户ID,根据传参user_id_type确定
}

type ShiftGroupUserBuilder added in v3.0.34

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

func NewShiftGroupUserBuilder added in v3.0.34

func NewShiftGroupUserBuilder() *ShiftGroupUserBuilder

func (*ShiftGroupUserBuilder) Build added in v3.0.34

func (builder *ShiftGroupUserBuilder) Build() *ShiftGroupUser

func (*ShiftGroupUserBuilder) ShiftGroupId added in v3.0.34

func (builder *ShiftGroupUserBuilder) ShiftGroupId(shiftGroupId string) *ShiftGroupUserBuilder

班组ID

示例值:7275180303583281171

func (*ShiftGroupUserBuilder) UserId added in v3.0.34

func (builder *ShiftGroupUserBuilder) UserId(userId string) *ShiftGroupUserBuilder

用户ID,根据传参user_id_type确定

示例值:52aa1fa1

type ShiftMiddleTimeRule added in v3.2.6

type ShiftMiddleTimeRule struct {
	MiddleTimeType *int `json:"middle_time_type,omitempty"` // 半天分割类型

	FixedMiddleTime *string `json:"fixed_middle_time,omitempty"` // 固定分割时间点(middle_time_type 为 3 时有效)
}

type ShiftMiddleTimeRuleBuilder added in v3.2.6

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

func NewShiftMiddleTimeRuleBuilder added in v3.2.6

func NewShiftMiddleTimeRuleBuilder() *ShiftMiddleTimeRuleBuilder

func (*ShiftMiddleTimeRuleBuilder) Build added in v3.2.6

func (*ShiftMiddleTimeRuleBuilder) FixedMiddleTime added in v3.2.6

func (builder *ShiftMiddleTimeRuleBuilder) FixedMiddleTime(fixedMiddleTime string) *ShiftMiddleTimeRuleBuilder

固定分割时间点(middle_time_type 为 3 时有效)

示例值:12:00

func (*ShiftMiddleTimeRuleBuilder) MiddleTimeType added in v3.2.6

func (builder *ShiftMiddleTimeRuleBuilder) MiddleTimeType(middleTimeType int) *ShiftMiddleTimeRuleBuilder

半天分割类型

示例值:0

type StatisticsField added in v3.2.3

type StatisticsField struct {
	FieldId *string `json:"field_id,omitempty"` // 字段ID

	FieldContent *string `json:"field_content,omitempty"` // 字段公式

	Title *string `json:"title,omitempty"` // 字段名称

	FieldDesc *string `json:"field_desc,omitempty"` // 字段描述
}

type StatisticsFieldBuilder added in v3.2.3

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

func NewStatisticsFieldBuilder added in v3.2.3

func NewStatisticsFieldBuilder() *StatisticsFieldBuilder

func (*StatisticsFieldBuilder) Build added in v3.2.3

func (builder *StatisticsFieldBuilder) Build() *StatisticsField

func (*StatisticsFieldBuilder) FieldContent added in v3.2.3

func (builder *StatisticsFieldBuilder) FieldContent(fieldContent string) *StatisticsFieldBuilder

字段公式

示例值:1

func (*StatisticsFieldBuilder) FieldDesc added in v3.2.3

func (builder *StatisticsFieldBuilder) FieldDesc(fieldDesc string) *StatisticsFieldBuilder

字段描述

示例值:测试

func (*StatisticsFieldBuilder) FieldId added in v3.2.3

func (builder *StatisticsFieldBuilder) FieldId(fieldId string) *StatisticsFieldBuilder

字段ID

示例值:1111111

func (*StatisticsFieldBuilder) Title added in v3.2.3

func (builder *StatisticsFieldBuilder) Title(title string) *StatisticsFieldBuilder

字段名称

示例值:计薪天数

type StatusChange

type StatusChange struct {
	Index *int `json:"index,omitempty"` //

	BeforeStatus *string `json:"before_status,omitempty"` //

	CurrentStatus *string `json:"current_status,omitempty"` //

	BeforeSupplement *string `json:"before_supplement,omitempty"` //

	CurrentSupplement *string `json:"current_supplement,omitempty"` //

	WorkType *string `json:"work_type,omitempty"` //
}

type StatusChangeBuilder

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

func NewStatusChangeBuilder

func NewStatusChangeBuilder() *StatusChangeBuilder

func (*StatusChangeBuilder) BeforeStatus

func (builder *StatusChangeBuilder) BeforeStatus(beforeStatus string) *StatusChangeBuilder

示例值:

func (*StatusChangeBuilder) BeforeSupplement

func (builder *StatusChangeBuilder) BeforeSupplement(beforeSupplement string) *StatusChangeBuilder

示例值:

func (*StatusChangeBuilder) Build

func (builder *StatusChangeBuilder) Build() *StatusChange

func (*StatusChangeBuilder) CurrentStatus

func (builder *StatusChangeBuilder) CurrentStatus(currentStatus string) *StatusChangeBuilder

示例值:

func (*StatusChangeBuilder) CurrentSupplement

func (builder *StatusChangeBuilder) CurrentSupplement(currentSupplement string) *StatusChangeBuilder

示例值:

func (*StatusChangeBuilder) Index

func (builder *StatusChangeBuilder) Index(index int) *StatusChangeBuilder

示例值:

func (*StatusChangeBuilder) WorkType

func (builder *StatusChangeBuilder) WorkType(workType string) *StatusChangeBuilder

示例值:

type TaskResult

type TaskResult struct {
	CheckInRecordId *string `json:"check_in_record_id,omitempty"` // 上班打卡记录 ID

	CheckInRecord *UserFlow `json:"check_in_record,omitempty"` // 上班打卡记录

	CheckOutRecordId *string `json:"check_out_record_id,omitempty"` // 下班打卡记录 ID

	CheckOutRecord *UserFlow `json:"check_out_record,omitempty"` // 下班打卡记录

	CheckInResult *string `json:"check_in_result,omitempty"` // 上班打卡结果

	CheckOutResult *string `json:"check_out_result,omitempty"` // 下班打卡结果

	CheckInResultSupplement *string `json:"check_in_result_supplement,omitempty"` // 上班打卡结果补充

	CheckOutResultSupplement *string `json:"check_out_result_supplement,omitempty"` // 下班打卡结果补充

	CheckInShiftTime *string `json:"check_in_shift_time,omitempty"` // 上班打卡时间

	CheckOutShiftTime *string `json:"check_out_shift_time,omitempty"` // 下班打卡时间

	TaskShiftType *int `json:"task_shift_type,omitempty"` // 班次类型,0正常,1加班班次
}

type TaskResultBuilder

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

func NewTaskResultBuilder

func NewTaskResultBuilder() *TaskResultBuilder

func (*TaskResultBuilder) Build

func (builder *TaskResultBuilder) Build() *TaskResult

func (*TaskResultBuilder) CheckInRecord

func (builder *TaskResultBuilder) CheckInRecord(checkInRecord *UserFlow) *TaskResultBuilder

上班打卡记录

示例值:

func (*TaskResultBuilder) CheckInRecordId

func (builder *TaskResultBuilder) CheckInRecordId(checkInRecordId string) *TaskResultBuilder

上班打卡记录 ID

示例值:6709359313699356941

func (*TaskResultBuilder) CheckInResult

func (builder *TaskResultBuilder) CheckInResult(checkInResult string) *TaskResultBuilder

上班打卡结果

示例值:SystemCheck

func (*TaskResultBuilder) CheckInResultSupplement

func (builder *TaskResultBuilder) CheckInResultSupplement(checkInResultSupplement string) *TaskResultBuilder

上班打卡结果补充

示例值:None

func (*TaskResultBuilder) CheckInShiftTime

func (builder *TaskResultBuilder) CheckInShiftTime(checkInShiftTime string) *TaskResultBuilder

上班打卡时间

示例值:1609722000

func (*TaskResultBuilder) CheckOutRecord

func (builder *TaskResultBuilder) CheckOutRecord(checkOutRecord *UserFlow) *TaskResultBuilder

下班打卡记录

示例值:

func (*TaskResultBuilder) CheckOutRecordId

func (builder *TaskResultBuilder) CheckOutRecordId(checkOutRecordId string) *TaskResultBuilder

下班打卡记录 ID

示例值:6709359313699356942

func (*TaskResultBuilder) CheckOutResult

func (builder *TaskResultBuilder) CheckOutResult(checkOutResult string) *TaskResultBuilder

下班打卡结果

示例值:SystemCheck

func (*TaskResultBuilder) CheckOutResultSupplement

func (builder *TaskResultBuilder) CheckOutResultSupplement(checkOutResultSupplement string) *TaskResultBuilder

下班打卡结果补充

示例值:None

func (*TaskResultBuilder) CheckOutShiftTime

func (builder *TaskResultBuilder) CheckOutShiftTime(checkOutShiftTime string) *TaskResultBuilder

下班打卡时间

示例值:1609754400

func (*TaskResultBuilder) TaskShiftType added in v3.0.24

func (builder *TaskResultBuilder) TaskShiftType(taskShiftType int) *TaskResultBuilder

班次类型,0正常,1加班班次

示例值:0

type UpdateUserStatsViewPathReqBodyBuilder

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

func NewUpdateUserStatsViewPathReqBodyBuilder

func NewUpdateUserStatsViewPathReqBodyBuilder() *UpdateUserStatsViewPathReqBodyBuilder

func (*UpdateUserStatsViewPathReqBodyBuilder) Build

func (*UpdateUserStatsViewPathReqBodyBuilder) View

统计设置

示例值:

type UpdateUserStatsViewReq

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

type UpdateUserStatsViewReqBody

type UpdateUserStatsViewReqBody struct {
	View *UserStatsView `json:"view,omitempty"` // 统计设置
}

type UpdateUserStatsViewReqBodyBuilder

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

func NewUpdateUserStatsViewReqBodyBuilder

func NewUpdateUserStatsViewReqBodyBuilder() *UpdateUserStatsViewReqBodyBuilder

func (*UpdateUserStatsViewReqBodyBuilder) Build

func (*UpdateUserStatsViewReqBodyBuilder) View

统计设置

示例值:

type UpdateUserStatsViewReqBuilder

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

func NewUpdateUserStatsViewReqBuilder

func NewUpdateUserStatsViewReqBuilder() *UpdateUserStatsViewReqBuilder

func (*UpdateUserStatsViewReqBuilder) Body

更新开发者定制的日度统计或月度统计的统计报表表头设置信息。

func (*UpdateUserStatsViewReqBuilder) Build

func (*UpdateUserStatsViewReqBuilder) EmployeeType

func (builder *UpdateUserStatsViewReqBuilder) EmployeeType(employeeType string) *UpdateUserStatsViewReqBuilder

员工工号类型

示例值:employee_id

func (*UpdateUserStatsViewReqBuilder) UserStatsViewId

func (builder *UpdateUserStatsViewReqBuilder) UserStatsViewId(userStatsViewId string) *UpdateUserStatsViewReqBuilder

用户视图 ID,获取方式:1)[查询统计设置](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_view/query)

示例值:TmpZNU5qTTJORFF6T1RnNU5UTTNOakV6TWl0dGIyNTBhQT09

type UpdateUserStatsViewResp

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

func (*UpdateUserStatsViewResp) Success

func (resp *UpdateUserStatsViewResp) Success() bool

type UpdateUserStatsViewRespData

type UpdateUserStatsViewRespData struct {
	View *UserStatsView `json:"view,omitempty"` // 视图
}

type UploadFilePathReqBodyBuilder

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

func NewUploadFilePathReqBodyBuilder

func NewUploadFilePathReqBodyBuilder() *UploadFilePathReqBodyBuilder

func (*UploadFilePathReqBodyBuilder) Build

func (*UploadFilePathReqBodyBuilder) FilePath

文件内容

示例值:二进制文件

type UploadFileReq

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

type UploadFileReqBody

type UploadFileReqBody struct {
	File io.Reader `json:"file,omitempty"` // 文件内容
}

type UploadFileReqBodyBuilder

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

func NewUploadFileReqBodyBuilder

func NewUploadFileReqBodyBuilder() *UploadFileReqBodyBuilder

func (*UploadFileReqBodyBuilder) Build

func (builder *UploadFileReqBodyBuilder) Build() *UploadFileReqBody

func (*UploadFileReqBodyBuilder) File

文件内容

示例值:二进制文件

type UploadFileReqBuilder

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

func NewUploadFileReqBuilder

func NewUploadFileReqBuilder() *UploadFileReqBuilder

func (*UploadFileReqBuilder) Body

上传文件并获取文件 ID,可用于“修改用户设置”接口中的 face_key 参数。

func (*UploadFileReqBuilder) Build

func (builder *UploadFileReqBuilder) Build() *UploadFileReq

func (*UploadFileReqBuilder) FileName

func (builder *UploadFileReqBuilder) FileName(fileName string) *UploadFileReqBuilder

带后缀的文件名

示例值:人脸照片.jpg

type UploadFileResp

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

func (*UploadFileResp) Success

func (resp *UploadFileResp) Success() bool

type UploadFileRespData

type UploadFileRespData struct {
	File *File `json:"file,omitempty"` // 文件
}

type UploadReportArchiveRulePathReqBodyBuilder added in v3.3.1

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

func NewUploadReportArchiveRulePathReqBodyBuilder added in v3.3.1

func NewUploadReportArchiveRulePathReqBodyBuilder() *UploadReportArchiveRulePathReqBodyBuilder

func (*UploadReportArchiveRulePathReqBodyBuilder) ArchiveReportDatas added in v3.3.1

归档报表内容(不超过50个)

示例值:

func (*UploadReportArchiveRulePathReqBodyBuilder) ArchiveRuleId added in v3.3.1

归档规则id

示例值:1

func (*UploadReportArchiveRulePathReqBodyBuilder) Build added in v3.3.1

func (*UploadReportArchiveRulePathReqBodyBuilder) Month added in v3.3.1

月份

示例值:202409

func (*UploadReportArchiveRulePathReqBodyBuilder) OperatorId added in v3.3.1

操作者ID

示例值:ax11d

type UploadReportArchiveRuleReq added in v3.3.1

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

type UploadReportArchiveRuleReqBody added in v3.3.1

type UploadReportArchiveRuleReqBody struct {
	Month *string `json:"month,omitempty"` // 月份

	OperatorId *string `json:"operator_id,omitempty"` // 操作者ID

	ArchiveReportDatas []*ArchiveReportData `json:"archive_report_datas,omitempty"` // 归档报表内容(不超过50个)

	ArchiveRuleId *string `json:"archive_rule_id,omitempty"` // 归档规则id
}

type UploadReportArchiveRuleReqBodyBuilder added in v3.3.1

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

func NewUploadReportArchiveRuleReqBodyBuilder added in v3.3.1

func NewUploadReportArchiveRuleReqBodyBuilder() *UploadReportArchiveRuleReqBodyBuilder

func (*UploadReportArchiveRuleReqBodyBuilder) ArchiveReportDatas added in v3.3.1

func (builder *UploadReportArchiveRuleReqBodyBuilder) ArchiveReportDatas(archiveReportDatas []*ArchiveReportData) *UploadReportArchiveRuleReqBodyBuilder

归档报表内容(不超过50个)

示例值:

func (*UploadReportArchiveRuleReqBodyBuilder) ArchiveRuleId added in v3.3.1

归档规则id

示例值:1

func (*UploadReportArchiveRuleReqBodyBuilder) Build added in v3.3.1

func (*UploadReportArchiveRuleReqBodyBuilder) Month added in v3.3.1

月份

示例值:202409

func (*UploadReportArchiveRuleReqBodyBuilder) OperatorId added in v3.3.1

操作者ID

示例值:ax11d

type UploadReportArchiveRuleReqBuilder added in v3.3.1

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

func NewUploadReportArchiveRuleReqBuilder added in v3.3.1

func NewUploadReportArchiveRuleReqBuilder() *UploadReportArchiveRuleReqBuilder

func (*UploadReportArchiveRuleReqBuilder) Body added in v3.3.1

func (*UploadReportArchiveRuleReqBuilder) Build added in v3.3.1

func (*UploadReportArchiveRuleReqBuilder) EmployeeType added in v3.3.1

func (builder *UploadReportArchiveRuleReqBuilder) EmployeeType(employeeType string) *UploadReportArchiveRuleReqBuilder

用户 ID 的类型

示例值:employee_id

type UploadReportArchiveRuleResp added in v3.3.1

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

func (*UploadReportArchiveRuleResp) Success added in v3.3.1

func (resp *UploadReportArchiveRuleResp) Success() bool

type UploadReportArchiveRuleRespData added in v3.3.1

type UploadReportArchiveRuleRespData struct {
	InvalidCode []string `json:"invalid_code,omitempty"` // 无效的code

	InvalidMemberId []string `json:"invalid_member_id,omitempty"` // 无效的member_id
}

type UserAllowedRemedy

type UserAllowedRemedy struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	RemedyDate *int `json:"remedy_date,omitempty"` // 补卡日期

	IsFreePunch *bool `json:"is_free_punch,omitempty"` // 是否为自由班次,若为自由班次,则不用选择考虑第几次上下班,直接选择补卡时间即可

	PunchNo *int `json:"punch_no,omitempty"` // 第几次上下班,0:第 1 次上下班,1:第 2 次上下班,2:第 3 次上下班

	WorkType *int `json:"work_type,omitempty"` // 上班 / 下班,1:上班,2:下班

	PunchStatus *string `json:"punch_status,omitempty"` // 打卡状态,Early:早退,Late:迟到,Lack:缺卡

	NormalPunchTime *string `json:"normal_punch_time,omitempty"` // 正常的应打卡时间,时间格式为 yyyy-MM-dd HH:mm

	RemedyStartTime *string `json:"remedy_start_time,omitempty"` // 可选的补卡时间的最小值,时间格式为 yyyy-MM-dd HH:mm

	RemedyEndTime *string `json:"remedy_end_time,omitempty"` // 可选的补卡时间的最大值,时间格式为 yyyy-MM-dd HH:mm
}

type UserAllowedRemedyBuilder

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

func NewUserAllowedRemedyBuilder

func NewUserAllowedRemedyBuilder() *UserAllowedRemedyBuilder

func (*UserAllowedRemedyBuilder) Build

func (builder *UserAllowedRemedyBuilder) Build() *UserAllowedRemedy

func (*UserAllowedRemedyBuilder) IsFreePunch

func (builder *UserAllowedRemedyBuilder) IsFreePunch(isFreePunch bool) *UserAllowedRemedyBuilder

是否为自由班次,若为自由班次,则不用选择考虑第几次上下班,直接选择补卡时间即可

示例值:false

func (*UserAllowedRemedyBuilder) NormalPunchTime

func (builder *UserAllowedRemedyBuilder) NormalPunchTime(normalPunchTime string) *UserAllowedRemedyBuilder

正常的应打卡时间,时间格式为 yyyy-MM-dd HH:mm

示例值:2021-07-01 09:00

func (*UserAllowedRemedyBuilder) PunchNo

func (builder *UserAllowedRemedyBuilder) PunchNo(punchNo int) *UserAllowedRemedyBuilder

第几次上下班,0:第 1 次上下班,1:第 2 次上下班,2:第 3 次上下班

示例值:0

func (*UserAllowedRemedyBuilder) PunchStatus

func (builder *UserAllowedRemedyBuilder) PunchStatus(punchStatus string) *UserAllowedRemedyBuilder

打卡状态,Early:早退,Late:迟到,Lack:缺卡

示例值:Lack

func (*UserAllowedRemedyBuilder) RemedyDate

func (builder *UserAllowedRemedyBuilder) RemedyDate(remedyDate int) *UserAllowedRemedyBuilder

补卡日期

示例值:20210104

func (*UserAllowedRemedyBuilder) RemedyEndTime

func (builder *UserAllowedRemedyBuilder) RemedyEndTime(remedyEndTime string) *UserAllowedRemedyBuilder

可选的补卡时间的最大值,时间格式为 yyyy-MM-dd HH:mm

示例值:2021-07-01 10:00

func (*UserAllowedRemedyBuilder) RemedyStartTime

func (builder *UserAllowedRemedyBuilder) RemedyStartTime(remedyStartTime string) *UserAllowedRemedyBuilder

可选的补卡时间的最小值,时间格式为 yyyy-MM-dd HH:mm

示例值:2021-07-01 08:00

func (*UserAllowedRemedyBuilder) UserId

func (builder *UserAllowedRemedyBuilder) UserId(userId string) *UserAllowedRemedyBuilder

用户 ID

示例值:abd754f7

func (*UserAllowedRemedyBuilder) WorkType

func (builder *UserAllowedRemedyBuilder) WorkType(workType int) *UserAllowedRemedyBuilder

上班 / 下班,1:上班,2:下班

示例值:1

type UserApproval

type UserApproval struct {
	UserId *string `json:"user_id,omitempty"` // 审批用户 ID

	Date *string `json:"date,omitempty"` // 审批作用日期

	Outs []*UserOut `json:"outs,omitempty"` // 外出信息

	Leaves []*UserLeave `json:"leaves,omitempty"` // 请假信息

	OvertimeWorks []*UserOvertimeWork `json:"overtime_works,omitempty"` // 加班信息

	Trips []*UserTrip `json:"trips,omitempty"` // 出差信息

	TimeZone *string `json:"time_zone,omitempty"` // 计算时间所用的时区信息,为空是0时区
}

type UserApprovalBuilder

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

func NewUserApprovalBuilder

func NewUserApprovalBuilder() *UserApprovalBuilder

func (*UserApprovalBuilder) Build

func (builder *UserApprovalBuilder) Build() *UserApproval

func (*UserApprovalBuilder) Date

func (builder *UserApprovalBuilder) Date(date string) *UserApprovalBuilder

审批作用日期

示例值:20210104

func (*UserApprovalBuilder) Leaves

func (builder *UserApprovalBuilder) Leaves(leaves []*UserLeave) *UserApprovalBuilder

请假信息

示例值:

func (*UserApprovalBuilder) Outs

func (builder *UserApprovalBuilder) Outs(outs []*UserOut) *UserApprovalBuilder

外出信息

示例值:

func (*UserApprovalBuilder) OvertimeWorks

func (builder *UserApprovalBuilder) OvertimeWorks(overtimeWorks []*UserOvertimeWork) *UserApprovalBuilder

加班信息

示例值:

func (*UserApprovalBuilder) TimeZone added in v3.0.5

func (builder *UserApprovalBuilder) TimeZone(timeZone string) *UserApprovalBuilder

计算时间所用的时区信息,为空是0时区

示例值:Asia/Shanghai

func (*UserApprovalBuilder) Trips

func (builder *UserApprovalBuilder) Trips(trips []*UserTrip) *UserApprovalBuilder

出差信息

示例值:

func (*UserApprovalBuilder) UserId

func (builder *UserApprovalBuilder) UserId(userId string) *UserApprovalBuilder

审批用户 ID

示例值:abd754f7

type UserArrangeShiftGroup added in v3.0.32

type UserArrangeShiftGroup struct {
	UserId *string `json:"user_id,omitempty"` // 用户id

	ShiftGroup *ArrangeShiftGroup `json:"shift_group,omitempty"` // 班组
}

type UserArrangeShiftGroupBuilder added in v3.0.32

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

func NewUserArrangeShiftGroupBuilder added in v3.0.32

func NewUserArrangeShiftGroupBuilder() *UserArrangeShiftGroupBuilder

func (*UserArrangeShiftGroupBuilder) Build added in v3.0.32

func (*UserArrangeShiftGroupBuilder) ShiftGroup added in v3.0.32

班组

示例值:

func (*UserArrangeShiftGroupBuilder) UserId added in v3.0.32

用户id

示例值:e1234123

type UserBase added in v3.4.0

type UserBase struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	DepartmentIds []string `json:"department_ids,omitempty"` // 该用户所属部门 ID 列表
}

type UserBaseBuilder added in v3.4.0

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

func NewUserBaseBuilder added in v3.4.0

func NewUserBaseBuilder() *UserBaseBuilder

func (*UserBaseBuilder) Build added in v3.4.0

func (builder *UserBaseBuilder) Build() *UserBase

func (*UserBaseBuilder) DepartmentIds added in v3.4.0

func (builder *UserBaseBuilder) DepartmentIds(departmentIds []string) *UserBaseBuilder

该用户所属部门 ID 列表

示例值:

func (*UserBaseBuilder) UserId added in v3.4.0

func (builder *UserBaseBuilder) UserId(userId string) *UserBaseBuilder

用户 ID

示例值:5874663B

type UserDailyShift

type UserDailyShift struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组 ID,获取方式:1)[创建或修改考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create) 2)[按名称查询考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search) 3)[获取打卡结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query)

	ShiftId *string `json:"shift_id,omitempty"` // 班次 ID,获取方式:1)[按名称查询班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query) 2)[创建班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create)

	Month *int `json:"month,omitempty"` // 月份

	UserId *string `json:"user_id,omitempty"` // 用户 ID

	DayNo *int `json:"day_no,omitempty"` // 日期

	IsClearSchedule *bool `json:"is_clear_schedule,omitempty"` // 是否清空班次 (此字段优先于 shift_id,若为true ,shift_id 将失效)
}

type UserDailyShiftBuilder

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

func NewUserDailyShiftBuilder

func NewUserDailyShiftBuilder() *UserDailyShiftBuilder

func (*UserDailyShiftBuilder) Build

func (builder *UserDailyShiftBuilder) Build() *UserDailyShift

func (*UserDailyShiftBuilder) DayNo

func (builder *UserDailyShiftBuilder) DayNo(dayNo int) *UserDailyShiftBuilder

日期

示例值:21

func (*UserDailyShiftBuilder) GroupId

func (builder *UserDailyShiftBuilder) GroupId(groupId string) *UserDailyShiftBuilder

考勤组 ID,获取方式:1)[创建或修改考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create) 2)[按名称查询考勤组](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search) 3)[获取打卡结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query)

示例值:6737202939523236110

func (*UserDailyShiftBuilder) IsClearSchedule added in v3.3.3

func (builder *UserDailyShiftBuilder) IsClearSchedule(isClearSchedule bool) *UserDailyShiftBuilder

是否清空班次 (此字段优先于 shift_id,若为true ,shift_id 将失效)

示例值:true

func (*UserDailyShiftBuilder) Month

func (builder *UserDailyShiftBuilder) Month(month int) *UserDailyShiftBuilder

月份

示例值:202101

func (*UserDailyShiftBuilder) ShiftId

func (builder *UserDailyShiftBuilder) ShiftId(shiftId string) *UserDailyShiftBuilder

班次 ID,获取方式:1)[按名称查询班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query) 2)[创建班次](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create)

示例值:6753520403404030215

func (*UserDailyShiftBuilder) UserId

func (builder *UserDailyShiftBuilder) UserId(userId string) *UserDailyShiftBuilder

用户 ID

示例值:abd754f7

type UserFlow

type UserFlow struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	CreatorId *string `json:"creator_id,omitempty"` // 记录创建者 ID

	LocationName *string `json:"location_name,omitempty"` // 打卡位置名称信息

	CheckTime *string `json:"check_time,omitempty"` // 打卡时间,精确到秒的时间戳

	Comment *string `json:"comment,omitempty"` // 打卡备注

	RecordId *string `json:"record_id,omitempty"` // 打卡记录 ID

	Longitude *float64 `json:"longitude,omitempty"` // 打卡经度

	Latitude *float64 `json:"latitude,omitempty"` // 打卡纬度

	Ssid *string `json:"ssid,omitempty"` // 打卡 Wi-Fi 的 SSID

	Bssid *string `json:"bssid,omitempty"` // 打卡 Wi-Fi 的 MAC 地址

	IsField *bool `json:"is_field,omitempty"` // 是否为外勤打卡

	IsWifi *bool `json:"is_wifi,omitempty"` // 是否为 Wi-Fi 打卡

	Type *int `json:"type,omitempty"` // 记录生成方式

	PhotoUrls []string `json:"photo_urls,omitempty"` // 打卡照片列表

	DeviceId *string `json:"device_id,omitempty"` // 打卡设备ID

	CheckResult *string `json:"check_result,omitempty"` // 打卡结果

	ExternalId *string `json:"external_id,omitempty"` // 用户导入的外部打卡记录ID

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键
}

type UserFlowBuilder

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

func NewUserFlowBuilder

func NewUserFlowBuilder() *UserFlowBuilder

func (*UserFlowBuilder) Bssid

func (builder *UserFlowBuilder) Bssid(bssid string) *UserFlowBuilder

打卡 Wi-Fi 的 MAC 地址

示例值:b0:b8:67:5c:1d:72

func (*UserFlowBuilder) Build

func (builder *UserFlowBuilder) Build() *UserFlow

func (*UserFlowBuilder) CheckResult

func (builder *UserFlowBuilder) CheckResult(checkResult string) *UserFlowBuilder

打卡结果

示例值:Invalid

func (*UserFlowBuilder) CheckTime

func (builder *UserFlowBuilder) CheckTime(checkTime string) *UserFlowBuilder

打卡时间,精确到秒的时间戳

示例值:1611476284

func (*UserFlowBuilder) Comment

func (builder *UserFlowBuilder) Comment(comment string) *UserFlowBuilder

打卡备注

示例值:上班打卡

func (*UserFlowBuilder) CreatorId

func (builder *UserFlowBuilder) CreatorId(creatorId string) *UserFlowBuilder

记录创建者 ID

示例值:abd754f7

func (*UserFlowBuilder) DeviceId

func (builder *UserFlowBuilder) DeviceId(deviceId string) *UserFlowBuilder

打卡设备ID

示例值:(只支持小程序打卡,导入时无效)99e0609ee053448596502691a81428654d7ded64c7bd85acd982d26b3636c37d

func (*UserFlowBuilder) ExternalId added in v3.0.34

func (builder *UserFlowBuilder) ExternalId(externalId string) *UserFlowBuilder

用户导入的外部打卡记录ID

示例值:record_123

func (*UserFlowBuilder) IdempotentId added in v3.2.6

func (builder *UserFlowBuilder) IdempotentId(idempotentId string) *UserFlowBuilder

唯一幂等键

示例值:****_***

func (*UserFlowBuilder) IsField

func (builder *UserFlowBuilder) IsField(isField bool) *UserFlowBuilder

是否为外勤打卡

示例值:true

func (*UserFlowBuilder) IsWifi

func (builder *UserFlowBuilder) IsWifi(isWifi bool) *UserFlowBuilder

是否为 Wi-Fi 打卡

示例值:true

func (*UserFlowBuilder) Latitude

func (builder *UserFlowBuilder) Latitude(latitude float64) *UserFlowBuilder

打卡纬度

示例值:120.04513

func (*UserFlowBuilder) LocationName

func (builder *UserFlowBuilder) LocationName(locationName string) *UserFlowBuilder

打卡位置名称信息

示例值:西溪八方城

func (*UserFlowBuilder) Longitude

func (builder *UserFlowBuilder) Longitude(longitude float64) *UserFlowBuilder

打卡经度

示例值:30.28991

func (*UserFlowBuilder) PhotoUrls

func (builder *UserFlowBuilder) PhotoUrls(photoUrls []string) *UserFlowBuilder

打卡照片列表

示例值:https://time.clockin.biz/manage/download/6840389754748502021

func (*UserFlowBuilder) RecordId

func (builder *UserFlowBuilder) RecordId(recordId string) *UserFlowBuilder

打卡记录 ID

示例值:6709359313699356941

func (*UserFlowBuilder) Ssid

func (builder *UserFlowBuilder) Ssid(ssid string) *UserFlowBuilder

打卡 Wi-Fi 的 SSID

示例值:b0:b8:67:5c:1d:72

func (*UserFlowBuilder) Type

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

记录生成方式

示例值:在开放平台调用时,此参数无效,内部值始终是7

func (*UserFlowBuilder) UserId

func (builder *UserFlowBuilder) UserId(userId string) *UserFlowBuilder

用户 ID

示例值:abd754f7

type UserId

type UserId struct {
	UserId *string `json:"user_id,omitempty"` //

	OpenId *string `json:"open_id,omitempty"` //

	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

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

func NewUserIdBuilder

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type UserLeave

type UserLeave struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID

	UniqId *string `json:"uniq_id,omitempty"` // 假期类型唯一 ID,代表一种假期类型,长度小于 14

	Unit *int `json:"unit,omitempty"` // 假期时长单位

	Interval *int `json:"interval,omitempty"` // 假期时长(单位:秒),暂未开放提供,待后续提供

	StartTime *string `json:"start_time,omitempty"` // 开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

	EndTime *string `json:"end_time,omitempty"` // 结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

	I18nNames *I18nNames `json:"i18n_names,omitempty"` // 假期多语言展示,格式为 map,key 为 ["ch"、"en"、"ja"],其中 ch 代表中文、en 代表英语、ja 代表日语

	DefaultLocale *string `json:"default_locale,omitempty"` // 默认语言类型,由于飞书客户端支持中、英、日三种语言,当用户切换语言时,如果假期名称没有所对应的语言,会使用默认语言的名称

	Reason *string `json:"reason,omitempty"` // 请假理由,必选字段

	ApprovePassTime *string `json:"approve_pass_time,omitempty"` // 审批通过时间,时间格式为 yyyy-MM-dd HH:mm:ss

	ApproveApplyTime *string `json:"approve_apply_time,omitempty"` // 审批申请时间,时间格式为 yyyy-MM-dd HH:mm:ss

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键
}

type UserLeaveBuilder

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

func NewUserLeaveBuilder

func NewUserLeaveBuilder() *UserLeaveBuilder

func (*UserLeaveBuilder) ApprovalId

func (builder *UserLeaveBuilder) ApprovalId(approvalId string) *UserLeaveBuilder

审批实例 ID

示例值:6737202939523236113

func (*UserLeaveBuilder) ApproveApplyTime

func (builder *UserLeaveBuilder) ApproveApplyTime(approveApplyTime string) *UserLeaveBuilder

审批申请时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 11:00:00

func (*UserLeaveBuilder) ApprovePassTime

func (builder *UserLeaveBuilder) ApprovePassTime(approvePassTime string) *UserLeaveBuilder

审批通过时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 12:00:00

func (*UserLeaveBuilder) Build

func (builder *UserLeaveBuilder) Build() *UserLeave

func (*UserLeaveBuilder) DefaultLocale

func (builder *UserLeaveBuilder) DefaultLocale(defaultLocale string) *UserLeaveBuilder

默认语言类型,由于飞书客户端支持中、英、日三种语言,当用户切换语言时,如果假期名称没有所对应的语言,会使用默认语言的名称

示例值:ch

func (*UserLeaveBuilder) EndTime

func (builder *UserLeaveBuilder) EndTime(endTime string) *UserLeaveBuilder

结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 19:00:00

func (*UserLeaveBuilder) I18nNames

func (builder *UserLeaveBuilder) I18nNames(i18nNames *I18nNames) *UserLeaveBuilder

假期多语言展示,格式为 map,key 为 ["ch"、"en"、"ja"],其中 ch 代表中文、en 代表英语、ja 代表日语

示例值:

func (*UserLeaveBuilder) IdempotentId added in v3.2.6

func (builder *UserLeaveBuilder) IdempotentId(idempotentId string) *UserLeaveBuilder

唯一幂等键

示例值:1233432312

func (*UserLeaveBuilder) Interval

func (builder *UserLeaveBuilder) Interval(interval int) *UserLeaveBuilder

假期时长(单位:秒),暂未开放提供,待后续提供

示例值:28800

func (*UserLeaveBuilder) Reason

func (builder *UserLeaveBuilder) Reason(reason string) *UserLeaveBuilder

请假理由,必选字段

示例值:家里有事

func (*UserLeaveBuilder) StartTime

func (builder *UserLeaveBuilder) StartTime(startTime string) *UserLeaveBuilder

开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 09:00:00

func (*UserLeaveBuilder) UniqId

func (builder *UserLeaveBuilder) UniqId(uniqId string) *UserLeaveBuilder

假期类型唯一 ID,代表一种假期类型,长度小于 14

示例值:6852582717813440527

func (*UserLeaveBuilder) Unit

func (builder *UserLeaveBuilder) Unit(unit int) *UserLeaveBuilder

假期时长单位

示例值:1

type UserOut

type UserOut struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID

	UniqId *string `json:"uniq_id,omitempty"` // 外出类型唯一 ID,代表一种假期类型,长度小于 14

	Unit *int `json:"unit,omitempty"` // 外出时长单位

	Interval *int `json:"interval,omitempty"` // 外出时长(单位:秒)

	StartTime *string `json:"start_time,omitempty"` // 开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

	EndTime *string `json:"end_time,omitempty"` // 结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

	I18nNames *I18nNames `json:"i18n_names,omitempty"` // 外出多语言展示,格式为 map,key 为 ["ch"、"en"、"ja"],其中 ch 代表中文、en 代表英语、ja 代表日语

	DefaultLocale *string `json:"default_locale,omitempty"` // 默认语言类型,由于飞书客户端支持中、英、日三种语言,当用户切换语言时,如果假期名称没有所对应的语言,会使用默认语言的名称

	Reason *string `json:"reason,omitempty"` // 外出理由

	ApprovePassTime *string `json:"approve_pass_time,omitempty"` // 审批通过时间

	ApproveApplyTime *string `json:"approve_apply_time,omitempty"` // 审批申请时间

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键

	CorrectProcessId []string `json:"correct_process_id,omitempty"` // 更正流程实例 ID

	CancelProcessId []string `json:"cancel_process_id,omitempty"` // 撤销流程实例 ID

	ProcessId []string `json:"process_id,omitempty"` // 发起流程实例 ID
}

type UserOutBuilder

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

func NewUserOutBuilder

func NewUserOutBuilder() *UserOutBuilder

func (*UserOutBuilder) ApprovalId

func (builder *UserOutBuilder) ApprovalId(approvalId string) *UserOutBuilder

审批实例 ID

示例值:6737202939523236113

func (*UserOutBuilder) ApproveApplyTime

func (builder *UserOutBuilder) ApproveApplyTime(approveApplyTime string) *UserOutBuilder

审批申请时间

示例值:2021-01-04 11:00:00

func (*UserOutBuilder) ApprovePassTime

func (builder *UserOutBuilder) ApprovePassTime(approvePassTime string) *UserOutBuilder

审批通过时间

示例值:2021-01-04 12:00:00

func (*UserOutBuilder) Build

func (builder *UserOutBuilder) Build() *UserOut

func (*UserOutBuilder) CancelProcessId added in v3.3.4

func (builder *UserOutBuilder) CancelProcessId(cancelProcessId []string) *UserOutBuilder

撤销流程实例 ID

示例值:

func (*UserOutBuilder) CorrectProcessId added in v3.3.4

func (builder *UserOutBuilder) CorrectProcessId(correctProcessId []string) *UserOutBuilder

更正流程实例 ID

示例值:

func (*UserOutBuilder) DefaultLocale

func (builder *UserOutBuilder) DefaultLocale(defaultLocale string) *UserOutBuilder

默认语言类型,由于飞书客户端支持中、英、日三种语言,当用户切换语言时,如果假期名称没有所对应的语言,会使用默认语言的名称

示例值:ch

func (*UserOutBuilder) EndTime

func (builder *UserOutBuilder) EndTime(endTime string) *UserOutBuilder

结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 19:00:00

func (*UserOutBuilder) I18nNames

func (builder *UserOutBuilder) I18nNames(i18nNames *I18nNames) *UserOutBuilder

外出多语言展示,格式为 map,key 为 ["ch"、"en"、"ja"],其中 ch 代表中文、en 代表英语、ja 代表日语

示例值:

func (*UserOutBuilder) IdempotentId added in v3.2.6

func (builder *UserOutBuilder) IdempotentId(idempotentId string) *UserOutBuilder

唯一幂等键

示例值:1233432312

func (*UserOutBuilder) Interval

func (builder *UserOutBuilder) Interval(interval int) *UserOutBuilder

外出时长(单位:秒)

示例值:28800

func (*UserOutBuilder) ProcessId added in v3.3.4

func (builder *UserOutBuilder) ProcessId(processId []string) *UserOutBuilder

发起流程实例 ID

示例值:

func (*UserOutBuilder) Reason

func (builder *UserOutBuilder) Reason(reason string) *UserOutBuilder

外出理由

示例值:外出办事

func (*UserOutBuilder) StartTime

func (builder *UserOutBuilder) StartTime(startTime string) *UserOutBuilder

开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 09:00:00

func (*UserOutBuilder) UniqId

func (builder *UserOutBuilder) UniqId(uniqId string) *UserOutBuilder

外出类型唯一 ID,代表一种假期类型,长度小于 14

示例值:9496E43696967658A512969523E89870

func (*UserOutBuilder) Unit

func (builder *UserOutBuilder) Unit(unit int) *UserOutBuilder

外出时长单位

示例值:1

type UserOvertimeWork

type UserOvertimeWork struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID

	Duration *float64 `json:"duration,omitempty"` // 加班时长

	Unit *int `json:"unit,omitempty"` // 加班时长单位

	Category *int `json:"category,omitempty"` // 加班日期类型

	Type *int `json:"type,omitempty"` // 加班规则类型

	StartTime *string `json:"start_time,omitempty"` // 开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

	EndTime *string `json:"end_time,omitempty"` // 结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

	Reason *string `json:"reason,omitempty"` // 加班事由

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键

	CorrectProcessId []string `json:"correct_process_id,omitempty"` // 更正流程实例 ID

	CancelProcessId []string `json:"cancel_process_id,omitempty"` // 撤销流程实例 ID

	ProcessId []string `json:"process_id,omitempty"` // 发起流程实例 ID
}

type UserOvertimeWorkBuilder

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

func NewUserOvertimeWorkBuilder

func NewUserOvertimeWorkBuilder() *UserOvertimeWorkBuilder

func (*UserOvertimeWorkBuilder) ApprovalId

func (builder *UserOvertimeWorkBuilder) ApprovalId(approvalId string) *UserOvertimeWorkBuilder

审批实例 ID

示例值:6737202939523236113

func (*UserOvertimeWorkBuilder) Build

func (builder *UserOvertimeWorkBuilder) Build() *UserOvertimeWork

func (*UserOvertimeWorkBuilder) CancelProcessId added in v3.3.4

func (builder *UserOvertimeWorkBuilder) CancelProcessId(cancelProcessId []string) *UserOvertimeWorkBuilder

撤销流程实例 ID

示例值:

func (*UserOvertimeWorkBuilder) Category

func (builder *UserOvertimeWorkBuilder) Category(category int) *UserOvertimeWorkBuilder

加班日期类型

示例值:2

func (*UserOvertimeWorkBuilder) CorrectProcessId added in v3.3.4

func (builder *UserOvertimeWorkBuilder) CorrectProcessId(correctProcessId []string) *UserOvertimeWorkBuilder

更正流程实例 ID

示例值:

func (*UserOvertimeWorkBuilder) Duration

func (builder *UserOvertimeWorkBuilder) Duration(duration float64) *UserOvertimeWorkBuilder

加班时长

示例值:1.5

func (*UserOvertimeWorkBuilder) EndTime

func (builder *UserOvertimeWorkBuilder) EndTime(endTime string) *UserOvertimeWorkBuilder

结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-10 13:00:00

func (*UserOvertimeWorkBuilder) IdempotentId added in v3.2.6

func (builder *UserOvertimeWorkBuilder) IdempotentId(idempotentId string) *UserOvertimeWorkBuilder

唯一幂等键

示例值:1233432312

func (*UserOvertimeWorkBuilder) ProcessId added in v3.3.4

func (builder *UserOvertimeWorkBuilder) ProcessId(processId []string) *UserOvertimeWorkBuilder

发起流程实例 ID

示例值:

func (*UserOvertimeWorkBuilder) Reason added in v3.1.2

func (builder *UserOvertimeWorkBuilder) Reason(reason string) *UserOvertimeWorkBuilder

加班事由

示例值:推进项目进度

func (*UserOvertimeWorkBuilder) StartTime

func (builder *UserOvertimeWorkBuilder) StartTime(startTime string) *UserOvertimeWorkBuilder

开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-09 09:00:00

func (*UserOvertimeWorkBuilder) Type

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

加班规则类型

示例值:1

func (*UserOvertimeWorkBuilder) Unit

加班时长单位

示例值:1

type UserSetting

type UserSetting struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	FaceKey *string `json:"face_key,omitempty"` // 人脸照片文件 ID,获取方式:[文件上传](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/upload)

	FaceKeyUpdateTime *string `json:"face_key_update_time,omitempty"` // 人脸照片更新时间,精确到秒的时间戳
}

type UserSettingBuilder

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

func NewUserSettingBuilder

func NewUserSettingBuilder() *UserSettingBuilder

func (*UserSettingBuilder) Build

func (builder *UserSettingBuilder) Build() *UserSetting

func (*UserSettingBuilder) FaceKey

func (builder *UserSettingBuilder) FaceKey(faceKey string) *UserSettingBuilder

人脸照片文件 ID,获取方式:[文件上传](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/upload)

示例值:xxxxxb306842b1c189bc5212eefxxxxx

func (*UserSettingBuilder) FaceKeyUpdateTime

func (builder *UserSettingBuilder) FaceKeyUpdateTime(faceKeyUpdateTime string) *UserSettingBuilder

人脸照片更新时间,精确到秒的时间戳

示例值:1625681917

func (*UserSettingBuilder) UserId

func (builder *UserSettingBuilder) UserId(userId string) *UserSettingBuilder

用户 ID

示例值:abd754f7

type UserShiftGroupsList added in v3.0.34

type UserShiftGroupsList struct {
	ShiftGroupId *string `json:"shift_group_id,omitempty"` // 班组ID

	ShiftGroupName *string `json:"shift_group_name,omitempty"` // 班组名称

	GroupId *string `json:"group_id,omitempty"` // 考勤组ID

	UpdateTime *string `json:"update_time,omitempty"` // 班组的最后更新时间
}

type UserShiftGroupsListBuilder added in v3.0.34

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

func NewUserShiftGroupsListBuilder added in v3.0.34

func NewUserShiftGroupsListBuilder() *UserShiftGroupsListBuilder

func (*UserShiftGroupsListBuilder) Build added in v3.0.34

func (*UserShiftGroupsListBuilder) GroupId added in v3.0.34

考勤组ID

示例值:7299769369813319699

func (*UserShiftGroupsListBuilder) ShiftGroupId added in v3.0.34

func (builder *UserShiftGroupsListBuilder) ShiftGroupId(shiftGroupId string) *UserShiftGroupsListBuilder

班组ID

示例值:7301693071333261331

func (*UserShiftGroupsListBuilder) ShiftGroupName added in v3.0.34

func (builder *UserShiftGroupsListBuilder) ShiftGroupName(shiftGroupName string) *UserShiftGroupsListBuilder

班组名称

示例值:飞书考勤班组

func (*UserShiftGroupsListBuilder) UpdateTime added in v3.0.34

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

班组的最后更新时间

示例值:2023-11-15 09:00:00

type UserStatsData

type UserStatsData struct {
	Name *string `json:"name,omitempty"` // 用户姓名

	UserId *string `json:"user_id,omitempty"` // 用户 ID

	Datas []*UserStatsDataCell `json:"datas,omitempty"` // 用户的统计数据
}

type UserStatsDataBuilder

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

func NewUserStatsDataBuilder

func NewUserStatsDataBuilder() *UserStatsDataBuilder

func (*UserStatsDataBuilder) Build

func (builder *UserStatsDataBuilder) Build() *UserStatsData

func (*UserStatsDataBuilder) Datas

用户的统计数据

示例值:

func (*UserStatsDataBuilder) Name

func (builder *UserStatsDataBuilder) Name(name string) *UserStatsDataBuilder

用户姓名

示例值:小李

func (*UserStatsDataBuilder) UserId

func (builder *UserStatsDataBuilder) UserId(userId string) *UserStatsDataBuilder

用户 ID

示例值:ec8ddg56

type UserStatsDataCell

type UserStatsDataCell struct {
	Code *string `json:"code,omitempty"` // 字段编号

	Value *string `json:"value,omitempty"` // 数据值

	Features []*UserStatsDataFeature `json:"features,omitempty"` // 数据属性

	Title *string `json:"title,omitempty"` // 字段标题

	DurationNum *UserStatsDataDuration `json:"duration_num,omitempty"` // 时长
}

type UserStatsDataCellBuilder

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

func NewUserStatsDataCellBuilder

func NewUserStatsDataCellBuilder() *UserStatsDataCellBuilder

func (*UserStatsDataCellBuilder) Build

func (builder *UserStatsDataCellBuilder) Build() *UserStatsDataCell

func (*UserStatsDataCellBuilder) Code

字段编号

示例值:50102

func (*UserStatsDataCellBuilder) DurationNum added in v3.2.8

func (builder *UserStatsDataCellBuilder) DurationNum(durationNum *UserStatsDataDuration) *UserStatsDataCellBuilder

时长

示例值:

func (*UserStatsDataCellBuilder) Features

数据属性

示例值:

func (*UserStatsDataCellBuilder) Title added in v3.0.1

字段标题

示例值:姓名

func (*UserStatsDataCellBuilder) Value

数据值

示例值:无需打卡(-), 无需打卡(-)

type UserStatsDataDuration added in v3.2.8

type UserStatsDataDuration struct {
	Day *string `json:"day,omitempty"` // 天

	HalfDay *string `json:"half_day,omitempty"` // 半天

	Hour *string `json:"hour,omitempty"` // 小时

	HalfHour *string `json:"half_hour,omitempty"` // 半小时

	Minute *string `json:"minute,omitempty"` // 分钟
}

type UserStatsDataDurationBuilder added in v3.2.8

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

func NewUserStatsDataDurationBuilder added in v3.2.8

func NewUserStatsDataDurationBuilder() *UserStatsDataDurationBuilder

func (*UserStatsDataDurationBuilder) Build added in v3.2.8

func (*UserStatsDataDurationBuilder) Day added in v3.2.8

示例值:1

func (*UserStatsDataDurationBuilder) HalfDay added in v3.2.8

半天

示例值:1

func (*UserStatsDataDurationBuilder) HalfHour added in v3.2.8

半小时

示例值:1

func (*UserStatsDataDurationBuilder) Hour added in v3.2.8

小时

示例值:1

func (*UserStatsDataDurationBuilder) Minute added in v3.2.8

分钟

示例值:1

type UserStatsDataFeature

type UserStatsDataFeature struct {
	Key *string `json:"key,omitempty"` // 统计数据列附加属性的名称

	Value *string `json:"value,omitempty"` // 统计数据列附加属性的值
}

type UserStatsDataFeatureBuilder

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

func NewUserStatsDataFeatureBuilder

func NewUserStatsDataFeatureBuilder() *UserStatsDataFeatureBuilder

func (*UserStatsDataFeatureBuilder) Build

func (*UserStatsDataFeatureBuilder) Key

统计数据列附加属性的名称

示例值:Abnormal

func (*UserStatsDataFeatureBuilder) Value

统计数据列附加属性的值

示例值:false

type UserStatsField

type UserStatsField struct {
	StatsType *string `json:"stats_type,omitempty"` // 统计类型

	UserId *string `json:"user_id,omitempty"` // 用户 ID

	Fields []*Field `json:"fields,omitempty"` // 字段列表
}

type UserStatsFieldBuilder

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

func NewUserStatsFieldBuilder

func NewUserStatsFieldBuilder() *UserStatsFieldBuilder

func (*UserStatsFieldBuilder) Build

func (builder *UserStatsFieldBuilder) Build() *UserStatsField

func (*UserStatsFieldBuilder) Fields

func (builder *UserStatsFieldBuilder) Fields(fields []*Field) *UserStatsFieldBuilder

字段列表

示例值:

func (*UserStatsFieldBuilder) StatsType

func (builder *UserStatsFieldBuilder) StatsType(statsType string) *UserStatsFieldBuilder

统计类型

示例值:

func (*UserStatsFieldBuilder) UserId

func (builder *UserStatsFieldBuilder) UserId(userId string) *UserStatsFieldBuilder

用户 ID

示例值:

type UserStatsFieldsQueryArchiveRulePathReqBodyBuilder added in v3.3.0

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

func NewUserStatsFieldsQueryArchiveRulePathReqBodyBuilder added in v3.3.0

func NewUserStatsFieldsQueryArchiveRulePathReqBodyBuilder() *UserStatsFieldsQueryArchiveRulePathReqBodyBuilder

func (*UserStatsFieldsQueryArchiveRulePathReqBodyBuilder) ArchiveRuleId added in v3.3.0

归档规则id

示例值:1

func (*UserStatsFieldsQueryArchiveRulePathReqBodyBuilder) Build added in v3.3.0

func (*UserStatsFieldsQueryArchiveRulePathReqBodyBuilder) Locale added in v3.3.0

语言类型

示例值:zh

func (*UserStatsFieldsQueryArchiveRulePathReqBodyBuilder) Month added in v3.3.0

月份

示例值:202409

func (*UserStatsFieldsQueryArchiveRulePathReqBodyBuilder) OperatorId added in v3.3.0

操作者id

示例值:ax8ud

type UserStatsFieldsQueryArchiveRuleReq added in v3.3.0

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

type UserStatsFieldsQueryArchiveRuleReqBody added in v3.3.0

type UserStatsFieldsQueryArchiveRuleReqBody struct {
	Locale *string `json:"locale,omitempty"` // 语言类型

	Month *string `json:"month,omitempty"` // 月份

	ArchiveRuleId *string `json:"archive_rule_id,omitempty"` // 归档规则id

	OperatorId *string `json:"operator_id,omitempty"` // 操作者id
}

type UserStatsFieldsQueryArchiveRuleReqBodyBuilder added in v3.3.0

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

func NewUserStatsFieldsQueryArchiveRuleReqBodyBuilder added in v3.3.0

func NewUserStatsFieldsQueryArchiveRuleReqBodyBuilder() *UserStatsFieldsQueryArchiveRuleReqBodyBuilder

func (*UserStatsFieldsQueryArchiveRuleReqBodyBuilder) ArchiveRuleId added in v3.3.0

归档规则id

示例值:1

func (*UserStatsFieldsQueryArchiveRuleReqBodyBuilder) Build added in v3.3.0

func (*UserStatsFieldsQueryArchiveRuleReqBodyBuilder) Locale added in v3.3.0

语言类型

示例值:zh

func (*UserStatsFieldsQueryArchiveRuleReqBodyBuilder) Month added in v3.3.0

月份

示例值:202409

func (*UserStatsFieldsQueryArchiveRuleReqBodyBuilder) OperatorId added in v3.3.0

操作者id

示例值:ax8ud

type UserStatsFieldsQueryArchiveRuleReqBuilder added in v3.3.0

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

func NewUserStatsFieldsQueryArchiveRuleReqBuilder added in v3.3.0

func NewUserStatsFieldsQueryArchiveRuleReqBuilder() *UserStatsFieldsQueryArchiveRuleReqBuilder

func (*UserStatsFieldsQueryArchiveRuleReqBuilder) Body added in v3.3.0

func (*UserStatsFieldsQueryArchiveRuleReqBuilder) Build added in v3.3.0

func (*UserStatsFieldsQueryArchiveRuleReqBuilder) EmployeeType added in v3.3.0

用户 ID 的类型

示例值:employee_id

type UserStatsFieldsQueryArchiveRuleResp added in v3.3.0

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

func (*UserStatsFieldsQueryArchiveRuleResp) Success added in v3.3.0

func (resp *UserStatsFieldsQueryArchiveRuleResp) Success() bool

type UserStatsFieldsQueryArchiveRuleRespData added in v3.3.0

type UserStatsFieldsQueryArchiveRuleRespData struct {
	ArchiveReportFields []*ArchiveField `json:"archive_report_fields,omitempty"` // 统计数据表头
}

type UserStatsView

type UserStatsView struct {
	ViewId *string `json:"view_id,omitempty"` // 视图 ID

	StatsType *string `json:"stats_type,omitempty"` // 视图类型

	UserId *string `json:"user_id,omitempty"` // 查询用户id,同【查询统计数据】、【查询统计设置】user_id

	Items []*Item `json:"items,omitempty"` // 用户设置字段
}

type UserStatsViewBuilder

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

func NewUserStatsViewBuilder

func NewUserStatsViewBuilder() *UserStatsViewBuilder

func (*UserStatsViewBuilder) Build

func (builder *UserStatsViewBuilder) Build() *UserStatsView

func (*UserStatsViewBuilder) Items

func (builder *UserStatsViewBuilder) Items(items []*Item) *UserStatsViewBuilder

用户设置字段

示例值:

func (*UserStatsViewBuilder) StatsType

func (builder *UserStatsViewBuilder) StatsType(statsType string) *UserStatsViewBuilder

视图类型

示例值:month

func (*UserStatsViewBuilder) UserId

func (builder *UserStatsViewBuilder) UserId(userId string) *UserStatsViewBuilder

查询用户id,同【查询统计数据】、【查询统计设置】user_id

示例值:ec8ddg56

func (*UserStatsViewBuilder) ViewId

func (builder *UserStatsViewBuilder) ViewId(viewId string) *UserStatsViewBuilder

视图 ID

示例值:TmpZNU5qTTJORFF6T1RnNU5UTTNOakV6TWl0dGIyNTBhQT09

type UserTask

type UserTask struct {
	ResultId *string `json:"result_id,omitempty"` // 打卡记录 ID

	UserId *string `json:"user_id,omitempty"` // 用户 ID

	EmployeeName *string `json:"employee_name,omitempty"` // 用户姓名

	Day *int `json:"day,omitempty"` // 日期

	GroupId *string `json:"group_id,omitempty"` // 考勤组 ID

	ShiftId *string `json:"shift_id,omitempty"` // 班次 ID

	Records []*TaskResult `json:"records,omitempty"` // 用户考勤记录
}

type UserTaskBuilder

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

func NewUserTaskBuilder

func NewUserTaskBuilder() *UserTaskBuilder

func (*UserTaskBuilder) Build

func (builder *UserTaskBuilder) Build() *UserTask

func (*UserTaskBuilder) Day

func (builder *UserTaskBuilder) Day(day int) *UserTaskBuilder

日期

示例值:20190819

func (*UserTaskBuilder) EmployeeName

func (builder *UserTaskBuilder) EmployeeName(employeeName string) *UserTaskBuilder

用户姓名

示例值:张三

func (*UserTaskBuilder) GroupId

func (builder *UserTaskBuilder) GroupId(groupId string) *UserTaskBuilder

考勤组 ID

示例值:6737202939523236110

func (*UserTaskBuilder) Records

func (builder *UserTaskBuilder) Records(records []*TaskResult) *UserTaskBuilder

用户考勤记录

示例值:

func (*UserTaskBuilder) ResultId

func (builder *UserTaskBuilder) ResultId(resultId string) *UserTaskBuilder

打卡记录 ID

示例值:6709359313699356941

func (*UserTaskBuilder) ShiftId

func (builder *UserTaskBuilder) ShiftId(shiftId string) *UserTaskBuilder

班次 ID

示例值:6753520403404030215

func (*UserTaskBuilder) UserId

func (builder *UserTaskBuilder) UserId(userId string) *UserTaskBuilder

用户 ID

示例值:abd754f7

type UserTaskRemedy

type UserTaskRemedy struct {
	UserId *string `json:"user_id,omitempty"` // 用户 ID

	RemedyDate *int `json:"remedy_date,omitempty"` // 补卡日期

	PunchNo *int `json:"punch_no,omitempty"` // 第几次上下班,0:第 1 次上下班,1:第 2 次上下班,2:第 3 次上下班,自由班制填 0

	WorkType *int `json:"work_type,omitempty"` // 上班 / 下班,1:上班,2:下班,自由班制填 0

	ApprovalId *string `json:"approval_id,omitempty"` // 审批 ID

	RemedyTime *string `json:"remedy_time,omitempty"` // 补卡时间,时间格式为 yyyy-MM-dd HH:mm

	Status *int `json:"status,omitempty"` // 补卡状态(默认为审批中)

	Reason *string `json:"reason,omitempty"` // 补卡原因

	Time *string `json:"time,omitempty"` // 补卡时间,精确到秒的时间戳

	TimeZone *string `json:"time_zone,omitempty"` // 补卡时考勤组时区

	CreateTime *string `json:"create_time,omitempty"` // 补卡发起时间,精确到秒的时间戳

	UpdateTime *string `json:"update_time,omitempty"` // 补卡状态更新时间,精确到秒的时间戳
}

type UserTaskRemedyBuilder

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

func NewUserTaskRemedyBuilder

func NewUserTaskRemedyBuilder() *UserTaskRemedyBuilder

func (*UserTaskRemedyBuilder) ApprovalId

func (builder *UserTaskRemedyBuilder) ApprovalId(approvalId string) *UserTaskRemedyBuilder

审批 ID

示例值:6737202939523236113

func (*UserTaskRemedyBuilder) Build

func (builder *UserTaskRemedyBuilder) Build() *UserTaskRemedy

func (*UserTaskRemedyBuilder) CreateTime

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

补卡发起时间,精确到秒的时间戳

示例值:1611476284

func (*UserTaskRemedyBuilder) PunchNo

func (builder *UserTaskRemedyBuilder) PunchNo(punchNo int) *UserTaskRemedyBuilder

第几次上下班,0:第 1 次上下班,1:第 2 次上下班,2:第 3 次上下班,自由班制填 0

示例值:0

func (*UserTaskRemedyBuilder) Reason

func (builder *UserTaskRemedyBuilder) Reason(reason string) *UserTaskRemedyBuilder

补卡原因

示例值:忘记打卡

func (*UserTaskRemedyBuilder) RemedyDate

func (builder *UserTaskRemedyBuilder) RemedyDate(remedyDate int) *UserTaskRemedyBuilder

补卡日期

示例值:20210701

func (*UserTaskRemedyBuilder) RemedyTime

func (builder *UserTaskRemedyBuilder) RemedyTime(remedyTime string) *UserTaskRemedyBuilder

补卡时间,时间格式为 yyyy-MM-dd HH:mm

示例值:2021-07-01 08:00

func (*UserTaskRemedyBuilder) Status

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

补卡状态(默认为审批中)

示例值:2

func (*UserTaskRemedyBuilder) Time

func (builder *UserTaskRemedyBuilder) Time(time string) *UserTaskRemedyBuilder

补卡时间,精确到秒的时间戳

示例值:1611476284

func (*UserTaskRemedyBuilder) TimeZone

func (builder *UserTaskRemedyBuilder) TimeZone(timeZone string) *UserTaskRemedyBuilder

补卡时考勤组时区

示例值:Asia/Shanghai

func (*UserTaskRemedyBuilder) UpdateTime

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

补卡状态更新时间,精确到秒的时间戳

示例值:1611476284

func (*UserTaskRemedyBuilder) UserId

func (builder *UserTaskRemedyBuilder) UserId(userId string) *UserTaskRemedyBuilder

用户 ID

示例值:abd754f7

func (*UserTaskRemedyBuilder) WorkType

func (builder *UserTaskRemedyBuilder) WorkType(workType int) *UserTaskRemedyBuilder

上班 / 下班,1:上班,2:下班,自由班制填 0

示例值:1

type UserTmpDailyShift added in v3.2.3

type UserTmpDailyShift struct {
	GroupId *string `json:"group_id,omitempty"` // 考勤组 ID

	UserId *string `json:"user_id,omitempty"` // 用户 ID

	Date *int `json:"date,omitempty"` // 日期

	ShiftName *string `json:"shift_name,omitempty"` // 班次名称

	PunchTimeSimpleRules []*PunchTimeSimpleRule `json:"punch_time_simple_rules,omitempty"` // 打卡规则
}

type UserTmpDailyShiftBuilder added in v3.2.3

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

func NewUserTmpDailyShiftBuilder added in v3.2.3

func NewUserTmpDailyShiftBuilder() *UserTmpDailyShiftBuilder

func (*UserTmpDailyShiftBuilder) Build added in v3.2.3

func (builder *UserTmpDailyShiftBuilder) Build() *UserTmpDailyShift

func (*UserTmpDailyShiftBuilder) Date added in v3.2.3

日期

示例值:20240120

func (*UserTmpDailyShiftBuilder) GroupId added in v3.2.3

func (builder *UserTmpDailyShiftBuilder) GroupId(groupId string) *UserTmpDailyShiftBuilder

考勤组 ID

示例值:6737202939523236110

func (*UserTmpDailyShiftBuilder) PunchTimeSimpleRules added in v3.2.3

func (builder *UserTmpDailyShiftBuilder) PunchTimeSimpleRules(punchTimeSimpleRules []*PunchTimeSimpleRule) *UserTmpDailyShiftBuilder

打卡规则

示例值:

func (*UserTmpDailyShiftBuilder) ShiftName added in v3.2.3

func (builder *UserTmpDailyShiftBuilder) ShiftName(shiftName string) *UserTmpDailyShiftBuilder

班次名称

示例值:临时早班

func (*UserTmpDailyShiftBuilder) UserId added in v3.2.3

func (builder *UserTmpDailyShiftBuilder) UserId(userId string) *UserTmpDailyShiftBuilder

用户 ID

示例值:abd754f7

type UserTrip

type UserTrip struct {
	ApprovalId *string `json:"approval_id,omitempty"` // 审批实例 ID

	StartTime *string `json:"start_time,omitempty"` // 开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

	EndTime *string `json:"end_time,omitempty"` // 结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

	Reason *string `json:"reason,omitempty"` // 出差理由

	ApprovePassTime *string `json:"approve_pass_time,omitempty"` // 审批通过时间,时间格式为 yyyy-MM-dd HH:mm:ss

	ApproveApplyTime *string `json:"approve_apply_time,omitempty"` // 审批申请时间,时间格式为 yyyy-MM-dd HH:mm:ss

	IdempotentId *string `json:"idempotent_id,omitempty"` // 唯一幂等键

	CorrectProcessId []string `json:"correct_process_id,omitempty"` // 更正流程实例 ID

	CancelProcessId []string `json:"cancel_process_id,omitempty"` // 撤销流程实例 ID

	ProcessId []string `json:"process_id,omitempty"` // 发起流程实例 ID

	Departure *RegionPlace `json:"departure,omitempty"` // 出发地(只有一个)

	Destinations []*RegionPlace `json:"destinations,omitempty"` // 目的地(可写多个)

	Transportation []int `json:"transportation,omitempty"` // 交通工具(1 飞机,2 火车,3 汽车,4 高铁/动车,5 船,6 其他)

	TripType *int `json:"trip_type,omitempty"` // 出差类型(1:单程 2:往返)

	Remarks *string `json:"remarks,omitempty"` // 出差备注
}

type UserTripBuilder

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

func NewUserTripBuilder

func NewUserTripBuilder() *UserTripBuilder

func (*UserTripBuilder) ApprovalId

func (builder *UserTripBuilder) ApprovalId(approvalId string) *UserTripBuilder

审批实例 ID

示例值:6737202939523236113

func (*UserTripBuilder) ApproveApplyTime

func (builder *UserTripBuilder) ApproveApplyTime(approveApplyTime string) *UserTripBuilder

审批申请时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 11:00:00

func (*UserTripBuilder) ApprovePassTime

func (builder *UserTripBuilder) ApprovePassTime(approvePassTime string) *UserTripBuilder

审批通过时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 12:00:00

func (*UserTripBuilder) Build

func (builder *UserTripBuilder) Build() *UserTrip

func (*UserTripBuilder) CancelProcessId added in v3.3.4

func (builder *UserTripBuilder) CancelProcessId(cancelProcessId []string) *UserTripBuilder

撤销流程实例 ID

示例值:

func (*UserTripBuilder) CorrectProcessId added in v3.3.4

func (builder *UserTripBuilder) CorrectProcessId(correctProcessId []string) *UserTripBuilder

更正流程实例 ID

示例值:

func (*UserTripBuilder) Departure added in v3.4.5

func (builder *UserTripBuilder) Departure(departure *RegionPlace) *UserTripBuilder

出发地(只有一个)

示例值:

func (*UserTripBuilder) Destinations added in v3.4.5

func (builder *UserTripBuilder) Destinations(destinations []*RegionPlace) *UserTripBuilder

目的地(可写多个)

示例值:

func (*UserTripBuilder) EndTime

func (builder *UserTripBuilder) EndTime(endTime string) *UserTripBuilder

结束时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 19:00:00

func (*UserTripBuilder) IdempotentId added in v3.2.6

func (builder *UserTripBuilder) IdempotentId(idempotentId string) *UserTripBuilder

唯一幂等键

示例值:1233432312

func (*UserTripBuilder) ProcessId added in v3.3.4

func (builder *UserTripBuilder) ProcessId(processId []string) *UserTripBuilder

发起流程实例 ID

示例值:

func (*UserTripBuilder) Reason

func (builder *UserTripBuilder) Reason(reason string) *UserTripBuilder

出差理由

示例值:培训

func (*UserTripBuilder) Remarks added in v3.4.5

func (builder *UserTripBuilder) Remarks(remarks string) *UserTripBuilder

出差备注

示例值:出差备注

func (*UserTripBuilder) StartTime

func (builder *UserTripBuilder) StartTime(startTime string) *UserTripBuilder

开始时间,时间格式为 yyyy-MM-dd HH:mm:ss

示例值:2021-01-04 09:00:00

func (*UserTripBuilder) Transportation added in v3.4.5

func (builder *UserTripBuilder) Transportation(transportation []int) *UserTripBuilder

交通工具(1 飞机,2 火车,3 汽车,4 高铁/动车,5 船,6 其他)

示例值:

func (*UserTripBuilder) TripType added in v3.4.5

func (builder *UserTripBuilder) TripType(tripType int) *UserTripBuilder

出差类型(1:单程 2:往返)

示例值:1

type V1 added in v3.1.0

type V1 struct {
	ApprovalInfo            *approvalInfo            // approval_info
	ArchiveRule             *archiveRule             // archive_rule
	File                    *file                    // 文件
	Group                   *group                   // 考勤组管理
	LeaveAccrualRecord      *leaveAccrualRecord      // leave_accrual_record
	LeaveEmployExpireRecord *leaveEmployExpireRecord // leave_employ_expire_record
	Shift                   *shift                   // 考勤班次
	UserApproval            *userApproval            // 假勤审批
	UserDailyShift          *userDailyShift          // 考勤排班
	UserFlow                *userFlow                // user_flow
	UserSetting             *userSetting             // 用户设置
	UserStatsData           *userStatsData           // 考勤统计
	UserStatsField          *userStatsField          // user_stats_field
	UserStatsView           *userStatsView           // user_stats_view
	UserTask                *userTask                // 考勤记录
	UserTaskRemedy          *userTaskRemedy          // 考勤补卡
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

type WifiInfo

type WifiInfo struct {
	Status *int `json:"status,omitempty"` //
}

type WifiInfoBuilder

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

func NewWifiInfoBuilder

func NewWifiInfoBuilder() *WifiInfoBuilder

func (*WifiInfoBuilder) Build

func (builder *WifiInfoBuilder) Build() *WifiInfo

func (*WifiInfoBuilder) Status

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

示例值:

type WifiInfoEvent

type WifiInfoEvent struct {
	Ssid *string `json:"ssid,omitempty"` //

	Bssid *string `json:"bssid,omitempty"` //

	Lastssid *string `json:"lastssid,omitempty"` //

	Lastbssid *string `json:"lastbssid,omitempty"` //
}

type WifiInfoEventBuilder

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

func NewWifiInfoEventBuilder

func NewWifiInfoEventBuilder() *WifiInfoEventBuilder

func (*WifiInfoEventBuilder) Bssid

func (builder *WifiInfoEventBuilder) Bssid(bssid string) *WifiInfoEventBuilder

示例值:

func (*WifiInfoEventBuilder) Build

func (builder *WifiInfoEventBuilder) Build() *WifiInfoEvent

func (*WifiInfoEventBuilder) Lastbssid

func (builder *WifiInfoEventBuilder) Lastbssid(lastbssid string) *WifiInfoEventBuilder

示例值:

func (*WifiInfoEventBuilder) Lastssid

func (builder *WifiInfoEventBuilder) Lastssid(lastssid string) *WifiInfoEventBuilder

示例值:

func (*WifiInfoEventBuilder) Ssid

func (builder *WifiInfoEventBuilder) Ssid(ssid string) *WifiInfoEventBuilder

示例值:

Jump to

Keyboard shortcuts

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