制作微信支付和支付宝支付后台管理及业务处理

This commit is contained in:
jianweie
2023-04-24 17:31:29 +08:00
parent fa6db21b2c
commit 6909aa57a1
33 changed files with 4652 additions and 253 deletions

View File

@@ -0,0 +1,212 @@
/***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* Email: jianweie@163.com
* CreateTime: 2023/4/20 23:33:03
* Description: 暂无
***********************************************************************/
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace CoreCms.Net.Model.Entities
{
/// <summary>
/// 支付宝支付配置
/// </summary>
public partial class CoreCmsAlipayConfig
{
/// <summary>
/// 构造函数
/// </summary>
public CoreCmsAlipayConfig()
{
}
/// <summary>
/// 序列
/// </summary>
[Display(Name = "序列")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 id { get; set; }
/// <summary>
/// 支付宝开放平台AppId
/// </summary>
[Display(Name = "支付宝开放平台AppId")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String appId { get; set; }
/// <summary>
/// 支付宝公钥
/// </summary>
[Display(Name = "支付宝公钥")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:500,ErrorMessage = "{0}不能超过{1}字")]
public System.String publicKey { get; set; }
/// <summary>
/// 应用私钥
/// </summary>
[Display(Name = "应用私钥")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:2000,ErrorMessage = "{0}不能超过{1}字")]
public System.String privateKey { get; set; }
/// <summary>
/// 服务网关地址
/// </summary>
[Display(Name = "服务网关地址")]
[StringLength(maximumLength:100,ErrorMessage = "{0}不能超过{1}字")]
public System.String serverUrl { get; set; }
/// <summary>
/// 签名类型
/// </summary>
[Display(Name = "签名类型")]
[StringLength(maximumLength:10,ErrorMessage = "{0}不能超过{1}字")]
public System.String signType { get; set; }
/// <summary>
/// 应用公钥证书
/// </summary>
[Display(Name = "应用公钥证书")]
[StringLength(maximumLength:5000,ErrorMessage = "{0}不能超过{1}字")]
public System.String appPublicCert { get; set; }
/// <summary>
/// 支付宝公钥证书
/// </summary>
[Display(Name = "支付宝公钥证书")]
[StringLength(maximumLength:5000,ErrorMessage = "{0}不能超过{1}字")]
public System.String alipayPublicCert { get; set; }
/// <summary>
/// 支付宝根证书
/// </summary>
[Display(Name = "支付宝根证书")]
[StringLength(maximumLength:5000,ErrorMessage = "{0}不能超过{1}字")]
public System.String alipayRootCert { get; set; }
/// <summary>
/// 应用类型
/// </summary>
[Display(Name = "应用类型")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:10,ErrorMessage = "{0}不能超过{1}字")]
public System.String appType { get; set; }
/// <summary>
/// 支付宝支付回调通知
/// </summary>
[Display(Name = "支付宝支付回调通知")]
[StringLength(maximumLength:500,ErrorMessage = "{0}不能超过{1}字")]
public System.String notifyUrl { get; set; }
/// <summary>
/// 支付宝退款回调
/// </summary>
[Display(Name = "支付宝退款回调")]
[StringLength(maximumLength:500,ErrorMessage = "{0}不能超过{1}字")]
public System.String refundUrl { get; set; }
/// <summary>
/// 支付跳转地址
/// </summary>
[Display(Name = "支付跳转地址")]
[StringLength(maximumLength:500,ErrorMessage = "{0}不能超过{1}字")]
public System.String jumpUrl { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Display(Name = "是否启用")]
public System.Boolean isEnable { get; set; }
/// <summary>
/// 当前多端默认
/// </summary>
[Display(Name = "当前多端默认")]
public System.Boolean isDefault { get; set; }
}
}

View File

@@ -0,0 +1,212 @@
/***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* Email: jianweie@163.com
* CreateTime: 2023/4/22 23:40:15
* Description: 暂无
***********************************************************************/
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace CoreCms.Net.Model.Entities
{
/// <summary>
/// 微信支付配置
/// </summary>
public partial class CoreCmsWeChatPayConfig
{
/// <summary>
/// 构造函数
/// </summary>
public CoreCmsWeChatPayConfig()
{
}
/// <summary>
/// 序列
/// </summary>
[Display(Name = "序列")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 id { get; set; }
/// <summary>
/// 应用号
/// </summary>
[Display(Name = "应用号")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String appId { get; set; }
/// <summary>
/// 商户号
/// </summary>
[Display(Name = "商户号")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String mchId { get; set; }
/// <summary>
/// API秘钥
/// </summary>
[Display(Name = "API秘钥")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String apiKey { get; set; }
/// <summary>
/// APIv3密钥
/// </summary>
[Display(Name = "APIv3密钥")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String apiV3Key { get; set; }
/// <summary>
/// p12证书base64
/// </summary>
[Display(Name = "p12证书base64")]
[StringLength(maximumLength:8000,ErrorMessage = "{0}不能超过{1}字")]
public System.String certificate { get; set; }
/// <summary>
/// RSA公钥
/// </summary>
[Display(Name = "RSA公钥")]
[StringLength(maximumLength:1000,ErrorMessage = "{0}不能超过{1}字")]
public System.String rsaPublicKey { get; set; }
/// <summary>
/// 子商户应用号
/// </summary>
[Display(Name = "子商户应用号")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String subAppId { get; set; }
/// <summary>
/// 子商户号
/// </summary>
[Display(Name = "子商户号")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String subMchId { get; set; }
/// <summary>
/// 支付回调通知
/// </summary>
[Display(Name = "支付回调通知")]
[StringLength(maximumLength:200,ErrorMessage = "{0}不能超过{1}字")]
public System.String notifyUrl { get; set; }
/// <summary>
/// 退款回调
/// </summary>
[Display(Name = "退款回调")]
[StringLength(maximumLength:200,ErrorMessage = "{0}不能超过{1}字")]
public System.String refundUrl { get; set; }
/// <summary>
/// 跳转地址
/// </summary>
[Display(Name = "跳转地址")]
[StringLength(maximumLength:200,ErrorMessage = "{0}不能超过{1}字")]
public System.String jumpUrl { get; set; }
/// <summary>
/// 是否开启
/// </summary>
[Display(Name = "是否开启")]
[Required(ErrorMessage = "请输入{0}")]
public System.Boolean isEnable { get; set; }
/// <summary>
/// 是否本类默认
/// </summary>
[Display(Name = "是否本类默认")]
[Required(ErrorMessage = "请输入{0}")]
public System.Boolean isDefault { get; set; }
/// <summary>
/// 应用类型
/// </summary>
[Display(Name = "应用类型")]
[StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
public System.String appType { get; set; }
}
}