24 lines
868 B
Go
24 lines
868 B
Go
|
package config
|
||
|
|
||
|
type MiniApp struct {
|
||
|
AppId string `mapstructure:"app-id" yaml:"app-id"`
|
||
|
AppSecret string `mapstructure:"app-secret" yaml:"app-secret"`
|
||
|
}
|
||
|
|
||
|
// 微信小程序配置
|
||
|
|
||
|
// 微信支付配置
|
||
|
type wechatPayConfig struct {
|
||
|
MchId string `mapstructure:"mchId" yaml:"mchId"` // 商户号
|
||
|
SerialNo string `mapstructure:"serialNo" yaml:"serialNo"` // 商户API证书的证书序列号
|
||
|
ApiV3Key string `mapstructure:"apiV3Key" yaml:"apiV3Key"` // 支付key
|
||
|
PrivateKey string `mapstructure:"privateKey" yaml:"privateKey"` // 支付私钥绝对路径
|
||
|
}
|
||
|
|
||
|
// api密钥配置
|
||
|
type CapiConfig struct {
|
||
|
AppId string `mapstructure:"app-id" yaml:"app-id"` // APP ID
|
||
|
SecretId string `mapstructure:"secret-id" yaml:"secret-id"` // Secret ID
|
||
|
SecretKey string `mapstructure:"secret-key" yaml:"secret-key"` // Secret Key
|
||
|
}
|