config.go 661 B

1234567891011121314151617181920212223242526272829303132333435
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. "jyBXCore/entity"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Webrpcport int64
  10. Gateway struct {
  11. ServerCode string
  12. Etcd []string
  13. }
  14. Core zrpc.RpcClientConf
  15. MgoLogsName string
  16. MgoLogsCount int
  17. DetailMosaicTxt string
  18. SearchMosaic struct {
  19. Budget bool `json:"budget"`
  20. BidAmount bool `json:"bidAmount"`
  21. Buyer bool `json:"buyer"`
  22. Winner bool `json:"winner"`
  23. BidOpenTime bool `json:"bidOpenTime"`
  24. }
  25. }
  26. type Db struct {
  27. Mongo entity.Mongo `json:"mongo"`
  28. }
  29. type Routes struct {
  30. ExcludeRoute []string
  31. }