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)
| 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 |
| 392 | func (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 添加打卡记录请求 |
| 408 | type AddRecordRequest struct { |
nothing calls this directly
no test coverage detected