-
Notifications
You must be signed in to change notification settings - Fork 82
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 #50 from EasyAbp/refactory-3rd-platform-event-hand…
…ling-service Refactor `IWeChatThirdPartyPlatformEventRequestHandlingService`
- Loading branch information
Showing
11 changed files
with
76 additions
and
21 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
5 changes: 4 additions & 1 deletion
5
...equestHandling/WeChatEventRequestModel.cs → ...tHandling/Dtos/WeChatEventRequestModel.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
17 changes: 17 additions & 0 deletions
17
...tform/EasyAbp.Abp.WeChat.OpenPlatform.Abstractions/RequestHandling/Dtos/NotifyAppInput.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,17 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.OpenPlatform.RequestHandling.Dtos; | ||
|
||
[Serializable] | ||
public class NotifyAppInput | ||
{ | ||
public string ComponentAppId { get; set; } | ||
|
||
[Required] | ||
public string AuthorizerAppId { get; set; } | ||
|
||
[Required] | ||
public WeChatEventRequestModel EventRequest { get; set; } | ||
} |
14 changes: 14 additions & 0 deletions
14
...form/EasyAbp.Abp.WeChat.OpenPlatform.Abstractions/RequestHandling/Dtos/NotifyAuthInput.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,14 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.OpenPlatform.RequestHandling.Dtos; | ||
|
||
[Serializable] | ||
public class NotifyAuthInput | ||
{ | ||
public string ComponentAppId { get; set; } | ||
|
||
[Required] | ||
public WeChatEventRequestModel EventRequest { get; set; } | ||
} |
7 changes: 4 additions & 3 deletions
7
...form.Abstractions/RequestHandling/IWeChatThirdPartyPlatformEventRequestHandlingService.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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using System.Threading.Tasks; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling.Dtos; | ||
using EasyAbp.Abp.WeChat.OpenPlatform.RequestHandling.Dtos; | ||
using JetBrains.Annotations; | ||
|
||
namespace EasyAbp.Abp.WeChat.OpenPlatform.RequestHandling; | ||
|
||
public interface IWeChatThirdPartyPlatformEventRequestHandlingService | ||
{ | ||
Task<WeChatRequestHandlingResult> NotifyAuthAsync([CanBeNull] string componentAppId, WeChatEventRequestModel request); | ||
Task<WeChatRequestHandlingResult> NotifyAuthAsync(NotifyAuthInput input); | ||
|
||
Task<WeChatRequestHandlingResult> NotifyAppAsync([CanBeNull] string componentAppId, [NotNull] string authorizerAppId, | ||
WeChatEventRequestModel request); | ||
Task<WeChatRequestHandlingResult> NotifyAppAsync(NotifyAppInput input); | ||
} |
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
4 changes: 3 additions & 1 deletion
4
...yAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/GetJsSdkWeChatPayParametersInput.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
2 changes: 2 additions & 0 deletions
2
...Abp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/GetJsSdkWeChatPayParametersResult.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
4 changes: 3 additions & 1 deletion
4
src/Pay/EasyAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/PaidNotifyInput.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
4 changes: 3 additions & 1 deletion
4
src/Pay/EasyAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/RefundNotifyInput.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