config.go 446 B

12345678910111213141516171819202122232425262728
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. MessageCenter zrpc.RpcClientConf
  9. Gateway struct {
  10. ServerCode string
  11. Etcd []string
  12. }
  13. WebRpcPort int64
  14. IsShunt bool
  15. ShuntProbability int64
  16. ZhiCiUrl struct {
  17. Pc string
  18. App string
  19. Wx string
  20. }
  21. MessageUrl struct {
  22. Pc string
  23. App string
  24. Wx string
  25. }
  26. }