mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
fix errors proto (#1020)
This commit is contained in:
+7
-7
@@ -9,6 +9,13 @@ option objc_class_prefix = "KratosErrors";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
message Error {
|
||||
int32 code = 1;
|
||||
string reason = 2;
|
||||
string message = 3;
|
||||
map<string, string> metadata = 4;
|
||||
};
|
||||
|
||||
extend google.protobuf.EnumOptions {
|
||||
int32 default_code = 1108;
|
||||
}
|
||||
@@ -16,10 +23,3 @@ extend google.protobuf.EnumOptions {
|
||||
extend google.protobuf.EnumValueOptions {
|
||||
int32 code = 1109;
|
||||
}
|
||||
|
||||
message Error {
|
||||
int32 code = 1;
|
||||
string reason = 2;
|
||||
string message = 3;
|
||||
map<string, string> metadata = 4;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user