Documentation ¶
Index ¶
- Constants
- type ApprovalInfo
- type ApprovalInfoBuilder
- func (builder *ApprovalInfoBuilder) ApprovalId(approvalId string) *ApprovalInfoBuilder
- func (builder *ApprovalInfoBuilder) ApprovalType(approvalType string) *ApprovalInfoBuilder
- func (builder *ApprovalInfoBuilder) Build() *ApprovalInfo
- func (builder *ApprovalInfoBuilder) Status(status int) *ApprovalInfoBuilder
- type Area
- type AreaBuilder
- func (builder *AreaBuilder) Build() *Area
- func (builder *AreaBuilder) Center(center *Coordinate) *AreaBuilder
- func (builder *AreaBuilder) Coords(coords []*Coordinate) *AreaBuilder
- func (builder *AreaBuilder) Radius(radius string) *AreaBuilder
- func (builder *AreaBuilder) Type(type_ string) *AreaBuilder
- type ArrangeShiftGroup
- type ArrangeShiftGroupBuilder
- func (builder *ArrangeShiftGroupBuilder) Build() *ArrangeShiftGroup
- func (builder *ArrangeShiftGroupBuilder) GroupId(groupId string) *ArrangeShiftGroupBuilder
- func (builder *ArrangeShiftGroupBuilder) ShiftGroupId(shiftGroupId string) *ArrangeShiftGroupBuilder
- func (builder *ArrangeShiftGroupBuilder) ShiftGroupName(shiftGroupName string) *ArrangeShiftGroupBuilder
- type AttendanceService
- type BatchCreateUserDailyShiftPathReqBodyBuilder
- func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) Build() (*BatchCreateUserDailyShiftReqBody, error)
- func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) OperatorId(operatorId string) *BatchCreateUserDailyShiftPathReqBodyBuilder
- func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) UserDailyShifts(userDailyShifts []*UserDailyShift) *BatchCreateUserDailyShiftPathReqBodyBuilder
- type BatchCreateUserDailyShiftReq
- type BatchCreateUserDailyShiftReqBody
- type BatchCreateUserDailyShiftReqBodyBuilder
- func (builder *BatchCreateUserDailyShiftReqBodyBuilder) Build() *BatchCreateUserDailyShiftReqBody
- func (builder *BatchCreateUserDailyShiftReqBodyBuilder) OperatorId(operatorId string) *BatchCreateUserDailyShiftReqBodyBuilder
- func (builder *BatchCreateUserDailyShiftReqBodyBuilder) UserDailyShifts(userDailyShifts []*UserDailyShift) *BatchCreateUserDailyShiftReqBodyBuilder
- type BatchCreateUserDailyShiftReqBuilder
- func (builder *BatchCreateUserDailyShiftReqBuilder) Body(body *BatchCreateUserDailyShiftReqBody) *BatchCreateUserDailyShiftReqBuilder
- func (builder *BatchCreateUserDailyShiftReqBuilder) Build() *BatchCreateUserDailyShiftReq
- func (builder *BatchCreateUserDailyShiftReqBuilder) EmployeeType(employeeType string) *BatchCreateUserDailyShiftReqBuilder
- type BatchCreateUserDailyShiftResp
- type BatchCreateUserDailyShiftRespData
- type BatchCreateUserFlowPathReqBodyBuilder
- type BatchCreateUserFlowReq
- type BatchCreateUserFlowReqBody
- type BatchCreateUserFlowReqBodyBuilder
- type BatchCreateUserFlowReqBuilder
- func (builder *BatchCreateUserFlowReqBuilder) Body(body *BatchCreateUserFlowReqBody) *BatchCreateUserFlowReqBuilder
- func (builder *BatchCreateUserFlowReqBuilder) Build() *BatchCreateUserFlowReq
- func (builder *BatchCreateUserFlowReqBuilder) EmployeeType(employeeType string) *BatchCreateUserFlowReqBuilder
- type BatchCreateUserFlowResp
- type BatchCreateUserFlowRespData
- type ChildField
- type ChildFieldBuilder
- type ChildItem
- type ChildItemBuilder
- func (builder *ChildItemBuilder) Build() *ChildItem
- func (builder *ChildItemBuilder) Code(code string) *ChildItemBuilder
- func (builder *ChildItemBuilder) ColumnType(columnType int) *ChildItemBuilder
- func (builder *ChildItemBuilder) MaxValue(maxValue string) *ChildItemBuilder
- func (builder *ChildItemBuilder) MinValue(minValue string) *ChildItemBuilder
- func (builder *ChildItemBuilder) ReadOnly(readOnly bool) *ChildItemBuilder
- func (builder *ChildItemBuilder) Title(title string) *ChildItemBuilder
- func (builder *ChildItemBuilder) Value(value string) *ChildItemBuilder
- type Coordinate
- type CoordinateBuilder
- type CreateGroupPathReqBodyBuilder
- type CreateGroupReq
- type CreateGroupReqBody
- type CreateGroupReqBodyBuilder
- type CreateGroupReqBuilder
- func (builder *CreateGroupReqBuilder) Body(body *CreateGroupReqBody) *CreateGroupReqBuilder
- func (builder *CreateGroupReqBuilder) Build() *CreateGroupReq
- func (builder *CreateGroupReqBuilder) DeptType(deptType string) *CreateGroupReqBuilder
- func (builder *CreateGroupReqBuilder) EmployeeType(employeeType string) *CreateGroupReqBuilder
- type CreateGroupResp
- type CreateGroupRespData
- type CreateShiftReq
- type CreateShiftReqBuilder
- type CreateShiftResp
- type CreateShiftRespData
- type CreateUserApprovalPathReqBodyBuilder
- type CreateUserApprovalReq
- type CreateUserApprovalReqBody
- type CreateUserApprovalReqBodyBuilder
- type CreateUserApprovalReqBuilder
- type CreateUserApprovalResp
- type CreateUserApprovalRespData
- type CreateUserTaskRemedyReq
- type CreateUserTaskRemedyReqBuilder
- func (builder *CreateUserTaskRemedyReqBuilder) Build() *CreateUserTaskRemedyReq
- func (builder *CreateUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *CreateUserTaskRemedyReqBuilder
- func (builder *CreateUserTaskRemedyReqBuilder) UserTaskRemedy(userTaskRemedy *UserTaskRemedy) *CreateUserTaskRemedyReqBuilder
- type CreateUserTaskRemedyResp
- type CreateUserTaskRemedyRespData
- type DeleteGroupReq
- type DeleteGroupReqBuilder
- type DeleteGroupResp
- type DeleteShiftReq
- type DeleteShiftReqBuilder
- type DeleteShiftResp
- type DepartmentId
- type DepartmentIdBuilder
- type DownloadFileReq
- type DownloadFileReqBuilder
- type DownloadFileResp
- type DurationItem
- type DurationItemBuilder
- func (builder *DurationItemBuilder) Build() *DurationItem
- func (builder *DurationItemBuilder) Date(date string) *DurationItemBuilder
- func (builder *DurationItemBuilder) Duration(duration float64) *DurationItemBuilder
- func (builder *DurationItemBuilder) SettlementType(settlementType int) *DurationItemBuilder
- func (builder *DurationItemBuilder) Unit(unit int) *DurationItemBuilder
- type Field
- type FieldBuilder
- type File
- type FileBuilder
- type FlexibleRule
- type FlexibleRuleBuilder
- type FreePunchCfg
- type FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) Build() *FreePunchCfg
- func (builder *FreePunchCfgBuilder) FreeEndTime(freeEndTime string) *FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) FreeStartTime(freeStartTime string) *FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) PunchDay(punchDay int) *FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) WorkDayNoPunchAsLack(workDayNoPunchAsLack bool) *FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) WorkHours(workHours int) *FreePunchCfgBuilder
- func (builder *FreePunchCfgBuilder) WorkHoursDemand(workHoursDemand bool) *FreePunchCfgBuilder
- type GetGroupReq
- type GetGroupReqBuilder
- func (builder *GetGroupReqBuilder) Build() *GetGroupReq
- func (builder *GetGroupReqBuilder) DeptType(deptType string) *GetGroupReqBuilder
- func (builder *GetGroupReqBuilder) EmployeeType(employeeType string) *GetGroupReqBuilder
- func (builder *GetGroupReqBuilder) GroupId(groupId string) *GetGroupReqBuilder
- type GetGroupResp
- type GetGroupRespData
- type GetLeaveEmployExpireRecordPathReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) Build() (*GetLeaveEmployExpireRecordReqBody, error)
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) EmploymentId(employmentId string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) EndExpirationDate(endExpirationDate string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) LeaveTypeId(leaveTypeId string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) StartExpirationDate(startExpirationDate string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) TimeOffset(timeOffset int) *GetLeaveEmployExpireRecordPathReqBodyBuilder
- type GetLeaveEmployExpireRecordReq
- type GetLeaveEmployExpireRecordReqBody
- type GetLeaveEmployExpireRecordReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) Build() *GetLeaveEmployExpireRecordReqBody
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) EmploymentId(employmentId string) *GetLeaveEmployExpireRecordReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) EndExpirationDate(endExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) LeaveTypeId(leaveTypeId string) *GetLeaveEmployExpireRecordReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) StartExpirationDate(startExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder
- func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) TimeOffset(timeOffset int) *GetLeaveEmployExpireRecordReqBodyBuilder
- type GetLeaveEmployExpireRecordReqBuilder
- func (builder *GetLeaveEmployExpireRecordReqBuilder) Body(body *GetLeaveEmployExpireRecordReqBody) *GetLeaveEmployExpireRecordReqBuilder
- func (builder *GetLeaveEmployExpireRecordReqBuilder) Build() *GetLeaveEmployExpireRecordReq
- func (builder *GetLeaveEmployExpireRecordReqBuilder) LeaveId(leaveId string) *GetLeaveEmployExpireRecordReqBuilder
- func (builder *GetLeaveEmployExpireRecordReqBuilder) UserIdType(userIdType string) *GetLeaveEmployExpireRecordReqBuilder
- type GetLeaveEmployExpireRecordResp
- type GetLeaveEmployExpireRecordRespData
- type GetShiftReq
- type GetShiftReqBuilder
- type GetShiftResp
- type GetShiftRespData
- type GetUserFlowReq
- type GetUserFlowReqBuilder
- type GetUserFlowResp
- type GetUserFlowRespData
- type Group
- type GroupBuilder
- func (builder *GroupBuilder) AllowOutPunch(allowOutPunch bool) *GroupBuilder
- func (builder *GroupBuilder) AllowPcPunch(allowPcPunch bool) *GroupBuilder
- func (builder *GroupBuilder) AllowRemedy(allowRemedy bool) *GroupBuilder
- func (builder *GroupBuilder) AllowRemedyTypeEarly(allowRemedyTypeEarly bool) *GroupBuilder
- func (builder *GroupBuilder) AllowRemedyTypeLack(allowRemedyTypeLack bool) *GroupBuilder
- func (builder *GroupBuilder) AllowRemedyTypeLate(allowRemedyTypeLate bool) *GroupBuilder
- func (builder *GroupBuilder) AllowRemedyTypeNormal(allowRemedyTypeNormal bool) *GroupBuilder
- func (builder *GroupBuilder) BindDefaultDeptIds(bindDefaultDeptIds []string) *GroupBuilder
- func (builder *GroupBuilder) BindDefaultUserIds(bindDefaultUserIds []string) *GroupBuilder
- func (builder *GroupBuilder) BindDeptIds(bindDeptIds []string) *GroupBuilder
- func (builder *GroupBuilder) BindUserIds(bindUserIds []string) *GroupBuilder
- func (builder *GroupBuilder) Build() *Group
- func (builder *GroupBuilder) CalendarId(calendarId int) *GroupBuilder
- func (builder *GroupBuilder) ClockInNeedPhoto(clockInNeedPhoto bool) *GroupBuilder
- func (builder *GroupBuilder) EffectNow(effectNow bool) *GroupBuilder
- func (builder *GroupBuilder) EffectTime(effectTime string) *GroupBuilder
- func (builder *GroupBuilder) ExceptDeptIds(exceptDeptIds []string) *GroupBuilder
- func (builder *GroupBuilder) ExceptUserIds(exceptUserIds []string) *GroupBuilder
- func (builder *GroupBuilder) FaceDowngrade(faceDowngrade bool) *GroupBuilder
- func (builder *GroupBuilder) FaceLiveNeedAction(faceLiveNeedAction bool) *GroupBuilder
- func (builder *GroupBuilder) FacePunch(facePunch bool) *GroupBuilder
- func (builder *GroupBuilder) FacePunchCfg(facePunchCfg int) *GroupBuilder
- func (builder *GroupBuilder) FixshiftEffectTime(fixshiftEffectTime string) *GroupBuilder
- func (builder *GroupBuilder) FreePunchCfg(freePunchCfg *FreePunchCfg) *GroupBuilder
- func (builder *GroupBuilder) GoOutNeedPunch(goOutNeedPunch int) *GroupBuilder
- func (builder *GroupBuilder) GoOutNeedPunchCfg(goOutNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder
- func (builder *GroupBuilder) GpsRange(gpsRange int) *GroupBuilder
- func (builder *GroupBuilder) GroupId(groupId string) *GroupBuilder
- func (builder *GroupBuilder) GroupLeaderIds(groupLeaderIds []string) *GroupBuilder
- func (builder *GroupBuilder) GroupName(groupName string) *GroupBuilder
- func (builder *GroupBuilder) GroupType(groupType int) *GroupBuilder
- func (builder *GroupBuilder) HideStaffPunchTime(hideStaffPunchTime bool) *GroupBuilder
- func (builder *GroupBuilder) LeaveNeedPunch(leaveNeedPunch bool) *GroupBuilder
- func (builder *GroupBuilder) LeaveNeedPunchCfg(leaveNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder
- func (builder *GroupBuilder) Locations(locations []*Location) *GroupBuilder
- func (builder *GroupBuilder) Machines(machines []*Machine) *GroupBuilder
- func (builder *GroupBuilder) MemberEffectTime(memberEffectTime string) *GroupBuilder
- func (builder *GroupBuilder) MemberStatusChange(memberStatusChange *MemberStatusChange) *GroupBuilder
- func (builder *GroupBuilder) NeedPunchMembers(needPunchMembers []*PunchMember) *GroupBuilder
- func (builder *GroupBuilder) NeedPunchSpecialDays(needPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder
- func (builder *GroupBuilder) NewCalendarId(newCalendarId string) *GroupBuilder
- func (builder *GroupBuilder) NoNeedPunchMembers(noNeedPunchMembers []*PunchMember) *GroupBuilder
- func (builder *GroupBuilder) NoNeedPunchSpecialDays(noNeedPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder
- func (builder *GroupBuilder) OrgChangeAutoAdjust(orgChangeAutoAdjust bool) *GroupBuilder
- func (builder *GroupBuilder) OutPunchAllowedHideAddr(outPunchAllowedHideAddr bool) *GroupBuilder
- func (builder *GroupBuilder) OutPunchNeedApproval(outPunchNeedApproval bool) *GroupBuilder
- func (builder *GroupBuilder) OutPunchNeedPhoto(outPunchNeedPhoto bool) *GroupBuilder
- func (builder *GroupBuilder) OutPunchNeedRemark(outPunchNeedRemark bool) *GroupBuilder
- func (builder *GroupBuilder) OvertimeClockCfg(overtimeClockCfg *OvertimeClockCfg) *GroupBuilder
- func (builder *GroupBuilder) PunchDayShiftIds(punchDayShiftIds []string) *GroupBuilder
- func (builder *GroupBuilder) PunchType(punchType int) *GroupBuilder
- func (builder *GroupBuilder) RemedyDateLimit(remedyDateLimit bool) *GroupBuilder
- func (builder *GroupBuilder) RemedyDateNum(remedyDateNum int) *GroupBuilder
- func (builder *GroupBuilder) RemedyLimit(remedyLimit bool) *GroupBuilder
- func (builder *GroupBuilder) RemedyLimitCount(remedyLimitCount int) *GroupBuilder
- func (builder *GroupBuilder) RemedyPeriodCustomDate(remedyPeriodCustomDate int) *GroupBuilder
- func (builder *GroupBuilder) RemedyPeriodType(remedyPeriodType int) *GroupBuilder
- func (builder *GroupBuilder) ReplaceBasicPic(replaceBasicPic bool) *GroupBuilder
- func (builder *GroupBuilder) RestClockInNeedApproval(restClockInNeedApproval bool) *GroupBuilder
- func (builder *GroupBuilder) SaveAutoChanges(saveAutoChanges bool) *GroupBuilder
- func (builder *GroupBuilder) ShowCumulativeTime(showCumulativeTime bool) *GroupBuilder
- func (builder *GroupBuilder) ShowOverTime(showOverTime bool) *GroupBuilder
- func (builder *GroupBuilder) SubGroupLeaderIds(subGroupLeaderIds []string) *GroupBuilder
- func (builder *GroupBuilder) TimeZone(timeZone string) *GroupBuilder
- func (builder *GroupBuilder) TravelNeedPunch(travelNeedPunch int) *GroupBuilder
- func (builder *GroupBuilder) TravelNeedPunchCfg(travelNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder
- func (builder *GroupBuilder) WorkDayNoPunchAsLack(workDayNoPunchAsLack bool) *GroupBuilder
- type GroupMeta
- type GroupMetaBuilder
- type I18nNames
- type I18nNamesBuilder
- type Item
- type ItemBuilder
- type LangText
- type LangTextBuilder
- type LateOffLateOnRule
- type LateOffLateOnRuleBuilder
- type LeaveAccrualRecord
- type LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) Build() *LeaveAccrualRecord
- func (builder *LeaveAccrualRecordBuilder) CreatedAt(createdAt string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) CreatedBy(createdBy string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) EffectiveDate(effectiveDate string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) EmploymentId(employmentId string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) ExpirationDate(expirationDate string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) GrantedBy(grantedBy int) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) GrantingUnit(grantingUnit int) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) Id(id string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) Reason(reason []*LangText) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) UpdatedAt(updatedAt string) *LeaveAccrualRecordBuilder
- func (builder *LeaveAccrualRecordBuilder) UpdatedBy(updatedBy string) *LeaveAccrualRecordBuilder
- type LeaveEmployExpireRecord
- type LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) AccrualSource(accrualSource int) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) Build() *LeaveEmployExpireRecord
- func (builder *LeaveEmployExpireRecordBuilder) EffectiveDate(effectiveDate string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) EmploymentId(employmentId string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) ExpirationDate(expirationDate string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) GrantingUnit(grantingUnit int) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) Id(id string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) IsUpdateByExternal(isUpdateByExternal bool) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) LeaveSubTypeId(leaveSubTypeId string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) LeftGrantingQuantity(leftGrantingQuantity string) *LeaveEmployExpireRecordBuilder
- func (builder *LeaveEmployExpireRecordBuilder) Reason(reason []*LangText) *LeaveEmployExpireRecordBuilder
- type LeaveNeedPunchCfg
- type LeaveNeedPunchCfgBuilder
- func (builder *LeaveNeedPunchCfgBuilder) Build() *LeaveNeedPunchCfg
- func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsEarly(earlyMinutesAsEarly int) *LeaveNeedPunchCfgBuilder
- func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsLack(earlyMinutesAsLack int) *LeaveNeedPunchCfgBuilder
- func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLack(lateMinutesAsLack int) *LeaveNeedPunchCfgBuilder
- func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLate(lateMinutesAsLate int) *LeaveNeedPunchCfgBuilder
- type ListGroupIterator
- type ListGroupReq
- type ListGroupReqBuilder
- type ListGroupResp
- type ListGroupRespData
- type ListShiftIterator
- type ListShiftReq
- type ListShiftReqBuilder
- type ListShiftResp
- type ListShiftRespData
- type Location
- type LocationBuilder
- func (builder *LocationBuilder) Address(address string) *LocationBuilder
- func (builder *LocationBuilder) Bssid(bssid string) *LocationBuilder
- func (builder *LocationBuilder) Build() *Location
- func (builder *LocationBuilder) Feature(feature string) *LocationBuilder
- func (builder *LocationBuilder) GpsRange(gpsRange int) *LocationBuilder
- func (builder *LocationBuilder) Ip(ip string) *LocationBuilder
- func (builder *LocationBuilder) Latitude(latitude float64) *LocationBuilder
- func (builder *LocationBuilder) LocationId(locationId string) *LocationBuilder
- func (builder *LocationBuilder) LocationName(locationName string) *LocationBuilder
- func (builder *LocationBuilder) LocationType(locationType int) *LocationBuilder
- func (builder *LocationBuilder) Longitude(longitude float64) *LocationBuilder
- func (builder *LocationBuilder) MapType(mapType int) *LocationBuilder
- func (builder *LocationBuilder) Ssid(ssid string) *LocationBuilder
- type LocationInfo
- type LocationInfoBuilder
- type LocationInfoEvent
- type LocationInfoEventBuilder
- type LocationRecord
- type LocationRecordBuilder
- func (builder *LocationRecordBuilder) Build() *LocationRecord
- func (builder *LocationRecordBuilder) ClientInfo(clientInfo string) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) DeviceId(deviceId string) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) Location(location *LocationInfoEvent) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) RuleSnapshotId(ruleSnapshotId string) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) ScanWifiList(scanWifiList []*ScanWifiInfo) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) Timestamp(timestamp string) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) Type(type_ string) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) UserId(userId *UserId) *LocationRecordBuilder
- func (builder *LocationRecordBuilder) Wifi(wifi *WifiInfoEvent) *LocationRecordBuilder
- type LocationSetting
- type LocationSettingBuilder
- func (builder *LocationSettingBuilder) Build() *LocationSetting
- func (builder *LocationSettingBuilder) Location(location *LocationInfo) *LocationSettingBuilder
- func (builder *LocationSettingBuilder) UserId(userId string) *LocationSettingBuilder
- func (builder *LocationSettingBuilder) Wifi(wifi *WifiInfo) *LocationSettingBuilder
- type Machine
- type MachineBuilder
- type MemberStatusChange
- type MemberStatusChangeBuilder
- func (builder *MemberStatusChangeBuilder) Build() *MemberStatusChange
- func (builder *MemberStatusChangeBuilder) OffboardingOffNoNeedPunch(offboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder
- func (builder *MemberStatusChangeBuilder) OffboardingOnNoNeedPunch(offboardingOnNoNeedPunch bool) *MemberStatusChangeBuilder
- func (builder *MemberStatusChangeBuilder) OnboardingOffNoNeedPunch(onboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder
- func (builder *MemberStatusChangeBuilder) OnboardingOnNoNeedPunch(onboardingOnNoNeedPunch bool) *MemberStatusChangeBuilder
- type ModifyUserSettingPathReqBodyBuilder
- type ModifyUserSettingReq
- type ModifyUserSettingReqBody
- type ModifyUserSettingReqBodyBuilder
- type ModifyUserSettingReqBuilder
- type ModifyUserSettingResp
- type ModifyUserSettingRespData
- type OpenApplyTimeRange
- type OpenApplyTimeRangeBuilder
- func (builder *OpenApplyTimeRangeBuilder) Build() *OpenApplyTimeRange
- func (builder *OpenApplyTimeRangeBuilder) OvertimeAttributionDate(overtimeAttributionDate string) *OpenApplyTimeRangeBuilder
- func (builder *OpenApplyTimeRangeBuilder) TimeRange(timeRange *OvertimeTimeRange) *OpenApplyTimeRangeBuilder
- type OvertimeClockCfg
- type OvertimeClockCfgBuilder
- type OvertimeDetail
- type OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) Build() *OvertimeDetail
- func (builder *OvertimeDetailBuilder) Date(date string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) DateType(dateType int) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) Duration(duration string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) EffectiveTime(effectiveTime string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) EndTime(endTime string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) Id(id string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) ProgressStartTime(progressStartTime string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) SettleType(settleType int) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) StartTime(startTime string) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) Unit(unit int) *OvertimeDetailBuilder
- func (builder *OvertimeDetailBuilder) UserId(userId string) *OvertimeDetailBuilder
- type OvertimeRule
- type OvertimeRuleBuilder
- type OvertimeTimeRange
- type OvertimeTimeRangeBuilder
- type PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Build() (*PatchLeaveAccrualRecordReqBody, error)
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) EmploymentId(employmentId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) ExpirationDate(expirationDate string) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveTypeId(leaveTypeId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Quantity(quantity string) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Reason(reason []*LangText) *PatchLeaveAccrualRecordPathReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) TimeOffset(timeOffset int) *PatchLeaveAccrualRecordPathReqBodyBuilder
- type PatchLeaveAccrualRecordReq
- type PatchLeaveAccrualRecordReqBody
- type PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Build() *PatchLeaveAccrualRecordReqBody
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) EmploymentId(employmentId string) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) ExpirationDate(expirationDate string) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) LeaveTypeId(leaveTypeId string) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Quantity(quantity string) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Reason(reason []*LangText) *PatchLeaveAccrualRecordReqBodyBuilder
- func (builder *PatchLeaveAccrualRecordReqBodyBuilder) TimeOffset(timeOffset int) *PatchLeaveAccrualRecordReqBodyBuilder
- type PatchLeaveAccrualRecordReqBuilder
- func (builder *PatchLeaveAccrualRecordReqBuilder) Body(body *PatchLeaveAccrualRecordReqBody) *PatchLeaveAccrualRecordReqBuilder
- func (builder *PatchLeaveAccrualRecordReqBuilder) Build() *PatchLeaveAccrualRecordReq
- func (builder *PatchLeaveAccrualRecordReqBuilder) LeaveId(leaveId string) *PatchLeaveAccrualRecordReqBuilder
- func (builder *PatchLeaveAccrualRecordReqBuilder) UserIdType(userIdType string) *PatchLeaveAccrualRecordReqBuilder
- type PatchLeaveAccrualRecordResp
- type PatchLeaveAccrualRecordRespData
- type ProcessApprovalInfoPathReqBodyBuilder
- func (builder *ProcessApprovalInfoPathReqBodyBuilder) ApprovalId(approvalId string) *ProcessApprovalInfoPathReqBodyBuilder
- func (builder *ProcessApprovalInfoPathReqBodyBuilder) ApprovalType(approvalType string) *ProcessApprovalInfoPathReqBodyBuilder
- func (builder *ProcessApprovalInfoPathReqBodyBuilder) Build() (*ProcessApprovalInfoReqBody, error)
- func (builder *ProcessApprovalInfoPathReqBodyBuilder) Status(status int) *ProcessApprovalInfoPathReqBodyBuilder
- type ProcessApprovalInfoReq
- type ProcessApprovalInfoReqBody
- type ProcessApprovalInfoReqBodyBuilder
- func (builder *ProcessApprovalInfoReqBodyBuilder) ApprovalId(approvalId string) *ProcessApprovalInfoReqBodyBuilder
- func (builder *ProcessApprovalInfoReqBodyBuilder) ApprovalType(approvalType string) *ProcessApprovalInfoReqBodyBuilder
- func (builder *ProcessApprovalInfoReqBodyBuilder) Build() *ProcessApprovalInfoReqBody
- func (builder *ProcessApprovalInfoReqBodyBuilder) Status(status int) *ProcessApprovalInfoReqBodyBuilder
- type ProcessApprovalInfoReqBuilder
- type ProcessApprovalInfoResp
- type ProcessApprovalInfoRespData
- type PunchMember
- type PunchMemberBuilder
- type PunchSpecialDateShift
- type PunchSpecialDateShiftBuilder
- type PunchTimeRule
- type PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) Build() *PunchTimeRule
- func (builder *PunchTimeRuleBuilder) EarlyMinutesAsEarly(earlyMinutesAsEarly int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) EarlyMinutesAsLack(earlyMinutesAsLack int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) LateMinutesAsLack(lateMinutesAsLack int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) LateMinutesAsLate(lateMinutesAsLate int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) LateMinutesAsSeriousLate(lateMinutesAsSeriousLate int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) OffDelayMinutes(offDelayMinutes int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) OffTime(offTime string) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) OnAdvanceMinutes(onAdvanceMinutes int) *PunchTimeRuleBuilder
- func (builder *PunchTimeRuleBuilder) OnTime(onTime string) *PunchTimeRuleBuilder
- type QueryShiftReq
- type QueryShiftReqBuilder
- type QueryShiftResp
- type QueryShiftRespData
- type QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) Build() (*QueryUserAllowedRemedysUserTaskRemedyReqBody, error)
- func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) RemedyDate(remedyDate int) *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) UserId(userId string) *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
- type QueryUserAllowedRemedysUserTaskRemedyReq
- type QueryUserAllowedRemedysUserTaskRemedyReqBody
- type QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) Build() *QueryUserAllowedRemedysUserTaskRemedyReqBody
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) RemedyDate(remedyDate int) *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) UserId(userId string) *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
- type QueryUserAllowedRemedysUserTaskRemedyReqBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Body(body *QueryUserAllowedRemedysUserTaskRemedyReqBody) *QueryUserAllowedRemedysUserTaskRemedyReqBuilder
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Build() *QueryUserAllowedRemedysUserTaskRemedyReq
- func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *QueryUserAllowedRemedysUserTaskRemedyReqBuilder
- type QueryUserAllowedRemedysUserTaskRemedyResp
- type QueryUserAllowedRemedysUserTaskRemedyRespData
- type QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) Build() (*QueryUserApprovalReqBody, error)
- func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) Status(status int) *QueryUserApprovalPathReqBodyBuilder
- func (builder *QueryUserApprovalPathReqBodyBuilder) UserIds(userIds []string) *QueryUserApprovalPathReqBodyBuilder
- type QueryUserApprovalReq
- type QueryUserApprovalReqBody
- type QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) Build() *QueryUserApprovalReqBody
- func (builder *QueryUserApprovalReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) Status(status int) *QueryUserApprovalReqBodyBuilder
- func (builder *QueryUserApprovalReqBodyBuilder) UserIds(userIds []string) *QueryUserApprovalReqBodyBuilder
- type QueryUserApprovalReqBuilder
- type QueryUserApprovalResp
- type QueryUserApprovalRespData
- type QueryUserDailyShiftPathReqBodyBuilder
- func (builder *QueryUserDailyShiftPathReqBodyBuilder) Build() (*QueryUserDailyShiftReqBody, error)
- func (builder *QueryUserDailyShiftPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserDailyShiftPathReqBodyBuilder
- func (builder *QueryUserDailyShiftPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserDailyShiftPathReqBodyBuilder
- func (builder *QueryUserDailyShiftPathReqBodyBuilder) UserIds(userIds []string) *QueryUserDailyShiftPathReqBodyBuilder
- type QueryUserDailyShiftReq
- type QueryUserDailyShiftReqBody
- type QueryUserDailyShiftReqBodyBuilder
- func (builder *QueryUserDailyShiftReqBodyBuilder) Build() *QueryUserDailyShiftReqBody
- func (builder *QueryUserDailyShiftReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserDailyShiftReqBodyBuilder
- func (builder *QueryUserDailyShiftReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserDailyShiftReqBodyBuilder
- func (builder *QueryUserDailyShiftReqBodyBuilder) UserIds(userIds []string) *QueryUserDailyShiftReqBodyBuilder
- type QueryUserDailyShiftReqBuilder
- func (builder *QueryUserDailyShiftReqBuilder) Body(body *QueryUserDailyShiftReqBody) *QueryUserDailyShiftReqBuilder
- func (builder *QueryUserDailyShiftReqBuilder) Build() *QueryUserDailyShiftReq
- func (builder *QueryUserDailyShiftReqBuilder) EmployeeType(employeeType string) *QueryUserDailyShiftReqBuilder
- type QueryUserDailyShiftResp
- type QueryUserDailyShiftRespData
- type QueryUserFlowPathReqBodyBuilder
- func (builder *QueryUserFlowPathReqBodyBuilder) Build() (*QueryUserFlowReqBody, error)
- func (builder *QueryUserFlowPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserFlowPathReqBodyBuilder
- func (builder *QueryUserFlowPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserFlowPathReqBodyBuilder
- func (builder *QueryUserFlowPathReqBodyBuilder) UserIds(userIds []string) *QueryUserFlowPathReqBodyBuilder
- type QueryUserFlowReq
- type QueryUserFlowReqBody
- type QueryUserFlowReqBodyBuilder
- func (builder *QueryUserFlowReqBodyBuilder) Build() *QueryUserFlowReqBody
- func (builder *QueryUserFlowReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserFlowReqBodyBuilder
- func (builder *QueryUserFlowReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserFlowReqBodyBuilder
- func (builder *QueryUserFlowReqBodyBuilder) UserIds(userIds []string) *QueryUserFlowReqBodyBuilder
- type QueryUserFlowReqBuilder
- func (builder *QueryUserFlowReqBuilder) Body(body *QueryUserFlowReqBody) *QueryUserFlowReqBuilder
- func (builder *QueryUserFlowReqBuilder) Build() *QueryUserFlowReq
- func (builder *QueryUserFlowReqBuilder) EmployeeType(employeeType string) *QueryUserFlowReqBuilder
- func (builder *QueryUserFlowReqBuilder) IncludeTerminatedUser(includeTerminatedUser bool) *QueryUserFlowReqBuilder
- type QueryUserFlowResp
- type QueryUserFlowRespData
- type QueryUserSettingPathReqBodyBuilder
- type QueryUserSettingReq
- type QueryUserSettingReqBody
- type QueryUserSettingReqBodyBuilder
- type QueryUserSettingReqBuilder
- type QueryUserSettingResp
- type QueryUserSettingRespData
- type QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) Build() (*QueryUserStatsDataReqBody, error)
- func (builder *QueryUserStatsDataPathReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) EndDate(endDate int) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) Locale(locale string) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) NeedHistory(needHistory bool) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) StartDate(startDate int) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) UserId(userId string) *QueryUserStatsDataPathReqBodyBuilder
- func (builder *QueryUserStatsDataPathReqBodyBuilder) UserIds(userIds []string) *QueryUserStatsDataPathReqBodyBuilder
- type QueryUserStatsDataReq
- type QueryUserStatsDataReqBody
- type QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) Build() *QueryUserStatsDataReqBody
- func (builder *QueryUserStatsDataReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) EndDate(endDate int) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) Locale(locale string) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) NeedHistory(needHistory bool) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) StartDate(startDate int) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) StatsType(statsType string) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) UserId(userId string) *QueryUserStatsDataReqBodyBuilder
- func (builder *QueryUserStatsDataReqBodyBuilder) UserIds(userIds []string) *QueryUserStatsDataReqBodyBuilder
- type QueryUserStatsDataReqBuilder
- type QueryUserStatsDataResp
- type QueryUserStatsDataRespData
- type QueryUserStatsFieldPathReqBodyBuilder
- func (builder *QueryUserStatsFieldPathReqBodyBuilder) Build() (*QueryUserStatsFieldReqBody, error)
- func (builder *QueryUserStatsFieldPathReqBodyBuilder) EndDate(endDate int) *QueryUserStatsFieldPathReqBodyBuilder
- func (builder *QueryUserStatsFieldPathReqBodyBuilder) Locale(locale string) *QueryUserStatsFieldPathReqBodyBuilder
- func (builder *QueryUserStatsFieldPathReqBodyBuilder) StartDate(startDate int) *QueryUserStatsFieldPathReqBodyBuilder
- func (builder *QueryUserStatsFieldPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsFieldPathReqBodyBuilder
- type QueryUserStatsFieldReq
- type QueryUserStatsFieldReqBody
- type QueryUserStatsFieldReqBodyBuilder
- func (builder *QueryUserStatsFieldReqBodyBuilder) Build() *QueryUserStatsFieldReqBody
- func (builder *QueryUserStatsFieldReqBodyBuilder) EndDate(endDate int) *QueryUserStatsFieldReqBodyBuilder
- func (builder *QueryUserStatsFieldReqBodyBuilder) Locale(locale string) *QueryUserStatsFieldReqBodyBuilder
- func (builder *QueryUserStatsFieldReqBodyBuilder) StartDate(startDate int) *QueryUserStatsFieldReqBodyBuilder
- func (builder *QueryUserStatsFieldReqBodyBuilder) StatsType(statsType string) *QueryUserStatsFieldReqBodyBuilder
- type QueryUserStatsFieldReqBuilder
- func (builder *QueryUserStatsFieldReqBuilder) Body(body *QueryUserStatsFieldReqBody) *QueryUserStatsFieldReqBuilder
- func (builder *QueryUserStatsFieldReqBuilder) Build() *QueryUserStatsFieldReq
- func (builder *QueryUserStatsFieldReqBuilder) EmployeeType(employeeType string) *QueryUserStatsFieldReqBuilder
- type QueryUserStatsFieldResp
- type QueryUserStatsFieldRespData
- type QueryUserStatsViewPathReqBodyBuilder
- func (builder *QueryUserStatsViewPathReqBodyBuilder) Build() (*QueryUserStatsViewReqBody, error)
- func (builder *QueryUserStatsViewPathReqBodyBuilder) Locale(locale string) *QueryUserStatsViewPathReqBodyBuilder
- func (builder *QueryUserStatsViewPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsViewPathReqBodyBuilder
- func (builder *QueryUserStatsViewPathReqBodyBuilder) UserId(userId string) *QueryUserStatsViewPathReqBodyBuilder
- type QueryUserStatsViewReq
- type QueryUserStatsViewReqBody
- type QueryUserStatsViewReqBodyBuilder
- func (builder *QueryUserStatsViewReqBodyBuilder) Build() *QueryUserStatsViewReqBody
- func (builder *QueryUserStatsViewReqBodyBuilder) Locale(locale string) *QueryUserStatsViewReqBodyBuilder
- func (builder *QueryUserStatsViewReqBodyBuilder) StatsType(statsType string) *QueryUserStatsViewReqBodyBuilder
- func (builder *QueryUserStatsViewReqBodyBuilder) UserId(userId string) *QueryUserStatsViewReqBodyBuilder
- type QueryUserStatsViewReqBuilder
- type QueryUserStatsViewResp
- type QueryUserStatsViewRespData
- type QueryUserTaskPathReqBodyBuilder
- func (builder *QueryUserTaskPathReqBodyBuilder) Build() (*QueryUserTaskReqBody, error)
- func (builder *QueryUserTaskPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserTaskPathReqBodyBuilder
- func (builder *QueryUserTaskPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserTaskPathReqBodyBuilder
- func (builder *QueryUserTaskPathReqBodyBuilder) NeedOvertimeResult(needOvertimeResult bool) *QueryUserTaskPathReqBodyBuilder
- func (builder *QueryUserTaskPathReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskPathReqBodyBuilder
- type QueryUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) Build() (*QueryUserTaskRemedyReqBody, error)
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) Status(status int) *QueryUserTaskRemedyPathReqBodyBuilder
- func (builder *QueryUserTaskRemedyPathReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskRemedyPathReqBodyBuilder
- type QueryUserTaskRemedyReq
- type QueryUserTaskRemedyReqBody
- type QueryUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserTaskRemedyReqBodyBuilder) Build() *QueryUserTaskRemedyReqBody
- func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserTaskRemedyReqBodyBuilder) Status(status int) *QueryUserTaskRemedyReqBodyBuilder
- func (builder *QueryUserTaskRemedyReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskRemedyReqBodyBuilder
- type QueryUserTaskRemedyReqBuilder
- func (builder *QueryUserTaskRemedyReqBuilder) Body(body *QueryUserTaskRemedyReqBody) *QueryUserTaskRemedyReqBuilder
- func (builder *QueryUserTaskRemedyReqBuilder) Build() *QueryUserTaskRemedyReq
- func (builder *QueryUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *QueryUserTaskRemedyReqBuilder
- type QueryUserTaskRemedyResp
- type QueryUserTaskRemedyRespData
- type QueryUserTaskReq
- type QueryUserTaskReqBody
- type QueryUserTaskReqBodyBuilder
- func (builder *QueryUserTaskReqBodyBuilder) Build() *QueryUserTaskReqBody
- func (builder *QueryUserTaskReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserTaskReqBodyBuilder
- func (builder *QueryUserTaskReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserTaskReqBodyBuilder
- func (builder *QueryUserTaskReqBodyBuilder) NeedOvertimeResult(needOvertimeResult bool) *QueryUserTaskReqBodyBuilder
- func (builder *QueryUserTaskReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskReqBodyBuilder
- type QueryUserTaskReqBuilder
- func (builder *QueryUserTaskReqBuilder) Body(body *QueryUserTaskReqBody) *QueryUserTaskReqBuilder
- func (builder *QueryUserTaskReqBuilder) Build() *QueryUserTaskReq
- func (builder *QueryUserTaskReqBuilder) EmployeeType(employeeType string) *QueryUserTaskReqBuilder
- func (builder *QueryUserTaskReqBuilder) IgnoreInvalidUsers(ignoreInvalidUsers bool) *QueryUserTaskReqBuilder
- func (builder *QueryUserTaskReqBuilder) IncludeTerminatedUser(includeTerminatedUser bool) *QueryUserTaskReqBuilder
- type QueryUserTaskResp
- type QueryUserTaskRespData
- type RestRule
- type RestRuleBuilder
- type ScanWifiInfo
- type ScanWifiInfoBuilder
- type Schedule
- type ScheduleBuilder
- type ScopeGroup
- type ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) Build() *ScopeGroup
- func (builder *ScopeGroupBuilder) CustomFieldID(customFieldID string) *ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) CustomFieldObjType(customFieldObjType string) *ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) MemberIds(memberIds []string) *ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) OperationType(operationType int) *ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) Right(right []*ScopeValue) *ScopeGroupBuilder
- func (builder *ScopeGroupBuilder) ScopeValueType(scopeValueType int) *ScopeGroupBuilder
- type ScopeValue
- type ScopeValueBuilder
- type SearchGroupPathReqBodyBuilder
- type SearchGroupReq
- type SearchGroupReqBody
- type SearchGroupReqBodyBuilder
- type SearchGroupReqBuilder
- type SearchGroupResp
- type SearchGroupRespData
- type Shift
- type ShiftBuilder
- func (builder *ShiftBuilder) Build() *Shift
- func (builder *ShiftBuilder) FlexibleMinutes(flexibleMinutes int) *ShiftBuilder
- func (builder *ShiftBuilder) FlexibleRule(flexibleRule []*FlexibleRule) *ShiftBuilder
- func (builder *ShiftBuilder) IsFlexible(isFlexible bool) *ShiftBuilder
- func (builder *ShiftBuilder) LateOffLateOnRule(lateOffLateOnRule []*LateOffLateOnRule) *ShiftBuilder
- func (builder *ShiftBuilder) NoNeedOff(noNeedOff bool) *ShiftBuilder
- func (builder *ShiftBuilder) OvertimeRule(overtimeRule []*OvertimeRule) *ShiftBuilder
- func (builder *ShiftBuilder) PunchTimeRule(punchTimeRule []*PunchTimeRule) *ShiftBuilder
- func (builder *ShiftBuilder) PunchTimes(punchTimes int) *ShiftBuilder
- func (builder *ShiftBuilder) RestTimeRule(restTimeRule []*RestRule) *ShiftBuilder
- func (builder *ShiftBuilder) ShiftId(shiftId string) *ShiftBuilder
- func (builder *ShiftBuilder) ShiftName(shiftName string) *ShiftBuilder
- func (builder *ShiftBuilder) SubShiftLeaderIds(subShiftLeaderIds []string) *ShiftBuilder
- type ShiftGroupUser
- type ShiftGroupUserBuilder
- type StatusChange
- type StatusChangeBuilder
- func (builder *StatusChangeBuilder) BeforeStatus(beforeStatus string) *StatusChangeBuilder
- func (builder *StatusChangeBuilder) BeforeSupplement(beforeSupplement string) *StatusChangeBuilder
- func (builder *StatusChangeBuilder) Build() *StatusChange
- func (builder *StatusChangeBuilder) CurrentStatus(currentStatus string) *StatusChangeBuilder
- func (builder *StatusChangeBuilder) CurrentSupplement(currentSupplement string) *StatusChangeBuilder
- func (builder *StatusChangeBuilder) Index(index int) *StatusChangeBuilder
- func (builder *StatusChangeBuilder) WorkType(workType string) *StatusChangeBuilder
- type TaskResult
- type TaskResultBuilder
- func (builder *TaskResultBuilder) Build() *TaskResult
- func (builder *TaskResultBuilder) CheckInRecord(checkInRecord *UserFlow) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckInRecordId(checkInRecordId string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckInResult(checkInResult string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckInResultSupplement(checkInResultSupplement string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckInShiftTime(checkInShiftTime string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckOutRecord(checkOutRecord *UserFlow) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckOutRecordId(checkOutRecordId string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckOutResult(checkOutResult string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckOutResultSupplement(checkOutResultSupplement string) *TaskResultBuilder
- func (builder *TaskResultBuilder) CheckOutShiftTime(checkOutShiftTime string) *TaskResultBuilder
- func (builder *TaskResultBuilder) TaskShiftType(taskShiftType int) *TaskResultBuilder
- type UpdateUserStatsViewPathReqBodyBuilder
- type UpdateUserStatsViewReq
- type UpdateUserStatsViewReqBody
- type UpdateUserStatsViewReqBodyBuilder
- type UpdateUserStatsViewReqBuilder
- func (builder *UpdateUserStatsViewReqBuilder) Body(body *UpdateUserStatsViewReqBody) *UpdateUserStatsViewReqBuilder
- func (builder *UpdateUserStatsViewReqBuilder) Build() *UpdateUserStatsViewReq
- func (builder *UpdateUserStatsViewReqBuilder) EmployeeType(employeeType string) *UpdateUserStatsViewReqBuilder
- func (builder *UpdateUserStatsViewReqBuilder) UserStatsViewId(userStatsViewId string) *UpdateUserStatsViewReqBuilder
- type UpdateUserStatsViewResp
- type UpdateUserStatsViewRespData
- type UploadFilePathReqBodyBuilder
- type UploadFileReq
- type UploadFileReqBody
- type UploadFileReqBodyBuilder
- type UploadFileReqBuilder
- type UploadFileResp
- type UploadFileRespData
- type UserAllowedRemedy
- type UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) Build() *UserAllowedRemedy
- func (builder *UserAllowedRemedyBuilder) IsFreePunch(isFreePunch bool) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) NormalPunchTime(normalPunchTime string) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) PunchNo(punchNo int) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) PunchStatus(punchStatus string) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) RemedyDate(remedyDate int) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) RemedyEndTime(remedyEndTime string) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) RemedyStartTime(remedyStartTime string) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) UserId(userId string) *UserAllowedRemedyBuilder
- func (builder *UserAllowedRemedyBuilder) WorkType(workType int) *UserAllowedRemedyBuilder
- type UserApproval
- type UserApprovalBuilder
- func (builder *UserApprovalBuilder) Build() *UserApproval
- func (builder *UserApprovalBuilder) Date(date string) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) Leaves(leaves []*UserLeave) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) Outs(outs []*UserOut) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) OvertimeWorks(overtimeWorks []*UserOvertimeWork) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) TimeZone(timeZone string) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) Trips(trips []*UserTrip) *UserApprovalBuilder
- func (builder *UserApprovalBuilder) UserId(userId string) *UserApprovalBuilder
- type UserArrangeShiftGroup
- type UserArrangeShiftGroupBuilder
- type UserDailyShift
- type UserDailyShiftBuilder
- func (builder *UserDailyShiftBuilder) Build() *UserDailyShift
- func (builder *UserDailyShiftBuilder) DayNo(dayNo int) *UserDailyShiftBuilder
- func (builder *UserDailyShiftBuilder) GroupId(groupId string) *UserDailyShiftBuilder
- func (builder *UserDailyShiftBuilder) Month(month int) *UserDailyShiftBuilder
- func (builder *UserDailyShiftBuilder) ShiftId(shiftId string) *UserDailyShiftBuilder
- func (builder *UserDailyShiftBuilder) UserId(userId string) *UserDailyShiftBuilder
- type UserFlow
- type UserFlowBuilder
- func (builder *UserFlowBuilder) Bssid(bssid string) *UserFlowBuilder
- func (builder *UserFlowBuilder) Build() *UserFlow
- func (builder *UserFlowBuilder) CheckResult(checkResult string) *UserFlowBuilder
- func (builder *UserFlowBuilder) CheckTime(checkTime string) *UserFlowBuilder
- func (builder *UserFlowBuilder) Comment(comment string) *UserFlowBuilder
- func (builder *UserFlowBuilder) CreatorId(creatorId string) *UserFlowBuilder
- func (builder *UserFlowBuilder) ExternalId(externalId string) *UserFlowBuilder
- func (builder *UserFlowBuilder) IsField(isField bool) *UserFlowBuilder
- func (builder *UserFlowBuilder) IsWifi(isWifi bool) *UserFlowBuilder
- func (builder *UserFlowBuilder) LocationName(locationName string) *UserFlowBuilder
- func (builder *UserFlowBuilder) PhotoUrls(photoUrls []string) *UserFlowBuilder
- func (builder *UserFlowBuilder) RecordId(recordId string) *UserFlowBuilder
- func (builder *UserFlowBuilder) Ssid(ssid string) *UserFlowBuilder
- func (builder *UserFlowBuilder) Type(type_ int) *UserFlowBuilder
- func (builder *UserFlowBuilder) UserId(userId string) *UserFlowBuilder
- type UserId
- type UserIdBuilder
- type UserLeave
- type UserLeaveBuilder
- func (builder *UserLeaveBuilder) ApprovalId(approvalId string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) ApproveApplyTime(approveApplyTime string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) ApprovePassTime(approvePassTime string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) Build() *UserLeave
- func (builder *UserLeaveBuilder) DefaultLocale(defaultLocale string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) EndTime(endTime string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) I18nNames(i18nNames *I18nNames) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) Interval(interval int) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) Reason(reason string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) StartTime(startTime string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) UniqId(uniqId string) *UserLeaveBuilder
- func (builder *UserLeaveBuilder) Unit(unit int) *UserLeaveBuilder
- type UserOut
- type UserOutBuilder
- func (builder *UserOutBuilder) ApprovalId(approvalId string) *UserOutBuilder
- func (builder *UserOutBuilder) ApproveApplyTime(approveApplyTime string) *UserOutBuilder
- func (builder *UserOutBuilder) ApprovePassTime(approvePassTime string) *UserOutBuilder
- func (builder *UserOutBuilder) Build() *UserOut
- func (builder *UserOutBuilder) DefaultLocale(defaultLocale string) *UserOutBuilder
- func (builder *UserOutBuilder) EndTime(endTime string) *UserOutBuilder
- func (builder *UserOutBuilder) I18nNames(i18nNames *I18nNames) *UserOutBuilder
- func (builder *UserOutBuilder) Interval(interval int) *UserOutBuilder
- func (builder *UserOutBuilder) Reason(reason string) *UserOutBuilder
- func (builder *UserOutBuilder) StartTime(startTime string) *UserOutBuilder
- func (builder *UserOutBuilder) UniqId(uniqId string) *UserOutBuilder
- func (builder *UserOutBuilder) Unit(unit int) *UserOutBuilder
- type UserOvertimeWork
- type UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) ApprovalId(approvalId string) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) Build() *UserOvertimeWork
- func (builder *UserOvertimeWorkBuilder) Category(category int) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) Duration(duration float64) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) EndTime(endTime string) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) StartTime(startTime string) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) Type(type_ int) *UserOvertimeWorkBuilder
- func (builder *UserOvertimeWorkBuilder) Unit(unit int) *UserOvertimeWorkBuilder
- type UserSetting
- type UserSettingBuilder
- func (builder *UserSettingBuilder) Build() *UserSetting
- func (builder *UserSettingBuilder) FaceKey(faceKey string) *UserSettingBuilder
- func (builder *UserSettingBuilder) FaceKeyUpdateTime(faceKeyUpdateTime string) *UserSettingBuilder
- func (builder *UserSettingBuilder) UserId(userId string) *UserSettingBuilder
- type UserShiftGroupsList
- type UserShiftGroupsListBuilder
- func (builder *UserShiftGroupsListBuilder) Build() *UserShiftGroupsList
- func (builder *UserShiftGroupsListBuilder) GroupId(groupId string) *UserShiftGroupsListBuilder
- func (builder *UserShiftGroupsListBuilder) ShiftGroupId(shiftGroupId string) *UserShiftGroupsListBuilder
- func (builder *UserShiftGroupsListBuilder) ShiftGroupName(shiftGroupName string) *UserShiftGroupsListBuilder
- func (builder *UserShiftGroupsListBuilder) UpdateTime(updateTime string) *UserShiftGroupsListBuilder
- type UserStatsData
- type UserStatsDataBuilder
- func (builder *UserStatsDataBuilder) Build() *UserStatsData
- func (builder *UserStatsDataBuilder) Datas(datas []*UserStatsDataCell) *UserStatsDataBuilder
- func (builder *UserStatsDataBuilder) Name(name string) *UserStatsDataBuilder
- func (builder *UserStatsDataBuilder) UserId(userId string) *UserStatsDataBuilder
- type UserStatsDataCell
- type UserStatsDataCellBuilder
- func (builder *UserStatsDataCellBuilder) Build() *UserStatsDataCell
- func (builder *UserStatsDataCellBuilder) Code(code string) *UserStatsDataCellBuilder
- func (builder *UserStatsDataCellBuilder) Features(features []*UserStatsDataFeature) *UserStatsDataCellBuilder
- func (builder *UserStatsDataCellBuilder) Title(title string) *UserStatsDataCellBuilder
- func (builder *UserStatsDataCellBuilder) Value(value string) *UserStatsDataCellBuilder
- type UserStatsDataFeature
- type UserStatsDataFeatureBuilder
- type UserStatsField
- type UserStatsFieldBuilder
- func (builder *UserStatsFieldBuilder) Build() *UserStatsField
- func (builder *UserStatsFieldBuilder) Fields(fields []*Field) *UserStatsFieldBuilder
- func (builder *UserStatsFieldBuilder) StatsType(statsType string) *UserStatsFieldBuilder
- func (builder *UserStatsFieldBuilder) UserId(userId string) *UserStatsFieldBuilder
- type UserStatsView
- type UserStatsViewBuilder
- func (builder *UserStatsViewBuilder) Build() *UserStatsView
- func (builder *UserStatsViewBuilder) Items(items []*Item) *UserStatsViewBuilder
- func (builder *UserStatsViewBuilder) StatsType(statsType string) *UserStatsViewBuilder
- func (builder *UserStatsViewBuilder) UserId(userId string) *UserStatsViewBuilder
- func (builder *UserStatsViewBuilder) ViewId(viewId string) *UserStatsViewBuilder
- type UserTask
- type UserTaskBuilder
- func (builder *UserTaskBuilder) Build() *UserTask
- func (builder *UserTaskBuilder) Day(day int) *UserTaskBuilder
- func (builder *UserTaskBuilder) EmployeeName(employeeName string) *UserTaskBuilder
- func (builder *UserTaskBuilder) GroupId(groupId string) *UserTaskBuilder
- func (builder *UserTaskBuilder) Records(records []*TaskResult) *UserTaskBuilder
- func (builder *UserTaskBuilder) ResultId(resultId string) *UserTaskBuilder
- func (builder *UserTaskBuilder) ShiftId(shiftId string) *UserTaskBuilder
- func (builder *UserTaskBuilder) UserId(userId string) *UserTaskBuilder
- type UserTaskRemedy
- type UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) ApprovalId(approvalId string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) Build() *UserTaskRemedy
- func (builder *UserTaskRemedyBuilder) CreateTime(createTime string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) PunchNo(punchNo int) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) Reason(reason string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) RemedyDate(remedyDate int) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) RemedyTime(remedyTime string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) Status(status int) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) Time(time string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) TimeZone(timeZone string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) UpdateTime(updateTime string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) UserId(userId string) *UserTaskRemedyBuilder
- func (builder *UserTaskRemedyBuilder) WorkType(workType int) *UserTaskRemedyBuilder
- type UserTrip
- type UserTripBuilder
- func (builder *UserTripBuilder) ApprovalId(approvalId string) *UserTripBuilder
- func (builder *UserTripBuilder) ApproveApplyTime(approveApplyTime string) *UserTripBuilder
- func (builder *UserTripBuilder) ApprovePassTime(approvePassTime string) *UserTripBuilder
- func (builder *UserTripBuilder) Build() *UserTrip
- func (builder *UserTripBuilder) EndTime(endTime string) *UserTripBuilder
- func (builder *UserTripBuilder) Reason(reason string) *UserTripBuilder
- func (builder *UserTripBuilder) StartTime(startTime string) *UserTripBuilder
- type WifiInfo
- type WifiInfoBuilder
- type WifiInfoEvent
- type WifiInfoEventBuilder
- func (builder *WifiInfoEventBuilder) Bssid(bssid string) *WifiInfoEventBuilder
- func (builder *WifiInfoEventBuilder) Build() *WifiInfoEvent
- func (builder *WifiInfoEventBuilder) Lastbssid(lastbssid string) *WifiInfoEventBuilder
- func (builder *WifiInfoEventBuilder) Lastssid(lastssid string) *WifiInfoEventBuilder
- func (builder *WifiInfoEventBuilder) Ssid(ssid string) *WifiInfoEventBuilder
Constants ¶
const ( EmployeeTypeEmployeeId = "employee_id" // 员工employeeId EmployeeTypeEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeGetGroupEmployeeId = "employee_id" // 员工employeeId EmployeeTypeGetGroupEmployeeNo = "employee_no" // 员工工号 )
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 主要用于在不同的应用间打通用户数据。 )
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 主要用于在不同的应用间打通用户数据。 )
const ( EmployeeTypeCreateUserApprovalEmployeeId = "employee_id" // 员工employeeId EmployeeTypeCreateUserApprovalEmployeeNo = "employee_no" // 员工工号 )
const ( CheckDateTypePeriodTime = "PeriodTime" // 单据作用时间(即写入的end_time) CheckDateTypeCreateTime = "CreateTime" // 单据创建时间 CheckDateTypeUpdateTime = "UpdateTime" // 单据状态更新时间 )
const ( ApprovalStatusTodo = 0 // 待审批 ApprovalStatusRejected = 1 // 审批未通过 ApprovalStatusApproved = 2 // 审批通过 ApprovalStatusCanceled = 3 // 审批已取消 ApprovalStatusReverted = 4 // 已撤回 )
const ( EmployeeTypeQueryUserApprovalEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserApprovalEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeBatchCreateUserDailyShiftEmployeeId = "employee_id" // 员工employeeId EmployeeTypeBatchCreateUserDailyShiftEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeQueryUserDailyShiftEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserDailyShiftEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeBatchCreateUserFlowEmployeeId = "employee_id" // 员工employeeId EmployeeTypeBatchCreateUserFlowEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeGetUserFlowOpenId = "open_id" // 开放openID EmployeeTypeGetUserFlowEmployeeId = "employee_id" // 员工employeeId EmployeeTypeGetUserFlowEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeQueryUserFlowEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserFlowEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeModifyUserSettingEmployeeId = "employee_id" // 员工employeeId EmployeeTypeModifyUserSettingEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeQueryUserSettingEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserSettingEmployeeNo = "employee_no" // 员工工号 )
const ( LocaleEn = "en" // 英文 LocaleJa = "ja" // 日文 LocaleZh = "zh" // 中文 )
const ( StatsTypeDaily = "daily" // 日度统计 StatsTypeMonth = "month" // 月度统计 )
const ( EmployeeTypeQueryUserStatsDataEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserStatsDataEmployeeNo = "employee_no" // 员工工号 )
const ( LocaleQueryUserStatsFieldEn = "en" // 英文 LocaleQueryUserStatsFieldJa = "ja" // 日文 LocaleQueryUserStatsFieldZh = "zh" // 中文 )
const ( StatsTypeQueryUserStatsFieldDaily = "daily" // 日度统计 StatsTypeQueryUserStatsFieldMonth = "month" // 月度统计 )
const ( EmployeeTypeQueryUserStatsFieldEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserStatsFieldEmployeeNo = "employee_no" // 员工工号 )
const ( LocaleQueryUserStatsViewEn = "en" // 英文 LocaleQueryUserStatsViewJa = "ja" // 日文 LocaleQueryUserStatsViewZh = "zh" // 中文 )
const ( StatsTypeQueryUserStatsViewDaily = "daily" // 日度统计 StatsTypeQueryUserStatsViewMonth = "month" // 月度统计 )
const ( EmployeeTypeQueryUserStatsViewEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserStatsViewEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeUpdateUserStatsViewEmployeeId = "employee_id" // 员工employeeId EmployeeTypeUpdateUserStatsViewEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeQueryUserTaskEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserTaskEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeCreateUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId EmployeeTypeCreateUserTaskRemedyEmployeeNo = "employee_no" // 员工工号 )
const ( CheckDateTypeQueryUserTaskRemedyPeriodTime = "PeriodTime" // 单据作用时间(即remedy_time) CheckDateTypeQueryUserTaskRemedyCreateTime = "CreateTime" // 单据创建时间 CheckDateTypeQueryUserTaskRemedyUpdateTime = "UpdateTime" // 单据状态更新时间 )
const ( RemedyStatusPending = 0 // 待审批 RemedyStatusRejected = 1 // 未通过 RemedyStatusPass = 2 // 已通过 RemedyStatusCancel = 3 // 已取消 RemedyStatusWithdraw = 4 // 已撤回 )
const ( EmployeeTypeQueryUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserTaskRemedyEmployeeNo = "employee_no" // 员工工号 )
const ( EmployeeTypeQueryUserAllowedRemedysUserTaskRemedyEmployeeId = "employee_id" // 员工employeeId EmployeeTypeQueryUserAllowedRemedysUserTaskRemedyEmployeeNo = "employee_no" // 员工工号 )
const (
DeptTypeGetGroupOpenId = "open_id" // 开放openID
)
const (
DeptTypeOpenId = "open_id" // 开放openID
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalInfo ¶
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 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
示例值:
type ArrangeShiftGroup ¶
type ArrangeShiftGroupBuilder ¶
type ArrangeShiftGroupBuilder struct {
// contains filtered or unexported fields
}
func NewArrangeShiftGroupBuilder ¶
func NewArrangeShiftGroupBuilder() *ArrangeShiftGroupBuilder
func (*ArrangeShiftGroupBuilder) Build ¶
func (builder *ArrangeShiftGroupBuilder) Build() *ArrangeShiftGroup
func (*ArrangeShiftGroupBuilder) GroupId ¶
func (builder *ArrangeShiftGroupBuilder) GroupId(groupId string) *ArrangeShiftGroupBuilder
考勤组id
示例值:7171200888781537301
func (*ArrangeShiftGroupBuilder) ShiftGroupId ¶
func (builder *ArrangeShiftGroupBuilder) ShiftGroupId(shiftGroupId string) *ArrangeShiftGroupBuilder
班组id
示例值:7071200888781537300
func (*ArrangeShiftGroupBuilder) ShiftGroupName ¶
func (builder *ArrangeShiftGroupBuilder) ShiftGroupName(shiftGroupName string) *ArrangeShiftGroupBuilder
班组名称
示例值:班组-测试班组
type AttendanceService ¶
type AttendanceService struct { ApprovalInfo *approvalInfo // approval_info 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 // 考勤补卡 // contains filtered or unexported fields }
func NewService ¶
func NewService(config *larkcore.Config) *AttendanceService
type BatchCreateUserDailyShiftPathReqBodyBuilder ¶
type BatchCreateUserDailyShiftPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewBatchCreateUserDailyShiftPathReqBodyBuilder ¶
func NewBatchCreateUserDailyShiftPathReqBodyBuilder() *BatchCreateUserDailyShiftPathReqBodyBuilder
func (*BatchCreateUserDailyShiftPathReqBodyBuilder) Build ¶
func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) Build() (*BatchCreateUserDailyShiftReqBody, error)
func (*BatchCreateUserDailyShiftPathReqBodyBuilder) OperatorId ¶
func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) OperatorId(operatorId string) *BatchCreateUserDailyShiftPathReqBodyBuilder
操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段
示例值:dd31248a
func (*BatchCreateUserDailyShiftPathReqBodyBuilder) UserDailyShifts ¶
func (builder *BatchCreateUserDailyShiftPathReqBodyBuilder) UserDailyShifts(userDailyShifts []*UserDailyShift) *BatchCreateUserDailyShiftPathReqBodyBuilder
班表信息列表(数量限制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 (builder *BatchCreateUserDailyShiftReqBodyBuilder) Build() *BatchCreateUserDailyShiftReqBody
func (*BatchCreateUserDailyShiftReqBodyBuilder) OperatorId ¶
func (builder *BatchCreateUserDailyShiftReqBodyBuilder) OperatorId(operatorId string) *BatchCreateUserDailyShiftReqBodyBuilder
操作人uid,如果您未操作[考勤管理后台“API 接入”流程](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段
示例值:dd31248a
func (*BatchCreateUserDailyShiftReqBodyBuilder) UserDailyShifts ¶
func (builder *BatchCreateUserDailyShiftReqBodyBuilder) UserDailyShifts(userDailyShifts []*UserDailyShift) *BatchCreateUserDailyShiftReqBodyBuilder
班表信息列表(数量限制50以内)
示例值:
type BatchCreateUserDailyShiftReqBuilder ¶
type BatchCreateUserDailyShiftReqBuilder struct {
// contains filtered or unexported fields
}
func NewBatchCreateUserDailyShiftReqBuilder ¶
func NewBatchCreateUserDailyShiftReqBuilder() *BatchCreateUserDailyShiftReqBuilder
func (*BatchCreateUserDailyShiftReqBuilder) Body ¶
func (builder *BatchCreateUserDailyShiftReqBuilder) Body(body *BatchCreateUserDailyShiftReqBody) *BatchCreateUserDailyShiftReqBuilder
班表是用来描述考勤组内人员每天按哪个班次进行上班。目前班表支持按一个整月对一位或多位人员进行排班。
func (*BatchCreateUserDailyShiftReqBuilder) Build ¶
func (builder *BatchCreateUserDailyShiftReqBuilder) Build() *BatchCreateUserDailyShiftReq
func (*BatchCreateUserDailyShiftReqBuilder) EmployeeType ¶
func (builder *BatchCreateUserDailyShiftReqBuilder) EmployeeType(employeeType string) *BatchCreateUserDailyShiftReqBuilder
请求体和响应体中的 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 (builder *BatchCreateUserFlowPathReqBodyBuilder) Build() (*BatchCreateUserFlowReqBody, error)
func (*BatchCreateUserFlowPathReqBodyBuilder) FlowRecords ¶
func (builder *BatchCreateUserFlowPathReqBodyBuilder) FlowRecords(flowRecords []*UserFlow) *BatchCreateUserFlowPathReqBodyBuilder
打卡流水记录列表(数量限制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 (builder *BatchCreateUserFlowReqBodyBuilder) Build() *BatchCreateUserFlowReqBody
func (*BatchCreateUserFlowReqBodyBuilder) FlowRecords ¶
func (builder *BatchCreateUserFlowReqBodyBuilder) FlowRecords(flowRecords []*UserFlow) *BatchCreateUserFlowReqBodyBuilder
打卡流水记录列表(数量限制50)
示例值:
type BatchCreateUserFlowReqBuilder ¶
type BatchCreateUserFlowReqBuilder struct {
// contains filtered or unexported fields
}
func NewBatchCreateUserFlowReqBuilder ¶
func NewBatchCreateUserFlowReqBuilder() *BatchCreateUserFlowReqBuilder
func (*BatchCreateUserFlowReqBuilder) Body ¶
func (builder *BatchCreateUserFlowReqBuilder) Body(body *BatchCreateUserFlowReqBody) *BatchCreateUserFlowReqBuilder
导入授权内员工的打卡流水记录。导入后,会根据员工所在的考勤组班次规则,计算最终的打卡状态与结果。
func (*BatchCreateUserFlowReqBuilder) Build ¶
func (builder *BatchCreateUserFlowReqBuilder) Build() *BatchCreateUserFlowReq
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 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 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 (builder *CreateGroupPathReqBodyBuilder) Build() (*CreateGroupReqBody, error)
func (*CreateGroupPathReqBodyBuilder) Group ¶
func (builder *CreateGroupPathReqBodyBuilder) Group(group *Group) *CreateGroupPathReqBodyBuilder
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 (builder *CreateGroupReqBodyBuilder) Build() *CreateGroupReqBody
func (*CreateGroupReqBodyBuilder) Group ¶
func (builder *CreateGroupReqBodyBuilder) Group(group *Group) *CreateGroupReqBodyBuilder
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 (builder *CreateGroupReqBuilder) Body(body *CreateGroupReqBody) *CreateGroupReqBuilder
考勤组,是对部门或者员工在某个特定场所及特定时间段内的出勤情况(包括上下班、迟到、早退、病假、婚假、丧假、公休、工作时间、加班情况等)的一种规则设定。;;通过设置考勤组,可以从部门、员工两个维度,来设定考勤方式、考勤时间、考勤地点等考勤规则。
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) 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 (builder *CreateUserApprovalPathReqBodyBuilder) Build() (*CreateUserApprovalReqBody, error)
func (*CreateUserApprovalPathReqBodyBuilder) UserApproval ¶
func (builder *CreateUserApprovalPathReqBodyBuilder) UserApproval(userApproval *UserApproval) *CreateUserApprovalPathReqBodyBuilder
审批信息
示例值:
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 (builder *CreateUserApprovalReqBodyBuilder) Build() *CreateUserApprovalReqBody
func (*CreateUserApprovalReqBodyBuilder) UserApproval ¶
func (builder *CreateUserApprovalReqBodyBuilder) UserApproval(userApproval *UserApproval) *CreateUserApprovalReqBodyBuilder
审批信息
示例值:
type CreateUserApprovalReqBuilder ¶
type CreateUserApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateUserApprovalReqBuilder ¶
func NewCreateUserApprovalReqBuilder() *CreateUserApprovalReqBuilder
func (*CreateUserApprovalReqBuilder) Body ¶
func (builder *CreateUserApprovalReqBuilder) Body(body *CreateUserApprovalReqBody) *CreateUserApprovalReqBuilder
由于部分企业使用的是自己的审批系统,而不是飞书审批系统,因此员工的请假、加班等数据无法流入到飞书考勤系统中,导致员工在请假时间段内依然收到打卡提醒,并且被记为缺卡。;;对于这些只使用飞书考勤系统,而未使用飞书审批系统的企业,可以通过考勤开放接口的形式,将三方审批结果数据回写到飞书考勤系统中。
func (*CreateUserApprovalReqBuilder) Build ¶
func (builder *CreateUserApprovalReqBuilder) Build() *CreateUserApprovalReq
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 (builder *CreateUserTaskRemedyReqBuilder) Build() *CreateUserTaskRemedyReq
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 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 ¶
type DepartmentIdBuilder ¶
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶
func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder
示例值:
type 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 ¶
type DurationItemBuilder ¶
type DurationItemBuilder struct {
// contains filtered or unexported fields
}
func NewDurationItemBuilder ¶
func NewDurationItemBuilder() *DurationItemBuilder
func (*DurationItemBuilder) Build ¶
func (builder *DurationItemBuilder) Build() *DurationItem
func (*DurationItemBuilder) Date ¶
func (builder *DurationItemBuilder) Date(date string) *DurationItemBuilder
日期
示例值:20231010
func (*DurationItemBuilder) Duration ¶
func (builder *DurationItemBuilder) Duration(duration float64) *DurationItemBuilder
加班时长
示例值:20.0
func (*DurationItemBuilder) SettlementType ¶
func (builder *DurationItemBuilder) SettlementType(settlementType int) *DurationItemBuilder
加班类型
示例值:1
func (*DurationItemBuilder) Unit ¶
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 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 FlexibleRule ¶
type FlexibleRuleBuilder ¶
type FlexibleRuleBuilder struct {
// contains filtered or unexported fields
}
func NewFlexibleRuleBuilder ¶
func NewFlexibleRuleBuilder() *FlexibleRuleBuilder
func (*FlexibleRuleBuilder) Build ¶
func (builder *FlexibleRuleBuilder) Build() *FlexibleRule
func (*FlexibleRuleBuilder) FlexibleEarlyMinutes ¶
func (builder *FlexibleRuleBuilder) FlexibleEarlyMinutes(flexibleEarlyMinutes int) *FlexibleRuleBuilder
下班最多可早走(上班早到几分钟,下班可早走几分钟)
示例值:60
func (*FlexibleRuleBuilder) FlexibleLateMinutes ¶
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 ¶
func (builder *FreePunchCfgBuilder) WorkHours(workHours int) *FreePunchCfgBuilder
每日工作时长(分钟),范围[0,1440]
示例值:480
func (*FreePunchCfgBuilder) WorkHoursDemand ¶
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"` // 外勤打卡需审批(需要允许外勤打卡才能设置生效) 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"` // 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效) 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) }
type GetLeaveEmployExpireRecordPathReqBodyBuilder ¶
type GetLeaveEmployExpireRecordPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewGetLeaveEmployExpireRecordPathReqBodyBuilder ¶
func NewGetLeaveEmployExpireRecordPathReqBodyBuilder() *GetLeaveEmployExpireRecordPathReqBodyBuilder
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) Build ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) Build() (*GetLeaveEmployExpireRecordReqBody, error)
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) EmploymentId ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) EmploymentId(employmentId string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
员工ID
示例值:1
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) EndExpirationDate ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) EndExpirationDate(endExpirationDate string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
失效最晚日期 2023-05-10 格式
示例值:2023-05-10
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) LeaveTypeId ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) LeaveTypeId(leaveTypeId string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
假期类型ID
示例值:1
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) StartExpirationDate ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) StartExpirationDate(startExpirationDate string) *GetLeaveEmployExpireRecordPathReqBodyBuilder
失效最早日期 2023-04-10 格式
示例值:2023-04-10
func (*GetLeaveEmployExpireRecordPathReqBodyBuilder) TimeOffset ¶
func (builder *GetLeaveEmployExpireRecordPathReqBodyBuilder) TimeOffset(timeOffset int) *GetLeaveEmployExpireRecordPathReqBodyBuilder
时间偏移,东八区:480 8*60, 如果没有这个参数,默认东八区
示例值:480
type GetLeaveEmployExpireRecordReq ¶
type GetLeaveEmployExpireRecordReq struct { Body *GetLeaveEmployExpireRecordReqBody `body:""` // contains filtered or unexported fields }
type GetLeaveEmployExpireRecordReqBody ¶
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 ¶
type GetLeaveEmployExpireRecordReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewGetLeaveEmployExpireRecordReqBodyBuilder ¶
func NewGetLeaveEmployExpireRecordReqBodyBuilder() *GetLeaveEmployExpireRecordReqBodyBuilder
func (*GetLeaveEmployExpireRecordReqBodyBuilder) Build ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) Build() *GetLeaveEmployExpireRecordReqBody
func (*GetLeaveEmployExpireRecordReqBodyBuilder) EmploymentId ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) EmploymentId(employmentId string) *GetLeaveEmployExpireRecordReqBodyBuilder
员工ID
示例值:1
func (*GetLeaveEmployExpireRecordReqBodyBuilder) EndExpirationDate ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) EndExpirationDate(endExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder
失效最晚日期 2023-05-10 格式
示例值:2023-05-10
func (*GetLeaveEmployExpireRecordReqBodyBuilder) LeaveTypeId ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) LeaveTypeId(leaveTypeId string) *GetLeaveEmployExpireRecordReqBodyBuilder
假期类型ID
示例值:1
func (*GetLeaveEmployExpireRecordReqBodyBuilder) StartExpirationDate ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) StartExpirationDate(startExpirationDate string) *GetLeaveEmployExpireRecordReqBodyBuilder
失效最早日期 2023-04-10 格式
示例值:2023-04-10
func (*GetLeaveEmployExpireRecordReqBodyBuilder) TimeOffset ¶
func (builder *GetLeaveEmployExpireRecordReqBodyBuilder) TimeOffset(timeOffset int) *GetLeaveEmployExpireRecordReqBodyBuilder
时间偏移,东八区:480 8*60, 如果没有这个参数,默认东八区
示例值:480
type GetLeaveEmployExpireRecordReqBuilder ¶
type GetLeaveEmployExpireRecordReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetLeaveEmployExpireRecordReqBuilder ¶
func NewGetLeaveEmployExpireRecordReqBuilder() *GetLeaveEmployExpireRecordReqBuilder
func (*GetLeaveEmployExpireRecordReqBuilder) Body ¶
func (builder *GetLeaveEmployExpireRecordReqBuilder) Body(body *GetLeaveEmployExpireRecordReqBody) *GetLeaveEmployExpireRecordReqBuilder
func (*GetLeaveEmployExpireRecordReqBuilder) Build ¶
func (builder *GetLeaveEmployExpireRecordReqBuilder) Build() *GetLeaveEmployExpireRecordReq
func (*GetLeaveEmployExpireRecordReqBuilder) LeaveId ¶
func (builder *GetLeaveEmployExpireRecordReqBuilder) LeaveId(leaveId string) *GetLeaveEmployExpireRecordReqBuilder
假期类型ID
示例值:1
func (*GetLeaveEmployExpireRecordReqBuilder) UserIdType ¶
func (builder *GetLeaveEmployExpireRecordReqBuilder) UserIdType(userIdType string) *GetLeaveEmployExpireRecordReqBuilder
用户 ID 类型
示例值:open_id
type GetLeaveEmployExpireRecordResp ¶
type GetLeaveEmployExpireRecordResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetLeaveEmployExpireRecordRespData `json:"data"` // 业务数据 }
func (*GetLeaveEmployExpireRecordResp) Success ¶
func (resp *GetLeaveEmployExpireRecordResp) Success() bool
type GetLeaveEmployExpireRecordRespData ¶
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"` // 打卡规则 }
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 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"` // 打卡照片列表 CheckResult *string `json:"check_result,omitempty"` // 打卡结果 ExternalId *string `json:"external_id,omitempty"` // 用户导入的外部打卡记录ID }
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"` // 外勤打卡需审批(需要允许外勤打卡才能设置生效) 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"` // 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效) 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) }
type GroupBuilder ¶
type GroupBuilder struct {
// contains filtered or unexported fields
}
func NewGroupBuilder ¶
func NewGroupBuilder() *GroupBuilder
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 ¶
func (builder *GroupBuilder) AllowRemedyTypeEarly(allowRemedyTypeEarly bool) *GroupBuilder
允许早退补卡(需要允许补卡才能设置生效)
示例值:true
func (*GroupBuilder) AllowRemedyTypeLack ¶
func (builder *GroupBuilder) AllowRemedyTypeLack(allowRemedyTypeLack bool) *GroupBuilder
允许缺卡补卡(需要允许补卡才能设置生效)
示例值:true
func (*GroupBuilder) AllowRemedyTypeLate ¶
func (builder *GroupBuilder) AllowRemedyTypeLate(allowRemedyTypeLate bool) *GroupBuilder
允许迟到补卡(需要允许补卡才能设置生效)
示例值:true
func (*GroupBuilder) AllowRemedyTypeNormal ¶
func (builder *GroupBuilder) AllowRemedyTypeNormal(allowRemedyTypeNormal bool) *GroupBuilder
允许正常补卡(需要允许补卡才能设置生效)
示例值:true
func (*GroupBuilder) BindDefaultDeptIds ¶
func (builder *GroupBuilder) BindDefaultDeptIds(bindDefaultDeptIds []string) *GroupBuilder
默认出勤的部门id列表
示例值:
func (*GroupBuilder) BindDefaultUserIds ¶
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 ¶
func (builder *GroupBuilder) ClockInNeedPhoto(clockInNeedPhoto bool) *GroupBuilder
每次打卡均需拍照
示例值:true
func (*GroupBuilder) EffectNow ¶
func (builder *GroupBuilder) EffectNow(effectNow bool) *GroupBuilder
是否立即生效,默认 false
示例值:true
func (*GroupBuilder) EffectTime ¶
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 ¶
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 ¶
func (builder *GroupBuilder) FixshiftEffectTime(fixshiftEffectTime string) *GroupBuilder
固定班次生效时间,精确到秒的时间戳
示例值:1611476284
func (*GroupBuilder) FreePunchCfg ¶
func (builder *GroupBuilder) FreePunchCfg(freePunchCfg *FreePunchCfg) *GroupBuilder
配置自由班制
示例值:
func (*GroupBuilder) GoOutNeedPunch ¶
func (builder *GroupBuilder) GoOutNeedPunch(goOutNeedPunch int) *GroupBuilder
外出期间是否需打卡
示例值:0
func (*GroupBuilder) GoOutNeedPunchCfg ¶
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 ¶
func (builder *GroupBuilder) LeaveNeedPunch(leaveNeedPunch bool) *GroupBuilder
请假离岗或返岗是否需打卡
示例值:false
func (*GroupBuilder) LeaveNeedPunchCfg ¶
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 ¶
func (builder *GroupBuilder) MemberEffectTime(memberEffectTime string) *GroupBuilder
参加考勤的人员、部门变动生效时间,精确到秒的时间戳
示例值:1611476284
func (*GroupBuilder) MemberStatusChange ¶
func (builder *GroupBuilder) MemberStatusChange(memberStatusChange *MemberStatusChange) *GroupBuilder
人员异动打卡设置
示例值:
func (*GroupBuilder) NeedPunchMembers ¶
func (builder *GroupBuilder) NeedPunchMembers(needPunchMembers []*PunchMember) *GroupBuilder
需要打卡的人员配置(新)
示例值:
func (*GroupBuilder) NeedPunchSpecialDays ¶
func (builder *GroupBuilder) NeedPunchSpecialDays(needPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder
必须打卡的特殊日期
示例值:
func (*GroupBuilder) NewCalendarId ¶
func (builder *GroupBuilder) NewCalendarId(newCalendarId string) *GroupBuilder
节假日id,(如果考勤组使用了自定义节假日,请用此参数传入节假日id)
示例值:通过查询考勤组接口获取的new_calendar_id,例如7302191700771358252
func (*GroupBuilder) NoNeedPunchMembers ¶
func (builder *GroupBuilder) NoNeedPunchMembers(noNeedPunchMembers []*PunchMember) *GroupBuilder
无需打卡的人员配置(新)
示例值:
func (*GroupBuilder) NoNeedPunchSpecialDays ¶
func (builder *GroupBuilder) NoNeedPunchSpecialDays(noNeedPunchSpecialDays []*PunchSpecialDateShift) *GroupBuilder
无需打卡的特殊日期
示例值:
func (*GroupBuilder) OrgChangeAutoAdjust ¶
func (builder *GroupBuilder) OrgChangeAutoAdjust(orgChangeAutoAdjust bool) *GroupBuilder
人员异动开关(人员组织架构变更后是否允许自动调整到该考勤组)
示例值:false
func (*GroupBuilder) OutPunchAllowedHideAddr ¶
func (builder *GroupBuilder) OutPunchAllowedHideAddr(outPunchAllowedHideAddr bool) *GroupBuilder
外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)
示例值:true
func (*GroupBuilder) OutPunchNeedApproval ¶
func (builder *GroupBuilder) OutPunchNeedApproval(outPunchNeedApproval bool) *GroupBuilder
外勤打卡需审批(需要允许外勤打卡才能设置生效)
示例值:true
func (*GroupBuilder) OutPunchNeedPhoto ¶
func (builder *GroupBuilder) OutPunchNeedPhoto(outPunchNeedPhoto bool) *GroupBuilder
外勤打卡需拍照(需要允许外勤打卡才能设置生效)
示例值:true
func (*GroupBuilder) OutPunchNeedRemark ¶
func (builder *GroupBuilder) OutPunchNeedRemark(outPunchNeedRemark bool) *GroupBuilder
外勤打卡需填写备注(需要允许外勤打卡才能设置生效)
示例值:true
func (*GroupBuilder) OvertimeClockCfg ¶
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 ¶
func (builder *GroupBuilder) RestClockInNeedApproval(restClockInNeedApproval bool) *GroupBuilder
休息日打卡需审批
示例值:true
func (*GroupBuilder) SaveAutoChanges ¶
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 ¶
func (builder *GroupBuilder) SubGroupLeaderIds(subGroupLeaderIds []string) *GroupBuilder
考勤子负责人 ID 列表
示例值:52aa1fa1
func (*GroupBuilder) TimeZone ¶
func (builder *GroupBuilder) TimeZone(timeZone string) *GroupBuilder
时区
示例值:Asia/Shanghai
func (*GroupBuilder) TravelNeedPunch ¶
func (builder *GroupBuilder) TravelNeedPunch(travelNeedPunch int) *GroupBuilder
出差期间是否需打卡
示例值:0
func (*GroupBuilder) TravelNeedPunchCfg ¶
func (builder *GroupBuilder) TravelNeedPunchCfg(travelNeedPunchCfg *LeaveNeedPunchCfg) *GroupBuilder
出差期间打卡规则
示例值:
func (*GroupBuilder) WorkDayNoPunchAsLack ¶
func (builder *GroupBuilder) WorkDayNoPunchAsLack(workDayNoPunchAsLack bool) *GroupBuilder
自由班制下工作日不打卡是否记为缺卡
示例值:true
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 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 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) Title ¶
func (builder *ItemBuilder) Title(title string) *ItemBuilder
标题名称
示例值:基本信息
type LangTextBuilder ¶
type LangTextBuilder struct {
// contains filtered or unexported fields
}
func NewLangTextBuilder ¶
func NewLangTextBuilder() *LangTextBuilder
func (*LangTextBuilder) Build ¶
func (builder *LangTextBuilder) Build() *LangText
func (*LangTextBuilder) Lang ¶
func (builder *LangTextBuilder) Lang(lang string) *LangTextBuilder
语言码
示例值:cn_zh
func (*LangTextBuilder) Value ¶
func (builder *LangTextBuilder) Value(value string) *LangTextBuilder
语言码对应的文本
示例值:test
type LateOffLateOnRule ¶
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 LeaveAccrualRecord ¶
type LeaveAccrualRecord struct { Id *string `json:"id,omitempty"` // 授予记录唯一ID EmploymentId *string `json:"employment_id,omitempty"` // 员工ID LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID GrantingQuantity *string `json:"granting_quantity,omitempty"` // 授予数量 GrantingUnit *int `json:"granting_unit,omitempty"` // 授予单位,1表示天,2表示小时 EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期,格式"2020-01-01" ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期,格式"2020-01-01" GrantedBy *int `json:"granted_by,omitempty"` // 授予来源,1:系统授予;2:手动授予;3:外部系统授予 Reason []*LangText `json:"reason,omitempty"` // 授予原因 CreatedAt *string `json:"created_at,omitempty"` // 授予记录的创建时间,unix时间戳 CreatedBy *string `json:"created_by,omitempty"` // 授予记录的创建人的ID UpdatedAt *string `json:"updated_at,omitempty"` // 授予记录的更新时间,unix时间戳 UpdatedBy *string `json:"updated_by,omitempty"` // 授予记录的更新人的ID }
type LeaveAccrualRecordBuilder ¶
type LeaveAccrualRecordBuilder struct {
// contains filtered or unexported fields
}
func NewLeaveAccrualRecordBuilder ¶
func NewLeaveAccrualRecordBuilder() *LeaveAccrualRecordBuilder
func (*LeaveAccrualRecordBuilder) Build ¶
func (builder *LeaveAccrualRecordBuilder) Build() *LeaveAccrualRecord
func (*LeaveAccrualRecordBuilder) CreatedAt ¶
func (builder *LeaveAccrualRecordBuilder) CreatedAt(createdAt string) *LeaveAccrualRecordBuilder
授予记录的创建时间,unix时间戳
示例值:1
func (*LeaveAccrualRecordBuilder) CreatedBy ¶
func (builder *LeaveAccrualRecordBuilder) CreatedBy(createdBy string) *LeaveAccrualRecordBuilder
授予记录的创建人的ID
示例值:1
func (*LeaveAccrualRecordBuilder) EffectiveDate ¶
func (builder *LeaveAccrualRecordBuilder) EffectiveDate(effectiveDate string) *LeaveAccrualRecordBuilder
生效日期,格式"2020-01-01"
示例值:2020-01-01
func (*LeaveAccrualRecordBuilder) EmploymentId ¶
func (builder *LeaveAccrualRecordBuilder) EmploymentId(employmentId string) *LeaveAccrualRecordBuilder
员工ID
示例值:1
func (*LeaveAccrualRecordBuilder) ExpirationDate ¶
func (builder *LeaveAccrualRecordBuilder) ExpirationDate(expirationDate string) *LeaveAccrualRecordBuilder
失效日期,格式"2020-01-01"
示例值:2020-01-01
func (*LeaveAccrualRecordBuilder) GrantedBy ¶
func (builder *LeaveAccrualRecordBuilder) GrantedBy(grantedBy int) *LeaveAccrualRecordBuilder
授予来源,1:系统授予;2:手动授予;3:外部系统授予
示例值:1
func (*LeaveAccrualRecordBuilder) GrantingQuantity ¶
func (builder *LeaveAccrualRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveAccrualRecordBuilder
授予数量
示例值:1
func (*LeaveAccrualRecordBuilder) GrantingUnit ¶
func (builder *LeaveAccrualRecordBuilder) GrantingUnit(grantingUnit int) *LeaveAccrualRecordBuilder
授予单位,1表示天,2表示小时
示例值:1
func (*LeaveAccrualRecordBuilder) Id ¶
func (builder *LeaveAccrualRecordBuilder) Id(id string) *LeaveAccrualRecordBuilder
授予记录唯一ID
示例值:1
func (*LeaveAccrualRecordBuilder) LeaveTypeId ¶
func (builder *LeaveAccrualRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveAccrualRecordBuilder
假期类型ID
示例值:1
func (*LeaveAccrualRecordBuilder) Reason ¶
func (builder *LeaveAccrualRecordBuilder) Reason(reason []*LangText) *LeaveAccrualRecordBuilder
授予原因
示例值:
func (*LeaveAccrualRecordBuilder) UpdatedAt ¶
func (builder *LeaveAccrualRecordBuilder) UpdatedAt(updatedAt string) *LeaveAccrualRecordBuilder
授予记录的更新时间,unix时间戳
示例值:1
func (*LeaveAccrualRecordBuilder) UpdatedBy ¶
func (builder *LeaveAccrualRecordBuilder) UpdatedBy(updatedBy string) *LeaveAccrualRecordBuilder
授予记录的更新人的ID
示例值:1
type LeaveEmployExpireRecord ¶
type LeaveEmployExpireRecord struct { Id *string `json:"id,omitempty"` // record id EmploymentId *string `json:"employment_id,omitempty"` // 员工ID LeaveTypeId *string `json:"leave_type_id,omitempty"` // 假期类型ID GrantingQuantity *string `json:"granting_quantity,omitempty"` // 授予余额数量 LeftGrantingQuantity *string `json:"left_granting_quantity,omitempty"` // 授予数量 扣减完后的授予数量 GrantingUnit *int `json:"granting_unit,omitempty"` // 授予单位,1表示天,2表示小时 EffectiveDate *string `json:"effective_date,omitempty"` // 生效日期,格式"2020-01-01" ExpirationDate *string `json:"expiration_date,omitempty"` // 失效日期,格式"2020-01-01" Reason []*LangText `json:"reason,omitempty"` // 授予原因 IsUpdateByExternal *bool `json:"is_update_by_external,omitempty"` // 是否已经被外部系统更改过 AccrualSource *int `json:"accrual_source,omitempty"` // 授予来源 LeaveSubTypeId *string `json:"leave_sub_type_id,omitempty"` // 假期子类型id }
type LeaveEmployExpireRecordBuilder ¶
type LeaveEmployExpireRecordBuilder struct {
// contains filtered or unexported fields
}
func NewLeaveEmployExpireRecordBuilder ¶
func NewLeaveEmployExpireRecordBuilder() *LeaveEmployExpireRecordBuilder
func (*LeaveEmployExpireRecordBuilder) AccrualSource ¶
func (builder *LeaveEmployExpireRecordBuilder) AccrualSource(accrualSource int) *LeaveEmployExpireRecordBuilder
授予来源
示例值:1
func (*LeaveEmployExpireRecordBuilder) Build ¶
func (builder *LeaveEmployExpireRecordBuilder) Build() *LeaveEmployExpireRecord
func (*LeaveEmployExpireRecordBuilder) EffectiveDate ¶
func (builder *LeaveEmployExpireRecordBuilder) EffectiveDate(effectiveDate string) *LeaveEmployExpireRecordBuilder
生效日期,格式"2020-01-01"
示例值:2020-01-01
func (*LeaveEmployExpireRecordBuilder) EmploymentId ¶
func (builder *LeaveEmployExpireRecordBuilder) EmploymentId(employmentId string) *LeaveEmployExpireRecordBuilder
员工ID
示例值:1
func (*LeaveEmployExpireRecordBuilder) ExpirationDate ¶
func (builder *LeaveEmployExpireRecordBuilder) ExpirationDate(expirationDate string) *LeaveEmployExpireRecordBuilder
失效日期,格式"2020-01-01"
示例值:2020-01-01
func (*LeaveEmployExpireRecordBuilder) GrantingQuantity ¶
func (builder *LeaveEmployExpireRecordBuilder) GrantingQuantity(grantingQuantity string) *LeaveEmployExpireRecordBuilder
授予余额数量
示例值:1
func (*LeaveEmployExpireRecordBuilder) GrantingUnit ¶
func (builder *LeaveEmployExpireRecordBuilder) GrantingUnit(grantingUnit int) *LeaveEmployExpireRecordBuilder
授予单位,1表示天,2表示小时
示例值:1
func (*LeaveEmployExpireRecordBuilder) Id ¶
func (builder *LeaveEmployExpireRecordBuilder) Id(id string) *LeaveEmployExpireRecordBuilder
record id
示例值:1
func (*LeaveEmployExpireRecordBuilder) IsUpdateByExternal ¶
func (builder *LeaveEmployExpireRecordBuilder) IsUpdateByExternal(isUpdateByExternal bool) *LeaveEmployExpireRecordBuilder
是否已经被外部系统更改过
示例值:true
func (*LeaveEmployExpireRecordBuilder) LeaveSubTypeId ¶
func (builder *LeaveEmployExpireRecordBuilder) LeaveSubTypeId(leaveSubTypeId string) *LeaveEmployExpireRecordBuilder
假期子类型id
示例值:1
func (*LeaveEmployExpireRecordBuilder) LeaveTypeId ¶
func (builder *LeaveEmployExpireRecordBuilder) LeaveTypeId(leaveTypeId string) *LeaveEmployExpireRecordBuilder
假期类型ID
示例值:1
func (*LeaveEmployExpireRecordBuilder) LeftGrantingQuantity ¶
func (builder *LeaveEmployExpireRecordBuilder) LeftGrantingQuantity(leftGrantingQuantity string) *LeaveEmployExpireRecordBuilder
授予数量 扣减完后的授予数量
示例值:1
func (*LeaveEmployExpireRecordBuilder) Reason ¶
func (builder *LeaveEmployExpireRecordBuilder) Reason(reason []*LangText) *LeaveEmployExpireRecordBuilder
授予原因
示例值:
type LeaveNeedPunchCfg ¶
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 ¶
type LeaveNeedPunchCfgBuilder struct {
// contains filtered or unexported fields
}
func NewLeaveNeedPunchCfgBuilder ¶
func NewLeaveNeedPunchCfgBuilder() *LeaveNeedPunchCfgBuilder
func (*LeaveNeedPunchCfgBuilder) Build ¶
func (builder *LeaveNeedPunchCfgBuilder) Build() *LeaveNeedPunchCfg
func (*LeaveNeedPunchCfgBuilder) EarlyMinutesAsEarly ¶
func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsEarly(earlyMinutesAsEarly int) *LeaveNeedPunchCfgBuilder
早走超过多久记为早退
示例值:0
func (*LeaveNeedPunchCfgBuilder) EarlyMinutesAsLack ¶
func (builder *LeaveNeedPunchCfgBuilder) EarlyMinutesAsLack(earlyMinutesAsLack int) *LeaveNeedPunchCfgBuilder
早走超过多久记为缺卡
示例值:0
func (*LeaveNeedPunchCfgBuilder) LateMinutesAsLack ¶
func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLack(lateMinutesAsLack int) *LeaveNeedPunchCfgBuilder
晚到超过多久记为缺卡
示例值:0
func (*LeaveNeedPunchCfgBuilder) LateMinutesAsLate ¶
func (builder *LeaveNeedPunchCfgBuilder) LateMinutesAsLate(lateMinutesAsLate int) *LeaveNeedPunchCfgBuilder
晚到超过多久记为迟到
示例值:0
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 ListShiftIterator ¶
type ListShiftIterator struct {
// contains filtered or unexported fields
}
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 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 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 ¶
func (builder *LocationInfoEventBuilder) Coord(coord *Coordinate) *LocationInfoEventBuilder
示例值:
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 ¶
func (builder *LocationRecordBuilder) Wifi(wifi *WifiInfoEvent) *LocationRecordBuilder
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 ¶
func (builder *LocationSettingBuilder) Wifi(wifi *WifiInfo) *LocationSettingBuilder
wifi配置
示例值:
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 ¶
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 ¶
type MemberStatusChangeBuilder struct {
// contains filtered or unexported fields
}
func NewMemberStatusChangeBuilder ¶
func NewMemberStatusChangeBuilder() *MemberStatusChangeBuilder
func (*MemberStatusChangeBuilder) Build ¶
func (builder *MemberStatusChangeBuilder) Build() *MemberStatusChange
func (*MemberStatusChangeBuilder) OffboardingOffNoNeedPunch ¶
func (builder *MemberStatusChangeBuilder) OffboardingOffNoNeedPunch(offboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder
是否离职日下班无需打卡
示例值:false
func (*MemberStatusChangeBuilder) OffboardingOnNoNeedPunch ¶
func (builder *MemberStatusChangeBuilder) OffboardingOnNoNeedPunch(offboardingOnNoNeedPunch bool) *MemberStatusChangeBuilder
是否离职日上班无需打卡
示例值:false
func (*MemberStatusChangeBuilder) OnboardingOffNoNeedPunch ¶
func (builder *MemberStatusChangeBuilder) OnboardingOffNoNeedPunch(onboardingOffNoNeedPunch bool) *MemberStatusChangeBuilder
是否入职日下班无需打卡
示例值:false
func (*MemberStatusChangeBuilder) OnboardingOnNoNeedPunch ¶
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 (builder *ModifyUserSettingPathReqBodyBuilder) Build() (*ModifyUserSettingReqBody, error)
func (*ModifyUserSettingPathReqBodyBuilder) UserSetting ¶
func (builder *ModifyUserSettingPathReqBodyBuilder) UserSetting(userSetting *UserSetting) *ModifyUserSettingPathReqBodyBuilder
用户设置
示例值:
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 (builder *ModifyUserSettingReqBodyBuilder) Build() *ModifyUserSettingReqBody
func (*ModifyUserSettingReqBodyBuilder) UserSetting ¶
func (builder *ModifyUserSettingReqBodyBuilder) UserSetting(userSetting *UserSetting) *ModifyUserSettingReqBodyBuilder
用户设置
示例值:
type ModifyUserSettingReqBuilder ¶
type ModifyUserSettingReqBuilder struct {
// contains filtered or unexported fields
}
func NewModifyUserSettingReqBuilder ¶
func NewModifyUserSettingReqBuilder() *ModifyUserSettingReqBuilder
func (*ModifyUserSettingReqBuilder) Body ¶
func (builder *ModifyUserSettingReqBuilder) Body(body *ModifyUserSettingReqBody) *ModifyUserSettingReqBuilder
修改授权内员工的用户设置信息,包括人脸照片文件 ID。
func (*ModifyUserSettingReqBuilder) Build ¶
func (builder *ModifyUserSettingReqBuilder) Build() *ModifyUserSettingReq
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 ¶
type OpenApplyTimeRange struct { OvertimeAttributionDate *string `json:"overtime_attribution_date,omitempty"` // 加班所属日期 TimeRange *OvertimeTimeRange `json:"time_range,omitempty"` // 时段信息 }
type OpenApplyTimeRangeBuilder ¶
type OpenApplyTimeRangeBuilder struct {
// contains filtered or unexported fields
}
func NewOpenApplyTimeRangeBuilder ¶
func NewOpenApplyTimeRangeBuilder() *OpenApplyTimeRangeBuilder
func (*OpenApplyTimeRangeBuilder) Build ¶
func (builder *OpenApplyTimeRangeBuilder) Build() *OpenApplyTimeRange
func (*OpenApplyTimeRangeBuilder) OvertimeAttributionDate ¶
func (builder *OpenApplyTimeRangeBuilder) OvertimeAttributionDate(overtimeAttributionDate string) *OpenApplyTimeRangeBuilder
加班所属日期
示例值:2023-09-25
func (*OpenApplyTimeRangeBuilder) TimeRange ¶
func (builder *OpenApplyTimeRangeBuilder) TimeRange(timeRange *OvertimeTimeRange) *OpenApplyTimeRangeBuilder
时段信息
示例值:
type OvertimeClockCfg ¶
type OvertimeClockCfg struct {
AllowPunchApproval *bool `json:"allow_punch_approval,omitempty"` // 是否允许在非打卡时段申请打卡(仅灰度租户可用)
}
type OvertimeClockCfgBuilder ¶
type OvertimeClockCfgBuilder struct {
// contains filtered or unexported fields
}
func NewOvertimeClockCfgBuilder ¶
func NewOvertimeClockCfgBuilder() *OvertimeClockCfgBuilder
func (*OvertimeClockCfgBuilder) AllowPunchApproval ¶
func (builder *OvertimeClockCfgBuilder) AllowPunchApproval(allowPunchApproval bool) *OvertimeClockCfgBuilder
是否允许在非打卡时段申请打卡(仅灰度租户可用)
示例值:false
func (*OvertimeClockCfgBuilder) Build ¶
func (builder *OvertimeClockCfgBuilder) Build() *OvertimeClockCfg
type OvertimeDetail ¶
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"` // 加班日期 }
type OvertimeDetailBuilder ¶
type OvertimeDetailBuilder struct {
// contains filtered or unexported fields
}
func NewOvertimeDetailBuilder ¶
func NewOvertimeDetailBuilder() *OvertimeDetailBuilder
func (*OvertimeDetailBuilder) Build ¶
func (builder *OvertimeDetailBuilder) Build() *OvertimeDetail
func (*OvertimeDetailBuilder) Date ¶
func (builder *OvertimeDetailBuilder) Date(date string) *OvertimeDetailBuilder
加班日期
示例值:2006-01-02
func (*OvertimeDetailBuilder) DateType ¶
func (builder *OvertimeDetailBuilder) DateType(dateType int) *OvertimeDetailBuilder
日期类型
示例值:1
func (*OvertimeDetailBuilder) Duration ¶
func (builder *OvertimeDetailBuilder) Duration(duration string) *OvertimeDetailBuilder
加班时长,两位小数
示例值:0.5
func (*OvertimeDetailBuilder) EffectiveTime ¶
func (builder *OvertimeDetailBuilder) EffectiveTime(effectiveTime string) *OvertimeDetailBuilder
生效时间时间戳
示例值:1694592064
func (*OvertimeDetailBuilder) EndTime ¶
func (builder *OvertimeDetailBuilder) EndTime(endTime string) *OvertimeDetailBuilder
加班结束时间(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)
示例值:2006-01-02 00:00:00
func (*OvertimeDetailBuilder) Id ¶
func (builder *OvertimeDetailBuilder) Id(id string) *OvertimeDetailBuilder
加班明细ID
示例值:1
func (*OvertimeDetailBuilder) ProgressStartTime ¶
func (builder *OvertimeDetailBuilder) ProgressStartTime(progressStartTime string) *OvertimeDetailBuilder
流程开始时间戳
示例值:1694592064
func (*OvertimeDetailBuilder) SettleType ¶
func (builder *OvertimeDetailBuilder) SettleType(settleType int) *OvertimeDetailBuilder
结算方式
示例值:1
func (*OvertimeDetailBuilder) StartTime ¶
func (builder *OvertimeDetailBuilder) StartTime(startTime string) *OvertimeDetailBuilder
加班开始时间格式(2006-01-02 00:00:00,无时区信息,参照时区是提交时候的时区)
示例值:2006-01-02 00:00:00
func (*OvertimeDetailBuilder) Unit ¶
func (builder *OvertimeDetailBuilder) Unit(unit int) *OvertimeDetailBuilder
加班单位
示例值:1
func (*OvertimeDetailBuilder) UserId ¶
func (builder *OvertimeDetailBuilder) UserId(userId string) *OvertimeDetailBuilder
加班明细用户ID(根据date_type_id)
示例值:7271137794704015379
type OvertimeRule ¶
type OvertimeRuleBuilder ¶
type OvertimeRuleBuilder struct {
// contains filtered or unexported fields
}
func NewOvertimeRuleBuilder ¶
func NewOvertimeRuleBuilder() *OvertimeRuleBuilder
func (*OvertimeRuleBuilder) Build ¶
func (builder *OvertimeRuleBuilder) Build() *OvertimeRule
func (*OvertimeRuleBuilder) OffOvertime ¶
func (builder *OvertimeRuleBuilder) OffOvertime(offOvertime string) *OvertimeRuleBuilder
加班下班时间
示例值:18:00, 第二天凌晨2点, 26:00
func (*OvertimeRuleBuilder) OnOvertime ¶
func (builder *OvertimeRuleBuilder) OnOvertime(onOvertime string) *OvertimeRuleBuilder
加班上班时间
示例值:9:00
type OvertimeTimeRange ¶
type OvertimeTimeRangeBuilder ¶
type OvertimeTimeRangeBuilder struct {
// contains filtered or unexported fields
}
func NewOvertimeTimeRangeBuilder ¶
func NewOvertimeTimeRangeBuilder() *OvertimeTimeRangeBuilder
func (*OvertimeTimeRangeBuilder) Build ¶
func (builder *OvertimeTimeRangeBuilder) Build() *OvertimeTimeRange
func (*OvertimeTimeRangeBuilder) EndTime ¶
func (builder *OvertimeTimeRangeBuilder) EndTime(endTime string) *OvertimeTimeRangeBuilder
结束时间
示例值:2023-09-25 23:30:00
func (*OvertimeTimeRangeBuilder) StartTime ¶
func (builder *OvertimeTimeRangeBuilder) StartTime(startTime string) *OvertimeTimeRangeBuilder
开始时间
示例值:2023-09-25 07:00:00
type PatchLeaveAccrualRecordPathReqBodyBuilder ¶
type PatchLeaveAccrualRecordPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewPatchLeaveAccrualRecordPathReqBodyBuilder ¶
func NewPatchLeaveAccrualRecordPathReqBodyBuilder() *PatchLeaveAccrualRecordPathReqBodyBuilder
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Build ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Build() (*PatchLeaveAccrualRecordReqBody, error)
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) EmploymentId ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) EmploymentId(employmentId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
员工ID
示例值:1
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) ExpirationDate ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) ExpirationDate(expirationDate string) *PatchLeaveAccrualRecordPathReqBodyBuilder
失效日期,格式"2020-01-01"
示例值:2020-01-01
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveGrantingRecordId ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
授予记录的唯一ID
示例值:1
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveTypeId ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) LeaveTypeId(leaveTypeId string) *PatchLeaveAccrualRecordPathReqBodyBuilder
假期类型ID
示例值:1
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Quantity ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Quantity(quantity string) *PatchLeaveAccrualRecordPathReqBodyBuilder
修改source 余额
示例值:1
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) Reason ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) Reason(reason []*LangText) *PatchLeaveAccrualRecordPathReqBodyBuilder
修改授予记录原因
示例值:
func (*PatchLeaveAccrualRecordPathReqBodyBuilder) TimeOffset ¶
func (builder *PatchLeaveAccrualRecordPathReqBodyBuilder) TimeOffset(timeOffset int) *PatchLeaveAccrualRecordPathReqBodyBuilder
时间偏移,东八区:480 8*60
示例值:480
type PatchLeaveAccrualRecordReq ¶
type PatchLeaveAccrualRecordReq struct { Body *PatchLeaveAccrualRecordReqBody `body:""` // contains filtered or unexported fields }
type PatchLeaveAccrualRecordReqBody ¶
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 余额 }
type PatchLeaveAccrualRecordReqBodyBuilder ¶
type PatchLeaveAccrualRecordReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewPatchLeaveAccrualRecordReqBodyBuilder ¶
func NewPatchLeaveAccrualRecordReqBodyBuilder() *PatchLeaveAccrualRecordReqBodyBuilder
func (*PatchLeaveAccrualRecordReqBodyBuilder) Build ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Build() *PatchLeaveAccrualRecordReqBody
func (*PatchLeaveAccrualRecordReqBodyBuilder) EmploymentId ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) EmploymentId(employmentId string) *PatchLeaveAccrualRecordReqBodyBuilder
员工ID
示例值:1
func (*PatchLeaveAccrualRecordReqBodyBuilder) ExpirationDate ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) ExpirationDate(expirationDate string) *PatchLeaveAccrualRecordReqBodyBuilder
失效日期,格式"2020-01-01"
示例值:2020-01-01
func (*PatchLeaveAccrualRecordReqBodyBuilder) LeaveGrantingRecordId ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) LeaveGrantingRecordId(leaveGrantingRecordId string) *PatchLeaveAccrualRecordReqBodyBuilder
授予记录的唯一ID
示例值:1
func (*PatchLeaveAccrualRecordReqBodyBuilder) LeaveTypeId ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) LeaveTypeId(leaveTypeId string) *PatchLeaveAccrualRecordReqBodyBuilder
假期类型ID
示例值:1
func (*PatchLeaveAccrualRecordReqBodyBuilder) Quantity ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Quantity(quantity string) *PatchLeaveAccrualRecordReqBodyBuilder
修改source 余额
示例值:1
func (*PatchLeaveAccrualRecordReqBodyBuilder) Reason ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) Reason(reason []*LangText) *PatchLeaveAccrualRecordReqBodyBuilder
修改授予记录原因
示例值:
func (*PatchLeaveAccrualRecordReqBodyBuilder) TimeOffset ¶
func (builder *PatchLeaveAccrualRecordReqBodyBuilder) TimeOffset(timeOffset int) *PatchLeaveAccrualRecordReqBodyBuilder
时间偏移,东八区:480 8*60
示例值:480
type PatchLeaveAccrualRecordReqBuilder ¶
type PatchLeaveAccrualRecordReqBuilder struct {
// contains filtered or unexported fields
}
func NewPatchLeaveAccrualRecordReqBuilder ¶
func NewPatchLeaveAccrualRecordReqBuilder() *PatchLeaveAccrualRecordReqBuilder
func (*PatchLeaveAccrualRecordReqBuilder) Body ¶
func (builder *PatchLeaveAccrualRecordReqBuilder) Body(body *PatchLeaveAccrualRecordReqBody) *PatchLeaveAccrualRecordReqBuilder
func (*PatchLeaveAccrualRecordReqBuilder) Build ¶
func (builder *PatchLeaveAccrualRecordReqBuilder) Build() *PatchLeaveAccrualRecordReq
func (*PatchLeaveAccrualRecordReqBuilder) LeaveId ¶
func (builder *PatchLeaveAccrualRecordReqBuilder) LeaveId(leaveId string) *PatchLeaveAccrualRecordReqBuilder
假期类型ID
示例值:1
func (*PatchLeaveAccrualRecordReqBuilder) UserIdType ¶
func (builder *PatchLeaveAccrualRecordReqBuilder) UserIdType(userIdType string) *PatchLeaveAccrualRecordReqBuilder
用户 ID 类型
示例值:open_id
type PatchLeaveAccrualRecordResp ¶
type PatchLeaveAccrualRecordResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *PatchLeaveAccrualRecordRespData `json:"data"` // 业务数据 }
func (*PatchLeaveAccrualRecordResp) Success ¶
func (resp *PatchLeaveAccrualRecordResp) Success() bool
type PatchLeaveAccrualRecordRespData ¶
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 ¶
func (builder *ProcessApprovalInfoPathReqBodyBuilder) ApprovalId(approvalId string) *ProcessApprovalInfoPathReqBodyBuilder
审批实例 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 ¶
func (builder *ProcessApprovalInfoPathReqBodyBuilder) ApprovalType(approvalType string) *ProcessApprovalInfoPathReqBodyBuilder
审批类型,leave:请假,out:外出,overtime:加班,trip:出差,remedy:补卡
示例值:remedy
func (*ProcessApprovalInfoPathReqBodyBuilder) Build ¶
func (builder *ProcessApprovalInfoPathReqBodyBuilder) Build() (*ProcessApprovalInfoReqBody, error)
func (*ProcessApprovalInfoPathReqBodyBuilder) Status ¶
func (builder *ProcessApprovalInfoPathReqBodyBuilder) Status(status int) *ProcessApprovalInfoPathReqBodyBuilder
审批状态,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 ¶
func (builder *ProcessApprovalInfoReqBodyBuilder) ApprovalId(approvalId string) *ProcessApprovalInfoReqBodyBuilder
审批实例 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 (builder *ProcessApprovalInfoReqBodyBuilder) Build() *ProcessApprovalInfoReqBody
func (*ProcessApprovalInfoReqBodyBuilder) Status ¶
func (builder *ProcessApprovalInfoReqBodyBuilder) Status(status int) *ProcessApprovalInfoReqBodyBuilder
审批状态,1:不通过,2:通过,4:撤销
示例值:4
type ProcessApprovalInfoReqBuilder ¶
type ProcessApprovalInfoReqBuilder struct {
// contains filtered or unexported fields
}
func NewProcessApprovalInfoReqBuilder ¶
func NewProcessApprovalInfoReqBuilder() *ProcessApprovalInfoReqBuilder
func (*ProcessApprovalInfoReqBuilder) Body ¶
func (builder *ProcessApprovalInfoReqBuilder) Body(body *ProcessApprovalInfoReqBody) *ProcessApprovalInfoReqBuilder
对于只使用飞书考勤系统而未使用飞书审批系统的企业,可以通过该接口更新写入飞书考勤系统中的三方系统审批状态,例如请假、加班、外出、出差、补卡等审批,状态包括通过、不通过、撤销等。
func (*ProcessApprovalInfoReqBuilder) Build ¶
func (builder *ProcessApprovalInfoReqBuilder) Build() *ProcessApprovalInfoReq
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 ¶
type PunchMember struct { RuleScopeType *int `json:"rule_scope_type,omitempty"` // 圈人方式:0 无 1全部 2自定义 ScopeGroupList *ScopeGroup `json:"scope_group_list,omitempty"` // 圈人规则列表 }
type PunchMemberBuilder ¶
type PunchMemberBuilder struct {
// contains filtered or unexported fields
}
func NewPunchMemberBuilder ¶
func NewPunchMemberBuilder() *PunchMemberBuilder
func (*PunchMemberBuilder) Build ¶
func (builder *PunchMemberBuilder) Build() *PunchMember
func (*PunchMemberBuilder) RuleScopeType ¶
func (builder *PunchMemberBuilder) RuleScopeType(ruleScopeType int) *PunchMemberBuilder
圈人方式:0 无 1全部 2自定义
示例值:0
func (*PunchMemberBuilder) ScopeGroupList ¶
func (builder *PunchMemberBuilder) ScopeGroupList(scopeGroupList *ScopeGroup) *PunchMemberBuilder
圈人规则列表
示例值:
type PunchSpecialDateShift ¶
type PunchSpecialDateShiftBuilder ¶
type PunchSpecialDateShiftBuilder struct {
// contains filtered or unexported fields
}
func NewPunchSpecialDateShiftBuilder ¶
func NewPunchSpecialDateShiftBuilder() *PunchSpecialDateShiftBuilder
func (*PunchSpecialDateShiftBuilder) Build ¶
func (builder *PunchSpecialDateShiftBuilder) Build() *PunchSpecialDateShift
func (*PunchSpecialDateShiftBuilder) PunchDay ¶
func (builder *PunchSpecialDateShiftBuilder) PunchDay(punchDay int) *PunchSpecialDateShiftBuilder
打卡日期
示例值:20190101
func (*PunchSpecialDateShiftBuilder) ShiftId ¶
func (builder *PunchSpecialDateShiftBuilder) ShiftId(shiftId string) *PunchSpecialDateShiftBuilder
班次 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"` // 晚到多久记为严重迟到 }
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 ¶
func (builder *PunchTimeRuleBuilder) LateMinutesAsSeriousLate(lateMinutesAsSeriousLate int) *PunchTimeRuleBuilder
晚到多久记为严重迟到
示例值:40
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 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"` // 打卡规则 }
type QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder ¶
type QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder ¶
func NewQueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder() *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) Build ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) Build() (*QueryUserAllowedRemedysUserTaskRemedyReqBody, error)
func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) RemedyDate ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) RemedyDate(remedyDate int) *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
补卡日期
示例值:20210104
func (*QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) UserId ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder) UserId(userId string) *QueryUserAllowedRemedysUserTaskRemedyPathReqBodyBuilder
用户 ID
示例值:abd754f7
type QueryUserAllowedRemedysUserTaskRemedyReq ¶
type QueryUserAllowedRemedysUserTaskRemedyReq struct { Body *QueryUserAllowedRemedysUserTaskRemedyReqBody `body:""` // contains filtered or unexported fields }
type QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder ¶
type QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder ¶
func NewQueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder() *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) Build ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) Build() *QueryUserAllowedRemedysUserTaskRemedyReqBody
func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) RemedyDate ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) RemedyDate(remedyDate int) *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
补卡日期
示例值:20210104
func (*QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) UserId ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder) UserId(userId string) *QueryUserAllowedRemedysUserTaskRemedyReqBodyBuilder
用户 ID
示例值:abd754f7
type QueryUserAllowedRemedysUserTaskRemedyReqBuilder ¶
type QueryUserAllowedRemedysUserTaskRemedyReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserAllowedRemedysUserTaskRemedyReqBuilder ¶
func NewQueryUserAllowedRemedysUserTaskRemedyReqBuilder() *QueryUserAllowedRemedysUserTaskRemedyReqBuilder
func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Body ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Body(body *QueryUserAllowedRemedysUserTaskRemedyReqBody) *QueryUserAllowedRemedysUserTaskRemedyReqBuilder
获取用户某天可以补的第几次上 / 下班卡的时间。
func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Build ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) Build() *QueryUserAllowedRemedysUserTaskRemedyReq
func (*QueryUserAllowedRemedysUserTaskRemedyReqBuilder) EmployeeType ¶
func (builder *QueryUserAllowedRemedysUserTaskRemedyReqBuilder) EmployeeType(employeeType string) *QueryUserAllowedRemedysUserTaskRemedyReqBuilder
请求体和响应体中的 user_id 的员工工号类型
示例值:employee_id
type QueryUserAllowedRemedysUserTaskRemedyResp ¶
type QueryUserAllowedRemedysUserTaskRemedyResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *QueryUserAllowedRemedysUserTaskRemedyRespData `json:"data"` // 业务数据 }
func (*QueryUserAllowedRemedysUserTaskRemedyResp) Success ¶
func (resp *QueryUserAllowedRemedysUserTaskRemedyResp) Success() bool
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 (builder *QueryUserApprovalPathReqBodyBuilder) Build() (*QueryUserApprovalReqBody, error)
func (*QueryUserApprovalPathReqBodyBuilder) CheckDateFrom ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserApprovalPathReqBodyBuilder
查询的起始工作日
示例值:20190817
func (*QueryUserApprovalPathReqBodyBuilder) CheckDateTo ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserApprovalPathReqBodyBuilder
查询的结束工作日,与 check_date_from 的时间间隔不超过 30 天
示例值:20190820
func (*QueryUserApprovalPathReqBodyBuilder) CheckDateType ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserApprovalPathReqBodyBuilder
查询依据的时间类型(不填默认依据PeriodTime)
示例值:PeriodTime
func (*QueryUserApprovalPathReqBodyBuilder) CheckTimeFrom ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserApprovalPathReqBodyBuilder
查询的起始时间,精确到秒的时间戳
示例值:1566641088
func (*QueryUserApprovalPathReqBodyBuilder) CheckTimeTo ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserApprovalPathReqBodyBuilder
查询的结束时间,精确到秒的时间戳
示例值:1592561088
func (*QueryUserApprovalPathReqBodyBuilder) Status ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) Status(status int) *QueryUserApprovalPathReqBodyBuilder
查询状态(不填默认查询已通过状态)
示例值:2
func (*QueryUserApprovalPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserApprovalPathReqBodyBuilder) UserIds(userIds []string) *QueryUserApprovalPathReqBodyBuilder
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 (builder *QueryUserApprovalReqBodyBuilder) Build() *QueryUserApprovalReqBody
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 ¶
func (builder *QueryUserApprovalReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserApprovalReqBodyBuilder
查询依据的时间类型(不填默认依据PeriodTime)
示例值:PeriodTime
func (*QueryUserApprovalReqBodyBuilder) CheckTimeFrom ¶
func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserApprovalReqBodyBuilder
查询的起始时间,精确到秒的时间戳
示例值:1566641088
func (*QueryUserApprovalReqBodyBuilder) CheckTimeTo ¶
func (builder *QueryUserApprovalReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserApprovalReqBodyBuilder
查询的结束时间,精确到秒的时间戳
示例值:1592561088
func (*QueryUserApprovalReqBodyBuilder) Status ¶
func (builder *QueryUserApprovalReqBodyBuilder) Status(status int) *QueryUserApprovalReqBodyBuilder
查询状态(不填默认查询已通过状态)
示例值:2
func (*QueryUserApprovalReqBodyBuilder) UserIds ¶
func (builder *QueryUserApprovalReqBodyBuilder) UserIds(userIds []string) *QueryUserApprovalReqBodyBuilder
employee_no 或 employee_id 列表
示例值:["abd754f7"]
type QueryUserApprovalReqBuilder ¶
type QueryUserApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserApprovalReqBuilder ¶
func NewQueryUserApprovalReqBuilder() *QueryUserApprovalReqBuilder
func (*QueryUserApprovalReqBuilder) Body ¶
func (builder *QueryUserApprovalReqBuilder) Body(body *QueryUserApprovalReqBody) *QueryUserApprovalReqBuilder
获取员工在某段时间内的请假、加班、外出和出差四种审批的通过数据。
func (*QueryUserApprovalReqBuilder) Build ¶
func (builder *QueryUserApprovalReqBuilder) Build() *QueryUserApprovalReq
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 (builder *QueryUserDailyShiftPathReqBodyBuilder) Build() (*QueryUserDailyShiftReqBody, error)
func (*QueryUserDailyShiftPathReqBodyBuilder) CheckDateFrom ¶
func (builder *QueryUserDailyShiftPathReqBodyBuilder) CheckDateFrom(checkDateFrom int) *QueryUserDailyShiftPathReqBodyBuilder
查询的起始工作日
示例值:20190817
func (*QueryUserDailyShiftPathReqBodyBuilder) CheckDateTo ¶
func (builder *QueryUserDailyShiftPathReqBodyBuilder) CheckDateTo(checkDateTo int) *QueryUserDailyShiftPathReqBodyBuilder
查询的结束工作日
示例值:20190820
func (*QueryUserDailyShiftPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserDailyShiftPathReqBodyBuilder) UserIds(userIds []string) *QueryUserDailyShiftPathReqBodyBuilder
employee_no 或 employee_id 列表
示例值:["abd754f7"]
type QueryUserDailyShiftReq ¶
type QueryUserDailyShiftReq struct { Body *QueryUserDailyShiftReqBody `body:""` // contains filtered or unexported fields }
type QueryUserDailyShiftReqBodyBuilder ¶
type QueryUserDailyShiftReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserDailyShiftReqBodyBuilder ¶
func NewQueryUserDailyShiftReqBodyBuilder() *QueryUserDailyShiftReqBodyBuilder
func (*QueryUserDailyShiftReqBodyBuilder) Build ¶
func (builder *QueryUserDailyShiftReqBodyBuilder) Build() *QueryUserDailyShiftReqBody
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 ¶
func (builder *QueryUserDailyShiftReqBodyBuilder) UserIds(userIds []string) *QueryUserDailyShiftReqBodyBuilder
employee_no 或 employee_id 列表
示例值:["abd754f7"]
type QueryUserDailyShiftReqBuilder ¶
type QueryUserDailyShiftReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserDailyShiftReqBuilder ¶
func NewQueryUserDailyShiftReqBuilder() *QueryUserDailyShiftReqBuilder
func (*QueryUserDailyShiftReqBuilder) Body ¶
func (builder *QueryUserDailyShiftReqBuilder) Body(body *QueryUserDailyShiftReqBody) *QueryUserDailyShiftReqBuilder
支持查询多个用户的排班情况,查询的时间跨度不能超过 30 天。
func (*QueryUserDailyShiftReqBuilder) Build ¶
func (builder *QueryUserDailyShiftReqBuilder) Build() *QueryUserDailyShiftReq
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 (builder *QueryUserFlowPathReqBodyBuilder) Build() (*QueryUserFlowReqBody, error)
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 ¶
func (builder *QueryUserFlowPathReqBodyBuilder) UserIds(userIds []string) *QueryUserFlowPathReqBodyBuilder
employee_no 或 employee_id 列表,长度不超过 50
示例值:[ "abd754f7"]
type QueryUserFlowReq ¶
type QueryUserFlowReq struct { Body *QueryUserFlowReqBody `body:""` // contains filtered or unexported fields }
type QueryUserFlowReqBody ¶
type QueryUserFlowReqBodyBuilder ¶
type QueryUserFlowReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserFlowReqBodyBuilder ¶
func NewQueryUserFlowReqBodyBuilder() *QueryUserFlowReqBodyBuilder
func (*QueryUserFlowReqBodyBuilder) Build ¶
func (builder *QueryUserFlowReqBodyBuilder) Build() *QueryUserFlowReqBody
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 ¶
func (builder *QueryUserFlowReqBuilder) Body(body *QueryUserFlowReqBody) *QueryUserFlowReqBuilder
批量查询授权内员工的实际打卡流水记录。例如,企业给一个员工设定的班次是上午 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 (builder *QueryUserSettingPathReqBodyBuilder) Build() (*QueryUserSettingReqBody, error)
func (*QueryUserSettingPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserSettingPathReqBodyBuilder) UserIds(userIds []string) *QueryUserSettingPathReqBodyBuilder
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 (builder *QueryUserSettingReqBodyBuilder) Build() *QueryUserSettingReqBody
func (*QueryUserSettingReqBodyBuilder) UserIds ¶
func (builder *QueryUserSettingReqBodyBuilder) UserIds(userIds []string) *QueryUserSettingReqBodyBuilder
employee_no 或 employee_id 列表
示例值:["abd754f7"]
type QueryUserSettingReqBuilder ¶
type QueryUserSettingReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserSettingReqBuilder ¶
func NewQueryUserSettingReqBuilder() *QueryUserSettingReqBuilder
func (*QueryUserSettingReqBuilder) Body ¶
func (builder *QueryUserSettingReqBuilder) Body(body *QueryUserSettingReqBody) *QueryUserSettingReqBuilder
批量查询授权内员工的用户设置信息,包括人脸照片文件 ID、人脸照片更新时间。
func (*QueryUserSettingReqBuilder) Build ¶
func (builder *QueryUserSettingReqBuilder) Build() *QueryUserSettingReq
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 (builder *QueryUserStatsDataPathReqBodyBuilder) Build() (*QueryUserStatsDataReqBody, error)
func (*QueryUserStatsDataPathReqBodyBuilder) CurrentGroupOnly ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataPathReqBodyBuilder
只展示当前考勤组
示例值:true
func (*QueryUserStatsDataPathReqBodyBuilder) EndDate ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) EndDate(endDate int) *QueryUserStatsDataPathReqBodyBuilder
结束时间;(时间间隔不超过 31 天)
示例值:20210323
func (*QueryUserStatsDataPathReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) Locale(locale string) *QueryUserStatsDataPathReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsDataPathReqBodyBuilder) NeedHistory ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) NeedHistory(needHistory bool) *QueryUserStatsDataPathReqBodyBuilder
是否需要历史数据
示例值:true
func (*QueryUserStatsDataPathReqBodyBuilder) StartDate ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) StartDate(startDate int) *QueryUserStatsDataPathReqBodyBuilder
开始时间
示例值:20210316
func (*QueryUserStatsDataPathReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsDataPathReqBodyBuilder
统计类型
示例值:month
func (*QueryUserStatsDataPathReqBodyBuilder) UserId ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) UserId(userId string) *QueryUserStatsDataPathReqBodyBuilder
查询用户id,同【更新统计设置】、【查询统计设置】user_id(新系统用户必填,否则会报错)
示例值:ec8ddg56
func (*QueryUserStatsDataPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserStatsDataPathReqBodyBuilder) UserIds(userIds []string) *QueryUserStatsDataPathReqBodyBuilder
查询的用户 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 (builder *QueryUserStatsDataReqBodyBuilder) Build() *QueryUserStatsDataReqBody
func (*QueryUserStatsDataReqBodyBuilder) CurrentGroupOnly ¶
func (builder *QueryUserStatsDataReqBodyBuilder) CurrentGroupOnly(currentGroupOnly bool) *QueryUserStatsDataReqBodyBuilder
只展示当前考勤组
示例值:true
func (*QueryUserStatsDataReqBodyBuilder) EndDate ¶
func (builder *QueryUserStatsDataReqBodyBuilder) EndDate(endDate int) *QueryUserStatsDataReqBodyBuilder
结束时间;(时间间隔不超过 31 天)
示例值:20210323
func (*QueryUserStatsDataReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsDataReqBodyBuilder) Locale(locale string) *QueryUserStatsDataReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsDataReqBodyBuilder) NeedHistory ¶
func (builder *QueryUserStatsDataReqBodyBuilder) NeedHistory(needHistory bool) *QueryUserStatsDataReqBodyBuilder
是否需要历史数据
示例值:true
func (*QueryUserStatsDataReqBodyBuilder) StartDate ¶
func (builder *QueryUserStatsDataReqBodyBuilder) StartDate(startDate int) *QueryUserStatsDataReqBodyBuilder
开始时间
示例值:20210316
func (*QueryUserStatsDataReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsDataReqBodyBuilder) StatsType(statsType string) *QueryUserStatsDataReqBodyBuilder
统计类型
示例值:month
func (*QueryUserStatsDataReqBodyBuilder) UserId ¶
func (builder *QueryUserStatsDataReqBodyBuilder) UserId(userId string) *QueryUserStatsDataReqBodyBuilder
查询用户id,同【更新统计设置】、【查询统计设置】user_id(新系统用户必填,否则会报错)
示例值:ec8ddg56
func (*QueryUserStatsDataReqBodyBuilder) UserIds ¶
func (builder *QueryUserStatsDataReqBodyBuilder) UserIds(userIds []string) *QueryUserStatsDataReqBodyBuilder
查询的用户 ID 列表;(用户数量不超过 200)
示例值:[; "ec8ddg56",; "4dbb52f2",; "4167842e"; ]
type QueryUserStatsDataReqBuilder ¶
type QueryUserStatsDataReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserStatsDataReqBuilder ¶
func NewQueryUserStatsDataReqBuilder() *QueryUserStatsDataReqBuilder
func (*QueryUserStatsDataReqBuilder) Body ¶
func (builder *QueryUserStatsDataReqBuilder) Body(body *QueryUserStatsDataReqBody) *QueryUserStatsDataReqBuilder
查询日度统计或月度统计的统计数据。
func (*QueryUserStatsDataReqBuilder) Build ¶
func (builder *QueryUserStatsDataReqBuilder) Build() *QueryUserStatsDataReq
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 (builder *QueryUserStatsFieldPathReqBodyBuilder) Build() (*QueryUserStatsFieldReqBody, error)
func (*QueryUserStatsFieldPathReqBodyBuilder) EndDate ¶
func (builder *QueryUserStatsFieldPathReqBodyBuilder) EndDate(endDate int) *QueryUserStatsFieldPathReqBodyBuilder
结束时间(时间间隔不超过 40 天)
示例值:20210323
func (*QueryUserStatsFieldPathReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsFieldPathReqBodyBuilder) Locale(locale string) *QueryUserStatsFieldPathReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsFieldPathReqBodyBuilder) StartDate ¶
func (builder *QueryUserStatsFieldPathReqBodyBuilder) StartDate(startDate int) *QueryUserStatsFieldPathReqBodyBuilder
开始时间
示例值:20210316
func (*QueryUserStatsFieldPathReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsFieldPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsFieldPathReqBodyBuilder
统计类型
示例值:daily
type QueryUserStatsFieldReq ¶
type QueryUserStatsFieldReq struct { Body *QueryUserStatsFieldReqBody `body:""` // contains filtered or unexported fields }
type QueryUserStatsFieldReqBodyBuilder ¶
type QueryUserStatsFieldReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserStatsFieldReqBodyBuilder ¶
func NewQueryUserStatsFieldReqBodyBuilder() *QueryUserStatsFieldReqBodyBuilder
func (*QueryUserStatsFieldReqBodyBuilder) Build ¶
func (builder *QueryUserStatsFieldReqBodyBuilder) Build() *QueryUserStatsFieldReqBody
func (*QueryUserStatsFieldReqBodyBuilder) EndDate ¶
func (builder *QueryUserStatsFieldReqBodyBuilder) EndDate(endDate int) *QueryUserStatsFieldReqBodyBuilder
结束时间(时间间隔不超过 40 天)
示例值:20210323
func (*QueryUserStatsFieldReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsFieldReqBodyBuilder) Locale(locale string) *QueryUserStatsFieldReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsFieldReqBodyBuilder) StartDate ¶
func (builder *QueryUserStatsFieldReqBodyBuilder) StartDate(startDate int) *QueryUserStatsFieldReqBodyBuilder
开始时间
示例值:20210316
func (*QueryUserStatsFieldReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsFieldReqBodyBuilder) StatsType(statsType string) *QueryUserStatsFieldReqBodyBuilder
统计类型
示例值:daily
type QueryUserStatsFieldReqBuilder ¶
type QueryUserStatsFieldReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserStatsFieldReqBuilder ¶
func NewQueryUserStatsFieldReqBuilder() *QueryUserStatsFieldReqBuilder
func (*QueryUserStatsFieldReqBuilder) Body ¶
func (builder *QueryUserStatsFieldReqBuilder) Body(body *QueryUserStatsFieldReqBody) *QueryUserStatsFieldReqBuilder
查询考勤统计支持的日度统计或月度统计的统计表头。
func (*QueryUserStatsFieldReqBuilder) Build ¶
func (builder *QueryUserStatsFieldReqBuilder) Build() *QueryUserStatsFieldReq
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 (builder *QueryUserStatsViewPathReqBodyBuilder) Build() (*QueryUserStatsViewReqBody, error)
func (*QueryUserStatsViewPathReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsViewPathReqBodyBuilder) Locale(locale string) *QueryUserStatsViewPathReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsViewPathReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsViewPathReqBodyBuilder) StatsType(statsType string) *QueryUserStatsViewPathReqBodyBuilder
统计类型
示例值:daily
func (*QueryUserStatsViewPathReqBodyBuilder) UserId ¶
func (builder *QueryUserStatsViewPathReqBodyBuilder) UserId(userId string) *QueryUserStatsViewPathReqBodyBuilder
查询用户id,同【查询统计数据】、【更新统计设置】user_id
示例值:dd31248a
type QueryUserStatsViewReq ¶
type QueryUserStatsViewReq struct { Body *QueryUserStatsViewReqBody `body:""` // contains filtered or unexported fields }
type QueryUserStatsViewReqBodyBuilder ¶
type QueryUserStatsViewReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserStatsViewReqBodyBuilder ¶
func NewQueryUserStatsViewReqBodyBuilder() *QueryUserStatsViewReqBodyBuilder
func (*QueryUserStatsViewReqBodyBuilder) Build ¶
func (builder *QueryUserStatsViewReqBodyBuilder) Build() *QueryUserStatsViewReqBody
func (*QueryUserStatsViewReqBodyBuilder) Locale ¶
func (builder *QueryUserStatsViewReqBodyBuilder) Locale(locale string) *QueryUserStatsViewReqBodyBuilder
语言类型
示例值:zh
func (*QueryUserStatsViewReqBodyBuilder) StatsType ¶
func (builder *QueryUserStatsViewReqBodyBuilder) StatsType(statsType string) *QueryUserStatsViewReqBodyBuilder
统计类型
示例值:daily
func (*QueryUserStatsViewReqBodyBuilder) UserId ¶
func (builder *QueryUserStatsViewReqBodyBuilder) UserId(userId string) *QueryUserStatsViewReqBodyBuilder
查询用户id,同【查询统计数据】、【更新统计设置】user_id
示例值:dd31248a
type QueryUserStatsViewReqBuilder ¶
type QueryUserStatsViewReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserStatsViewReqBuilder ¶
func NewQueryUserStatsViewReqBuilder() *QueryUserStatsViewReqBuilder
func (*QueryUserStatsViewReqBuilder) Body ¶
func (builder *QueryUserStatsViewReqBuilder) Body(body *QueryUserStatsViewReqBody) *QueryUserStatsViewReqBuilder
查询开发者定制的日度统计或月度统计的统计报表表头设置信息。
func (*QueryUserStatsViewReqBuilder) Build ¶
func (builder *QueryUserStatsViewReqBuilder) Build() *QueryUserStatsViewReq
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 (builder *QueryUserTaskPathReqBodyBuilder) Build() (*QueryUserTaskReqBody, error)
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 ¶
func (builder *QueryUserTaskPathReqBodyBuilder) NeedOvertimeResult(needOvertimeResult bool) *QueryUserTaskPathReqBodyBuilder
是否需要加班班段打卡结果
示例值:true
func (*QueryUserTaskPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserTaskPathReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskPathReqBodyBuilder
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 (builder *QueryUserTaskRemedyPathReqBodyBuilder) Build() (*QueryUserTaskRemedyReqBody, error)
func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckDateType ¶
func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserTaskRemedyPathReqBodyBuilder
查询依据的时间类型(默认依据PeriodTime,如果使用非默认的,非特定租户不支持)
示例值:PeriodTime
func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeFrom ¶
func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserTaskRemedyPathReqBodyBuilder
查询的起始时间,精确到秒的时间戳
示例值:1566641088
func (*QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeTo ¶
func (builder *QueryUserTaskRemedyPathReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserTaskRemedyPathReqBodyBuilder
查询的结束时间,精确到秒的时间戳
示例值:1592561088
func (*QueryUserTaskRemedyPathReqBodyBuilder) Status ¶
func (builder *QueryUserTaskRemedyPathReqBodyBuilder) Status(status int) *QueryUserTaskRemedyPathReqBodyBuilder
查询状态(不填默认查询已通过状态)
示例值:2
func (*QueryUserTaskRemedyPathReqBodyBuilder) UserIds ¶
func (builder *QueryUserTaskRemedyPathReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskRemedyPathReqBodyBuilder
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 (builder *QueryUserTaskRemedyReqBodyBuilder) Build() *QueryUserTaskRemedyReqBody
func (*QueryUserTaskRemedyReqBodyBuilder) CheckDateType ¶
func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckDateType(checkDateType string) *QueryUserTaskRemedyReqBodyBuilder
查询依据的时间类型(默认依据PeriodTime,如果使用非默认的,非特定租户不支持)
示例值:PeriodTime
func (*QueryUserTaskRemedyReqBodyBuilder) CheckTimeFrom ¶
func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckTimeFrom(checkTimeFrom string) *QueryUserTaskRemedyReqBodyBuilder
查询的起始时间,精确到秒的时间戳
示例值:1566641088
func (*QueryUserTaskRemedyReqBodyBuilder) CheckTimeTo ¶
func (builder *QueryUserTaskRemedyReqBodyBuilder) CheckTimeTo(checkTimeTo string) *QueryUserTaskRemedyReqBodyBuilder
查询的结束时间,精确到秒的时间戳
示例值:1592561088
func (*QueryUserTaskRemedyReqBodyBuilder) Status ¶
func (builder *QueryUserTaskRemedyReqBodyBuilder) Status(status int) *QueryUserTaskRemedyReqBodyBuilder
查询状态(不填默认查询已通过状态)
示例值:2
func (*QueryUserTaskRemedyReqBodyBuilder) UserIds ¶
func (builder *QueryUserTaskRemedyReqBodyBuilder) UserIds(userIds []string) *QueryUserTaskRemedyReqBodyBuilder
employee_no 或 employee_id 列表
示例值:["abd754f7"]
type QueryUserTaskRemedyReqBuilder ¶
type QueryUserTaskRemedyReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryUserTaskRemedyReqBuilder ¶
func NewQueryUserTaskRemedyReqBuilder() *QueryUserTaskRemedyReqBuilder
func (*QueryUserTaskRemedyReqBuilder) Body ¶
func (builder *QueryUserTaskRemedyReqBuilder) Body(body *QueryUserTaskRemedyReqBody) *QueryUserTaskRemedyReqBuilder
获取授权内员工的补卡记录。
func (*QueryUserTaskRemedyReqBuilder) Build ¶
func (builder *QueryUserTaskRemedyReqBuilder) Build() *QueryUserTaskRemedyReq
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 (builder *QueryUserTaskReqBodyBuilder) Build() *QueryUserTaskReqBody
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 ¶
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 (builder *QueryUserTaskReqBuilder) Body(body *QueryUserTaskReqBody) *QueryUserTaskReqBuilder
获取企业内员工的实际打卡结果,包括上班打卡结果和下班打卡结果。
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 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 ScanWifiInfo ¶
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 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 ¶
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 ¶
type ScopeGroupBuilder struct {
// contains filtered or unexported fields
}
func NewScopeGroupBuilder ¶
func NewScopeGroupBuilder() *ScopeGroupBuilder
func (*ScopeGroupBuilder) Build ¶
func (builder *ScopeGroupBuilder) Build() *ScopeGroup
func (*ScopeGroupBuilder) CustomFieldID ¶
func (builder *ScopeGroupBuilder) CustomFieldID(customFieldID string) *ScopeGroupBuilder
企业版自定义字段唯一键 ID, 需要从飞书人事那边获取
示例值:123213123
func (*ScopeGroupBuilder) CustomFieldObjType ¶
func (builder *ScopeGroupBuilder) CustomFieldObjType(customFieldObjType string) *ScopeGroupBuilder
企业版自定义字段对象类型 "employment":主数据对象,员工雇佣信息 , "person":主数据对象,个人
示例值:employment
func (*ScopeGroupBuilder) MemberIds ¶
func (builder *ScopeGroupBuilder) MemberIds(memberIds []string) *ScopeGroupBuilder
部门/人员id列表(具体类型根据scope_value_type判断)
示例值:
func (*ScopeGroupBuilder) OperationType ¶
func (builder *ScopeGroupBuilder) OperationType(operationType int) *ScopeGroupBuilder
范围类型(是否包含)
示例值:1
func (*ScopeGroupBuilder) Right ¶
func (builder *ScopeGroupBuilder) Right(right []*ScopeValue) *ScopeGroupBuilder
如果是人员/部门类型 不需要使用该字段
示例值:
func (*ScopeGroupBuilder) ScopeValueType ¶
func (builder *ScopeGroupBuilder) ScopeValueType(scopeValueType int) *ScopeGroupBuilder
类型: 1: 部门 2:人员 3:国家地区 4:员工类型 5:工作城市 6:职级 7:序列 8:职务(企业版)9:工时制度(企业版) 100:自定义字段(企业版)
示例值:1
type ScopeValue ¶
type ScopeValueBuilder ¶
type ScopeValueBuilder struct {
// contains filtered or unexported fields
}
func NewScopeValueBuilder ¶
func NewScopeValueBuilder() *ScopeValueBuilder
func (*ScopeValueBuilder) Build ¶
func (builder *ScopeValueBuilder) Build() *ScopeValue
func (*ScopeValueBuilder) Key ¶
func (builder *ScopeValueBuilder) Key(key string) *ScopeValueBuilder
标识Key
示例值:CH
func (*ScopeValueBuilder) Name ¶
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 (builder *SearchGroupPathReqBodyBuilder) Build() (*SearchGroupReqBody, error)
func (*SearchGroupPathReqBodyBuilder) GroupName ¶
func (builder *SearchGroupPathReqBodyBuilder) GroupName(groupName string) *SearchGroupPathReqBodyBuilder
考勤组名称
示例值:考勤组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"` // 考勤组名称
}
type SearchGroupReqBodyBuilder ¶
type SearchGroupReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewSearchGroupReqBodyBuilder ¶
func NewSearchGroupReqBodyBuilder() *SearchGroupReqBodyBuilder
func (*SearchGroupReqBodyBuilder) Build ¶
func (builder *SearchGroupReqBodyBuilder) Build() *SearchGroupReqBody
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 ¶
func (builder *SearchGroupReqBuilder) Body(body *SearchGroupReqBody) *SearchGroupReqBuilder
按考勤组名称查询考勤组摘要信息。查询条件支持名称精确匹配和模糊匹配两种方式。查询结果按考勤组修改时间 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"` // 打卡规则 }
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) FlexibleMinutes ¶
func (builder *ShiftBuilder) FlexibleMinutes(flexibleMinutes int) *ShiftBuilder
弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效
示例值:60
func (*ShiftBuilder) FlexibleRule ¶
func (builder *ShiftBuilder) FlexibleRule(flexibleRule []*FlexibleRule) *ShiftBuilder
弹性打卡时间设置
示例值:
func (*ShiftBuilder) IsFlexible ¶
func (builder *ShiftBuilder) IsFlexible(isFlexible bool) *ShiftBuilder
是否弹性打卡
示例值:false
func (*ShiftBuilder) LateOffLateOnRule ¶
func (builder *ShiftBuilder) LateOffLateOnRule(lateOffLateOnRule []*LateOffLateOnRule) *ShiftBuilder
晚走晚到规则
示例值:
func (*ShiftBuilder) NoNeedOff ¶
func (builder *ShiftBuilder) NoNeedOff(noNeedOff bool) *ShiftBuilder
不需要打下班卡
示例值:true
func (*ShiftBuilder) OvertimeRule ¶
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) RestTimeRule ¶
func (builder *ShiftBuilder) RestTimeRule(restTimeRule []*RestRule) *ShiftBuilder
休息规则
示例值:
func (*ShiftBuilder) ShiftId ¶
func (builder *ShiftBuilder) ShiftId(shiftId string) *ShiftBuilder
班次 ID
示例值:6919358778597097404
func (*ShiftBuilder) ShiftName ¶
func (builder *ShiftBuilder) ShiftName(shiftName string) *ShiftBuilder
班次名称
示例值:早班
func (*ShiftBuilder) SubShiftLeaderIds ¶
func (builder *ShiftBuilder) SubShiftLeaderIds(subShiftLeaderIds []string) *ShiftBuilder
排班组子负责人id列表
示例值:
type ShiftGroupUser ¶
type ShiftGroupUserBuilder ¶
type ShiftGroupUserBuilder struct {
// contains filtered or unexported fields
}
func NewShiftGroupUserBuilder ¶
func NewShiftGroupUserBuilder() *ShiftGroupUserBuilder
func (*ShiftGroupUserBuilder) Build ¶
func (builder *ShiftGroupUserBuilder) Build() *ShiftGroupUser
func (*ShiftGroupUserBuilder) ShiftGroupId ¶
func (builder *ShiftGroupUserBuilder) ShiftGroupId(shiftGroupId string) *ShiftGroupUserBuilder
班组ID
示例值:7275180303583281171
func (*ShiftGroupUserBuilder) UserId ¶
func (builder *ShiftGroupUserBuilder) UserId(userId string) *ShiftGroupUserBuilder
用户ID,根据传参user_id_type确定
示例值:52aa1fa1
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 ¶
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 (builder *UpdateUserStatsViewPathReqBodyBuilder) Build() (*UpdateUserStatsViewReqBody, error)
func (*UpdateUserStatsViewPathReqBodyBuilder) View ¶
func (builder *UpdateUserStatsViewPathReqBodyBuilder) View(view *UserStatsView) *UpdateUserStatsViewPathReqBodyBuilder
统计设置
示例值:
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 (builder *UpdateUserStatsViewReqBodyBuilder) Build() *UpdateUserStatsViewReqBody
func (*UpdateUserStatsViewReqBodyBuilder) View ¶
func (builder *UpdateUserStatsViewReqBodyBuilder) View(view *UserStatsView) *UpdateUserStatsViewReqBodyBuilder
统计设置
示例值:
type UpdateUserStatsViewReqBuilder ¶
type UpdateUserStatsViewReqBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateUserStatsViewReqBuilder ¶
func NewUpdateUserStatsViewReqBuilder() *UpdateUserStatsViewReqBuilder
func (*UpdateUserStatsViewReqBuilder) Body ¶
func (builder *UpdateUserStatsViewReqBuilder) Body(body *UpdateUserStatsViewReqBody) *UpdateUserStatsViewReqBuilder
更新开发者定制的日度统计或月度统计的统计报表表头设置信息。
func (*UpdateUserStatsViewReqBuilder) Build ¶
func (builder *UpdateUserStatsViewReqBuilder) Build() *UpdateUserStatsViewReq
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 (builder *UploadFilePathReqBodyBuilder) Build() (*UploadFileReqBody, error)
func (*UploadFilePathReqBodyBuilder) FilePath ¶
func (builder *UploadFilePathReqBodyBuilder) FilePath(filePath string) *UploadFilePathReqBodyBuilder
文件内容
示例值:二进制文件
type UploadFileReq ¶
type UploadFileReq struct { Body *UploadFileReqBody `body:""` // contains filtered or unexported fields }
type UploadFileReqBody ¶
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 ¶
func (builder *UploadFileReqBodyBuilder) File(file io.Reader) *UploadFileReqBodyBuilder
文件内容
示例值:二进制文件
type UploadFileReqBuilder ¶
type UploadFileReqBuilder struct {
// contains filtered or unexported fields
}
func NewUploadFileReqBuilder ¶
func NewUploadFileReqBuilder() *UploadFileReqBuilder
func (*UploadFileReqBuilder) Body ¶
func (builder *UploadFileReqBuilder) Body(body *UploadFileReqBody) *UploadFileReqBuilder
上传文件并获取文件 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 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 ¶
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 ¶
type UserArrangeShiftGroup struct { UserId *string `json:"user_id,omitempty"` // 用户id ShiftGroup *ArrangeShiftGroup `json:"shift_group,omitempty"` // 班组 }
type UserArrangeShiftGroupBuilder ¶
type UserArrangeShiftGroupBuilder struct {
// contains filtered or unexported fields
}
func NewUserArrangeShiftGroupBuilder ¶
func NewUserArrangeShiftGroupBuilder() *UserArrangeShiftGroupBuilder
func (*UserArrangeShiftGroupBuilder) Build ¶
func (builder *UserArrangeShiftGroupBuilder) Build() *UserArrangeShiftGroup
func (*UserArrangeShiftGroupBuilder) ShiftGroup ¶
func (builder *UserArrangeShiftGroupBuilder) ShiftGroup(shiftGroup *ArrangeShiftGroup) *UserArrangeShiftGroupBuilder
班组
示例值:
func (*UserArrangeShiftGroupBuilder) UserId ¶
func (builder *UserArrangeShiftGroupBuilder) UserId(userId string) *UserArrangeShiftGroupBuilder
用户id
示例值:e1234123
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"` // 日期 }
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) 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 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"` // 打卡照片列表 CheckResult *string `json:"check_result,omitempty"` // 打卡结果 ExternalId *string `json:"external_id,omitempty"` // 用户导入的外部打卡记录ID }
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) ExternalId ¶
func (builder *UserFlowBuilder) ExternalId(externalId string) *UserFlowBuilder
用户导入的外部打卡记录ID
示例值:record_123
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) LocationName ¶
func (builder *UserFlowBuilder) LocationName(locationName string) *UserFlowBuilder
打卡位置名称信息
示例值:西溪八方城
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 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 }
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) 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"` // 审批申请时间 }
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) 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) Interval ¶
func (builder *UserOutBuilder) Interval(interval int) *UserOutBuilder
外出时长(单位:秒)
示例值:28800
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 }
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) Category ¶
func (builder *UserOvertimeWorkBuilder) Category(category int) *UserOvertimeWorkBuilder
加班日期类型
示例值:2
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) 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 ¶
func (builder *UserOvertimeWorkBuilder) Unit(unit int) *UserOvertimeWorkBuilder
加班时长单位
示例值: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 ¶
type UserShiftGroupsListBuilder ¶
type UserShiftGroupsListBuilder struct {
// contains filtered or unexported fields
}
func NewUserShiftGroupsListBuilder ¶
func NewUserShiftGroupsListBuilder() *UserShiftGroupsListBuilder
func (*UserShiftGroupsListBuilder) Build ¶
func (builder *UserShiftGroupsListBuilder) Build() *UserShiftGroupsList
func (*UserShiftGroupsListBuilder) GroupId ¶
func (builder *UserShiftGroupsListBuilder) GroupId(groupId string) *UserShiftGroupsListBuilder
考勤组ID
示例值:7299769369813319699
func (*UserShiftGroupsListBuilder) ShiftGroupId ¶
func (builder *UserShiftGroupsListBuilder) ShiftGroupId(shiftGroupId string) *UserShiftGroupsListBuilder
班组ID
示例值:7301693071333261331
func (*UserShiftGroupsListBuilder) ShiftGroupName ¶
func (builder *UserShiftGroupsListBuilder) ShiftGroupName(shiftGroupName string) *UserShiftGroupsListBuilder
班组名称
示例值:飞书考勤班组
func (*UserShiftGroupsListBuilder) UpdateTime ¶
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 (builder *UserStatsDataBuilder) Datas(datas []*UserStatsDataCell) *UserStatsDataBuilder
用户的统计数据
示例值:
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"` // 字段标题 }
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 ¶
func (builder *UserStatsDataCellBuilder) Code(code string) *UserStatsDataCellBuilder
字段编号
示例值:50102
func (*UserStatsDataCellBuilder) Features ¶
func (builder *UserStatsDataCellBuilder) Features(features []*UserStatsDataFeature) *UserStatsDataCellBuilder
数据属性
示例值:
func (*UserStatsDataCellBuilder) Title ¶
func (builder *UserStatsDataCellBuilder) Title(title string) *UserStatsDataCellBuilder
字段标题
示例值:姓名
func (*UserStatsDataCellBuilder) Value ¶
func (builder *UserStatsDataCellBuilder) Value(value string) *UserStatsDataCellBuilder
数据值
示例值:无需打卡(-), 无需打卡(-)
type UserStatsDataFeature ¶
type UserStatsDataFeatureBuilder ¶
type UserStatsDataFeatureBuilder struct {
// contains filtered or unexported fields
}
func NewUserStatsDataFeatureBuilder ¶
func NewUserStatsDataFeatureBuilder() *UserStatsDataFeatureBuilder
func (*UserStatsDataFeatureBuilder) Build ¶
func (builder *UserStatsDataFeatureBuilder) Build() *UserStatsDataFeature
func (*UserStatsDataFeatureBuilder) Key ¶
func (builder *UserStatsDataFeatureBuilder) Key(key string) *UserStatsDataFeatureBuilder
统计数据列附加属性的名称
示例值:Abnormal
func (*UserStatsDataFeatureBuilder) Value ¶
func (builder *UserStatsDataFeatureBuilder) Value(value string) *UserStatsDataFeatureBuilder
统计数据列附加属性的值
示例值:false
type UserStatsField ¶
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 UserStatsView ¶
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 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 }
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) EndTime ¶
func (builder *UserTripBuilder) EndTime(endTime string) *UserTripBuilder
结束时间,时间格式为 yyyy-MM-dd HH:mm:ss
示例值:2021-01-04 19:00:00
func (*UserTripBuilder) Reason ¶
func (builder *UserTripBuilder) Reason(reason string) *UserTripBuilder
出差理由
示例值:培训
func (*UserTripBuilder) StartTime ¶
func (builder *UserTripBuilder) StartTime(startTime string) *UserTripBuilder
开始时间,时间格式为 yyyy-MM-dd HH:mm:ss
示例值:2021-01-04 09:00:00
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 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
示例值: