bxcollection.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. syntax = "proto3";
  2. package bxcol;
  3. option go_package = "./bxcol";
  4. message AddlabelReq {
  5. string userId = 1;
  6. string name = 2;
  7. }
  8. message AddlabelRes {
  9. int64 err_code = 1;
  10. string err_msg = 2;
  11. string labid = 3;
  12. }
  13. message GetLabelActionReq {
  14. string userId = 1;
  15. }
  16. message GetLabelActionRes {
  17. int64 err_code = 1;
  18. string err_msg = 2;
  19. repeated LabelByUser labels = 3;
  20. }
  21. message LabelByUser{
  22. string lid = 1;
  23. string lname = 2;
  24. int64 lcount = 3;
  25. }
  26. message LabelActionReq {
  27. string userId = 1;
  28. string lids = 2;
  29. string lname = 3;
  30. repeated string binfo = 4;
  31. string laction = 5;
  32. }
  33. message LabelActionRes {
  34. int64 err_code = 1;
  35. string err_msg = 2;
  36. bool status = 3;
  37. }
  38. message BCActionReq {
  39. string userId = 1;
  40. repeated string bids = 2;
  41. string baction = 3;
  42. }
  43. message IsCollActionReq {
  44. string userId = 1;
  45. string bids = 2;
  46. string label = 3;
  47. }
  48. message IsCollActionRes {
  49. int64 err_code = 1;
  50. string err_msg = 2;
  51. bool iscoll = 3;
  52. repeated Labels labels = 4;
  53. repeated string bids = 5;
  54. }
  55. message Labels {
  56. string id = 1;
  57. string labelname = 2;
  58. }
  59. message ListReq {
  60. string userId = 1;
  61. string bids = 2;
  62. string selectTime = 3;
  63. string buyerclass = 4;
  64. int64 pagenum = 5;
  65. int64 buyerPhone = 6;
  66. int64 winnerPhone = 7;
  67. int64 pagesize = 8;
  68. }
  69. message ListRes {
  70. int64 err_code = 1;
  71. string err_msg = 2;
  72. ColList ldata = 3;
  73. }
  74. message ColList {
  75. int64 count = 1;
  76. bool haveNextPage = 2;
  77. repeated ColData res = 3;
  78. }
  79. message ColData {
  80. string id = 1;
  81. string title = 2;
  82. string area = 3;
  83. string buyerclass = 4;
  84. string type = 5;
  85. string s_subscopeclass = 6;
  86. int64 publishtime = 7;
  87. string budget = 8;
  88. string bidamount = 9;
  89. string buyer = 10;
  90. string s_winner = 11;
  91. int64 bidopentime = 12;
  92. }
  93. //公共返回
  94. message CommonRes {
  95. int64 err_code = 1;
  96. string err_msg = 2;
  97. }
  98. //servie
  99. service bxcol {
  100. //新增标签
  101. rpc Addlabel(AddlabelReq) returns(AddlabelRes);
  102. //获取标签
  103. rpc GetLabelAction(GetLabelActionReq) returns(GetLabelActionRes);
  104. //标签新增或删除
  105. rpc LabelAction(LabelActionReq) returns(LabelActionRes);
  106. //招标信息收藏
  107. rpc BCAction(BCActionReq) returns(LabelActionRes);
  108. //招标信息是否被收藏
  109. rpc IsCollAction(IsCollActionReq) returns(IsCollActionRes);
  110. //获取收藏列表
  111. rpc List(ListReq) returns(ListRes);
  112. }