entManageApplication.proto 1.6 KB

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