config.go 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/zrpc"
  4. "jyBXCore/entity"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. Webrpcport int64
  9. BidSearchOldUserLimit int64
  10. LabelUrl struct {
  11. Area string
  12. Stype string
  13. Industry string
  14. }
  15. PCSTime int //清除搜索列表内存缓存 间隔时间
  16. LimitSearchText struct {
  17. Flag bool
  18. Count int
  19. TimeOut int
  20. Percentage int
  21. UserIds []string
  22. Msg string
  23. LimitKey string
  24. }
  25. SearchTypeSwitch bool
  26. FileSignBool bool
  27. PaySearchLimit struct {
  28. Switch bool
  29. Year int
  30. Month int
  31. WordSize int
  32. PageNum int64
  33. PageSize int64
  34. }
  35. }
  36. type Db struct {
  37. Mysql entity.Mysql `json:"mysql"`
  38. Redis entity.RedisStuct `json:"redis"`
  39. Es entity.EsStruct `json:"es"`
  40. Mongo entity.Mongo `json:"mongo"`
  41. }