package entity import "regexp" const ( //角色 Role_admin_system = 1 //系统管理员 Role_admin_department = 2 //部门管理员 RedisPoly = "poly" // 查白名单用户用的redis WhitelistRedisKey = "white_%s" // 白名单用户用的redis key MedicalFunctionCode = "lyh_yl_ylbxss" BIPropertyFunctionCode = "bi_yx_wyzb" MobileTagSearchFunctionCode = "zbcgss_zgydbqjs" //超级搜索页面 移动定制搜索标签(仅工作台内展示) ) var ( MobileReg = regexp.MustCompile("(?i)(Android|Mobile|Phone)") MobileTagItemsValOptions = []*SearchItemsValOptions{ {Key: "all", Label: "全部"}, {Key: "军队类", Label: "军队类"}, {Key: "武警类", Label: "武警类"}, {Key: "融通类", Label: "融通类"}, {Key: "退役类", Label: "退役类"}, {Key: "融办类", Label: "融办类"}, {Key: "某某类", Label: "“某某”类"}, } MobileTagItemsValOptionsAll = []string{"军队类", "武警类", "融通类", "退役类", "融办类", "某某类"} FilterReg_3 = regexp.MustCompile("(项目|公告|公示)$") FilterReg_2 = regexp.MustCompile("^[)\\)>》】\\]}}〕,,;;::'\"“”。.\\??、/+=\\_—*&……\\^%$¥@!!`~·(\\(<《【\\[{{〔]+$") FilterReg_1 = regexp.MustCompile("^([0-9]{1,3}|[零一二三四五六七八九十]{1,2}|联系人?|电话|地址|编号|采购|政府采购|成交|更正|招标|中标|变更|结果)$") FilterReg = regexp.MustCompile("^[的人号时元万公告项目地址电话邮编日期联系招标中结果成交项目项目采购采购项目政府采购公告更正公告]+$") ) // KeyWord /*筛选条件--关键词*/ type ( KeyWord struct { Keyword string `json:"keyword"` //关键词 Appended []string `json:"appended"` //附加词 Exclude []string `json:"exclude"` //排除词 } SearchItemsValOptions struct { Key string `json:"key" doc:"后端接受值"` Label string `json:"label" doc:"展示标签"` } ) // BiddingSearchParams /*招标信息搜索筛选条件*/ type BiddingSearchParams struct { Id string `json:"id"` PublishTime string `json:"publishtime"` //发布时间 Province []string `json:"province"` //地区-省份 City []string `json:"city"` //地区-城市 Region []string `json:"region"` //地区-省份+城市 Industry []string `json:"industry"` //行业 Keyword []KeyWord `json:"keywords"` //关键词 Buyer []string `json:"buyer"` //招标单位(采购单位) BuyerClass []string `json:"buyerclass"` //采购单位类型 HasBuyerTel string `json:"hasBuyertel"` //是否有采购单位电话 Winner []string `json:"winner"` //中标单位 HasWinnerTel string `json:"hasWinnertel"` //是否有中标单位电话 ComeInTime int64 `json:"comeintime"` //入库时间(秒) OpenId string `json:"openid"` //用户openid MinPrice string `json:"minprice"` //金额——最少 MaxPrice string `json:"maxprice"` //金额——最多 SelectType string `json:"selectType"` //筛选(正文 or 标题) Subtype string `json:"subtype"` //信息类型 Toptype string `json:"toptype,omitempty"` //信息类型-一级分类 SelectIds []string `json:"selectId"` //选择信息导出 ComeInFrom string `json:"comeinfrom"` //查询来源 FileExists string `json:"fileExists"` //是否有附件 SearchTypeSwitch bool `json:"searchTypeSwitch"` //是否开启 正文 标题同时搜索只搜正文的开关 PageNum int64 `json:"pageNum,omitempty"` //当前页码 PageSize int64 `json:"pageSize,omitempty"` //每页数量 Price string `json:"price,omitempty"` //价格 UserId string `json:"userId,omitempty"` //用户id }