config.go 374 B

123456789101112131415161718192021
  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. PublicKey string
  13. }
  14. type Db struct {
  15. Redis entity.RedisStuct `json:"redis"`
  16. Es entity.EsStruct `json:"es"`
  17. Mysql entity.Mysql `json:"mysql"`
  18. }