新增了优惠卷的发放,和amqp的连接

This commit is contained in:
2024-05-29 09:53:12 +08:00
parent 20e6ca30eb
commit a04e59c3de
22 changed files with 756 additions and 26 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
@@ -15,4 +15,5 @@ type Config struct {
Im Im `mapstructure:"im" json:"im" yaml:"im"`
Dysms Dysms `mapstructure:"dysms" json:"dysms" yaml:"dysms"`
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
Amqp Amqp `mapstructure:"amqp" json:"amqp" yaml:"amqp"`
}