biService.proto 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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. message CompanyReq {
  129. string companyName = 1;
  130. }
  131. message CompanyResp {
  132. int64 status = 1;
  133. }
  134. message DistributeClueShowReq {
  135. int64 positionId = 1;
  136. int64 dataType = 2;
  137. string clueIdList = 3;
  138. repeated DistributeClueShows datas = 4;
  139. int64 IsTask = 5;
  140. int64 UpdatePositionID = 6;
  141. }
  142. message DistributeClueShows {
  143. int64 positionId = 1;
  144. int64 distributedCount = 2;
  145. }
  146. message DistributeClueShowss {
  147. int64 positionId = 1;
  148. int64 companyCount = 2;
  149. int64 clueCount = 3;
  150. int64 minCount = 4;
  151. int64 companyCounts = 5;
  152. int64 existingCount = 6;
  153. bool FullStatus = 7;
  154. }
  155. message DistributeClueShowResp {
  156. int64 error_code = 1;
  157. string error_msg = 2;
  158. repeated DistributeClueShowss data = 3;
  159. }
  160. message ExportByDbReq {
  161. string token = 1;
  162. string title = 2;
  163. string content = 3;
  164. string mails = 4;
  165. string fileName = 5;
  166. repeated FilesData datas = 6;
  167. }
  168. message FilesData {
  169. string sheetName = 1;
  170. string sql = 2;
  171. }
  172. message UpFileReq {
  173. string appId = 1;
  174. int64 userId = 2;
  175. int64 positionId = 3;
  176. int64 entUserId = 4;
  177. int64 entId = 5;
  178. string stype = 6;
  179. bytes file = 7;
  180. string fileName = 8;
  181. string fileSize = 9;
  182. }
  183. message AcceptanceReq{
  184. int64 ProposeType = 1;
  185. string Propose_time = 2;
  186. string Channel = 3;
  187. int64 Acceptance_type = 4;
  188. int64 Status = 5;
  189. string Over_time = 6;
  190. string Remark = 7;
  191. int64 PositionId = 8;
  192. string DeptId = 9;
  193. string EntUserName = 10;
  194. string paramData = 11;
  195. }
  196. message AcceptanceResp{
  197. int64 error_code = 1;
  198. string error_msg = 2;
  199. Acceptance data = 3;
  200. }
  201. message Acceptance{
  202. string AcceptanceNo = 1;
  203. }
  204. message SendMailReq {
  205. string title = 1;
  206. string content = 2;
  207. string mails = 3;
  208. }
  209. message CreateCuleReq {
  210. string appId = 1;
  211. int64 positionId = 2;
  212. string userId = 3;
  213. string phone = 4;
  214. }
  215. message TransferClueReq {
  216. int64 positionId = 1;
  217. string userId = 2;
  218. string phone = 3;
  219. string orderNo = 4;
  220. }
  221. message FindClueInfoReq {
  222. string userId = 2;
  223. int64 positionId = 1;
  224. string phone = 3;
  225. }
  226. message ClueInfoReq {
  227. string searchTxt = 1;
  228. string searchType = 2; // 0: 线索名称,1: 联系方式,2: 联系人
  229. int64 pageSize = 3;
  230. int64 pageNum = 4;
  231. }
  232. message MaterialSaveReq {
  233. string task_name = 1;
  234. string task_description = 2;
  235. string material_content = 3;
  236. string qrcode_url = 4;
  237. string receive_user_name = 5;
  238. string receive_user_id = 6;
  239. string file_url = 7;
  240. int64 ent_id = 8;
  241. string create_user = 9;
  242. string img_webpage = 10;
  243. }
  244. message MaterialSaveResp {
  245. int64 error_code = 1;
  246. string error_msg = 2;
  247. int64 msg_id =3;
  248. int64 Material_id = 5;
  249. repeated string userIdArr = 4;
  250. }
  251. service BiService {
  252. rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产
  253. rpc addProject (AddProjectReq) returns (AddProjectResp); //添加项目
  254. rpc getInfoId (AddProjectReq) returns (GetInfoIdResp); //获取添加过项目的信息id
  255. rpc drawClue (DrawClueReq) returns (AddProjectResp); //领取线索
  256. rpc Call (CallReq) returns (BiResp); //外呼集成
  257. rpc distributeClue (DistributeClueReq) returns (AddProjectResp); //批量分配
  258. rpc clueImport (ClueImportReq) returns (ClueImportResp); //线索导入
  259. rpc clueAdd (ClueAddReq) returns (AddProjectResp); //合力亿捷新增线索
  260. rpc clueImportTt (ClueImportReq) returns (ClueImportResp); //线索导入tt
  261. rpc autoFollow (CallReq) returns (ClueImportResp);
  262. rpc sqlManage (SqlManageReq) returns (BiReply); //bi通用接口
  263. rpc myInfo (MyInfoReq) returns (BiReply); //用户身份
  264. rpc allInfoExport (ExportReq) returns (BiReply); //资讯全量导出
  265. rpc allProjectExport (ExportReq) returns (BiReply); //项目全量导出
  266. rpc infoOperate (OperateReq) returns (BiReply); //数据操作
  267. rpc getCompanyType (CompanyReq) returns (CompanyResp); //判断公司类型
  268. rpc distributeClueShow (DistributeClueShowReq) returns (DistributeClueShowResp); //批量分配展示
  269. rpc sendMail (ExportByDbReq) returns (BiReply); //数据导出(通用)
  270. rpc upFile (UpFileReq) returns(BiReply);
  271. rpc sendCommonMail (SendMailReq) returns(BiReply);
  272. rpc addAcceptance (AcceptanceReq) returns(AcceptanceResp);
  273. rpc createClueByPhone(CreateCuleReq) returns(BiReply);
  274. rpc transferClueByPhone(TransferClueReq) returns(BiReply);
  275. rpc findClueInfo(FindClueInfoReq) returns(BiReply);
  276. rpc getClueInfoList(ClueInfoReq) returns(BiReply);
  277. rpc MaterialSave(MaterialSaveReq) returns(MaterialSaveResp);//物料分发保存
  278. }