宇恒一号官网
This commit is contained in:
24
server/models/payment.go
Normal file
24
server/models/payment.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
// WechatPayConfig 微信支付配置
|
||||
type WechatPayConfig struct {
|
||||
AppID string `bson:"app_id" json:"app_id"`
|
||||
MchID string `bson:"mch_id" json:"mch_id"`
|
||||
APIKey string `bson:"api_key" json:"api_key"`
|
||||
APIKeyV3 string `bson:"api_key_v3" json:"api_key_v3"`
|
||||
Enabled bool `bson:"enabled" json:"enabled"`
|
||||
}
|
||||
|
||||
// AlipayConfig 支付宝配置
|
||||
type AlipayConfig struct {
|
||||
AppID string `bson:"app_id" json:"app_id"`
|
||||
PrivateKey string `bson:"private_key" json:"private_key"`
|
||||
AlipayPublicKey string `bson:"alipay_public_key" json:"alipay_public_key"`
|
||||
Enabled bool `bson:"enabled" json:"enabled"`
|
||||
}
|
||||
|
||||
// PaymentConfig 支付配置(微信+支付宝)
|
||||
type PaymentConfig struct {
|
||||
Wechat *WechatPayConfig `bson:"wechat,omitempty" json:"wechat,omitempty"`
|
||||
Alipay *AlipayConfig `bson:"alipay,omitempty" json:"alipay,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user