cc
This commit is contained in:
@@ -46,14 +46,17 @@ type DatabaseConfig struct {
|
||||
DBName string `mapstructure:"dbname"`
|
||||
}
|
||||
type System struct {
|
||||
StartingUserId uint `mapstructure:"starting-user-id"`
|
||||
WxLoginUrl string `mapstructure:"wx-login-url" json:"wx-login-url" yaml:"wx-login-url"`
|
||||
WxAppId string `mapstructure:"wx-appid" json:"wx-appid" yaml:"wx-appid"`
|
||||
WxSecret string `mapstructure:"wx-secret" json:"wx-secret" yaml:"wx-secret"`
|
||||
WxH5LoginUrl string `mapstructure:"wx-h5-login-url" json:"wx-h5-login-url" yaml:"wx-h5-login-url"`
|
||||
WxH5UserinfoUrl string `mapstructure:"wx-h5-userinfo-url" json:"wx-h5-userinfo-url" yaml:"wx-h5-userinfo-url"`
|
||||
WxH5AppId string `mapstructure:"wx-h5-appid" json:"wx-h5-appid" yaml:"wx-h5-appid"`
|
||||
WxH5Secret string `mapstructure:"wx-h5-secret" json:"wx-h5-secret" yaml:"wx-h5-secret"`
|
||||
StartingUserId uint `mapstructure:"starting-user-id"`
|
||||
WxLoginUrl string `mapstructure:"wx-login-url" json:"wx-login-url" yaml:"wx-login-url"`
|
||||
WxAppId string `mapstructure:"wx-appid" json:"wx-appid" yaml:"wx-appid"`
|
||||
WxSecret string `mapstructure:"wx-secret" json:"wx-secret" yaml:"wx-secret"`
|
||||
WxH5LoginUrl string `mapstructure:"wx-h5-login-url" json:"wx-h5-login-url" yaml:"wx-h5-login-url"`
|
||||
WxH5UserinfoUrl string `mapstructure:"wx-h5-userinfo-url" json:"wx-h5-userinfo-url" yaml:"wx-h5-userinfo-url"`
|
||||
WxH5AppId string `mapstructure:"wx-h5-appid" json:"wx-h5-appid" yaml:"wx-h5-appid"`
|
||||
WxH5Secret string `mapstructure:"wx-h5-secret" json:"wx-h5-secret" yaml:"wx-h5-secret"`
|
||||
WxTyDataLoginUrl string `mapstructure:"wx-tydata-login-url" json:"wx-tydata-login-url" yaml:"wx-tydata-login-url"`
|
||||
WxTyDataAppId string `mapstructure:"wx-tydata-appid" json:"wx-tydata-appid" yaml:"wx-tydata-appid"`
|
||||
WxTyDataSecret string `mapstructure:"wx-tydata-secret" json:"wx-tydata-secret" yaml:"wx-tydata-secret"`
|
||||
}
|
||||
type AntifraudConfig struct {
|
||||
ApiKey string `mapstructure:"api-key"`
|
||||
@@ -80,6 +83,8 @@ type VerifyCodeConfig struct {
|
||||
MarriageTemplateCode string `mapstructure:"marriage-template-code"`
|
||||
Expiration time.Duration `mapstructure:"expiration"`
|
||||
ThrottleTime time.Duration `mapstructure:"throttle-time"`
|
||||
TyDataSignName string
|
||||
TyDataTemplateCode string
|
||||
}
|
||||
type Redis struct {
|
||||
Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` // 服务器地址:端口
|
||||
|
||||
Reference in New Issue
Block a user