Documentation ¶
Index ¶
- type AddOptionRequest
- type AddUserFaceRequest
- type CalOtTimeRule
- type CalOtTimeRuleItem
- type ClearOptionRequest
- type Client
- func (r *Client) AddOption(req *AddOptionRequest) error
- func (r *Client) AddUserFace(req *AddUserFaceRequest) error
- func (r *Client) ClearOption(req *ClearOptionRequest) error
- func (r *Client) DelOption(req *DelOptionRequest) error
- func (r *Client) GetCheckinData(req *GetCheckinDataRequest) (*GetCheckinDataResponse, error)
- func (r *Client) GetCorpOption() (*GetCorpOptionResponse, error)
- func (r *Client) GetDayData(req *GetCheckinDataRequest) (result *GetDayDataResponse, err error)
- func (r *Client) GetHardwareData(req *GetHardwareDataRequest) (*GetHardwareDataResponse, error)
- func (r *Client) GetMonthData(req *GetCheckinDataRequest) (result *GetMonthDataResponse, err error)
- func (r *Client) GetOption(req *GetOptionRequest) (*GetOptionResponse, error)
- func (r *Client) GetScheduleList(req *GetScheduleListRequest) (*GetScheduleListResponse, error)
- func (r *Client) PunchCorrection(req *PunchCorrectionRequest) error
- func (r *Client) SetScheduleList(req *SetScheduleListRequest) error
- func (r *Client) UpdateOption(req *UpdateOptionRequest) error
- type CorpOptionGroup
- type DayBaseInfo
- type DayCheckInTime
- type DayDataItem
- type DayRuleInfo
- type DaySummaryInfo
- type DelOptionRequest
- type ExceptionInfo
- type FixTimeRule
- type GetCheckinDataItem
- type GetCheckinDataRequest
- type GetCheckinDataResponse
- type GetCorpOptionResponse
- type GetDayDataResponse
- type GetHardwareDataRequest
- type GetHardwareDataResponse
- type GetMonthDataResponse
- type GetOptionRequest
- type GetOptionResponse
- type GetScheduleListRequest
- type GetScheduleListResponse
- type GroupCheckinDate
- type GroupCheckinTime
- type GroupOtInfo
- type HardwareCheckinData
- type HolidayInfo
- type LateRule
- type LocInfos
- type MonthBaseInfo
- type MonthDataItem
- type MonthRuleInfo
- type MonthSummaryInfo
- type OptionCheckinDate
- type OptionGroup
- type OptionGroupBukaRemind
- type OptionGroupCheckinTime
- type OptionGroupLateRule
- type OptionGroupLocInfos
- type OptionGroupOtInfoV2
- type OptionGroupRange
- type OptionGroupReporterInfo
- type OptionGroupReporters
- type OptionGroupRule
- type OptionGroupRuleCheckinDate
- type OptionGroupRuleCheckinTime
- type OptionGroupScheduleList
- type OptionGroupSpeOffDays
- type OptionGroupSpeWorkdays
- type OptionGroupTimeRule
- type OptionGroupTimeSection
- type OptionGroupWifiMacInfos
- type OptionGroupWorkdayConf
- type OptionInfo
- type OtApplyInfo
- type OtCheckInfo
- type OtInfo
- type OtRestInfo
- type OverWorkInfo
- type PunchCorrectionRequest
- type Range
- type ReporterInfo
- type Reporters
- type Schedule
- type ScheduleInfo
- type ScheduleItem
- type ScheduleList
- type ScheduleListItem
- type ScheduleTimeSection
- type SetScheduleListItem
- type SetScheduleListRequest
- type SpData
- type SpDescription
- type SpItem
- type SpTitle
- type SpeOffDays
- type SpeWorkdays
- type TimeRule
- type TimeSection
- type UpdateOptionRequest
- type WifiMacInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOptionRequest ¶
type AddOptionRequest struct { EffectiveNow bool `json:"effective_now,omitempty"` Group OptionGroupRule `json:"group,omitempty"` }
AddOptionRequest 创建打卡规则请求
type AddUserFaceRequest ¶
AddUserFaceRequest 录入打卡人员人脸信息请求
type CalOtTimeRule ¶
type CalOtTimeRule struct {
Items []CalOtTimeRuleItem `json:"items"`
}
CalOtTimeRule 工作日加班-按加班时长扣除配置信息
type CalOtTimeRuleItem ¶
CalOtTimeRuleItem 工作日加班-按加班时长扣除条件信息
type ClearOptionRequest ¶
type ClearOptionRequest struct { GroupID int64 `json:"groupid"` ClearField []int64 `json:"clear_field"` EffectiveNow bool `json:"effective_now"` }
ClearOptionRequest 清空打卡规则数组元素请求
type Client ¶
Client 打卡接口实例
func (*Client) AddOption ¶
func (r *Client) AddOption(req *AddOptionRequest) error
AddOption 创建打卡规则 see https://developer.work.weixin.qq.com/document/path/98041#%E5%88%9B%E5%BB%BA%E6%89%93%E5%8D%A1%E8%A7%84%E5%88%99
func (*Client) AddUserFace ¶
func (r *Client) AddUserFace(req *AddUserFaceRequest) error
AddUserFace 录入打卡人员人脸信息 see https://developer.work.weixin.qq.com/document/path/93378
func (*Client) ClearOption ¶
func (r *Client) ClearOption(req *ClearOptionRequest) error
ClearOption 清空打卡规则数组元素 see https://developer.work.weixin.qq.com/document/path/98041#%E6%B8%85%E7%A9%BA%E6%89%93%E5%8D%A1%E8%A7%84%E5%88%99%E6%95%B0%E7%BB%84%E5%85%83%E7%B4%A0
func (*Client) DelOption ¶
func (r *Client) DelOption(req *DelOptionRequest) error
DelOption 删除打卡规则 see https://developer.work.weixin.qq.com/document/path/98041#%E5%88%A0%E9%99%A4%E6%89%93%E5%8D%A1%E8%A7%84%E5%88%99
func (*Client) GetCheckinData ¶
func (r *Client) GetCheckinData(req *GetCheckinDataRequest) (*GetCheckinDataResponse, error)
GetCheckinData 获取打卡记录数据 @see https://developer.work.weixin.qq.com/document/path/90262
func (*Client) GetCorpOption ¶
func (r *Client) GetCorpOption() (*GetCorpOptionResponse, error)
GetCorpOption 获取企业所有打卡规则 @see https://developer.work.weixin.qq.com/document/path/93384
func (*Client) GetDayData ¶
func (r *Client) GetDayData(req *GetCheckinDataRequest) (result *GetDayDataResponse, err error)
GetDayData 获取打卡日报数据 @see https://developer.work.weixin.qq.com/document/path/96498
func (*Client) GetHardwareData ¶
func (r *Client) GetHardwareData(req *GetHardwareDataRequest) (*GetHardwareDataResponse, error)
GetHardwareData 获取设备打卡数据 see https://developer.work.weixin.qq.com/document/path/94126
func (*Client) GetMonthData ¶
func (r *Client) GetMonthData(req *GetCheckinDataRequest) (result *GetMonthDataResponse, err error)
GetMonthData 获取打卡月报数据 @see https://developer.work.weixin.qq.com/document/path/96499
func (*Client) GetOption ¶
func (r *Client) GetOption(req *GetOptionRequest) (*GetOptionResponse, error)
GetOption 获取员工打卡规则 see https://developer.work.weixin.qq.com/document/path/90263
func (*Client) GetScheduleList ¶
func (r *Client) GetScheduleList(req *GetScheduleListRequest) (*GetScheduleListResponse, error)
GetScheduleList 获取打卡人员排班信息 see https://developer.work.weixin.qq.com/document/path/93380
func (*Client) PunchCorrection ¶
func (r *Client) PunchCorrection(req *PunchCorrectionRequest) error
PunchCorrection 为打卡人员补卡 see https://developer.work.weixin.qq.com/document/path/95803
func (*Client) SetScheduleList ¶
func (r *Client) SetScheduleList(req *SetScheduleListRequest) error
SetScheduleList 为打卡人员排班 see https://developer.work.weixin.qq.com/document/path/93385
func (*Client) UpdateOption ¶
func (r *Client) UpdateOption(req *UpdateOptionRequest) error
UpdateOption 修改打卡规则 see https://developer.work.weixin.qq.com/document/path/98041#%E4%BF%AE%E6%94%B9%E6%89%93%E5%8D%A1%E8%A7%84%E5%88%99
type CorpOptionGroup ¶
type CorpOptionGroup struct { GroupType int64 `json:"grouptype"` GroupID int64 `json:"groupid"` GroupName string `json:"groupname"` CheckinDate []GroupCheckinDate `json:"checkindate"` SpeWorkdays []SpeWorkdays `json:"spe_workdays"` SpeOffDays []SpeOffDays `json:"spe_offdays"` SyncHolidays bool `json:"sync_holidays"` NeedPhoto bool `json:"need_photo"` NoteCanUseLocalPic bool `json:"note_can_use_local_pic"` AllowCheckinOffWorkday bool `json:"allow_checkin_offworkday"` AllowApplyOffWorkday bool `json:"allow_apply_offworkday"` WifiMacInfos []WifiMacInfos `json:"wifimac_infos"` LocInfos []LocInfos `json:"loc_infos"` Range []Range `json:"range"` CreateTime int64 `json:"create_time"` WhiteUsers []string `json:"white_users"` Type int64 `json:"type"` ReporterInfo ReporterInfo `json:"reporterinfo"` OtInfo GroupOtInfo `json:"ot_info"` OtApplyInfo OtApplyInfo `json:"otapplyinfo"` Uptime int64 `json:"uptime"` AllowApplyBkCnt int64 `json:"allow_apply_bk_cnt"` OptionOutRange int64 `json:"option_out_range"` CreateUserID string `json:"create_userid"` UseFaceDetect bool `json:"use_face_detect"` AllowApplyBkDayLimit int64 `json:"allow_apply_bk_day_limit"` UpdateUserID string `json:"update_userid"` BukaRestriction int64 `json:"buka_restriction"` ScheduleList []ScheduleList `json:"schedulelist"` OffWorkIntervalTime int64 `json:"offwork_interval_time"` }
CorpOptionGroup 企业规则信息列表
type DayBaseInfo ¶
type DayBaseInfo struct { Date int64 `json:"date"` RecordType int64 `json:"record_type"` Name string `json:"name"` NameEx string `json:"name_ex"` DepartsName string `json:"departs_name"` AcctID string `json:"acctid"` DayType int64 `json:"day_type"` RuleInfo DayRuleInfo `json:"rule_info"` }
DayBaseInfo 基础信息
type DayCheckInTime ¶
type DayCheckInTime struct { WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` }
DayCheckInTime 当日打卡时间
type DayDataItem ¶
type DayDataItem struct { BaseInfo DayBaseInfo `json:"base_info"` SummaryInfo DaySummaryInfo `json:"summary_info"` HolidayInfos []HolidayInfo `json:"holiday_infos"` ExceptionInfos []ExceptionInfo `json:"exception_infos"` OtInfo OtInfo `json:"ot_info"` SpItems []SpItem `json:"sp_items"` }
DayDataItem 日报
type DayRuleInfo ¶
type DayRuleInfo struct { GroupID int64 `json:"groupid"` GroupName string `json:"groupname"` ScheduleID int64 `json:"scheduleid"` ScheduleName string `json:"schedulename"` CheckInTimes []DayCheckInTime `json:"checkintime"` }
DayRuleInfo 打卡人员所属规则信息
type DaySummaryInfo ¶
type DaySummaryInfo struct { CheckinCount int64 `json:"checkin_count"` RegularWorkSec int64 `json:"regular_work_sec"` StandardWorkSec int64 `json:"standard_work_sec"` EarliestTime int64 `json:"earliest_time"` LastestTime int64 `json:"lastest_time"` }
DaySummaryInfo 汇总信息
type DelOptionRequest ¶
type DelOptionRequest struct { GroupID int64 `json:"groupid"` EffectiveNow bool `json:"effective_now"` }
DelOptionRequest 删除打卡规则请求
type ExceptionInfo ¶
type ExceptionInfo struct { Count int64 `json:"count"` Duration int64 `json:"duration"` Exception int64 `json:"exception"` }
ExceptionInfo 校准状态信息
type FixTimeRule ¶
type FixTimeRule struct { FixTimeBeginSec int64 `json:"fix_time_begin_sec"` FixTimeEndSec int64 `json:"fix_time_end_sec"` }
FixTimeRule 工作日加班-指定休息时间配置信息
type GetCheckinDataItem ¶
type GetCheckinDataItem struct { UserID string `json:"userid"` GroupName string `json:"groupname"` CheckinType string `json:"checkin_type"` ExceptionType string `json:"exception_type"` CheckinTime int64 `json:"checkin_time"` LocationTitle string `json:"location_title"` LocationDetail string `json:"location_detail"` WifiName string `json:"wifiname"` Notes string `json:"notes"` WifiMac string `json:"wifimac"` MediaIDs []string `json:"mediaids"` SchCheckinTime int64 `json:"sch_checkin_time"` GroupID int64 `json:"groupid"` ScheduleID int64 `json:"schedule_id"` TimelineID int64 `json:"timeline_id"` Lat int64 `json:"lat,omitempty"` Lng int64 `json:"lng,omitempty"` DeviceID string `json:"deviceid,omitempty"` }
GetCheckinDataItem 打卡记录数据
type GetCheckinDataRequest ¶
type GetCheckinDataRequest struct { OpenCheckinDataType int64 `json:"opencheckindatatype"` StartTime int64 `json:"starttime"` EndTime int64 `json:"endtime"` UserIDList []string `json:"useridlist"` }
GetCheckinDataRequest 获取打卡记录数据请求
type GetCheckinDataResponse ¶
type GetCheckinDataResponse struct { util.CommonError CheckinData []*GetCheckinDataItem `json:"checkindata"` }
GetCheckinDataResponse 获取打卡记录数据响应
type GetCorpOptionResponse ¶
type GetCorpOptionResponse struct { util.CommonError Group []CorpOptionGroup `json:"group"` }
GetCorpOptionResponse 获取企业所有打卡规则响应
type GetDayDataResponse ¶
type GetDayDataResponse struct { util.CommonError Datas []DayDataItem `json:"datas"` }
GetDayDataResponse 获取打卡日报数据
type GetHardwareDataRequest ¶
type GetHardwareDataRequest struct { FilterType int64 `json:"filter_type"` StartTime int64 `json:"starttime"` EndTime int64 `json:"endtime"` UserIDList []string `json:"useridlist"` }
GetHardwareDataRequest 获取设备打卡数据请求
type GetHardwareDataResponse ¶
type GetHardwareDataResponse struct { util.CommonError CheckinData []HardwareCheckinData `json:"checkindata"` }
GetHardwareDataResponse 获取设备打卡数据响应
type GetMonthDataResponse ¶
type GetMonthDataResponse struct { util.CommonError Datas []MonthDataItem `json:"datas"` }
GetMonthDataResponse 获取打卡月报数据
type GetOptionRequest ¶
type GetOptionRequest struct { Datetime int64 `json:"datetime"` UserIDList []string `json:"useridlist"` }
GetOptionRequest 获取员工打卡规则请求
type GetOptionResponse ¶
type GetOptionResponse struct { util.CommonError Info []OptionInfo `json:"info"` }
GetOptionResponse 获取员工打卡规则响应
type GetScheduleListRequest ¶
type GetScheduleListRequest struct { StartTime int64 `json:"starttime"` EndTime int64 `json:"endtime"` UserIDList []string `json:"useridlist"` }
GetScheduleListRequest 获取打卡人员排班信息请求
type GetScheduleListResponse ¶
type GetScheduleListResponse struct { util.CommonError ScheduleList []ScheduleItem `json:"schedule_list"` }
GetScheduleListResponse 获取打卡人员排班信息响应
type GroupCheckinDate ¶
type GroupCheckinDate struct { Workdays []int64 `json:"workdays"` CheckinTime []GroupCheckinTime `json:"checkintime"` NoNeedOffWork bool `json:"noneed_offwork"` LimitAheadTime int64 `json:"limit_aheadtime"` FlexOnDutyTime int64 `json:"flex_on_duty_time"` FlexOffDutyTime int64 `json:"flex_off_duty_time"` }
GroupCheckinDate 打卡时间,当规则类型为排班时没有意义
type GroupCheckinTime ¶
type GroupCheckinTime struct { WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` }
GroupCheckinTime 工作日上下班打卡时间信息
type GroupOtInfo ¶
type GroupOtInfo struct { Type int64 `json:"type"` AllowOtWorkingDay bool `json:"allow_ot_workingday"` AllowOtNonWorkingDay bool `json:"allow_ot_nonworkingday"` OtCheckInfo OtCheckInfo `json:"otcheckinfo"` }
GroupOtInfo 加班信息
type HardwareCheckinData ¶
type HardwareCheckinData struct { UserID string `json:"userid"` CheckinTime int64 `json:"checkin_time"` DeviceSn string `json:"device_sn"` DeviceName string `json:"device_name"` }
HardwareCheckinData 设备打卡数据
type HolidayInfo ¶
type HolidayInfo struct { SpNumber string `json:"sp_number"` SpTitle SpTitle `json:"sp_title"` SpDescription SpDescription `json:"sp_description"` }
HolidayInfo 假勤相关信息
type LateRule ¶
type LateRule struct { AllowOffWorkAfterTime bool `json:"allow_offwork_after_time"` TimeRules []TimeRule `json:"timerules"` }
LateRule 晚走晚到时间规则信息
type LocInfos ¶
type LocInfos struct { Lat int64 `json:"lat"` Lng int64 `json:"lng"` LocTitle string `json:"loc_title"` LocDetail string `json:"loc_detail"` Distance int64 `json:"distance"` }
LocInfos 打卡地点-位置打卡信息
type MonthBaseInfo ¶
type MonthBaseInfo struct { RecordType int64 `json:"record_type"` Name string `json:"name"` NameEx string `json:"name_ex"` DepartsName string `json:"departs_name"` AcctID string `json:"acctid"` RuleInfo MonthRuleInfo `json:"rule_info"` }
MonthBaseInfo 基础信息
type MonthDataItem ¶
type MonthDataItem struct { BaseInfo MonthBaseInfo `json:"base_info"` SummaryInfo MonthSummaryInfo `json:"summary_info"` ExceptionInfos []ExceptionInfo `json:"exception_infos"` SpItems []SpItem `json:"sp_items"` OverWorkInfo OverWorkInfo `json:"overwork_info"` }
MonthDataItem 月报数据
type MonthRuleInfo ¶
MonthRuleInfo 打卡人员所属规则信息
type MonthSummaryInfo ¶
type MonthSummaryInfo struct { WorkDays int64 `json:"work_days"` ExceptDays int64 `json:"except_days"` RegularDays int64 `json:"regular_days"` RegularWorkSec int64 `json:"regular_work_sec"` StandardWorkSec int64 `json:"standard_work_sec"` }
MonthSummaryInfo 汇总信息
type OptionCheckinDate ¶
type OptionCheckinDate struct { Workdays []int64 `json:"workdays"` CheckinTime []GroupCheckinTime `json:"checkintime"` FlexTime int64 `json:"flex_time"` NoNeedOffWork bool `json:"noneed_offwork"` LimitAheadTime int64 `json:"limit_aheadtime"` FlexOnDutyTime int64 `json:"flex_on_duty_time"` FlexOffDutyTime int64 `json:"flex_off_duty_time"` }
OptionCheckinDate 打卡时间配置
type OptionGroup ¶
type OptionGroup struct { GroupType int64 `json:"grouptype"` GroupID int64 `json:"groupid"` GroupName string `json:"groupname"` CheckinDate []OptionCheckinDate `json:"checkindate"` SpeWorkdays []SpeWorkdays `json:"spe_workdays"` SpeOffDays []SpeOffDays `json:"spe_offdays"` SyncHolidays bool `json:"sync_holidays"` NeedPhoto bool `json:"need_photo"` WifiMacInfos []WifiMacInfos `json:"wifimac_infos"` NoteCanUseLocalPic bool `json:"note_can_use_local_pic"` AllowCheckinOffWorkday bool `json:"allow_checkin_offworkday"` AllowApplyOffWorkday bool `json:"allow_apply_offworkday"` LocInfos []LocInfos `json:"loc_infos"` ScheduleList []ScheduleList `json:"schedulelist"` BukaRestriction int64 `json:"buka_restriction"` }
OptionGroup 打卡规则相关信息
type OptionGroupBukaRemind ¶
type OptionGroupBukaRemind struct { OpenRemind bool `json:"open_remind"` BukaRemindDay int64 `json:"buka_remind_day"` BukaRemindMonth int64 `json:"buka_remind_month"` }
OptionGroupBukaRemind 补卡提醒
type OptionGroupCheckinTime ¶
type OptionGroupCheckinTime struct { TimeID int64 `json:"time_id"` WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` }
OptionGroupCheckinTime 特殊工作日的上下班打卡时间配置
type OptionGroupLateRule ¶
type OptionGroupLateRule struct { OffWorkAfterTime int64 `json:"offwork_after_time"` OnWorkFlexTime int64 `json:"onwork_flex_time"` AllowOffWorkAfterTime int64 `json:"allow_offwork_after_time"` TimeRules []OptionGroupTimeRule `json:"timerules"` }
OptionGroupLateRule 晚走晚到时间规则信息
type OptionGroupLocInfos ¶
type OptionGroupLocInfos struct { Lat int64 `json:"lat"` Lng int64 `json:"lng"` LocTitle string `json:"loc_title"` LocDetail string `json:"loc_detail"` Distance int64 `json:"distance"` }
OptionGroupLocInfos 地点信息
type OptionGroupOtInfoV2 ¶
type OptionGroupOtInfoV2 struct {
WorkdayConf OptionGroupWorkdayConf `json:"workdayconf"`
}
OptionGroupOtInfoV2 加班配置
type OptionGroupRange ¶
type OptionGroupRange struct { PartyID []string `json:"party_id"` UserID []string `json:"userid"` TagID []int64 `json:"tagid"` }
OptionGroupRange 人员信息
type OptionGroupReporterInfo ¶
type OptionGroupReporterInfo struct {
Reporters []OptionGroupReporters `json:"reporters"`
}
OptionGroupReporterInfo 汇报人
type OptionGroupReporters ¶
OptionGroupReporters 汇报对象
type OptionGroupRule ¶
type OptionGroupRule struct { GroupID int64 `json:"groupid,omitempty"` GroupType int64 `json:"grouptype"` GroupName string `json:"groupname"` CheckinDate []OptionGroupRuleCheckinDate `json:"checkindate,omitempty"` SpeWorkdays []OptionGroupSpeWorkdays `json:"spe_workdays,omitempty"` SpeOffDays []OptionGroupSpeOffDays `json:"spe_offdays,omitempty"` SyncHolidays bool `json:"sync_holidays,omitempty"` NeedPhoto bool `json:"need_photo,omitempty"` NoteCanUseLocalPic bool `json:"note_can_use_local_pic,omitempty"` WifiMacInfos []OptionGroupWifiMacInfos `json:"wifimac_infos,omitempty"` LocInfos []OptionGroupLocInfos `json:"loc_infos,omitempty"` AllowCheckinOffWorkday bool `json:"allow_checkin_offworkday,omitempty"` AllowApplyOffWorkday bool `json:"allow_apply_offworkday,omitempty"` Range []OptionGroupRange `json:"range"` WhiteUsers []string `json:"white_users,omitempty"` Type int64 `json:"type,omitempty"` ReporterInfo OptionGroupReporterInfo `json:"reporterinfo,omitempty"` AllowApplyBkCnt int64 `json:"allow_apply_bk_cnt,omitempty"` AllowApplyBkDayLimit int64 `json:"allow_apply_bk_day_limit,omitempty"` BukaLimitNextMonth int64 `json:"buka_limit_next_month,omitempty"` OptionOutRange int64 `json:"option_out_range,omitempty"` ScheduleList []OptionGroupScheduleList `json:"schedulelist,omitempty"` OffWorkIntervalTime int64 `json:"offwork_interval_time,omitempty"` UseFaceDetect bool `json:"use_face_detect,omitempty"` OpenFaceLiveDetect bool `json:"open_face_live_detect,omitempty"` OtInfoV2 OptionGroupOtInfoV2 `json:"ot_info_v2,omitempty"` SyncOutCheckin bool `json:"sync_out_checkin,omitempty"` BukaRemind OptionGroupBukaRemind `json:"buka_remind,omitempty"` BukaRestriction int64 `json:"buka_restriction,omitempty"` SpanDayTime int64 `json:"span_day_time,omitempty"` StandardWorkDuration int64 `json:"standard_work_duration,omitempty"` }
OptionGroupRule 打卡规则字段
type OptionGroupRuleCheckinDate ¶
type OptionGroupRuleCheckinDate struct { Workdays []int64 `json:"workdays"` CheckinTime []OptionGroupRuleCheckinTime `json:"checkintime"` FlexTime int64 `json:"flex_time"` AllowFlex bool `json:"allow_flex"` FlexOnDutyTime int64 `json:"flex_on_duty_time"` FlexOffDutyTime int64 `json:"flex_off_duty_time"` MaxAllowArriveEarly int64 `json:"max_allow_arrive_early"` MaxAllowArriveLate int64 `json:"max_allow_arrive_late"` LateRule OptionGroupLateRule `json:"late_rule"` }
OptionGroupRuleCheckinDate 固定时间上下班打卡时间
type OptionGroupRuleCheckinTime ¶
type OptionGroupRuleCheckinTime struct { TimeID int64 `json:"time_id"` WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` AllowRest bool `json:"allow_rest"` RestBeginTime int64 `json:"rest_begin_time"` RestEndTime int64 `json:"rest_end_time"` EarliestWorkSec int64 `json:"earliest_work_sec"` LatestWorkSec int64 `json:"latest_work_sec"` EarliestOffWorkSec int64 `json:"earliest_off_work_sec"` LatestOffWorkSec int64 `json:"latest_off_work_sec"` NoNeedCheckOn bool `json:"no_need_checkon"` NoNeedCheckOff bool `json:"no_need_checkoff"` }
OptionGroupRuleCheckinTime 工作日上下班打卡时间信息
type OptionGroupScheduleList ¶
type OptionGroupScheduleList struct { ScheduleID int64 `json:"schedule_id"` ScheduleName string `json:"schedule_name"` TimeSection []OptionGroupTimeSection `json:"time_section"` AllowFlex bool `json:"allow_flex"` FlexOnDutyTime int64 `json:"flex_on_duty_time"` FlexOffDutyTime int64 `json:"flex_off_duty_time"` LateRule OptionGroupLateRule `json:"late_rule"` MaxAllowArriveEarly int64 `json:"max_allow_arrive_early"` MaxAllowArriveLate int64 `json:"max_allow_arrive_late"` }
OptionGroupScheduleList 自定义排班规则所有排班
type OptionGroupSpeOffDays ¶
type OptionGroupSpeOffDays struct { Timestamp int64 `json:"timestamp"` Notes string `json:"notes"` Type int64 `json:"type"` BegTime int64 `json:"begtime"` EndTime int64 `json:"endtime"` }
OptionGroupSpeOffDays 特殊非工作日
type OptionGroupSpeWorkdays ¶
type OptionGroupSpeWorkdays struct { Timestamp int64 `json:"timestamp"` Notes string `json:"notes"` CheckinTime []OptionGroupCheckinTime `json:"checkintime"` Type int64 `json:"type"` BegTime int64 `json:"begtime"` EndTime int64 `json:"endtime"` }
OptionGroupSpeWorkdays 特殊工作日
type OptionGroupTimeRule ¶
type OptionGroupTimeRule struct { OffWorkAfterTime int64 `json:"offwork_after_time"` OnWorkFlexTime int64 `json:"onwork_flex_time"` }
OptionGroupTimeRule 晚走晚到时间规则
type OptionGroupTimeSection ¶
type OptionGroupTimeSection struct { TimeID int64 `json:"time_id"` WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` RestBeginTime int64 `json:"rest_begin_time"` RestEndTime int64 `json:"rest_end_time"` AllowRest bool `json:"allow_rest"` EarliestWorkSec int64 `json:"earliest_work_sec"` LatestWorkSec int64 `json:"latest_work_sec"` EarliestOffWorkSec int64 `json:"earliest_off_work_sec"` LatestOffWorkSec int64 `json:"latest_off_work_sec"` NoNeedCheckOn bool `json:"no_need_checkon"` NoNeedCheckOff bool `json:"no_need_checkoff"` }
OptionGroupTimeSection 班次上下班时段信息
type OptionGroupWifiMacInfos ¶
type OptionGroupWifiMacInfos struct { WifiName string `json:"wifiname"` WifiMac string `json:"wifimac"` }
OptionGroupWifiMacInfos WIFI信息
type OptionGroupWorkdayConf ¶
OptionGroupWorkdayConf 工作日加班配置
type OptionInfo ¶
type OptionInfo struct { UserID string `json:"userid"` Group OptionGroup `json:"group"` }
OptionInfo 打卡规则列表
type OtApplyInfo ¶
type OtApplyInfo struct { AllowOtWorkingDay bool `json:"allow_ot_workingday"` AllowOtNonWorkingDay bool `json:"allow_ot_nonworkingday"` Uiptime int64 `json:"uptime"` OtNonworkingDaySpanDayTime int64 `json:"ot_nonworkingday_spanday_time"` OtWorkingDayRestInfo OtRestInfo `json:"ot_workingday_restinfo"` OtNonWorkingDayRestInfo OtRestInfo `json:"ot_nonworkingday_restinfo"` }
OtApplyInfo 以加班申请核算打卡记录相关信息
type OtCheckInfo ¶
type OtCheckInfo struct { OtWorkingDayTimeStart int64 `json:"ot_workingday_time_start"` OtWorkingDayTimeMin int64 `json:"ot_workingday_time_min"` OtWorkingDayTimeMax int64 `json:"ot_workingday_time_max"` OtNonworkingDayTimeMin int64 `json:"ot_nonworkingday_time_min"` OtNonworkingDayTimeMax int64 `json:"ot_nonworkingday_time_max"` OtNonworkingDaySpanDayTime int64 `json:"ot_nonworkingday_spanday_time"` OtWorkingDayRestInfo OtRestInfo `json:"ot_workingday_restinfo"` OtNonWorkingDayRestInfo OtRestInfo `json:"ot_nonworkingday_restinfo"` }
OtCheckInfo 以打卡时间为准-加班时长计算规则信息
type OtInfo ¶
type OtInfo struct { OtStatus int64 `json:"ot_status"` OtDuration int64 `json:"ot_duration"` ExceptionDuration []uint64 `json:"exception_duration"` }
OtInfo 加班信息
type OtRestInfo ¶
type OtRestInfo struct { Type int64 `json:"type"` FixTimeRule FixTimeRule `json:"fix_time_rule"` CalOtTimeRule CalOtTimeRule `json:"cal_ottime_rule"` }
OtRestInfo 加班-休息扣除配置信息
type OverWorkInfo ¶
type OverWorkInfo struct { WorkdayOverSec int64 `json:"workday_over_sec"` HolidayOverSec int64 `json:"holidays_over_sec"` RestDayOverSec int64 `json:"restdays_over_sec"` }
OverWorkInfo 加班情况
type PunchCorrectionRequest ¶
type PunchCorrectionRequest struct { UserID string `json:"userid"` ScheduleDateTime int64 `json:"schedule_date_time"` ScheduleCheckinTime int64 `json:"schedule_checkin_time"` CheckinTime int64 `json:"checkin_time"` Remark string `json:"remark"` }
PunchCorrectionRequest 为打卡人员补卡请求
type Range ¶
type Range struct { PartyID []string `json:"partyid"` UserID []string `json:"userid"` TagID []int64 `json:"tagid"` }
Range 打卡人员信息
type ReporterInfo ¶
type ReporterInfo struct { Reporters []Reporters `json:"reporters"` UpdateTime int64 `json:"updatetime"` }
ReporterInfo 汇报对象信息
type Reporters ¶
type Reporters struct {
UserID string `json:"userid"`
}
Reporters 汇报对象,每个汇报人用userid表示
type Schedule ¶
type Schedule struct {
ScheduleList []ScheduleListItem `json:"scheduleList"`
}
Schedule 个人排班信息
type ScheduleInfo ¶
type ScheduleInfo struct { ScheduleID int64 `json:"schedule_id"` ScheduleName string `json:"schedule_name"` TimeSection []ScheduleTimeSection `json:"time_section"` }
ScheduleInfo 个人当日排班信息
type ScheduleItem ¶
type ScheduleItem struct { UserID string `json:"userid"` YearMonth int64 `json:"yearmonth"` GroupID int64 `json:"groupid"` GroupName string `json:"groupname"` Schedule Schedule `json:"schedule"` }
ScheduleItem 排班表信息
type ScheduleList ¶
type ScheduleList struct { ScheduleID int64 `json:"schedule_id"` ScheduleName string `json:"schedule_name"` TimeSection []TimeSection `json:"time_section"` LimitAheadTime int64 `json:"limit_aheadtime"` NoNeedOffWork bool `json:"noneed_offwork"` LimitOffTime int64 `json:"limit_offtime"` FlexOnDutyTime int64 `json:"flex_on_duty_time"` FlexOffDutyTime int64 `json:"flex_off_duty_time"` AllowFlex bool `json:"allow_flex"` LateRule LateRule `json:"late_rule"` MaxAllowArriveEarly int64 `json:"max_allow_arrive_early"` MaxAllowArriveLate int64 `json:"max_allow_arrive_late"` }
ScheduleList 排班信息列表
type ScheduleListItem ¶
type ScheduleListItem struct { Day int64 `json:"day"` ScheduleInfo ScheduleInfo `json:"schedule_info"` }
ScheduleListItem 个人排班表信息
type ScheduleTimeSection ¶
type ScheduleTimeSection struct { ID int64 `json:"id"` WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` }
ScheduleTimeSection 班次上下班时段信息
type SetScheduleListItem ¶
type SetScheduleListItem struct { UserID string `json:"userid"` Day int64 `json:"day"` ScheduleID int64 `json:"schedule_id"` }
SetScheduleListItem 排班表信息
type SetScheduleListRequest ¶
type SetScheduleListRequest struct { GroupID int64 `json:"groupid"` Items []SetScheduleListItem `json:"items"` YearMonth int64 `json:"yearmonth"` }
SetScheduleListRequest 为打卡人员排班请求
type SpDescription ¶
type SpDescription struct {
Data []SpData `json:"data"`
}
SpDescription 假勤信息摘要-描述信息
type SpItem ¶
type SpItem struct { Count int64 `json:"count"` Duration int64 `json:"duration"` TimeType int64 `json:"time_type"` Type int64 `json:"type"` VacationID int64 `json:"vacation_id"` Name string `json:"name"` }
SpItem 假勤统计信息
type SpeOffDays ¶
SpeOffDays 特殊日期-不用打卡日期信息
type SpeWorkdays ¶
type SpeWorkdays struct { Timestamp int64 `json:"timestamp"` Notes string `json:"notes"` CheckinTime []GroupCheckinTime `json:"checkintime"` }
SpeWorkdays 特殊日期-必须打卡日期信息
type TimeRule ¶
type TimeRule struct { OffWorkAfterTime int64 `json:"offwork_after_time"` OnWorkFlexTime int64 `json:"onwork_flex_time"` }
TimeRule 迟到规则时间
type TimeSection ¶
type TimeSection struct { TimeID int64 `json:"time_id"` WorkSec int64 `json:"work_sec"` OffWorkSec int64 `json:"off_work_sec"` RemindWorkSec int64 `json:"remind_work_sec"` RemindOffWorkSec int64 `json:"remind_off_work_sec"` RestBeginTime int64 `json:"rest_begin_time"` RestEndTime int64 `json:"rest_end_time"` AllowRest bool `json:"allow_rest"` }
TimeSection 班次上下班时段信息
type UpdateOptionRequest ¶
type UpdateOptionRequest struct { EffectiveNow bool `json:"effective_now,omitempty"` Group OptionGroupRule `json:"group,omitempty"` }
UpdateOptionRequest 修改打卡规则请求
type WifiMacInfos ¶
WifiMacInfos 打卡地点-WiFi打卡信息