feat: alipay config and Initial

This commit is contained in:
zchengo
2022-12-16 20:29:45 +08:00
parent 08ca125507
commit 0de2d05d9d
5 changed files with 63 additions and 2 deletions
+13
View File
@@ -7,6 +7,7 @@ type Config struct {
Redis Redis `mapstructure:"redis"`
Jwt Jwt `mapstructure:"jwt"`
Mail Mail `mapstructure:"mail"`
Alipay Alipay `mapstructure:"alipay"`
}
// 服务启动端口号配置
@@ -46,3 +47,15 @@ type Mail struct {
Secret string `mapstructure:"secret"`
Sender string `mapstructure:"sender"`
}
// 支付宝支付服务配置
type Alipay struct {
AppId string `mapstructure:"appId"`
PrivateKey string `mapstructure:"privateKey"`
AppPublicCert string `mapstructure:"appPublicCert"`
AlipayRootCert string `mapstructure:"alipayRootCert"`
AlipayPublicCert string `mapstructure:"alipayPublicCert"`
ReturnURL string `mapstructure:"returnURL"`
NotifyURL string `mapstructure:"notifyURL"`
PaySuccessURL string `mapstructure:"paySuccessURL"`
}