zhaojs
2023-09-15 fc13938ff90213060532d99a600dea4a84456885
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
 
namespace Operater.DTO.Sms
{
    public class GetOpenIdRequest
    {
 
        [Required(ErrorMessage = "Code不能为空")]
        public string Code { get; set; }
    }
 
    public class GzhGetOauth2TokenResponse
    {
        public int errcode { get; set; }
        public string errmsg { get; set; }
        public string access_token { get; set; }
        public long expires_in { get; set; }
        public string refresh_token { get; set; }
        public string openid { get; set; }
        public string scope { get; set; }
        public string is_snapshotuser { get; set; }
        public string unionid { get; set; }
    }
 
    public class GetPrepayInfoRequest
    {
        /// <summary>
        /// 充值包id
        /// </summary>
        public string PackageId { get; set; }
    }
 
    public class GetPrepayInfoResponse
    {
        public string AppId { get; set; }
 
        public string Mchid { get; set; }
 
        public string Description { get; set; }
 
        public string OutTradeNo { get; set; }
 
        public string NotifyUrl { get; set; }
 
        /// <summary>
        /// 订单总金额,单位为分
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// CNY:人民币,境内商户号仅支持人民币。
        /// </summary>
        public string Currency { get; set; }
        /// <summary>
        /// 用户在直连商户appid下的唯一标识。 下单前需获取到用户的Openid
        /// </summary>
        public string Openid { get; set; }
    }
 
    public class GetCreatePayInfoRequest
    {
 
        [Required(ErrorMessage = "PackageId不能为空")]
        public string PackageId { get; set; }
 
        [Required(ErrorMessage = "OpenId不能为空")]
        public string OpenId { get; set; }
 
    }
 
    public class GetCreatePayInfoResponse
    {
        public string AppId { get; set; }
 
        public string TimeStamp { get; set; }
        /// <summary>
        /// 随机字符串,不长于32位
        /// </summary>
        public string NonceStr { get; set; }
        /// <summary>
        /// JSAPI下单接口返回的prepay_id参数值,提交格式如:prepay_id=***
        /// </summary>
        public string Package { get; set; }
        /// <summary>
        /// 签名类型,默认为RSA,仅支持RSA
        /// </summary>
        public string SignType { get; set; }
        /// <summary>
        /// 签名,使用字段appId、timeStamp、nonceStr、package计算得出的签名值
        /// </summary>
        public string PaySign { get; set; }
    }
 
    public class WxPayBackResponse
    { 
        public string code { get; set; }
 
        public string message { get; set; }
    }
 
}