operation_log.proto 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-site-management-gateway/pb/v1";
  6. message LogAddRequest {
  7. int64 uid = 1;
  8. string operation = 2;
  9. int32 result = 3;
  10. string detail = 4;
  11. int32 type = 5;
  12. string username = 6;
  13. int64 project_id = 7;
  14. }
  15. message LogAddReply {
  16. }
  17. message LogInfo {
  18. string name = 1;
  19. string operation = 2;
  20. string result = 3;
  21. string detail = 4;
  22. int64 uid = 5;
  23. string time = 6;
  24. string project_name = 7;
  25. int64 project_id = 8;
  26. string project_no = 9;
  27. string safety_record_no = 10;
  28. }
  29. message LogListRequest {
  30. int32 page = 1;
  31. int64 start = 2;
  32. int64 end = 3;
  33. int32 type = 4;
  34. }
  35. message LogListReply {
  36. repeated LogInfo list = 1;
  37. int64 total = 2;
  38. int32 page = 3;
  39. int32 page_size = 4;
  40. }