增加了app的配置文件

This commit is contained in:
2024-09-20 14:38:46 +08:00
parent 63ab3fc50c
commit 4f47c2922e
6 changed files with 35 additions and 23 deletions
+8
View File
@@ -0,0 +1,8 @@
package config
type App struct {
ApiUrl string `mapstructure:"apiUrl" json:"apiUrl" yaml:"apiUrl"`
SecretKey string `mapstructure:"secretKey" json:"secretKey" yaml:"secretKey"`
ImagePrefix string `mapstructure:"imagePrefix" json:"imagePrefix" yaml:"imagePrefix"`
Platform string `mapstructure:"platform" json:"platform" yaml:"platform"`
}
+1
View File
@@ -14,4 +14,5 @@ type Config struct {
Dysms Dysms `mapstructure:"dysms" json:"dysms" yaml:"dysms"`
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
Amqp Amqp `mapstructure:"amqp" json:"amqp" yaml:"amqp"`
App App `mapstructure:"app" json:"app" yaml:"app"`
}