-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #881 from colinin/Integrated-WeCom
WeCom integration
- Loading branch information
Showing
102 changed files
with
2,366 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...bp.WeChat.Work.Application/LINGYUN/Abp/WeChat/Work/Message/WeChatWorkMessageAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Authorize/WeChatWorkAuthorizeGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
.../wechat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Chat/IWeChatWorkAppChatManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using LINGYUN.Abp.WeChat.Work.Chat.Request; | ||
using LINGYUN.Abp.WeChat.Work.Chat.Response; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace LINGYUN.Abp.WeChat.Work.Chat; | ||
/// <summary> | ||
/// 群聊操作接口 | ||
/// </summary> | ||
/// <remarks> | ||
/// 参考:https://developer.work.weixin.qq.com/document/path/90244 | ||
/// </remarks> | ||
public interface IWeChatWorkAppChatManager | ||
{ | ||
/// <summary> | ||
/// 创建群聊会话 | ||
/// </summary> | ||
/// <remarks> | ||
/// 参考:https://developer.work.weixin.qq.com/document/path/90245 | ||
/// </remarks> | ||
Task<WeChatWorkAppChatCreateResponse> CreateAsync( | ||
WeChatWorkAppChatCreateRequest request, | ||
CancellationToken cancellationToken = default); | ||
/// <summary> | ||
/// 修改群聊会话 | ||
/// </summary> | ||
/// <remarks> | ||
/// 参考:https://developer.work.weixin.qq.com/document/path/98913 | ||
/// </remarks> | ||
Task<WeChatWorkResponse> UpdateAsync( | ||
WeChatWorkAppChatUpdateRequest request, | ||
CancellationToken cancellationToken = default); | ||
/// <summary> | ||
/// 获取群聊会话 | ||
/// </summary> | ||
/// <remarks> | ||
/// 参考:https://developer.work.weixin.qq.com/document/path/98914 | ||
/// </remarks> | ||
Task<WeChatWorkAppChatInfoResponse> GetAsync( | ||
string agentId, | ||
string chatId, | ||
CancellationToken cancellationToken = default); | ||
} |
32 changes: 32 additions & 0 deletions
32
...chat/LINGYUN.Abp.WeChat.Work/LINGYUN/Abp/WeChat/Work/Chat/Models/WeChatWorkAppChatInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace LINGYUN.Abp.WeChat.Work.Chat.Models; | ||
public class WeChatWorkAppChatInfo | ||
{ | ||
/// <summary> | ||
/// 群聊名 | ||
/// </summary> | ||
[JsonProperty("name")] | ||
[JsonPropertyName("name")] | ||
public virtual string Name { get; set; } | ||
/// <summary> | ||
/// 群主id | ||
/// </summary> | ||
[JsonProperty("owner")] | ||
[JsonPropertyName("owner")] | ||
public virtual string Owner { get; set; } | ||
/// <summary> | ||
/// 群成员id列表 | ||
/// </summary> | ||
[JsonProperty("userlist")] | ||
[JsonPropertyName("userlist")] | ||
public virtual List<string> Users { get; set; } | ||
/// <summary> | ||
/// 群聊唯一标志 | ||
/// </summary> | ||
[JsonProperty("chatid")] | ||
[JsonPropertyName("chatid")] | ||
public virtual string ChatId { get; set; } | ||
} |
Oops, something went wrong.