property_log.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-gateway/pb/v1";
  6. message CompanyLogAddRequest {
  7. int64 uid = 1;
  8. string action = 2;
  9. string origin = 3;
  10. string target = 4;
  11. string username = 5;
  12. int64 cid = 6;
  13. int64 timestamp = 7;
  14. string module = 8;
  15. }
  16. message CompanyLogAddReply {
  17. }
  18. message CompanyLogItem {
  19. int64 uid = 1;
  20. string action = 2;
  21. string origin = 3;
  22. string target = 4;
  23. string username = 5;
  24. int64 cid = 6;
  25. string created_at = 7;
  26. int64 id = 8;
  27. string module = 9;
  28. }
  29. message CompanyLogRequest {
  30. int64 page = 1;
  31. int64 page_size = 2;
  32. int64 start = 3;
  33. int64 end = 4;
  34. int64 cid = 5;
  35. }
  36. message CompanyLogReply {
  37. int64 total = 1;
  38. int64 page = 2;
  39. repeated CompanyLogItem list = 3;
  40. }
  41. message SystemLogAddRequest {
  42. int64 uid = 1;
  43. string action = 2;
  44. string origin = 3;
  45. string target = 4;
  46. string username = 5;
  47. int64 cid = 6;
  48. int64 timestamp = 7;
  49. int64 garden_id = 8;
  50. string module = 9;
  51. }
  52. message SystemLogAddReply {
  53. }
  54. message SystemLogItem {
  55. int64 uid = 1;
  56. string action = 2;
  57. string origin = 3;
  58. string target = 4;
  59. string username = 5;
  60. int64 cid = 6;
  61. string created_at = 7;
  62. int64 id = 8;
  63. int64 garden_id = 9;
  64. string module = 10;
  65. }
  66. message SystemLogRequest {
  67. int64 page = 1;
  68. int64 page_size = 2;
  69. int64 start = 3;
  70. int64 end = 4;
  71. int64 garden_id = 5;
  72. int64 cid = 6;
  73. }
  74. message SystemLogReply {
  75. int64 total = 1;
  76. int64 page = 2;
  77. repeated SystemLogItem list = 3;
  78. }