biService.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 Resp {
  55. int64 error_code = 1;
  56. string error_msg = 2;
  57. string data = 3;
  58. }
  59. message DistributeClueReq {
  60. string clueCount = 1;
  61. repeated int64 clueIdList = 2;
  62. repeated DistributeDatas datas = 3;
  63. int64 positionId = 4;
  64. int64 isTask = 5;
  65. }
  66. message DistributeDatas {
  67. string name = 1;
  68. int64 positionId = 2;
  69. string totalCount = 3;
  70. string uncompletedCount = 4;
  71. int64 distributedCount = 5;
  72. }
  73. message ClueImportReq {
  74. string pcbh = 1;
  75. int64 positionId = 2;
  76. }
  77. message ClueImportResp {
  78. int64 error_code = 1;
  79. string error_msg = 2;
  80. ClueImport data = 3;
  81. }
  82. message ClueImport {
  83. int64 status = 1;
  84. string result = 2;
  85. }
  86. service BiService {
  87. rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产
  88. rpc addProject (AddProjectReq) returns (AddProjectResp); //添加项目
  89. rpc getInfoId (AddProjectReq) returns (GetInfoIdResp); //获取添加过项目的信息id
  90. rpc drawClue (DrawClueReq) returns (AddProjectResp); //领取线索
  91. rpc Call (CallReq) returns (Resp); //外呼集成
  92. rpc distributeClue (DistributeClueReq) returns (AddProjectResp); //批量分配
  93. rpc clueImport (ClueImportReq) returns (ClueImportResp); //线索导入
  94. }