biService.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. }
  40. message GetInfoIdResp {
  41. int64 error_code = 1;
  42. string error_msg = 2;
  43. repeated string data = 3;
  44. }
  45. message drawClueReq {
  46. int64 positionId = 1;
  47. int64 count = 2;
  48. }
  49. service BiService {
  50. rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产
  51. rpc addProject (AddProjectReq) returns (AddProjectResp); //添加项目
  52. rpc getInfoId (AddProjectReq) returns (GetInfoIdResp); //获取添加过项目的信息id
  53. rpc drawClue (drawClueReq) returns (AddProjectResp); //领取线索
  54. }