From c8b477d167986781c9f1ba40e3e846395ba433fa Mon Sep 17 00:00:00 2001 From: longxboy Date: Sun, 27 Jun 2021 14:55:29 +0800 Subject: [PATCH] add error third party (#1114) * add error third party * fix errors format --- third_party/errors/errors.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 third_party/errors/errors.proto diff --git a/third_party/errors/errors.proto b/third_party/errors/errors.proto new file mode 100644 index 000000000..331f0fbaa --- /dev/null +++ b/third_party/errors/errors.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package errors; + +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"; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.EnumOptions { + int32 default_code = 1108; +} + +extend google.protobuf.EnumValueOptions { + int32 code = 1109; +}