123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- syntax = "proto3";
- package bxcore;
- option go_package="./bxcore";
- message SearchReq {
- string appId = 1;//剑鱼默认10000
- int64 pageNum = 2;//当前页码
- int64 pageSize = 3;//每页数量
- string keyWords = 4;//关键词
- string province = 5;//省份
- string city = 6;//城市
- string subtype = 7;//信息类型-二级
- string publishTime = 8;//发布时间
- string selectType = 9;//搜索范围:标题;正文等
- string price = 10;//价格
- string industry = 11;//行业
- string buyerClass = 12;//采购单位类型
- string buyerTel = 13;//采购单位联系方式
- string winnerTel = 14;//中标单位联系方式
- string exclusionWords = 15;//排除词
- string fileExists = 16;//是否有附件
- string userId = 17;
- string entId = 18;
- string userType = 19;//用户状态 fType:免费用户 pType:付费用户 vType:超级订阅用户 mType:大会员用户 eType:商机管理用户
- string splitKeywords = 20;//分词结果
- string platform = 21;//请求平台
- string toptype = 22;//信息类型-一级分类
- }
- message SearchResp {
- int64 err_code = 1;
- string err_msg = 2;
- SearchData data = 3;
- }
- message SearchData {
- int64 count = 1;
- string keyWords = 2;
- int64 isLimit = 3;
- repeated string historyKeys = 4;
- repeated SearchList list = 5;
- int64 totalPage = 6;
- string interceptWord = 7;
- int64 interceptLimit = 8;
- }
- message SearchList {
- string id = 1;
- string area = 2;
- string areaUrl = 3;
- string buyerClass = 4;
- string city = 5;
- string detail = 6;
- string industry = 7;
- string industryUrl = 8;
- int64 publishTime = 9;
- string subtype = 10;
- string subtypeUrl = 11;
- bool fileExists = 12;
- string title = 13;
- bool isCollected = 14;
- int64 bidamount = 15;//中标金额
- int64 budget = 16;//预算
- string projectName = 17;//项目名称
- string buyer = 18;//采购单位
- string winner = 19;//中标企业
- int64 bidopenTime = 20;//开标时间
- PInfo projectInfo = 21;//拟建项目信息
- string projectCode = 22;//项目代码
- string site = 23;//网站名称
- string spiderCode = 24;//网站代码
- }
- //
- message PInfo {
- string approveCode =1;//项目代码
- string approveContent = 2;//项目内容
- string approveDept = 3;//审批部门
- string approveStatus = 4 ;//审批状态
- string approveTime = 5;//审批时间
- string projectType = 6;//审批类型
- string approveNumber = 7;//
- }
- //
- message SearchLimitReq {
- string appid = 1;
- int64 timeOut = 2;
- int64 count = 3;
- int64 flag = 4;
- int64 percentage = 5;
- string userId = 6;
- string searchType = 7;
- }
- //
- message SearchLimitResp {
- int64 err_code = 1;
- string err_msg = 2;
- string data = 3;
- }
- service BxCore {
- //标讯搜索结果列表数据
- rpc GetSearchList(SearchReq) returns(SearchResp);
- //标讯搜索限制内容
- rpc SearchLimit(SearchLimitReq) returns(SearchLimitResp);
- }
|