card_error.proto 926 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package card;
  3. import "third_party/errors/errors.proto";
  4. option go_package = "ttmylife.com/zeuszhao/types/card;card";
  5. option java_multiple_files = true;
  6. enum CardServiceErrorReason {
  7. option (errors.default_code) = 500;
  8. UNKNOWN_ERROR = 0;
  9. ACCOUNT_PASSWORD_FORMAT = 1;
  10. ACCOUNT_NOTFOUND = 2;
  11. ACCOUNT_EXIST = 3;
  12. ACCOUNT_SYSTEM = 4;
  13. ACCOUNT_UPDATE = 5;
  14. USER_NOTFOUND = 6;
  15. USER_EXIST = 7;
  16. USER_SYSTEM = 8;
  17. USER_UPDATE = 9;
  18. UNAUTHORIZED = 10 [(errors.code) = 401];
  19. FORBIDDEN = 11 [(errors.code) = 403];
  20. ACCOUNT_PASSWORD = 12;
  21. THIRD_WX = 13;
  22. CARD_NOTFOUND = 14;
  23. CARD_EXIST = 15;
  24. CARD_SYSTEM = 16;
  25. CARD_UPDATE = 17;
  26. SHARE_TOKEN_NOTFOUND = 18;
  27. SHARE_TOKEN_EXIST = 19;
  28. SHARE_TOKEN_SYSTEM = 20;
  29. CARD_USER_NOTFOUND = 21;
  30. THIRD_ALIYUN = 22;
  31. ENDPOINT_OSS_UPLOAD = 23;
  32. }