config.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/zrpc"
  4. "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/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. <<<<<<< HEAD
  30. Switch bool
  31. Year int
  32. Month int
  33. WordSize int
  34. PageNum int64
  35. PageSize int64
  36. } //优化付费用户搜索速度
  37. =======
  38. Switch bool
  39. Year int
  40. Month int
  41. WordSize int
  42. PageNum int64
  43. PageSize int64
  44. PrecisionNum int64
  45. } //优化付费用户搜索速度
  46. >>>>>>> master
  47. KeywordsLimit int //关键词长度限制
  48. DefaultBidInfo struct {
  49. PageNum int
  50. Count int
  51. PayCount int
  52. } //招标信息初始化
  53. DefaultTopTypes []string //信息类型初始值
  54. JYKeyMark string //关键词分组标识
  55. ContextOldVipLimit int64 //老版超级订阅 超前项目权限
  56. Middleground struct { //中台
  57. Etcd struct {
  58. Hosts []string
  59. }
  60. PowerCheckCenterKey string
  61. UserCenterKey string
  62. ResourceCenterKey string
  63. }
  64. ResourceCode string
  65. SearchConcurrency int64
  66. NoLoginSearch struct {
  67. Switch bool
  68. ExecutionNum int
  69. Wait int
  70. }
  71. Stages []string
  72. }
  73. type Db struct {
  74. Mysql entity.Mysql `json:"mysql"`
  75. Redis entity.RedisStuct `json:"redis"`
  76. Es entity.EsStruct `json:"es"`
  77. Mongo entity.Mongo `json:"mongo"`
  78. EsNoLogin entity.EsStruct `json:"esNoLogin"`
  79. EsFree entity.EsStruct `json:"esFree"`
  80. }