diff --git a/api/kratos/api/annotations.pb.go b/api/kratos/api/annotations.pb.go index a6743b84c..bc45c0271 100644 --- a/api/kratos/api/annotations.pb.go +++ b/api/kratos/api/annotations.pb.go @@ -1,16 +1,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 -// protoc v3.13.0 +// protoc v3.14.0 // source: kratos/api/annotations.proto package api import ( proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" ) @@ -27,18 +27,18 @@ const _ = proto.ProtoPackageIsVersion4 var file_kratos_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptor.EnumOptions)(nil), + ExtendedType: (*descriptorpb.EnumOptions)(nil), ExtensionType: (*bool)(nil), - Field: 1000, + Field: 1108, Name: "kratos.api.errors", - Tag: "varint,1000,opt,name=errors", + Tag: "varint,1108,opt,name=errors", Filename: "kratos/api/annotations.proto", }, } -// Extension fields to descriptor.EnumOptions. +// Extension fields to descriptorpb.EnumOptions. var ( - // optional bool errors = 1000; + // optional bool errors = 1108; E_Errors = &file_kratos_api_annotations_proto_extTypes[0] ) @@ -52,7 +52,7 @@ var file_kratos_api_annotations_proto_rawDesc = []byte{ 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x35, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x72, 0x72, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd4, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x42, 0x58, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x6b, 0x72, @@ -63,7 +63,7 @@ var file_kratos_api_annotations_proto_rawDesc = []byte{ } var file_kratos_api_annotations_proto_goTypes = []interface{}{ - (*descriptor.EnumOptions)(nil), // 0: google.protobuf.EnumOptions + (*descriptorpb.EnumOptions)(nil), // 0: google.protobuf.EnumOptions } var file_kratos_api_annotations_proto_depIdxs = []int32{ 0, // 0: kratos.api.errors:extendee -> google.protobuf.EnumOptions diff --git a/api/kratos/api/annotations.proto b/api/kratos/api/annotations.proto index 34c4b17e6..576a49ff6 100644 --- a/api/kratos/api/annotations.proto +++ b/api/kratos/api/annotations.proto @@ -9,5 +9,5 @@ option objc_class_prefix = "KratosAPI"; import "google/protobuf/descriptor.proto"; extend google.protobuf.EnumOptions { - bool errors = 1000; + bool errors = 1108; } diff --git a/cmd/protoc-gen-go-errors/go.mod b/cmd/protoc-gen-go-errors/go.mod index 4b22e7ad0..b2f50d9fa 100644 --- a/cmd/protoc-gen-go-errors/go.mod +++ b/cmd/protoc-gen-go-errors/go.mod @@ -3,6 +3,6 @@ module github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2 go 1.15 require ( - github.com/go-kratos/kratos/v2 v2.0.0-beta1 + github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337 google.golang.org/protobuf v1.25.0 ) diff --git a/cmd/protoc-gen-go-errors/go.sum b/cmd/protoc-gen-go-errors/go.sum index 4a3d197c7..e716d796b 100644 --- a/cmd/protoc-gen-go-errors/go.sum +++ b/cmd/protoc-gen-go-errors/go.sum @@ -9,8 +9,8 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/go-kratos/kratos/v2 v2.0.0-beta1 h1:5SWWLa0jYp92DhRGcuDKkuMg68wxkdrVvvPDpNyHy0w= -github.com/go-kratos/kratos/v2 v2.0.0-beta1/go.mod h1:oLvFyDBJkkWN8TPqb+NmpvRrSy9uM/K+XQubVRc11a8= +github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337 h1:UHahAsQ51BvoHP6KDk5VVbCwatLjMKV0vifXbIKeK4E= +github.com/go-kratos/kratos/v2 v2.0.0-20210316155653-99c1cc471337/go.mod h1:oLvFyDBJkkWN8TPqb+NmpvRrSy9uM/K+XQubVRc11a8= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=