errors.proto 604 B

1234567891011121314151617181920
  1. syntax = "proto3";
  2. package errors;
  3. option go_package = "IotAdmin/core/errors";
  4. message Error {
  5. // Success if request is success
  6. bool success = 1;
  7. // ErrorCode code for errorType
  8. string errorCode = 2;
  9. // ErrorMessage message display to user
  10. string errorMessage = 3;
  11. // ShowType error display type: 0 silent; 1 message.warn; 2 message.error; 4 notification; 9 page
  12. string showType = 4;
  13. // TraceId Convenient for back-end Troubleshooting: unique request ID
  14. string traceId = 5;
  15. // Domain onvenient for backend Troubleshooting: host of current access server
  16. string domain = 6;
  17. };