Skip to content

Commit 658c2d3

Browse files
authored
Merge pull request #62 from bing-framework/dev_3.1
发布 2.2.6
2 parents ebac843 + f7161db commit 658c2d3

File tree

1,287 files changed

+76383
-77688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,287 files changed

+76383
-77688
lines changed

Bing.All.sln

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29911.84
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.3.32929.385
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01-framework", "01-framework", "{A3E29077-2385-4F4F-B2BB-01975E24979C}"
77
EndProject
@@ -86,10 +86,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Tests", "framework\tes
8686
EndProject
8787
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Datas.Test.Integration", "framework\tests\Bing.Datas.Test.Integration\Bing.Datas.Test.Integration.csproj", "{0F86BCCF-6A1D-41DD-A9C0-4B3BF8A840BF}"
8888
EndProject
89-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03-demo", "03-demo", "{2DABEEC3-E915-44D7-A4B4-50972CAF45FB}"
90-
EndProject
91-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Datas.SqlBuilder.Console", "framework\demo\Bing.Datas.SqlBuilder.Console\Bing.Datas.SqlBuilder.Console.csproj", "{77817263-DB2A-4500-86A5-1ADBE3318A73}"
92-
EndProject
9389
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Ddd.Domain", "framework\src\Bing.Ddd.Domain\Bing.Ddd.Domain.csproj", "{25107D91-1E7D-422C-8B03-B1C94EE3A1B5}"
9490
EndProject
9591
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Ddd.Application", "framework\src\Bing.Ddd.Application\Bing.Ddd.Application.csproj", "{CAC738F2-8F95-4940-90D2-76DABF403581}"
@@ -174,6 +170,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "props", "props", "{D77F42E0
174170
asset\props\misc.props = asset\props\misc.props
175171
asset\props\package.props = asset\props\package.props
176172
asset\props\sourcelink.env.props = asset\props\sourcelink.env.props
173+
asset\props\target.feature.props = asset\props\target.feature.props
177174
EndProjectSection
178175
EndProject
179176
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Admin.Data.FreeSQL", "modules\admin\src\Bing.Admin.Data.FreeSQL\Bing.Admin.Data.FreeSQL.csproj", "{05DFA67F-C861-48F9-BBD9-7777972A918F}"
@@ -263,7 +260,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution", "solution", "{B6
263260
version.props = version.props
264261
EndProjectSection
265262
EndProject
266-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bing.Uow", "framework\src\Bing.Uow\Bing.Uow.csproj", "{659C6450-6A39-44A3-A1A5-449ECAA1AFBE}"
263+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.Uow", "framework\src\Bing.Uow\Bing.Uow.csproj", "{659C6450-6A39-44A3-A1A5-449ECAA1AFBE}"
264+
EndProject
265+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bing.AspNetCore.Serilog", "framework\src\Bing.AspNetCore.Serilog\Bing.AspNetCore.Serilog.csproj", "{46718841-DF9E-41A4-AF87-C8E81AAE6F55}"
266+
EndProject
267+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bing.Authorization.Abstractions", "framework\src\Bing.Authorization.Abstractions\Bing.Authorization.Abstractions.csproj", "{4B50588D-013B-462C-AA1E-169BEDBA206E}"
267268
EndProject
268269
Global
269270
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -403,10 +404,6 @@ Global
403404
{0F86BCCF-6A1D-41DD-A9C0-4B3BF8A840BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
404405
{0F86BCCF-6A1D-41DD-A9C0-4B3BF8A840BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
405406
{0F86BCCF-6A1D-41DD-A9C0-4B3BF8A840BF}.Release|Any CPU.Build.0 = Release|Any CPU
406-
{77817263-DB2A-4500-86A5-1ADBE3318A73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
407-
{77817263-DB2A-4500-86A5-1ADBE3318A73}.Debug|Any CPU.Build.0 = Debug|Any CPU
408-
{77817263-DB2A-4500-86A5-1ADBE3318A73}.Release|Any CPU.ActiveCfg = Release|Any CPU
409-
{77817263-DB2A-4500-86A5-1ADBE3318A73}.Release|Any CPU.Build.0 = Release|Any CPU
410407
{25107D91-1E7D-422C-8B03-B1C94EE3A1B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
411408
{25107D91-1E7D-422C-8B03-B1C94EE3A1B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
412409
{25107D91-1E7D-422C-8B03-B1C94EE3A1B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -587,6 +584,14 @@ Global
587584
{659C6450-6A39-44A3-A1A5-449ECAA1AFBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
588585
{659C6450-6A39-44A3-A1A5-449ECAA1AFBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
589586
{659C6450-6A39-44A3-A1A5-449ECAA1AFBE}.Release|Any CPU.Build.0 = Release|Any CPU
587+
{46718841-DF9E-41A4-AF87-C8E81AAE6F55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
588+
{46718841-DF9E-41A4-AF87-C8E81AAE6F55}.Debug|Any CPU.Build.0 = Debug|Any CPU
589+
{46718841-DF9E-41A4-AF87-C8E81AAE6F55}.Release|Any CPU.ActiveCfg = Release|Any CPU
590+
{46718841-DF9E-41A4-AF87-C8E81AAE6F55}.Release|Any CPU.Build.0 = Release|Any CPU
591+
{4B50588D-013B-462C-AA1E-169BEDBA206E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
592+
{4B50588D-013B-462C-AA1E-169BEDBA206E}.Debug|Any CPU.Build.0 = Debug|Any CPU
593+
{4B50588D-013B-462C-AA1E-169BEDBA206E}.Release|Any CPU.ActiveCfg = Release|Any CPU
594+
{4B50588D-013B-462C-AA1E-169BEDBA206E}.Release|Any CPU.Build.0 = Release|Any CPU
590595
EndGlobalSection
591596
GlobalSection(SolutionProperties) = preSolution
592597
HideSolutionNode = FALSE
@@ -629,8 +634,6 @@ Global
629634
{A66F9341-005F-4FAC-BF93-D676329A34B4} = {5C7976B4-C243-41B9-8303-8E8FAE099D31}
630635
{58BE2219-6694-4630-85E6-7953A608A2D6} = {5C7976B4-C243-41B9-8303-8E8FAE099D31}
631636
{0F86BCCF-6A1D-41DD-A9C0-4B3BF8A840BF} = {5C7976B4-C243-41B9-8303-8E8FAE099D31}
632-
{2DABEEC3-E915-44D7-A4B4-50972CAF45FB} = {A3E29077-2385-4F4F-B2BB-01975E24979C}
633-
{77817263-DB2A-4500-86A5-1ADBE3318A73} = {2DABEEC3-E915-44D7-A4B4-50972CAF45FB}
634637
{25107D91-1E7D-422C-8B03-B1C94EE3A1B5} = {AED4D92B-5196-47E9-BD2C-84D4077F5A70}
635638
{CAC738F2-8F95-4940-90D2-76DABF403581} = {AED4D92B-5196-47E9-BD2C-84D4077F5A70}
636639
{577D3EA3-5342-4E0D-AE51-39CBEE217089} = {AED4D92B-5196-47E9-BD2C-84D4077F5A70}
@@ -702,6 +705,8 @@ Global
702705
{4A87040E-99A6-4A3F-BD6D-D2A3C3663012} = {2BA5C677-C0B9-458B-8A6D-D3E74B6F60EA}
703706
{B6E2B626-F561-4B47-8CFE-E8A305696522} = {2BA5C677-C0B9-458B-8A6D-D3E74B6F60EA}
704707
{659C6450-6A39-44A3-A1A5-449ECAA1AFBE} = {AED4D92B-5196-47E9-BD2C-84D4077F5A70}
708+
{46718841-DF9E-41A4-AF87-C8E81AAE6F55} = {052D4342-8B65-4836-A9B6-681A7812760E}
709+
{4B50588D-013B-462C-AA1E-169BEDBA206E} = {472FFE79-B8B1-41A1-91F2-CFA0F8406BC9}
705710
EndGlobalSection
706711
GlobalSection(ExtensibilityGlobals) = postSolution
707712
SolutionGuid = {C1202A0F-83CC-4602-BCE5-20CB640BCAD4}

asset/props/target.feature.props

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project>
2+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
3+
<ImplicitUsings>enable</ImplicitUsings>
4+
<Nullable>disable</Nullable>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
<Nullable>disable</Nullable>
10+
</PropertyGroup>
11+
12+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
13+
<ImplicitUsings>enable</ImplicitUsings>
14+
<Nullable>disable</Nullable>
15+
</PropertyGroup>
16+
17+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
18+
<ImplicitUsings>enable</ImplicitUsings>
19+
<Nullable>disable</Nullable>
20+
</PropertyGroup>
21+
22+
</Project>

common.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
2323
</PropertyGroup>
2424

25+
<Import Project="asset/props/target.feature.props"/>
26+
2527
<Import Project="asset/props/sourcelink.env.props"/>
2628

2729
<Import Project="asset/props/package.props"/>
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
using System.Threading.Tasks;
22
using Bing.Biz.Payments.Alipay.Parameters.Requests;
33

4-
namespace Bing.Biz.Payments.Alipay.Abstractions
4+
namespace Bing.Biz.Payments.Alipay.Abstractions;
5+
6+
/// <summary>
7+
/// 支付宝App支付服务
8+
/// </summary>
9+
public interface IAlipayAppPayService
510
{
611
/// <summary>
7-
/// 支付宝App支付服务
12+
/// 支付
813
/// </summary>
9-
public interface IAlipayAppPayService
10-
{
11-
/// <summary>
12-
/// 支付
13-
/// </summary>
14-
/// <param name="request">支付参数</param>
15-
Task<string> PayAsync(AlipayAppPayRequest request);
16-
}
17-
}
14+
/// <param name="request">支付参数</param>
15+
Task<string> PayAsync(AlipayAppPayRequest request);
16+
}

components/src/Bing.Biz.Payments/Alipay/Abstractions/IAlipayBarcodePayService.cs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
using Bing.Biz.Payments.Alipay.Parameters.Requests;
33
using Bing.Biz.Payments.Core;
44

5-
namespace Bing.Biz.Payments.Alipay.Abstractions
5+
namespace Bing.Biz.Payments.Alipay.Abstractions;
6+
7+
/// <summary>
8+
/// 支付宝条码支付服务
9+
/// </summary>
10+
public interface IAlipayBarcodePayService
611
{
712
/// <summary>
8-
/// 支付宝条码支付服务
13+
/// 支付
914
/// </summary>
10-
public interface IAlipayBarcodePayService
11-
{
12-
/// <summary>
13-
/// 支付
14-
/// </summary>
15-
/// <param name="request">条码支付参数</param>
16-
/// <returns></returns>
17-
Task<PayResult> PayAsync(AlipayBarcodePayRequest request);
18-
}
19-
}
15+
/// <param name="request">条码支付参数</param>
16+
/// <returns></returns>
17+
Task<PayResult> PayAsync(AlipayBarcodePayRequest request);
18+
}
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
using Bing.Biz.Payments.Core;
22

3-
namespace Bing.Biz.Payments.Alipay.Abstractions
3+
namespace Bing.Biz.Payments.Alipay.Abstractions;
4+
5+
/// <summary>
6+
/// 支付宝通知服务
7+
/// </summary>
8+
public interface IAlipayNotifyService : INotifyService
49
{
510
/// <summary>
6-
/// 支付宝通知服务
11+
/// 买家支付宝用户号
712
/// </summary>
8-
public interface IAlipayNotifyService : INotifyService
9-
{
10-
/// <summary>
11-
/// 买家支付宝用户号
12-
/// </summary>
13-
string BuyerId { get; }
14-
}
15-
}
13+
string BuyerId { get; }
14+
}
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
using System.Threading.Tasks;
22
using Bing.Biz.Payments.Alipay.Parameters.Requests;
33

4-
namespace Bing.Biz.Payments.Alipay.Abstractions
4+
namespace Bing.Biz.Payments.Alipay.Abstractions;
5+
6+
/// <summary>
7+
/// 支付宝电脑网站支付服务
8+
/// </summary>
9+
public interface IAlipayPagePayService
510
{
611
/// <summary>
7-
/// 支付宝电脑网站支付服务
12+
/// 支付,返回跳转地址
813
/// </summary>
9-
public interface IAlipayPagePayService
10-
{
11-
/// <summary>
12-
/// 支付,返回跳转地址
13-
/// </summary>
14-
/// <param name="request">支付宝电脑网站支付参数</param>
15-
/// <returns></returns>
16-
Task<string> PayAsync(AlipayPagePayRequest request);
14+
/// <param name="request">支付宝电脑网站支付参数</param>
15+
/// <returns></returns>
16+
Task<string> PayAsync(AlipayPagePayRequest request);
1717

18-
/// <summary>
19-
/// 支付,跳转到支付宝收银台
20-
/// </summary>
21-
/// <param name="request">支付宝电脑网址支付参数</param>
22-
/// <returns></returns>
23-
Task RedirectAsync(AlipayPagePayRequest request);
24-
}
25-
}
18+
/// <summary>
19+
/// 支付,跳转到支付宝收银台
20+
/// </summary>
21+
/// <param name="request">支付宝电脑网址支付参数</param>
22+
/// <returns></returns>
23+
Task RedirectAsync(AlipayPagePayRequest request);
24+
}
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
using System.Threading.Tasks;
22
using Bing.Biz.Payments.Alipay.Parameters.Requests;
33

4-
namespace Bing.Biz.Payments.Alipay.Abstractions
4+
namespace Bing.Biz.Payments.Alipay.Abstractions;
5+
6+
/// <summary>
7+
/// 支付宝二维码支付服务
8+
/// </summary>
9+
public interface IAlipayQrCodePayService
510
{
611
/// <summary>
7-
/// 支付宝二维码支付服务
12+
/// 支付
813
/// </summary>
9-
public interface IAlipayQrCodePayService
10-
{
11-
/// <summary>
12-
/// 支付
13-
/// </summary>
14-
/// <param name="request">支付参数</param>
15-
/// <returns></returns>
16-
Task<string> PayAsync(AlipayPrecreateRequest request);
17-
}
18-
}
14+
/// <param name="request">支付参数</param>
15+
/// <returns></returns>
16+
Task<string> PayAsync(AlipayPrecreateRequest request);
17+
}

components/src/Bing.Biz.Payments/Alipay/Abstractions/IAlipayReturnService.cs

Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,57 @@
22
using System.Threading.Tasks;
33
using Bing.Validation;
44

5-
namespace Bing.Biz.Payments.Alipay.Abstractions
5+
namespace Bing.Biz.Payments.Alipay.Abstractions;
6+
7+
/// <summary>
8+
/// 支付宝返回服务
9+
/// </summary>
10+
public interface IAlipayReturnService
611
{
712
/// <summary>
8-
/// 支付宝返回服务
9-
/// </summary>
10-
public interface IAlipayReturnService
11-
{
12-
/// <summary>
13-
/// 商户订单号
14-
/// </summary>
15-
string OrderId { get; }
16-
17-
/// <summary>
18-
/// 支付订单号
19-
/// </summary>
20-
string TradeNo { get; }
21-
22-
/// <summary>
23-
/// 支付金额
24-
/// </summary>
25-
decimal Money { get; }
26-
27-
/// <summary>
28-
/// 买家支付宝用户号
29-
/// </summary>
30-
string BuyerId { get; }
31-
32-
/// <summary>
33-
/// 获取参数
34-
/// </summary>
35-
/// <param name="name">参数名</param>
36-
/// <returns></returns>
37-
string GetParam(string name);
38-
39-
/// <summary>
40-
/// 获取参数
41-
/// </summary>
42-
/// <typeparam name="T">参数类型</typeparam>
43-
/// <param name="name">参数名</param>
44-
/// <returns></returns>
45-
T GetParam<T>(string name);
46-
47-
/// <summary>
48-
/// 获取参数集合
49-
/// </summary>
50-
/// <returns></returns>
51-
IDictionary<string, string> GetParams();
52-
53-
/// <summary>
54-
/// 验证
55-
/// </summary>
56-
/// <returns></returns>
57-
Task<ValidationResultCollection> ValidateAsync();
58-
}
59-
}
13+
/// 商户订单号
14+
/// </summary>
15+
string OrderId { get; }
16+
17+
/// <summary>
18+
/// 支付订单号
19+
/// </summary>
20+
string TradeNo { get; }
21+
22+
/// <summary>
23+
/// 支付金额
24+
/// </summary>
25+
decimal Money { get; }
26+
27+
/// <summary>
28+
/// 买家支付宝用户号
29+
/// </summary>
30+
string BuyerId { get; }
31+
32+
/// <summary>
33+
/// 获取参数
34+
/// </summary>
35+
/// <param name="name">参数名</param>
36+
/// <returns></returns>
37+
string GetParam(string name);
38+
39+
/// <summary>
40+
/// 获取参数
41+
/// </summary>
42+
/// <typeparam name="T">参数类型</typeparam>
43+
/// <param name="name">参数名</param>
44+
/// <returns></returns>
45+
T GetParam<T>(string name);
46+
47+
/// <summary>
48+
/// 获取参数集合
49+
/// </summary>
50+
/// <returns></returns>
51+
IDictionary<string, string> GetParams();
52+
53+
/// <summary>
54+
/// 验证
55+
/// </summary>
56+
/// <returns></returns>
57+
Task<ValidationResultCollection> ValidateAsync();
58+
}

0 commit comments

Comments
 (0)