Skip to content

Commit c94a212

Browse files
committed
Merge branch 'release/1.0.0'
2 parents f47db18 + 126042b commit c94a212

18 files changed

+2501
-23
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
[![Go Report Card](https://goreportcard.com/badge/github.com/xen0n/go-workwx)](https://goreportcard.com/report/github.com/xen0n/go-workwx)
55
[![GoDoc](http://godoc.org/github.com/xen0n/go-workwx?status.svg)](http://godoc.org/github.com/xen0n/go-workwx)
66

7+
[**本项目需要您的帮助!**][maintainer-needed]
8+
9+
[maintainer-needed]: https://github.com/xen0n/go-workwx/issues/73
10+
711
```go
812
import (
913
"github.com/xen0n/go-workwx" // package workwx
@@ -60,11 +64,12 @@ in at least 2 of Qiniu's internal systems.
6064
## Supported APIs
6165

6266
* [x] 通讯录管理 (**部分支持**,见下)
63-
* [ ] 外部联系人管理
67+
* [ ] 客户联系
6468
* [ ] 应用管理
6569
* [x] 消息发送 (除修改群聊会话外全部支持)
6670
* [x] 消息接收 (**接口尚不稳定,极有可能做出不兼容改动,先不要用**)
6771
* [x] 素材管理 (**支持上传**, 见下)
72+
* [ ] OA
6873
* [ ] 会话内容存档
6974
* [x] 企业微信登录接口 (code2Session)
7075

@@ -109,13 +114,13 @@ in at least 2 of Qiniu's internal systems.
109114
</details>
110115

111116
<details>
112-
<summary>外部联系人管理 API</summary>
113-
117+
<summary>客户联系 API</summary>
114118

115119
* [x] 成员对外信息
116120
* [x] 客户管理
117121
- [x] 获取客户列表
118122
- [x] 获取客户详情
123+
- [x] 批量获取客户详情
119124
- [x] 修改客户备注信息
120125
* [x] 客户标签管理
121126
- [x] 管理企业标签
@@ -177,6 +182,7 @@ in at least 2 of Qiniu's internal systems.
177182
* [x] 图文消息
178183
* [x] 图文消息(mpnews)
179184
* [x] markdown消息
185+
* [x] 任务卡片消息
180186

181187
</details>
182188

@@ -190,6 +196,20 @@ in at least 2 of Qiniu's internal systems.
190196

191197
</details>
192198

199+
<details>
200+
<summary>OA API</summary>
201+
202+
* [ ] 审批
203+
- [x] 获取审批模板详情
204+
- [x] 提交审批申请
205+
- [x] 审批申请状态变化回调通知
206+
- [x] 批量获取审批单号
207+
- [x] 获取审批申请详情
208+
- [ ] 获取企业假期管理配置
209+
- [ ] 修改成员假期余额
210+
211+
</details>
212+
193213
<details>
194214
<summary>会话内容存档 API</summary>
195215

apis.md.go

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/apis.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Name|Request Type|Response Type|Access Token|URL|Doc
7575
:---|------------|-------------|------------|:--|:--
7676
`execExternalContactList`|`reqExternalContactList`|`respExternalContactList`|+|`GET /cgi-bin/externalcontact/list`|[获取客户列表](https://work.weixin.qq.com/api/doc/90000/90135/92113)
7777
`execExternalContactGet`|`reqExternalContactGet`|`respExternalContactGet`|+|`GET /cgi-bin/externalcontact/get`|[获取客户详情](https://work.weixin.qq.com/api/doc/90000/90135/92114)
78+
`execExternalContactBatchList`|`reqExternalContactBatchList`|`respExternalContactBatchList`|+|`POST /cgi-bin/externalcontact/batch/get_by_user`|[批量获取客户详情](https://work.weixin.qq.com/api/doc/90000/90135/92994)
7879
`execExternalContactRemark`|`reqExternalContactRemark`|`respExternalContactRemark`|+|`POST /cgi-bin/externalcontact/remark`|[修改客户备注信息](https://work.weixin.qq.com/api/doc/90000/90135/92115)
7980

8081
# 外部联系人管理 - 客户标签管理
@@ -149,7 +150,10 @@ Name|Request Type|Response Type|Access Token|URL|Doc
149150

150151
Name|Request Type|Response Type|Access Token|URL|Doc
151152
:---|------------|-------------|------------|:--|:--
152-
`execCorpGetOpenApprovalData`|TODO|TODO|+|`POST /cgi-bin/corp/getopenapprovaldata`|[查询自建应用审批单当前状态](https://work.weixin.qq.com/api/doc#90000/90135/90269)
153+
`execOAGetTemplateDetail`|`reqOAGetTemplateDetail`|`respOAGetTemplateDetail`|+|`POST /cgi-bin/oa/gettemplatedetail`|[获取审批模板详情](https://work.weixin.qq.com/api/doc/90000/90135/91982)
154+
`execOAApplyEvent`|`reqOAApplyEvent`|`respOAApplyEvent`|+|`POST /cgi-bin/oa/applyevent`|[提交审批申请](https://work.weixin.qq.com/api/doc/90000/90135/91853)
155+
`execOAGetApprovalInfo`|`reqOAGetApprovalInfo`|`respOAGetApprovalInfo`|+|`POST /cgi-bin/oa/getapprovalinfo`|[批量获取审批单号](https://work.weixin.qq.com/api/doc/90000/90135/91816)
156+
`execOAGetApprovalDetail`|`reqOAGetApprovalDetail`|`respOAGetApprovalDetail`|+|`POST /cgi-bin/oa/getapprovaldetail`|[获取审批申请详情](https://work.weixin.qq.com/api/doc/90000/90135/91983)
153157

154158
# 企业支付
155159

docs/external_contact.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,28 @@ const (
7474

7575
Name|JSON|Type|Doc
7676
:---|:---|:---|:--
77-
`Userid`|`userid`|`string`| 外部联系人的userid
77+
``|``|`FollowUserInfo`| 添加了外部联系人的企业成员
78+
`Tags`|`tags`|`[]FollowUserTag`| 该成员添加此外部联系人所打标签
79+
80+
### `FollowInfo` 企业成员客户跟进信息,可以参考获取客户详情,但标签信息只会返回企业标签的tag_id,个人标签将不再返回
81+
82+
Name|JSON|Type|Doc
83+
:---|:---|:---|:--
84+
``|``|`FollowUserInfo`| 添加了外部联系人的企业成员
85+
`TagID`|`tag_id`|`[]string`| 该成员添加此外部联系人所打标签
86+
87+
### `FollowUserInfo` 添加了外部联系人的企业成员
88+
89+
Name|JSON|Type|Doc
90+
:---|:---|:---|:--
91+
`UserID`|`userid`|`string`| 外部联系人的userid
7892
`Remark`|`remark`|`string`| 该成员对此外部联系人的备注
7993
`Description`|`description`|`string`| 该成员对此外部联系人的描述
8094
`Createtime`|`createtime`|`int`| 该成员添加此外部联系人的时间
81-
`Tags`|`tags`|`[]FollowUserTag`| 该成员添加此外部联系人所打标签
8295
`RemarkCorpName`|`remark_corp_name`|`string`| 该成员对此客户备注的企业名称
8396
`RemarkMobiles`|`remark_mobiles`|`[]string`| 该成员对此客户备注的手机号码,第三方不可获取
8497
`AddWay`|`add_way`|`FollowUserAddWay`| 该成员添加此客户的来源
98+
`OperUserID`|`oper_userid`|`string`| 发起添加的userid,如果成员主动添加,为成员的userid;如果是客户主动添加,则为客户的外部联系人userid;如果是内部成员共享/管理员分配,则为对应的成员/管理员userid
8599
`State`|`state`|`string`| 企业自定义的state参数,用于区分客户具体是通过哪个「联系我」添加,由企业通过[创建「联系我」方式](https://work.weixin.qq.com/api/doc/90000/90135/92114#15645/%E9%85%8D%E7%BD%AE%E5%AE%A2%E6%88%B7%E8%81%94%E7%B3%BB%E3%80%8C%E8%81%94%E7%B3%BB%E6%88%91%E3%80%8D%E6%96%B9%E5%BC%8F)指定
86100

87101
### `FollowUserTag` 该成员添加此外部联系人所打标签
@@ -92,7 +106,6 @@ Name|JSON|Type|Doc
92106
`TagName`|`tag_name`|`string`| 该成员添加此外部联系人所打标签名称
93107
`Type`|`type`|`FollowUserTagType`| 该成员添加此外部联系人所打标签类型, 1-企业设置, 2-用户自定义
94108

95-
96109
```go
97110
// FollowUserTagType 该成员添加此外部联系人所打标签类型
98111
//

0 commit comments

Comments
 (0)