Documentation
¶
Index ¶
- type Client
- func (comp *Client) AddCheckInUserFace(ctx context.Context, userID string, userFace string) (*response2.ResponseWork, error)
- func (comp *Client) AddCheckinOption(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
- func (comp *Client) ApprovalTemplate(ctx context.Context, templateID string) (*response.ResponseApprovalTemplate, error)
- func (comp *Client) CreateApproval(ctx context.Context, data *power.HashMap) (*response.ResponseApprovalCreate, error)
- func (comp *Client) DelCheckinOption(ctx context.Context, groupId int, effectiveNow bool) (*response2.ResponseWork, error)
- func (comp *Client) GetApprovalData(ctx context.Context, startTime int, endTime int, nextNumber int) (*response.ResponseApprovalGetData, error)
- func (comp *Client) GetApprovalDetail(ctx context.Context, number int) (*response.ResponseApprovalDetail, error)
- func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor int, size int, ...) (*response.ResponseApprovalNoList, error)
- func (comp *Client) GetCheckInMonthData(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInDatas, error)
- func (comp *Client) GetCheckInOption(ctx context.Context, datetime int, userList []string) (*response.ResponseCheckInRules, error)
- func (comp *Client) GetCheckInScheduleList(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInSchedulist, error)
- func (comp *Client) GetCheckinData(ctx context.Context, recordType int, startTime int, endTime int, ...) (*response.ResponseCheckInRecords, error)
- func (comp *Client) GetCheckinDayData(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInDatas, error)
- func (comp *Client) GetCorpCheckInOption(ctx context.Context) (*response.ResponseCorpCheckInRules, error)
- func (comp *Client) GetCorpConfig(ctx context.Context) (*response.ResponseCorpVacationGetConfig, error)
- func (comp *Client) GetUserVacationQuota(ctx context.Context, userID string) (*response.ResponseCorpVacationGetQuota, error)
- func (comp *Client) SetCheckInScheduleList(ctx context.Context, options *request.RequestCheckInSetScheduleList) (*response2.ResponseWork, error)
- func (comp *Client) SetOneUserQuota(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
- func (comp *Client) UpdateCheckinOption(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func (*Client) AddCheckInUserFace ¶
func (comp *Client) AddCheckInUserFace(ctx context.Context, userID string, userFace string) (*response2.ResponseWork, error)
录入打卡人员人脸信息 https://developer.work.weixin.qq.com/document/path/93378
func (*Client) AddCheckinOption ¶ added in v3.1.18
func (comp *Client) AddCheckinOption(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
创建打卡规则 https://developer.work.weixin.qq.com/document/path/98041#创建打卡规则
func (*Client) ApprovalTemplate ¶
func (comp *Client) ApprovalTemplate(ctx context.Context, templateID string) (*response.ResponseApprovalTemplate, error)
获取审批模板详情 https://developer.work.weixin.qq.com/document/path/91982
func (*Client) CreateApproval ¶
func (comp *Client) CreateApproval(ctx context.Context, data *power.HashMap) (*response.ResponseApprovalCreate, error)
提交审批申请 https://developer.work.weixin.qq.com/document/path/91853
func (*Client) DelCheckinOption ¶ added in v3.1.18
func (comp *Client) DelCheckinOption(ctx context.Context, groupId int, effectiveNow bool) (*response2.ResponseWork, error)
删除打卡规则 https://developer.work.weixin.qq.com/document/path/98041#删除打卡规则
func (*Client) GetApprovalData ¶
func (comp *Client) GetApprovalData(ctx context.Context, startTime int, endTime int, nextNumber int) (*response.ResponseApprovalGetData, error)
获取审批数据(旧) https://developer.work.weixin.qq.com/document/path/91530
func (*Client) GetApprovalDetail ¶
func (comp *Client) GetApprovalDetail(ctx context.Context, number int) (*response.ResponseApprovalDetail, error)
获取审批申请详情 https://developer.work.weixin.qq.com/document/path/91983
func (*Client) GetApprovalInfo ¶
func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor int, size int, filters []*object.HashMap) (*response.ResponseApprovalNoList, error)
批量获取审批单号 https://developer.work.weixin.qq.com/document/path/91816
func (*Client) GetCheckInMonthData ¶
func (comp *Client) GetCheckInMonthData(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInDatas, error)
获取打卡月报数据 https://developer.work.weixin.qq.com/document/path/93387
func (*Client) GetCheckInOption ¶
func (comp *Client) GetCheckInOption(ctx context.Context, datetime int, userList []string) (*response.ResponseCheckInRules, error)
获取员工打卡规则 https://developer.work.weixin.qq.com/document/path/90263
func (*Client) GetCheckInScheduleList ¶
func (comp *Client) GetCheckInScheduleList(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInSchedulist, error)
获取打卡人员排班信息 https://developer.work.weixin.qq.com/document/path/93380
func (*Client) GetCheckinData ¶
func (comp *Client) GetCheckinData(ctx context.Context, recordType int, startTime int, endTime int, userList []string) (*response.ResponseCheckInRecords, error)
获取打卡记录数据 https://developer.work.weixin.qq.com/document/path/90262
func (*Client) GetCheckinDayData ¶
func (comp *Client) GetCheckinDayData(ctx context.Context, startTime int, endTime int, userIDs []string) (*response.ResponseCheckInDatas, error)
获取打卡日报数据 https://developer.work.weixin.qq.com/document/path/93374
func (*Client) GetCorpCheckInOption ¶
func (comp *Client) GetCorpCheckInOption(ctx context.Context) (*response.ResponseCorpCheckInRules, error)
获取企业所有打卡规则 https://developer.work.weixin.qq.com/document/path/93384
func (*Client) GetCorpConfig ¶
func (comp *Client) GetCorpConfig(ctx context.Context) (*response.ResponseCorpVacationGetConfig, error)
获取企业假期管理配置 https://developer.work.weixin.qq.com/document/path/93375
func (*Client) GetUserVacationQuota ¶
func (comp *Client) GetUserVacationQuota(ctx context.Context, userID string) (*response.ResponseCorpVacationGetQuota, error)
获取成员假期余额 https://developer.work.weixin.qq.com/document/path/93376
func (*Client) SetCheckInScheduleList ¶
func (comp *Client) SetCheckInScheduleList(ctx context.Context, options *request.RequestCheckInSetScheduleList) (*response2.ResponseWork, error)
为打卡人员排班 https://developer.work.weixin.qq.com/document/path/93385
func (*Client) SetOneUserQuota ¶
func (comp *Client) SetOneUserQuota(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
修改成员假期余额 https://developer.work.weixin.qq.com/document/path/94213
func (*Client) UpdateCheckinOption ¶ added in v3.1.18
func (comp *Client) UpdateCheckinOption(ctx context.Context, data *object.HashMap) (*response2.ResponseWork, error)
修改打卡规则 https://developer.work.weixin.qq.com/document/path/98041#修改打卡规则