宇恒一号官网

This commit is contained in:
whm
2026-03-17 00:59:32 +08:00
commit eb56519df7
105 changed files with 10783 additions and 0 deletions

24
server/models/payment.go Normal file
View 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"`
}