Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 获取员工创建的客户(外部)群列表及客户(外部)群详细 #113

Merged
merged 3 commits into from Oct 10, 2022

Conversation

tiger1103
Copy link
Contributor

ReqChatListOwnerFilter 群主过滤

Name JSON Type Doc
UserIDList userid_list []string 用户ID列表。最多100个

ReqChatList 获取客户群列表参数

Name JSON Type Doc
StatusFilter status_filter int64 客户群跟进状态过滤
OwnerFilter owner_filter ReqChatListOwnerFilter 群主过滤
Cursor cursor string 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
Limit limit int64 分页,预期请求的数据量,取值范围 1 ~ 1000

RespGroupChatList 客户群列表数据

Name JSON Type Doc
ChatID chat_id string 客户群ID
Status status int64 客户群跟进状态 0 - 跟进人正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成

RespAppchatList 客户群列表结果

Name JSON Type Doc
GroupChatList group_chat_list []RespGroupChatList 客户群列表
NextCursor next_cursor string 分页游标

ChatMemberList 客户群成员列表

Name JSON Type Doc
UserID userid string 群成员ID
Type type int64 群成员类型 1 - 企业成员 2 - 外部联系人
UnionID unionid string 微信unionid
JoinTime join_time int64 入群时间
JoinScene join_scene int64 入群方式。1 - 由群成员邀请入群(直接邀请入群)2 - 由群成员邀请入群(通过邀请链接入群)3 - 通过扫描群二维码入群
Invitor invitor ChatMemberListInvitor 邀请者。目前仅当是由本企业内部成员邀请入群时会返回该值
GroupNickname group_nickname string 在群里的昵称
Name name string 在群里名字

ChatMemberListInvitor 入群邀请者

Name JSON Type Doc
UserID userid string 邀请者ID

ChatAdminList 客户群管理员列表

Name JSON Type Doc
UserID userid string 管理员ID

RespAppChatInfo 客户群详情

Name JSON Type Doc
ChatID chat_id string 客户群ID
Name name string 客户群名称
Owner owner string 群主ID
CreateTime create_time int64 群创建时间
Notice notice string 群公告
MemberList member_list []*ChatMemberList 群成员列表
AdminList admin_list []*ChatAdminList 群管理员列表
// ChatNeedName 是否需要返回群成员的名字 0-不返回;1-返回。默认不返回
const ChatNeedName int64 = 1

Copy link
Owner

@xen0n xen0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conventional commit message 约定里,表示功能变更的标签不是 add:,是 feat:,请 rebase 改一下

return resp.RespAppchatList, nil
}

func (c *WorkwxApp) GetAppChatInfo(chatId string) (*RespAppChatInfo, error) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要不要加个文档注释

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 已修改

@tiger1103 tiger1103 force-pushed the develop branch 2 times, most recently from 9d5516d to 63b67ec Compare October 10, 2022 08:05
@tiger1103 tiger1103 changed the title add:获取员工创建的客户(外部)群列表及客户(外部)群详细 feat: 获取员工创建的客户(外部)群列表及客户(外部)群详细 Oct 10, 2022
@xen0n
Copy link
Owner

xen0n commented Oct 10, 2022

bors r+

Thanks!

@bors
Copy link
Contributor

bors bot commented Oct 10, 2022

Build succeeded:

@bors bors bot merged commit 2b77160 into xen0n:develop Oct 10, 2022
@xen0n
Copy link
Owner

xen0n commented Oct 10, 2022

@tiger1103 需要给你打个 tag 么

@tiger1103
Copy link
Contributor Author

暂时不用,我的项目功能还没做完,后续若差其它接口我继续补充一下。

@xen0n
Copy link
Owner

xen0n commented Oct 10, 2022

暂时不用,我的项目功能还没做完,后续若差其它接口我继续补充一下。

好的,有代码随时提 ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants