增加了队列消费端处理

This commit is contained in:
2024-07-31 15:11:52 +08:00
parent 95f283ec6b
commit 1e1ce24939
24 changed files with 738 additions and 38 deletions
+9
View File
@@ -0,0 +1,9 @@
package config
type Amqp struct {
Host string `mapstructure:"host" json:"host" yaml:"host"` // 服务器地址
Port int `mapstructure:"port" json:"port" yaml:"port"` // 服务器端口
Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
User string `mapstructure:"user" json:"user" yaml:"user"`
Vhost string `mapstructure:"vhost" json:"vhost" yaml:"vhost"`
}
+1
View File
@@ -13,4 +13,5 @@ type Config struct {
Snowflake int64 `mapstructure:"snowflake" json:"snowflake" yaml:"snowflake"`
Dysms Dysms `mapstructure:"dysms" json:"dysms" yaml:"dysms"`
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
Amqp Amqp `mapstructure:"amqp" json:"amqp" yaml:"amqp"`
}
+3 -3
View File
@@ -6,11 +6,11 @@ type Wechat struct {
PayNotifyUrl string `mapstructure:"pay-notify-url" json:"pay-notify-url" yaml:"pay-notify-url"`
RefundNotifyDomain string `mapstructure:"refund-notify-domain" json:"refund-notify-domain" yaml:"refund-notify-domain"` // 回调域名
RefundNotifyUrl string `mapstructure:"refund-notify-url" json:"refund-notify-url" yaml:"refund-notify-url"`
Pay1659662936 Pay1659662936 `mapstructure:"pay-1659662936" json:"pay-1659662936" yaml:"pay-1659662936"`
Pay1281030301 Pay1281030301 `mapstructure:"pay-1281030301" json:"pay-1281030301" yaml:"pay-1281030301"`
}
// Pay1659662936 成都欣欣相照
type Pay1659662936 struct {
// Pay1281030301 app
type Pay1281030301 struct {
MchId string `mapstructure:"mch-id" json:"mch-id" yaml:"mch-id"` // 商户号
V3ApiSecret string `mapstructure:"v3-api-secret" json:"v3-api-secret" yaml:"v3-api-secret"` // 商户APIv3密钥
MchCertificateSerialNumber string `mapstructure:"mch-certificate-serial-number" json:"mch-certificate-serial-number" yaml:"mch-certificate-serial-number"` // 商户证书序列号