MCPcopy
hub / github.com/silenceper/wechat / GetOption

Method GetOption

work/checkin/record.go:558–573  ·  view source on GitHub ↗

GetOption 获取员工打卡规则 see https://developer.work.weixin.qq.com/document/path/90263

(req *GetOptionRequest)

Source from the content-addressed store, hash-verified

556// GetOption 获取员工打卡规则
557// see https://developer.work.weixin.qq.com/document/path/90263
558func (r *Client) GetOption(req *GetOptionRequest) (*GetOptionResponse, error) {
559 var (
560 accessToken string
561 err error
562 )
563 if accessToken, err = r.GetAccessToken(); err != nil {
564 return nil, err
565 }
566 var response []byte
567 if response, err = util.PostJSON(fmt.Sprintf(getOptionURL, accessToken), req); err != nil {
568 return nil, err
569 }
570 result := &GetOptionResponse{}
571 err = util.DecodeWithError(response, result, "GetOption")
572 return result, err
573}
574
575// GetScheduleListRequest 获取打卡人员排班信息请求
576type GetScheduleListRequest struct {

Callers

nothing calls this directly

Calls 3

PostJSONFunction · 0.92
DecodeWithErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected