1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-06-15 21:32:43 +02:00
Files

26 lines
530 B
Protocol Buffer
Raw Permalink Normal View History

2021-05-25 00:56:31 +08:00
syntax = "proto3";
2021-06-08 16:33:50 +08:00
package errors;
2021-05-25 00:56:31 +08:00
option go_package = "github.com/go-kratos/kratos/v2/errors;errors";
option java_multiple_files = true;
option java_package = "com.github.kratos.errors";
option objc_class_prefix = "KratosErrors";
2021-06-08 16:33:50 +08:00
import "google/protobuf/descriptor.proto";
message Status {
2021-06-09 10:48:29 +08:00
int32 code = 1;
string reason = 2;
string message = 3;
map<string, string> metadata = 4;
};
2021-06-08 16:33:50 +08:00
extend google.protobuf.EnumOptions {
int32 default_code = 1108;
}
extend google.protobuf.EnumValueOptions {
int32 code = 1109;
}