config.go 672 B

123456789101112131415161718192021222324252627282930
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/application/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Gateway struct {
  10. ServerCode string
  11. Etcd []string
  12. }
  13. UserCenterRpc zrpc.RpcClientConf
  14. FileCenterRpc zrpc.RpcClientConf
  15. OssBucketName string
  16. OssUrl string
  17. BaseCenterRpc zrpc.RpcClientConf
  18. StationMailHref string
  19. StationMailAction string
  20. TestId string
  21. }
  22. type Db struct {
  23. Mysql entity.Mysql `json:"mysql"`
  24. Redis entity.RedisStuct `json:"redis"`
  25. Mongo entity.Mongo `json:"mongo"`
  26. Es entity.EsStruct `json:"es"`
  27. }