Package com.bytedesk.wechat.work.group
Class WeChatWorkGroupServiceImpl
java.lang.Object
com.bytedesk.wechat.work.group.WeChatWorkGroupServiceImpl
- All Implemented Interfaces:
WeChatWorkGroupService
企业微信-客户群服务实现
最后更新:2025/01/13
- Author:
- kefux.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpRestService
private final WeChatWorkTokenService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription客户群opengid转换getGroupChatDetail
(WeChatWorkGroupRequest request) 获取客户群详情getGroupChatList
(WeChatWorkGroupRequest request) 获取客户群列表private WeChatWorkGroupResponse
parseGroupChatDetailResponse
(String result) 解析获取客户群详情的响应private WeChatWorkGroupResponse
parseGroupChatListResponse
(String result) 解析获取客户群列表的响应private WeChatWorkGroupResponse
parseOpenGidToChatIdResponse
(String result) 解析客户群OpenGID转换的响应
-
Field Details
-
restService
-
weChatWorkTokenService
-
-
Constructor Details
-
WeChatWorkGroupServiceImpl
public WeChatWorkGroupServiceImpl()
-
-
Method Details
-
getGroupChatList
Description copied from interface:WeChatWorkGroupService
获取客户群列表- Specified by:
getGroupChatList
in interfaceWeChatWorkGroupService
- Parameters:
request
- 请求参数,包含状态过滤、群主过滤和分页参数等- Returns:
- 客户群列表响应
-
getGroupChatDetail
Description copied from interface:WeChatWorkGroupService
获取客户群详情- Specified by:
getGroupChatDetail
in interfaceWeChatWorkGroupService
- Parameters:
request
- 请求参数,包含客户群ID和是否需要成员名字等- Returns:
- 客户群详情响应
-
convertOpenGidToChatId
Description copied from interface:WeChatWorkGroupService
客户群opengid转换- Specified by:
convertOpenGidToChatId
in interfaceWeChatWorkGroupService
- Parameters:
request
- 请求参数,包含小程序获取到的群ID(opengid)- Returns:
- 包含转换后客户群ID的响应
-
parseGroupChatListResponse
解析获取客户群列表的响应- Parameters:
result
- API返回的JSON字符串- Returns:
- 格式化后的响应对象
-
parseGroupChatDetailResponse
解析获取客户群详情的响应- Parameters:
result
- API返回的JSON字符串- Returns:
- 格式化后的响应对象
-
parseOpenGidToChatIdResponse
解析客户群OpenGID转换的响应- Parameters:
result
- API返回的JSON字符串- Returns:
- 格式化后的响应对象
-