entity.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package entity
  2. const (
  3. //角色
  4. Role_admin_system = 1 //系统管理员
  5. Role_admin_department = 2 //部门管理员
  6. )
  7. // KeyWord /*筛选条件--关键词*/
  8. type KeyWord struct {
  9. Keyword string `json:"keyword"` //关键词
  10. Appended []string `json:"appended"` //附加词
  11. Exclude []string `json:"exclude"` //排除词
  12. }
  13. // BiddingSearchParams /*招标信息搜索筛选条件*/
  14. type BiddingSearchParams struct {
  15. Id string `json:"id"`
  16. PublishTime string `json:"publishtime"` //发布时间
  17. Province []string `json:"province"` //地区-省份
  18. City []string `json:"city"` //地区-城市
  19. Region []string `json:"region"` //地区-省份+城市
  20. Industry []string `json:"industry"` //行业
  21. Keyword []KeyWord `json:"keywords"` //关键词
  22. Buyer []string `json:"buyer"` //招标单位(采购单位)
  23. BuyerClass []string `json:"buyerclass"` //采购单位类型
  24. HasBuyerTel string `json:"hasBuyertel"` //是否有采购单位电话
  25. Winner []string `json:"winner"` //中标单位
  26. HasWinnerTel string `json:"hasWinnertel"` //是否有中标单位电话
  27. ComeInTime int64 `json:"comeintime"` //入库时间(秒)
  28. OpenId string `json:"openid"` //用户openid
  29. MinPrice string `json:"minprice"` //金额——最少
  30. MaxPrice string `json:"maxprice"` //金额——最多
  31. SelectType string `json:"selectType"` //筛选(正文 or 标题)
  32. Subtype string `json:"subtype"` //信息类型
  33. Toptype string `json:"toptype,omitempty"` //信息类型-一级分类
  34. SelectIds []string `json:"selectId"` //选择信息导出
  35. ComeInFrom string `json:"comeinfrom"` //查询来源
  36. FileExists string `json:"fileExists"` //是否有附件
  37. SearchTypeSwitch bool `json:"searchTypeSwitch"` //是否开启 正文 标题同时搜索只搜正文的开关
  38. PageNum int64 `json:"pageNum,omitempty"` //当前页码
  39. PageSize int64 `json:"pageSize,omitempty"` //每页数量
  40. Price string `json:"price,omitempty"` //价格
  41. UserId string `json:"userId,omitempty"` //用户id
  42. }