refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: check.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/initial/proto/check.proto
|
||||
|
||||
package initial
|
||||
|
||||
@@ -30,7 +30,7 @@ type Crc struct {
|
||||
|
||||
func (x *Crc) Reset() {
|
||||
*x = Crc{}
|
||||
mi := &file_check_proto_msgTypes[0]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -42,7 +42,7 @@ func (x *Crc) String() string {
|
||||
func (*Crc) ProtoMessage() {}
|
||||
|
||||
func (x *Crc) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[0]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -55,7 +55,7 @@ func (x *Crc) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Crc.ProtoReflect.Descriptor instead.
|
||||
func (*Crc) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Crc) GetCode() string {
|
||||
@@ -77,7 +77,7 @@ type StatusReply struct {
|
||||
|
||||
func (x *StatusReply) Reset() {
|
||||
*x = StatusReply{}
|
||||
mi := &file_check_proto_msgTypes[1]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -89,7 +89,7 @@ func (x *StatusReply) String() string {
|
||||
func (*StatusReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[1]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -102,7 +102,7 @@ func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatusReply) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetCode() int32 {
|
||||
@@ -143,7 +143,7 @@ type ConfigRequest struct {
|
||||
|
||||
func (x *ConfigRequest) Reset() {
|
||||
*x = ConfigRequest{}
|
||||
mi := &file_check_proto_msgTypes[2]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -155,7 +155,7 @@ func (x *ConfigRequest) String() string {
|
||||
func (*ConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[2]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -168,7 +168,7 @@ func (x *ConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ConfigRequest) GetApp() string {
|
||||
@@ -194,7 +194,7 @@ type ConfigReply struct {
|
||||
|
||||
func (x *ConfigReply) Reset() {
|
||||
*x = ConfigReply{}
|
||||
mi := &file_check_proto_msgTypes[3]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -206,7 +206,7 @@ func (x *ConfigReply) String() string {
|
||||
func (*ConfigReply) ProtoMessage() {}
|
||||
|
||||
func (x *ConfigReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[3]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -219,7 +219,7 @@ func (x *ConfigReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ConfigReply.ProtoReflect.Descriptor instead.
|
||||
func (*ConfigReply) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *ConfigReply) GetData() []*ConfigItem {
|
||||
@@ -241,7 +241,7 @@ type ConfigItem struct {
|
||||
|
||||
func (x *ConfigItem) Reset() {
|
||||
*x = ConfigItem{}
|
||||
mi := &file_check_proto_msgTypes[4]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -253,7 +253,7 @@ func (x *ConfigItem) String() string {
|
||||
func (*ConfigItem) ProtoMessage() {}
|
||||
|
||||
func (x *ConfigItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[4]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -266,7 +266,7 @@ func (x *ConfigItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ConfigItem.ProtoReflect.Descriptor instead.
|
||||
func (*ConfigItem) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *ConfigItem) GetIdentity() string {
|
||||
@@ -309,7 +309,7 @@ type CheckForUpdatesRequest struct {
|
||||
|
||||
func (x *CheckForUpdatesRequest) Reset() {
|
||||
*x = CheckForUpdatesRequest{}
|
||||
mi := &file_check_proto_msgTypes[5]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -321,7 +321,7 @@ func (x *CheckForUpdatesRequest) String() string {
|
||||
func (*CheckForUpdatesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CheckForUpdatesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[5]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -334,7 +334,7 @@ func (x *CheckForUpdatesRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CheckForUpdatesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CheckForUpdatesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *CheckForUpdatesRequest) GetApp() string {
|
||||
@@ -378,7 +378,7 @@ type CheckForUpdatesReply struct {
|
||||
|
||||
func (x *CheckForUpdatesReply) Reset() {
|
||||
*x = CheckForUpdatesReply{}
|
||||
mi := &file_check_proto_msgTypes[6]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -390,7 +390,7 @@ func (x *CheckForUpdatesReply) String() string {
|
||||
func (*CheckForUpdatesReply) ProtoMessage() {}
|
||||
|
||||
func (x *CheckForUpdatesReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_check_proto_msgTypes[6]
|
||||
mi := &file_module_base_initial_proto_check_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -403,7 +403,7 @@ func (x *CheckForUpdatesReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CheckForUpdatesReply.ProtoReflect.Descriptor instead.
|
||||
func (*CheckForUpdatesReply) Descriptor() ([]byte, []int) {
|
||||
return file_check_proto_rawDescGZIP(), []int{6}
|
||||
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *CheckForUpdatesReply) GetIdentity() string {
|
||||
@@ -441,11 +441,11 @@ func (x *CheckForUpdatesReply) GetPubdate() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_check_proto protoreflect.FileDescriptor
|
||||
var File_module_base_initial_proto_check_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_check_proto_rawDesc = "" +
|
||||
const file_module_base_initial_proto_check_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x18base/initial/check.proto\x12\ainitial\"\x19\n" +
|
||||
"%module/base/initial/proto/check.proto\x12\ainitial\"\x19\n" +
|
||||
"\x03Crc\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\tR\x04code\"o\n" +
|
||||
"\vStatusReply\x12\x12\n" +
|
||||
@@ -478,22 +478,22 @@ const file_check_proto_rawDesc = "" +
|
||||
"\x05Check\x12-\n" +
|
||||
"\x05Hello\x12\f.initial.Crc\x1a\x14.initial.StatusReply\"\x00\x128\n" +
|
||||
"\x06Config\x12\x16.initial.ConfigRequest\x1a\x14.initial.ConfigReply\"\x00\x12K\n" +
|
||||
"\aUpdates\x12\x1f.initial.CheckForUpdatesRequest\x1a\x1d.initial.CheckForUpdatesReply\"\x00B\vZ\t.;initialb\x06proto3"
|
||||
"\aUpdates\x12\x1f.initial.CheckForUpdatesRequest\x1a\x1d.initial.CheckForUpdatesReply\"\x00B)Z'bsm/full/module/base/initial/pb;initialb\x06proto3"
|
||||
|
||||
var (
|
||||
file_check_proto_rawDescOnce sync.Once
|
||||
file_check_proto_rawDescData []byte
|
||||
file_module_base_initial_proto_check_proto_rawDescOnce sync.Once
|
||||
file_module_base_initial_proto_check_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_check_proto_rawDescGZIP() []byte {
|
||||
file_check_proto_rawDescOnce.Do(func() {
|
||||
file_check_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_check_proto_rawDesc), len(file_check_proto_rawDesc)))
|
||||
func file_module_base_initial_proto_check_proto_rawDescGZIP() []byte {
|
||||
file_module_base_initial_proto_check_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_initial_proto_check_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_check_proto_rawDesc), len(file_module_base_initial_proto_check_proto_rawDesc)))
|
||||
})
|
||||
return file_check_proto_rawDescData
|
||||
return file_module_base_initial_proto_check_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_check_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_check_proto_goTypes = []any{
|
||||
var file_module_base_initial_proto_check_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_module_base_initial_proto_check_proto_goTypes = []any{
|
||||
(*Crc)(nil), // 0: initial.Crc
|
||||
(*StatusReply)(nil), // 1: initial.StatusReply
|
||||
(*ConfigRequest)(nil), // 2: initial.ConfigRequest
|
||||
@@ -502,7 +502,7 @@ var file_check_proto_goTypes = []any{
|
||||
(*CheckForUpdatesRequest)(nil), // 5: initial.CheckForUpdatesRequest
|
||||
(*CheckForUpdatesReply)(nil), // 6: initial.CheckForUpdatesReply
|
||||
}
|
||||
var file_check_proto_depIdxs = []int32{
|
||||
var file_module_base_initial_proto_check_proto_depIdxs = []int32{
|
||||
4, // 0: initial.ConfigReply.data:type_name -> initial.ConfigItem
|
||||
0, // 1: initial.Check.Hello:input_type -> initial.Crc
|
||||
2, // 2: initial.Check.Config:input_type -> initial.ConfigRequest
|
||||
@@ -517,26 +517,26 @@ var file_check_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_check_proto_init() }
|
||||
func file_check_proto_init() {
|
||||
if File_check_proto != nil {
|
||||
func init() { file_module_base_initial_proto_check_proto_init() }
|
||||
func file_module_base_initial_proto_check_proto_init() {
|
||||
if File_module_base_initial_proto_check_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_check_proto_rawDesc), len(file_check_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_check_proto_rawDesc), len(file_module_base_initial_proto_check_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_check_proto_goTypes,
|
||||
DependencyIndexes: file_check_proto_depIdxs,
|
||||
MessageInfos: file_check_proto_msgTypes,
|
||||
GoTypes: file_module_base_initial_proto_check_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_initial_proto_check_proto_depIdxs,
|
||||
MessageInfos: file_module_base_initial_proto_check_proto_msgTypes,
|
||||
}.Build()
|
||||
File_check_proto = out.File
|
||||
file_check_proto_goTypes = nil
|
||||
file_check_proto_depIdxs = nil
|
||||
File_module_base_initial_proto_check_proto = out.File
|
||||
file_module_base_initial_proto_check_proto_goTypes = nil
|
||||
file_module_base_initial_proto_check_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: check.proto
|
||||
// source: module/base/initial/proto/check.proto
|
||||
|
||||
/*
|
||||
Package initial is a reverse proxy.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: check.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/initial/proto/check.proto
|
||||
|
||||
package initial
|
||||
|
||||
@@ -77,7 +77,7 @@ func (c *checkClient) Updates(ctx context.Context, in *CheckForUpdatesRequest, o
|
||||
}
|
||||
|
||||
// CheckServer is the server API for Check service.
|
||||
// All implementations must embed UnimplementedCheckServer
|
||||
// All implementations should embed UnimplementedCheckServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// initial-检测是否有新版或新的配置
|
||||
@@ -88,10 +88,9 @@ type CheckServer interface {
|
||||
Config(context.Context, *ConfigRequest) (*ConfigReply, error)
|
||||
// 检查更新
|
||||
Updates(context.Context, *CheckForUpdatesRequest) (*CheckForUpdatesReply, error)
|
||||
mustEmbedUnimplementedCheckServer()
|
||||
}
|
||||
|
||||
// UnimplementedCheckServer must be embedded to have
|
||||
// UnimplementedCheckServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -99,16 +98,15 @@ type CheckServer interface {
|
||||
type UnimplementedCheckServer struct{}
|
||||
|
||||
func (UnimplementedCheckServer) Hello(context.Context, *Crc) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Hello not implemented")
|
||||
}
|
||||
func (UnimplementedCheckServer) Config(context.Context, *ConfigRequest) (*ConfigReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Config not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Config not implemented")
|
||||
}
|
||||
func (UnimplementedCheckServer) Updates(context.Context, *CheckForUpdatesRequest) (*CheckForUpdatesReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Updates not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Updates not implemented")
|
||||
}
|
||||
func (UnimplementedCheckServer) mustEmbedUnimplementedCheckServer() {}
|
||||
func (UnimplementedCheckServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedCheckServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeCheckServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to CheckServer will
|
||||
@@ -118,7 +116,7 @@ type UnsafeCheckServer interface {
|
||||
}
|
||||
|
||||
func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer) {
|
||||
// If the following call pancis, it indicates UnimplementedCheckServer was
|
||||
// If the following call panics, it indicates UnimplementedCheckServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -203,5 +201,5 @@ var Check_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "check.proto",
|
||||
Metadata: "module/base/initial/proto/check.proto",
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: data.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/initial/proto/data.proto
|
||||
|
||||
package initial
|
||||
|
||||
@@ -29,7 +29,7 @@ type Empty struct {
|
||||
|
||||
func (x *Empty) Reset() {
|
||||
*x = Empty{}
|
||||
mi := &file_data_proto_msgTypes[0]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -41,7 +41,7 @@ func (x *Empty) String() string {
|
||||
func (*Empty) ProtoMessage() {}
|
||||
|
||||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[0]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -54,7 +54,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||||
func (*Empty) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type CountryReply struct {
|
||||
@@ -66,7 +66,7 @@ type CountryReply struct {
|
||||
|
||||
func (x *CountryReply) Reset() {
|
||||
*x = CountryReply{}
|
||||
mi := &file_data_proto_msgTypes[1]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -78,7 +78,7 @@ func (x *CountryReply) String() string {
|
||||
func (*CountryReply) ProtoMessage() {}
|
||||
|
||||
func (x *CountryReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[1]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -91,7 +91,7 @@ func (x *CountryReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CountryReply.ProtoReflect.Descriptor instead.
|
||||
func (*CountryReply) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CountryReply) GetCountries() []*CountryItem {
|
||||
@@ -123,7 +123,7 @@ type CountryItem struct {
|
||||
|
||||
func (x *CountryItem) Reset() {
|
||||
*x = CountryItem{}
|
||||
mi := &file_data_proto_msgTypes[2]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -135,7 +135,7 @@ func (x *CountryItem) String() string {
|
||||
func (*CountryItem) ProtoMessage() {}
|
||||
|
||||
func (x *CountryItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[2]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -148,7 +148,7 @@ func (x *CountryItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CountryItem.ProtoReflect.Descriptor instead.
|
||||
func (*CountryItem) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CountryItem) GetId() uint32 {
|
||||
@@ -263,7 +263,7 @@ type AreasRequest struct {
|
||||
|
||||
func (x *AreasRequest) Reset() {
|
||||
*x = AreasRequest{}
|
||||
mi := &file_data_proto_msgTypes[3]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -275,7 +275,7 @@ func (x *AreasRequest) String() string {
|
||||
func (*AreasRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AreasRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[3]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -288,7 +288,7 @@ func (x *AreasRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AreasRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AreasRequest) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *AreasRequest) GetCountryId() int32 {
|
||||
@@ -321,7 +321,7 @@ type AreasReply struct {
|
||||
|
||||
func (x *AreasReply) Reset() {
|
||||
*x = AreasReply{}
|
||||
mi := &file_data_proto_msgTypes[4]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -333,7 +333,7 @@ func (x *AreasReply) String() string {
|
||||
func (*AreasReply) ProtoMessage() {}
|
||||
|
||||
func (x *AreasReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[4]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -346,7 +346,7 @@ func (x *AreasReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AreasReply.ProtoReflect.Descriptor instead.
|
||||
func (*AreasReply) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *AreasReply) GetAreas() []*AreasItem {
|
||||
@@ -372,7 +372,7 @@ type AreasItem struct {
|
||||
|
||||
func (x *AreasItem) Reset() {
|
||||
*x = AreasItem{}
|
||||
mi := &file_data_proto_msgTypes[5]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -384,7 +384,7 @@ func (x *AreasItem) String() string {
|
||||
func (*AreasItem) ProtoMessage() {}
|
||||
|
||||
func (x *AreasItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[5]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -397,7 +397,7 @@ func (x *AreasItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AreasItem.ProtoReflect.Descriptor instead.
|
||||
func (*AreasItem) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *AreasItem) GetId() string {
|
||||
@@ -465,7 +465,7 @@ type DatasReply struct {
|
||||
|
||||
func (x *DatasReply) Reset() {
|
||||
*x = DatasReply{}
|
||||
mi := &file_data_proto_msgTypes[6]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -477,7 +477,7 @@ func (x *DatasReply) String() string {
|
||||
func (*DatasReply) ProtoMessage() {}
|
||||
|
||||
func (x *DatasReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[6]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -490,7 +490,7 @@ func (x *DatasReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DatasReply.ProtoReflect.Descriptor instead.
|
||||
func (*DatasReply) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{6}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *DatasReply) GetDatas() []*DatasItem {
|
||||
@@ -514,7 +514,7 @@ type DatasItem struct {
|
||||
|
||||
func (x *DatasItem) Reset() {
|
||||
*x = DatasItem{}
|
||||
mi := &file_data_proto_msgTypes[7]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -526,7 +526,7 @@ func (x *DatasItem) String() string {
|
||||
func (*DatasItem) ProtoMessage() {}
|
||||
|
||||
func (x *DatasItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_data_proto_msgTypes[7]
|
||||
mi := &file_module_base_initial_proto_data_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -539,7 +539,7 @@ func (x *DatasItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DatasItem.ProtoReflect.Descriptor instead.
|
||||
func (*DatasItem) Descriptor() ([]byte, []int) {
|
||||
return file_data_proto_rawDescGZIP(), []int{7}
|
||||
return file_module_base_initial_proto_data_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *DatasItem) GetId() int64 {
|
||||
@@ -584,12 +584,11 @@ func (x *DatasItem) GetIcon() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_data_proto protoreflect.FileDescriptor
|
||||
var File_module_base_initial_proto_data_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_data_proto_rawDesc = "" +
|
||||
const file_module_base_initial_proto_data_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x17" +
|
||||
"base/initial/data.proto\x12\ainitial\"\a\n" +
|
||||
"$module/base/initial/proto/data.proto\x12\ainitial\"\a\n" +
|
||||
"\x05Empty\"B\n" +
|
||||
"\fCountryReply\x122\n" +
|
||||
"\tcountries\x18\x01 \x03(\v2\x14.initial.CountryItemR\tcountries\"\x8a\x03\n" +
|
||||
@@ -642,22 +641,22 @@ const file_data_proto_rawDesc = "" +
|
||||
"\x04Data\x122\n" +
|
||||
"\aCountry\x12\x0e.initial.Empty\x1a\x15.initial.CountryReply\"\x00\x125\n" +
|
||||
"\x05Areas\x12\x15.initial.AreasRequest\x1a\x13.initial.AreasReply\"\x00\x12.\n" +
|
||||
"\x05Datas\x12\x0e.initial.Empty\x1a\x13.initial.DatasReply\"\x00B\vZ\t.;initialb\x06proto3"
|
||||
"\x05Datas\x12\x0e.initial.Empty\x1a\x13.initial.DatasReply\"\x00B)Z'bsm/full/module/base/initial/pb;initialb\x06proto3"
|
||||
|
||||
var (
|
||||
file_data_proto_rawDescOnce sync.Once
|
||||
file_data_proto_rawDescData []byte
|
||||
file_module_base_initial_proto_data_proto_rawDescOnce sync.Once
|
||||
file_module_base_initial_proto_data_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_data_proto_rawDescGZIP() []byte {
|
||||
file_data_proto_rawDescOnce.Do(func() {
|
||||
file_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_data_proto_rawDesc), len(file_data_proto_rawDesc)))
|
||||
func file_module_base_initial_proto_data_proto_rawDescGZIP() []byte {
|
||||
file_module_base_initial_proto_data_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_initial_proto_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_data_proto_rawDesc), len(file_module_base_initial_proto_data_proto_rawDesc)))
|
||||
})
|
||||
return file_data_proto_rawDescData
|
||||
return file_module_base_initial_proto_data_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_data_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_data_proto_goTypes = []any{
|
||||
var file_module_base_initial_proto_data_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_module_base_initial_proto_data_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: initial.Empty
|
||||
(*CountryReply)(nil), // 1: initial.CountryReply
|
||||
(*CountryItem)(nil), // 2: initial.CountryItem
|
||||
@@ -667,7 +666,7 @@ var file_data_proto_goTypes = []any{
|
||||
(*DatasReply)(nil), // 6: initial.DatasReply
|
||||
(*DatasItem)(nil), // 7: initial.DatasItem
|
||||
}
|
||||
var file_data_proto_depIdxs = []int32{
|
||||
var file_module_base_initial_proto_data_proto_depIdxs = []int32{
|
||||
2, // 0: initial.CountryReply.countries:type_name -> initial.CountryItem
|
||||
5, // 1: initial.AreasReply.areas:type_name -> initial.AreasItem
|
||||
7, // 2: initial.DatasReply.datas:type_name -> initial.DatasItem
|
||||
@@ -684,26 +683,26 @@ var file_data_proto_depIdxs = []int32{
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_data_proto_init() }
|
||||
func file_data_proto_init() {
|
||||
if File_data_proto != nil {
|
||||
func init() { file_module_base_initial_proto_data_proto_init() }
|
||||
func file_module_base_initial_proto_data_proto_init() {
|
||||
if File_module_base_initial_proto_data_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_data_proto_rawDesc), len(file_data_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_data_proto_rawDesc), len(file_module_base_initial_proto_data_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_data_proto_goTypes,
|
||||
DependencyIndexes: file_data_proto_depIdxs,
|
||||
MessageInfos: file_data_proto_msgTypes,
|
||||
GoTypes: file_module_base_initial_proto_data_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_initial_proto_data_proto_depIdxs,
|
||||
MessageInfos: file_module_base_initial_proto_data_proto_msgTypes,
|
||||
}.Build()
|
||||
File_data_proto = out.File
|
||||
file_data_proto_goTypes = nil
|
||||
file_data_proto_depIdxs = nil
|
||||
File_module_base_initial_proto_data_proto = out.File
|
||||
file_module_base_initial_proto_data_proto_goTypes = nil
|
||||
file_module_base_initial_proto_data_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: data.proto
|
||||
// source: module/base/initial/proto/data.proto
|
||||
|
||||
/*
|
||||
Package initial is a reverse proxy.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: data.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/initial/proto/data.proto
|
||||
|
||||
package initial
|
||||
|
||||
@@ -76,7 +76,7 @@ func (c *dataClient) Datas(ctx context.Context, in *Empty, opts ...grpc.CallOpti
|
||||
}
|
||||
|
||||
// DataServer is the server API for Data service.
|
||||
// All implementations must embed UnimplementedDataServer
|
||||
// All implementations should embed UnimplementedDataServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// initial-数据
|
||||
@@ -86,10 +86,9 @@ type DataServer interface {
|
||||
Areas(context.Context, *AreasRequest) (*AreasReply, error)
|
||||
// 系统数据
|
||||
Datas(context.Context, *Empty) (*DatasReply, error)
|
||||
mustEmbedUnimplementedDataServer()
|
||||
}
|
||||
|
||||
// UnimplementedDataServer must be embedded to have
|
||||
// UnimplementedDataServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -97,16 +96,15 @@ type DataServer interface {
|
||||
type UnimplementedDataServer struct{}
|
||||
|
||||
func (UnimplementedDataServer) Country(context.Context, *Empty) (*CountryReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Country not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Country not implemented")
|
||||
}
|
||||
func (UnimplementedDataServer) Areas(context.Context, *AreasRequest) (*AreasReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Areas not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Areas not implemented")
|
||||
}
|
||||
func (UnimplementedDataServer) Datas(context.Context, *Empty) (*DatasReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Datas not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Datas not implemented")
|
||||
}
|
||||
func (UnimplementedDataServer) mustEmbedUnimplementedDataServer() {}
|
||||
func (UnimplementedDataServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedDataServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeDataServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to DataServer will
|
||||
@@ -116,7 +114,7 @@ type UnsafeDataServer interface {
|
||||
}
|
||||
|
||||
func RegisterDataServer(s grpc.ServiceRegistrar, srv DataServer) {
|
||||
// If the following call pancis, it indicates UnimplementedDataServer was
|
||||
// If the following call panics, it indicates UnimplementedDataServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -201,5 +199,5 @@ var Data_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "data.proto",
|
||||
Metadata: "module/base/initial/proto/data.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user