config.go 356 B

1234567891011121314151617181920
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/BaseService/biCenter/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. Gateway struct {
  9. ServerCode string
  10. Etcd []string
  11. }
  12. }
  13. type Db struct {
  14. Redis entity.RedisStuct `json:"redis"`
  15. Es entity.EsStruct `json:"es"`
  16. Mysql entity.Mysql `json:"mysql"`
  17. }