config.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. NoLogin int
  20. TimeOut int
  21. Percentage int
  22. UserIds []string
  23. Msg string
  24. LimitKey string
  25. }
  26. SearchTypeSwitch bool //标题和正文 同时查询,关键词>1;是否优化查询只查正文(正文包含标题)
  27. FileSignBool bool //IC.C.FileSignBool列表是否显示附件标识开关
  28. PaySearchLimit struct {
  29. Switch bool
  30. Year int
  31. Month int
  32. WordSize int
  33. PageNum int64
  34. PageSize int64
  35. } //优化付费用户搜索速度
  36. KeywordsLimit int //关键词长度限制
  37. DefaultBidInfo struct {
  38. PageNum int
  39. Count int
  40. PayCount int
  41. } //招标信息初始化
  42. DefaultTopTypes []string //信息类型初始值
  43. JYKeyMark string //关键词分组标识
  44. ContextOldVipLimit int64 //老版超级订阅 超前项目权限
  45. DetailMosaicTxt string
  46. NeedMosaic struct {
  47. Projectname bool
  48. Projectcode bool
  49. Budget bool
  50. Bidamount bool
  51. Buyer bool
  52. Buyerperson bool
  53. Buyertel bool
  54. Buyeraddr bool
  55. Agency bool
  56. Agencyperson bool
  57. Agencytel bool
  58. Agencyaddr bool
  59. Winner bool
  60. S_winner bool
  61. Winnerperson bool
  62. Winnertel bool
  63. Winneraddr bool
  64. Docstarttime bool
  65. Docendtime bool
  66. Bidendtime bool
  67. Bidstarttime bool
  68. Bidopentime bool
  69. Bidopenaddress bool
  70. Contractcode bool
  71. Signaturedate bool
  72. Purchasinglist bool
  73. Item bool
  74. Purchasing bool
  75. Itemname bool
  76. Brandname bool
  77. Specs bool
  78. Model bool
  79. Unitname bool
  80. Dimensions bool
  81. Number bool
  82. Unitprice bool
  83. Totalprice bool
  84. Guaranteetime bool
  85. Orderno bool
  86. Procurementlist bool
  87. Projectscope bool
  88. Reserved_amount bool
  89. Expurasingtime bool
  90. WinnerMap bool
  91. }
  92. }
  93. type Db struct {
  94. Mysql entity.Mysql `json:"mysql"`
  95. Redis entity.RedisStuct `json:"redis"`
  96. Es entity.EsStruct `json:"es"`
  97. Mongo entity.Mongo `json:"mongo"`
  98. }