feat: alipay config and Initial
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user