config.go 540 B

1234567891011121314151617181920212223242526
  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. }
  18. type Db struct {
  19. Mysql entity.Mysql `json:"mysql"`
  20. Redis entity.RedisStuct `json:"redis"`
  21. Mongo entity.Mongo `json:"mongo"`
  22. Es entity.EsStruct `json:"es"`
  23. }