24 lines
944 B
Go
24 lines
944 B
Go
package config
|
|
|
|
// MiniApp 微信小程序配置
|
|
type MiniApp struct {
|
|
AppId string `mapstructure:"app-id" yaml:"app-id"`
|
|
AppSecret string `mapstructure:"app-secret" yaml:"app-secret"`
|
|
TemplateID string `mapstructure:"template-id" yaml:"template-id"`
|
|
}
|
|
|
|
// 微信支付配置
|
|
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
|
|
}
|