bxbase.proto 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. syntax = "proto3";
  2. package bxcol;
  3. option go_package = "./bxbase";
  4. message AddlabelReq {
  5. string userId = 1;
  6. string name = 2;
  7. string appId = 3;
  8. }
  9. message AddlabelRes {
  10. int64 err_code = 1;
  11. string err_msg = 2;
  12. string labid = 3;
  13. }
  14. message GetLabelActionReq {
  15. string userId = 1;
  16. string appId = 2;
  17. }
  18. message GetLabelActionRes {
  19. int64 err_code = 1;
  20. string err_msg = 2;
  21. repeated LabelByUser labels = 3;
  22. }
  23. message LabelByUser{
  24. string lid = 1;
  25. string lname = 2;
  26. int64 lcount = 3;
  27. }
  28. message LabelActionReq {
  29. string userId = 1;
  30. string lids = 2;
  31. string lname = 3;
  32. repeated string binfo = 4;
  33. string laction = 5;
  34. string appId = 6;
  35. }
  36. message LabelActionRes {
  37. int64 err_code = 1;
  38. string err_msg = 2;
  39. bool status = 3;
  40. }
  41. message BCActionReq {
  42. string userId = 1;
  43. repeated string bids = 2;
  44. string baction = 3;
  45. string appId = 4;
  46. }
  47. message IsCollActionReq {
  48. string userId = 1;
  49. string bids = 2;
  50. string label = 3;
  51. string appId = 4;
  52. }
  53. message IsCollActionRes {
  54. int64 err_code = 1;
  55. string err_msg = 2;
  56. IData data = 3;
  57. }
  58. message IData {
  59. bool iscoll = 1;
  60. repeated Labels labels = 2;
  61. repeated string bids = 3;
  62. }
  63. message Labels {
  64. string id = 1;
  65. string labelname = 2;
  66. }
  67. message ListReq {
  68. string userId = 1;
  69. string bids = 2;
  70. string selectTime = 3;
  71. string buyerclass = 4;
  72. int64 pagenum = 5;
  73. int64 buyerPhone = 6;
  74. int64 winnerPhone = 7;
  75. int64 pagesize = 8;
  76. string label = 9;
  77. string appId = 10;
  78. }
  79. message ListRes {
  80. int64 err_code = 1;
  81. string err_msg = 2;
  82. ColList ldata = 3;
  83. }
  84. message ColList {
  85. int64 count = 1;
  86. bool haveNextPage = 2;
  87. repeated ColData res = 3;
  88. int64 pagesize = 4;
  89. }
  90. message ColData {
  91. string id = 1;
  92. string title = 2;
  93. string area = 3;
  94. string buyerclass = 4;
  95. string type = 5;
  96. string s_subscopeclass = 6;
  97. int64 publishtime = 7;
  98. string budget = 8;
  99. string bidamount = 9;
  100. string buyer = 10;
  101. string s_winner = 11;
  102. int64 bidopentime = 12;
  103. }
  104. message ShowSearchReq{
  105. string userId = 1;
  106. string type = 2;
  107. string appId = 3;
  108. string bidField = 4; // 领域化查询条件 medical-医械通
  109. }
  110. message ShowSearchRes{
  111. int64 err_code = 1;
  112. string err_msg = 2;
  113. repeated ListSearchRes data = 3;
  114. }
  115. message ListSearchRes{
  116. string userId = 1;
  117. string type = 2;
  118. string searchvalue = 3; //搜索词
  119. string publishtime = 4; //发布时间
  120. string area = 5; //地区
  121. string subtype = 6; //信息类型
  122. string minprice = 7; //最低价格
  123. string maxprice = 8;//最高价格
  124. string industry = 9;//选中的行业
  125. string selectType = 10;//标题 or 全文
  126. string buyerclass = 11;//采购单位行业
  127. string buyertel = 12;//是否有采购电话
  128. string winnertel = 13;//是否有中标电话
  129. string fileExists = 14;//附件
  130. string notkey = 15;//排除词
  131. string city = 16;
  132. string id = 17;
  133. bool isPay = 18;
  134. string tabularflag = 19;
  135. int64 searchGroup = 20;//搜索分组:默认0:全部;1:招标采购公告;2:超前项目
  136. int64 searchMode = 21;//搜索模式:0:精准搜索;1:模糊搜索
  137. int64 wordsMode = 22;// 搜索关键词模式;默认0:包含所有,1:包含任意
  138. string additionalWords = 23;//关键词:附加关键词(副:五组,每组最多15个字符)
  139. string district = 24; //地区
  140. map<string,Area> regionMap = 25; //地区
  141. string buyer = 26;
  142. string winner = 27;
  143. string agency = 28;
  144. string inKey = 29;
  145. }
  146. message Area{
  147. map<string,District> area=1;
  148. }
  149. message District{
  150. repeated string district=1;
  151. }
  152. message AddSearchReq{
  153. string userId = 1;
  154. string type = 2;
  155. string keywords = 3; //搜索词 关键词:多个空格隔开(主)
  156. string publishTime = 4; //发布时间
  157. string area = 5; //地区
  158. string subtype = 6; //信息类型
  159. string minPrice = 7; //最低价格
  160. string maxPrice = 8;//最高价格
  161. string industry = 9;//选中的行业
  162. string selectType = 10;//标题 or 全文
  163. string buyerClass = 11;//采购单位行业
  164. string hasBuyerTel = 12;//是否有采购电话
  165. string hasWinnerTel = 13;//是否有中标电话
  166. string fileExists = 14;//附件
  167. string notKey = 15;//关键词:排除词(副:五组,每组最多15个字符)
  168. string city = 16;
  169. string inKey = 17;
  170. string appId = 18;
  171. int64 searchGroup = 19;//搜索分组:默认0:全部;1:招标采购公告;2:超前项目
  172. int64 searchMode = 20;//搜索模式:0:精准搜索;1:模糊搜索
  173. int64 wordsMode = 21;// 搜索关键词模式;默认0:包含所有,1:包含任意
  174. string additionalWords = 22;//关键词:附加关键词(副:五组,每组最多15个字符)
  175. map<string,Area> regionMap = 23; //地区
  176. string buyer = 24;
  177. string winner = 25;
  178. string agency = 26;
  179. string bidField = 27; // 领域化查询条件 medical-医械通
  180. }
  181. message DelSearchReq{
  182. string id = 1;
  183. string userId = 2;
  184. string appId = 3;
  185. }
  186. //首页最新招标信息Req
  187. message NewestBiddingReq{
  188. string city = 1;
  189. int64 isSearch = 2;
  190. string appId = 3 ; //剑鱼10000
  191. int64 entId = 4 ; // 企业id
  192. int64 entUserId = 5; // 企业下用户id
  193. int64 entAccountId = 6; //企业账户id
  194. int64 positionType = 7; // 职位类型 0个人 1企业
  195. int64 positionId = 8; //职位id
  196. int64 accountId = 9 ; //账户id
  197. string mgoUserId = 10; //原userId
  198. string userId = 11 ; //用户id
  199. int64 newUserId = 12; //base_user_id
  200. string phone = 13;
  201. }
  202. //首页最新招标信息Resp
  203. message NewsetBiddingResp{
  204. int64 err_code = 1;
  205. string err_msg = 2;
  206. NewsetBidding data = 3;
  207. }
  208. message NewsetBidding{
  209. int64 count = 1;//数据长度
  210. repeated newestList list = 2;//数据
  211. string subFlag = 3;//当前用户订阅信息属性:m:大会员;e:商机管理;v:VIP;f:普通用户
  212. int64 showTip = 4;// 是否展示引导用户设置关键词 1-不显示 2-显示
  213. }
  214. //
  215. message newestList {
  216. string area = 1;//省份
  217. string city = 2;//城市
  218. int64 bidamount = 3;//中标金额
  219. int64 budget = 4;//预算
  220. string buyerclass = 5;//采购单位类型
  221. repeated string matchkeys = 6;//订阅匹配信息
  222. int64 publishTime = 7;//发布时间
  223. string industry = 8;//行业
  224. string title = 9;//标题
  225. string subtype = 10;//
  226. string appId = 11;
  227. string id = 12;//招标信息id
  228. bool fileExists = 13;//是否有附件
  229. bool isCol = 14;//是否收藏
  230. string site = 15;//网站名称
  231. string spiderCode = 16;//网站代码
  232. string district = 17;//县区
  233. }
  234. //公共返回
  235. message CommonRes {
  236. int64 err_code = 1;
  237. string err_msg = 2;
  238. }
  239. //公共返回
  240. message CheckRes {
  241. int64 err_code = 1;
  242. string err_msg = 2;
  243. string data = 3;
  244. }
  245. message AppIdReq{
  246. string AppId = 1;
  247. }
  248. //剑鱼网站收录情况返回参数
  249. message IncludedResp{
  250. int64 year = 1; //年
  251. int64 month = 2; //月
  252. int64 day = 3; //日
  253. float bid = 4;//招标信息的数值
  254. string bidUnit = 5; //招标信息的数值单位
  255. string bidUnitAppend = 6; //招标信息的数值单位后面的加号
  256. float project = 7;//招标采购项目的数值
  257. string projectUnit = 8;//招标采购项目的数值单位
  258. string projectUnitAppend = 9;//招标采购项目的数值单位后面的加号
  259. float ent = 10; //企业数据库的数值
  260. string entUnit = 11;//企业数据库的数值单位
  261. string entUnitAppend = 12;//企业数据库的数值单位后面的加号
  262. float buyer = 13;//采购单位库的数值
  263. string buyerUnit = 14;//采购单位库的数值单位
  264. string buyerUnitAppend = 15;//采购单位库的数值单位后面的加号
  265. float bidDayUpdate = 16;//每日更新招标信息的数值
  266. string bidDayUpdateUnit = 17;//每日更新招标信息的数值单位
  267. string bidDayUpdateUnitAppend = 18;//每日更新招标信息的数值单位后面的加号
  268. float bidField = 19;//招标信息数据字段的数值
  269. string bidFieldUnit = 20;//招标信息数据字段的数值单位
  270. string bidFieldUnitAppend = 21;//招标信息数据字段数值单位后面的加号
  271. float fieldAccuracy = 22;//数据字段准确率的数值
  272. string fieldAccuracyUnit = 23;//数据字段准确率的数值单位
  273. string fieldAccuracyUnitAppend = 24;//数据字段准确率的数值单位后面的加号
  274. float push = 25;//推送招标信息的数值
  275. string pushUnit = 26;//推送招标信息的数值单位
  276. string pushUnitAppend = 27;//推送招标信息的数值单位后面的加号
  277. string error_msg = 28;
  278. int64 error_code = 29;
  279. }
  280. // 搜索订阅列表模式保存
  281. message SaveListModeReq{
  282. string UserId = 1; // 用户id
  283. string Type = 2 ; // 类型 search-搜索列表 subscribe-订阅列表
  284. int64 Mode = 3; // 列表模式 0-精简模式 1-详细模式
  285. }
  286. // 搜索订阅列表模式获取
  287. message ShowListModeReq{
  288. string UserId = 1; // 用户id
  289. string Type = 2 ; // 类型 search-搜索列表 subscribe-订阅列表
  290. }
  291. // 搜索订阅列表模式获取结果
  292. message ShowListModeRes{
  293. int64 err_code = 1;
  294. string err_msg = 2;
  295. int64 data = 3;
  296. }
  297. //servie
  298. service bxbase {
  299. //新增标签
  300. rpc Addlabel(AddlabelReq) returns(AddlabelRes);
  301. //获取标签
  302. rpc GetLabelAction(GetLabelActionReq) returns(GetLabelActionRes);
  303. //标签新增或删除
  304. rpc LabelAction(LabelActionReq) returns(LabelActionRes);
  305. //招标信息收藏
  306. rpc BCAction(BCActionReq) returns(LabelActionRes);
  307. //招标信息是否被收藏
  308. rpc IsCollAction(IsCollActionReq) returns(IsCollActionRes);
  309. //获取收藏列表
  310. rpc List(ListReq) returns(ListRes);
  311. //获取筛选列表
  312. rpc ShowSearch(ShowSearchReq) returns(ShowSearchRes);
  313. //添加删选列表
  314. rpc AddSearch(AddSearchReq) returns(CommonRes);
  315. //修改筛选列表
  316. rpc CheckSearch(AddSearchReq) returns(CheckRes);
  317. //删除筛选列表
  318. rpc DelSearch(DelSearchReq) returns(CommonRes);
  319. //首页最新招标信息
  320. rpc NewestBidding(NewestBiddingReq)returns(NewsetBiddingResp);
  321. //剑鱼网站收录情况
  322. rpc Included (AppIdReq) returns(IncludedResp);
  323. }