docs: 提供微信商户平台模块的示例项目

This commit is contained in:
Fu Diwei
2021-07-30 14:09:25 +08:00
parent 0a5c049a53
commit b0c9187923
12 changed files with 284 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Options
{
public partial class WechatOptions : IOptions<WechatOptions>
{
WechatOptions IOptions<WechatOptions>.Value => this;
public WechatMerchant[] Merchants { get; set; } = Array.Empty<WechatMerchant>();
public string CallbackEntry { get; set; } = string.Empty;
}
partial class WechatOptions
{
public class WechatMerchant
{
public string MerchantId { get; set; } = string.Empty;
public string SecretV3 { get; set; } = string.Empty;
public string CertSerialNumber { get; set; } = string.Empty;
public string CertPrivateKey { get; set; } = string.Empty;
}
}
}