-
Notifications
You must be signed in to change notification settings - Fork 87
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 #93 from EasyAbp/fix-wechat-event-handling
Fix the WeChat event handling
- Loading branch information
Showing
19 changed files
with
163 additions
and
41 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
18 changes: 18 additions & 0 deletions
18
...Official/EasyAbp.Abp.WeChat.Official/RequestHandling/WeChatOfficialAppEventHandlerBase.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,18 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using EasyAbp.Abp.WeChat.Common.Models; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.Official.RequestHandling; | ||
|
||
public abstract class WeChatOfficialAppEventHandlerBase<THandler> : IWeChatOfficialAppEventHandler | ||
where THandler : IWeChatOfficialAppEventHandler | ||
{ | ||
public abstract string MsgType { get; } | ||
|
||
public abstract int Priority { get; } | ||
|
||
public Type HandlerType => typeof(THandler); | ||
|
||
public abstract Task<AppEventHandlingResult> HandleAsync(string appId, WeChatAppEventModel model); | ||
} |
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
19 changes: 19 additions & 0 deletions
19
...latform/ThirdPartyPlatform/RequestHandling/WeChatThirdPartyPlatformAppEventHandlerBase.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,19 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using EasyAbp.Abp.WeChat.Common.Models; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.OpenPlatform.ThirdPartyPlatform.RequestHandling; | ||
|
||
public abstract class WeChatThirdPartyPlatformAppEventHandlerBase<THandler> : IWeChatThirdPartyPlatformAppEventHandler | ||
where THandler : IWeChatThirdPartyPlatformAppEventHandler | ||
{ | ||
public abstract string MsgType { get; } | ||
|
||
public abstract int Priority { get; } | ||
|
||
public Type HandlerType => typeof(THandler); | ||
|
||
public abstract Task<AppEventHandlingResult> HandleAsync(string componentAppId, string authorizerAppId, | ||
WeChatAppEventModel model); | ||
} |
18 changes: 18 additions & 0 deletions
18
...atform/ThirdPartyPlatform/RequestHandling/WeChatThirdPartyPlatformAuthEventHandlerBase.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,18 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using EasyAbp.Abp.WeChat.Common.Models; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
using EasyAbp.Abp.WeChat.OpenPlatform.ThirdPartyPlatform.Models; | ||
|
||
namespace EasyAbp.Abp.WeChat.OpenPlatform.ThirdPartyPlatform.RequestHandling; | ||
|
||
public abstract class WeChatThirdPartyPlatformAuthEventHandlerBase<THandler> : IWeChatThirdPartyPlatformAuthEventHandler | ||
where THandler : IWeChatThirdPartyPlatformAuthEventHandler | ||
{ | ||
public abstract string InfoType { get; } | ||
|
||
public Type HandlerType => typeof(THandler); | ||
|
||
public abstract Task<WeChatRequestHandlingResult> HandleAsync(AuthEventModel model); | ||
} |
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