entManageApplication.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. syntax = "proto3";
  2. option go_package ="./pb";
  3. message BuyProductListReq {
  4. int64 entId = 1;
  5. }
  6. message BuyProductListResp {
  7. int64 error_code = 1;
  8. string error_msg = 2;
  9. repeated BuyProductList data = 3;
  10. }
  11. message BuyProductList {
  12. int64 wait_empower_id = 1;
  13. string product_type = 2;
  14. int64 use_count = 3;
  15. int64 empower_count = 4;
  16. int64 province_count = 5;
  17. string end_time = 6;
  18. }
  19. message UsePersonListReq {
  20. int64 entId = 1;
  21. int64 wait_empower_id = 2;
  22. }
  23. message UsePersonListResp {
  24. int64 error_code = 1;
  25. string error_msg = 2;
  26. repeated UsePersonList data = 3;
  27. }
  28. message UsePersonList {
  29. int64 entniche_power_id = 1;
  30. string name = 2;
  31. string email = 3;
  32. string phone = 4;
  33. string department = 5;
  34. string role = 6;
  35. int64 status = 7;
  36. }
  37. message AddUsePersonReq {
  38. int64 wait_empower_id = 1;
  39. string ent_user_id = 2;
  40. int64 entId = 3;
  41. }
  42. message AddUsePersonResp {
  43. int64 error_code = 1;
  44. string error_msg = 2;
  45. AddUsePerson data = 3;
  46. }
  47. message AddUsePerson {
  48. int64 status = 1;
  49. }
  50. message DelUsePersonReq {
  51. int64 entniche_power_id = 1;
  52. }
  53. message EmpowerUserIds {
  54. repeated int64 ids = 1;
  55. }
  56. service EntManageApplication {
  57. rpc buyProductList (BuyProductListReq) returns (BuyProductListResp); //已购产品列表
  58. rpc usePersonList (UsePersonListReq) returns (UsePersonListResp); //使用人员列表
  59. rpc addUsePerson (AddUsePersonReq) returns (AddUsePersonResp); //添加使用人员
  60. rpc delUsePerson (DelUsePersonReq) returns (AddUsePersonResp); //删除使用人员
  61. rpc empowerUserIds (EmpowerUserIds) returns (EmpowerUserIds); //获取指定用户中的已授权用户
  62. }