config.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. DefaultSearchCacheTime 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 //标题和正文 同时查询,关键词>1;是否优化查询只查正文(正文包含标题)
  26. FileSignBool bool //IC.C.FileSignBool列表是否显示附件标识开关
  27. PaySearchLimit struct {
  28. Switch bool
  29. Year int
  30. Month int
  31. WordSize int
  32. PageNum int64
  33. PageSize int64
  34. } //优化付费用户搜索速度
  35. KeywordsLimit int //关键词长度限制
  36. DefaultBidInfo struct {
  37. Total int64
  38. PageNum int
  39. Count int
  40. PayCount int
  41. } //招标信息初始化
  42. DefaultTopTypes []string //信息类型初始值
  43. JYKeyMark string //关键词分组标识
  44. ContextOldVipLimit int64 //老版超级订阅 超前项目权限
  45. }
  46. type Db struct {
  47. Mysql entity.Mysql `json:"mysql"`
  48. Redis entity.RedisStuct `json:"redis"`
  49. Es entity.EsStruct `json:"es"`
  50. Mongo entity.Mongo `json:"mongo"`
  51. }