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

Method DelOption

work/checkin/checkin.go:392–405  ·  view source on GitHub ↗

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

(req *DelOptionRequest)

Source from the content-addressed store, hash-verified

390// DelOption 删除打卡规则
391// 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
392func (r *Client) DelOption(req *DelOptionRequest) error {
393 var (
394 accessToken string
395 err error
396 )
397 if accessToken, err = r.GetAccessToken(); err != nil {
398 return err
399 }
400 var response []byte
401 if response, err = util.PostJSON(fmt.Sprintf(delOptionURL, accessToken), req); err != nil {
402 return err
403 }
404 return util.DecodeWithCommonError(response, "DelOption")
405}
406
407// AddRecordRequest 添加打卡记录请求
408type AddRecordRequest struct {

Callers

nothing calls this directly

Calls 3

PostJSONFunction · 0.92
DecodeWithCommonErrorFunction · 0.92
GetAccessTokenMethod · 0.65

Tested by

no test coverage detected