entManageApplication.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. int64 empower_nolimit = 7;
  19. }
  20. message UsePersonListReq {
  21. int64 entId = 1;
  22. int64 wait_empower_id = 2;
  23. }
  24. message UsePersonListResp {
  25. int64 error_code = 1;
  26. string error_msg = 2;
  27. repeated UsePersonList data = 3;
  28. }
  29. message UsePersonList {
  30. int64 entniche_power_id = 1;
  31. string name = 2;
  32. string email = 3;
  33. string phone = 4;
  34. string department = 5;
  35. string role = 6;
  36. int64 status = 7;
  37. }
  38. message AddUsePersonReq {
  39. int64 wait_empower_id = 1;
  40. string ent_user_id = 2;
  41. int64 entId = 3;
  42. }
  43. message AddUsePersonResp {
  44. int64 error_code = 1;
  45. string error_msg = 2;
  46. AddUsePerson data = 3;
  47. }
  48. message AddUsePerson {
  49. int64 status = 1;
  50. }
  51. message DelUsePersonReq {
  52. int64 entniche_power_id = 1;
  53. }
  54. message EmpowerUserIds {
  55. repeated int64 ids = 1;
  56. }
  57. service EntManageApplication {
  58. rpc buyProductList (BuyProductListReq) returns (BuyProductListResp); //已购产品列表
  59. rpc usePersonList (UsePersonListReq) returns (UsePersonListResp); //使用人员列表
  60. rpc addUsePerson (AddUsePersonReq) returns (AddUsePersonResp); //添加使用人员
  61. rpc delUsePerson (DelUsePersonReq) returns (AddUsePersonResp); //删除使用人员
  62. rpc empowerUserIds (EmpowerUserIds) returns (EmpowerUserIds); //获取指定用户中的已授权用户
  63. }