ModKnowledgeGroup 知识库分组修改 see https://developer.work.weixin.qq.com/document/path/95971#%E4%BF%AE%E6%94%B9%E5%88%86%E7%BB%84
(req *ModKnowledgeGroupRequest)
| 86 | // ModKnowledgeGroup 知识库分组修改 |
| 87 | // see https://developer.work.weixin.qq.com/document/path/95971#%E4%BF%AE%E6%94%B9%E5%88%86%E7%BB%84 |
| 88 | func (r *Client) ModKnowledgeGroup(req *ModKnowledgeGroupRequest) error { |
| 89 | var ( |
| 90 | accessToken string |
| 91 | err error |
| 92 | ) |
| 93 | if accessToken, err = r.ctx.GetAccessToken(); err != nil { |
| 94 | return err |
| 95 | } |
| 96 | var response []byte |
| 97 | if response, err = util.PostJSON(fmt.Sprintf(modKnowledgeGroupURL, accessToken), req); err != nil { |
| 98 | return err |
| 99 | } |
| 100 | return util.DecodeWithCommonError(response, "ModKnowledgeGroup") |
| 101 | } |
| 102 | |
| 103 | // ListKnowledgeGroupRequest 知识库分组列表请求 |
| 104 | type ListKnowledgeGroupRequest struct { |
nothing calls this directly
no test coverage detected