biService.proto 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. syntax = "proto3";
  2. option go_package ="./pb";
  3. message MyDataAssetReq {
  4. string userId = 1;
  5. int64 newUserId = 2;
  6. int64 entUserId = 3;
  7. }
  8. message MyDataAssetResp {
  9. int64 error_code = 1;
  10. string error_msg = 2;
  11. MyDataAsset data = 3;
  12. }
  13. message MyDataAsset {
  14. int64 collect_info_count = 1;
  15. int64 follow_project_count = 2;
  16. int64 collect_doc_count = 3;
  17. int64 claim_customer_count = 4;
  18. int64 claim_nzj_count = 5;
  19. }
  20. message AddProjectReq {
  21. string info_id = 1; //信息id
  22. int64 source = 2; //1-收藏,2-招标搜索,3-关注
  23. int64 position_id = 3; //职位id
  24. int64 position_type = 4; //职位类型
  25. int64 account_id = 5; //账户id
  26. string company_name = 6;
  27. string user_name = 7;
  28. int64 userId = 8;
  29. int64 entId = 9;
  30. string entUserName = 10;
  31. }
  32. message AddProjectResp {
  33. int64 error_code = 1;
  34. string error_msg = 2;
  35. AddProject data = 3;
  36. }
  37. message AddProject {
  38. int64 status = 1;
  39. int64 count = 2;
  40. }
  41. message GetInfoIdResp {
  42. int64 error_code = 1;
  43. string error_msg = 2;
  44. repeated string data = 3;
  45. }
  46. message DrawClueReq {
  47. int64 positionId = 1;
  48. int64 count = 2;
  49. }
  50. message CallReq {
  51. int64 position_id =1;
  52. string phone =2;
  53. }
  54. message BiResp {
  55. int64 error_code = 1;
  56. string error_msg = 2;
  57. string data = 3;
  58. }
  59. message BiReply {
  60. int64 error_code = 1;
  61. string error_msg = 2;
  62. bytes data = 3;
  63. }
  64. message DistributeClueReq {
  65. string clueCount = 1;
  66. repeated int64 clueIdList = 2;
  67. repeated DistributeDatas datas = 3;
  68. int64 positionId = 4;
  69. int64 isTask = 5;
  70. }
  71. message DistributeDatas {
  72. string name = 1;
  73. int64 positionId = 2;
  74. string totalCount = 3;
  75. string uncompletedCount = 4;
  76. int64 distributedCount = 5;
  77. }
  78. message ClueImportReq {
  79. string pcbh = 1;
  80. int64 positionId = 2;
  81. }
  82. message ClueImportResp {
  83. int64 error_code = 1;
  84. string error_msg = 2;
  85. ClueImport data = 3;
  86. }
  87. message ClueImport {
  88. int64 status = 1;
  89. string result = 2;
  90. }
  91. message ClueAddReq {
  92. string phone = 1;
  93. string username = 2;
  94. string source = 3;
  95. string status999 = 4;
  96. string owner = 5;
  97. string empNo = 6;
  98. string company = 7;
  99. string isPolicymaker = 8;
  100. string belongToIndustry = 9;
  101. string job = 10;
  102. string customerNeeds = 11;
  103. string belongTo = 12;
  104. string wantGoods = 13;
  105. string customerBudget = 14;
  106. }
  107. message SqlManageReq {
  108. float id = 1;
  109. repeated Param params = 2;
  110. }
  111. message MyInfoReq {
  112. string bid = 1;
  113. string sid = 2;
  114. }
  115. message Param {
  116. string value = 1;
  117. string type = 2;
  118. }
  119. message ExportReq {
  120. string mail = 1;
  121. repeated string mapping = 2;
  122. int64 PositionId=3;
  123. }
  124. message OperateReq {
  125. string newId = 1;
  126. int64 type=2;
  127. }
  128. service BiService {
  129. rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产
  130. rpc addProject (AddProjectReq) returns (AddProjectResp); //添加项目
  131. rpc getInfoId (AddProjectReq) returns (GetInfoIdResp); //获取添加过项目的信息id
  132. rpc drawClue (DrawClueReq) returns (AddProjectResp); //领取线索
  133. rpc Call (CallReq) returns (BiResp); //外呼集成
  134. rpc distributeClue (DistributeClueReq) returns (AddProjectResp); //批量分配
  135. rpc clueImport (ClueImportReq) returns (ClueImportResp); //线索导入
  136. rpc clueAdd (ClueAddReq) returns (AddProjectResp); //合力亿捷新增线索
  137. rpc clueImportTt (ClueImportReq) returns (ClueImportResp); //线索导入tt
  138. rpc autoFollow (CallReq) returns (ClueImportResp);
  139. rpc sqlManage (SqlManageReq) returns (BiReply); //bi通用接口
  140. rpc myInfo (MyInfoReq) returns (BiReply); //用户身份
  141. rpc allInfoExport (ExportReq) returns (BiReply); //资讯全量导出
  142. rpc allProjectExport (ExportReq) returns (BiReply); //项目全量导出
  143. rpc infoOperate (OperateReq) returns (BiReply); //数据操作
  144. }