You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
831 B

  1. package config
  2. type System struct {
  3. Env string `mapstructure:"env" json:"env" yaml:"env"` // 环境值
  4. Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 端口值
  5. DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"` // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql
  6. OssType string `mapstructure:"oss-type" json:"ossType" yaml:"oss-type"` // Oss类型
  7. UseMultipoint bool `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"` // 多点登录拦截
  8. LimitCountIP int `mapstructure:"iplimit-count" json:"iplimitCount" yaml:"iplimit-count"`
  9. LimitTimeIP int `mapstructure:"iplimit-time" json:"iplimitTime" yaml:"iplimit-time"`
  10. }