refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: private.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/cloud/proto/private.proto
|
||||
|
||||
package cloud
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -38,7 +39,7 @@ type CreatePrivateDataRequest struct {
|
||||
|
||||
func (x *CreatePrivateDataRequest) Reset() {
|
||||
*x = CreatePrivateDataRequest{}
|
||||
mi := &file_private_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -50,7 +51,7 @@ func (x *CreatePrivateDataRequest) String() string {
|
||||
func (*CreatePrivateDataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreatePrivateDataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_private_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -63,7 +64,7 @@ func (x *CreatePrivateDataRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CreatePrivateDataRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreatePrivateDataRequest) Descriptor() ([]byte, []int) {
|
||||
return file_private_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_cloud_proto_private_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CreatePrivateDataRequest) GetCloudId() uint64 {
|
||||
@@ -132,7 +133,7 @@ type ListPrivateDataResponse struct {
|
||||
|
||||
func (x *ListPrivateDataResponse) Reset() {
|
||||
*x = ListPrivateDataResponse{}
|
||||
mi := &file_private_proto_msgTypes[1]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -144,7 +145,7 @@ func (x *ListPrivateDataResponse) String() string {
|
||||
func (*ListPrivateDataResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListPrivateDataResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_private_proto_msgTypes[1]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -157,7 +158,7 @@ func (x *ListPrivateDataResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListPrivateDataResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListPrivateDataResponse) Descriptor() ([]byte, []int) {
|
||||
return file_private_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_cloud_proto_private_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ListPrivateDataResponse) GetData() []*CloudPrivateItem {
|
||||
@@ -184,7 +185,7 @@ type DataRequest struct {
|
||||
|
||||
func (x *DataRequest) Reset() {
|
||||
*x = DataRequest{}
|
||||
mi := &file_private_proto_msgTypes[2]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -196,7 +197,7 @@ func (x *DataRequest) String() string {
|
||||
func (*DataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_private_proto_msgTypes[2]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -209,7 +210,7 @@ func (x *DataRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DataRequest) Descriptor() ([]byte, []int) {
|
||||
return file_private_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_cloud_proto_private_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *DataRequest) GetData() string {
|
||||
@@ -245,7 +246,7 @@ type CloudPrivateItem struct {
|
||||
|
||||
func (x *CloudPrivateItem) Reset() {
|
||||
*x = CloudPrivateItem{}
|
||||
mi := &file_private_proto_msgTypes[3]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -257,7 +258,7 @@ func (x *CloudPrivateItem) String() string {
|
||||
func (*CloudPrivateItem) ProtoMessage() {}
|
||||
|
||||
func (x *CloudPrivateItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_private_proto_msgTypes[3]
|
||||
mi := &file_module_base_cloud_proto_private_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -270,7 +271,7 @@ func (x *CloudPrivateItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CloudPrivateItem.ProtoReflect.Descriptor instead.
|
||||
func (*CloudPrivateItem) Descriptor() ([]byte, []int) {
|
||||
return file_private_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_cloud_proto_private_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *CloudPrivateItem) GetId() uint64 {
|
||||
@@ -343,11 +344,11 @@ func (x *CloudPrivateItem) GetUpdatedAt() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_private_proto protoreflect.FileDescriptor
|
||||
var File_module_base_cloud_proto_private_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_private_proto_rawDesc = "" +
|
||||
const file_module_base_cloud_proto_private_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x18base/cloud/private.proto\x12\x05cloud\x1a\x12cloud/blocks.proto\"\xfc\x01\n" +
|
||||
"%module/base/cloud/proto/private.proto\x12\x05cloud\x1a\x15protobuf/blocks.proto\"\xfc\x01\n" +
|
||||
"\x18CreatePrivateDataRequest\x12\x19\n" +
|
||||
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
||||
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\x12\x1b\n" +
|
||||
@@ -376,60 +377,60 @@ const file_private_proto_rawDesc = "" +
|
||||
"created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\n" +
|
||||
" \x01(\tR\tupdatedAt2\xe0\x04\n" +
|
||||
"\aPrivate\x12H\n" +
|
||||
"\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x12.cloud.StatusReply\x12>\n" +
|
||||
"\x0eGetPrivateData\x12\x13.cloud.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12@\n" +
|
||||
"\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x12.cloud.StatusReply\x12<\n" +
|
||||
"\x11DeletePrivateData\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReply\x12F\n" +
|
||||
"\x0fListPrivateData\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12K\n" +
|
||||
"\x14GetPrivateDataByType\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12H\n" +
|
||||
"\x11SearchPrivateData\x12\x13.cloud.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x125\n" +
|
||||
"\vEncryptData\x12\x12.cloud.DataRequest\x1a\x12.cloud.StatusReply\x125\n" +
|
||||
"\vDecryptData\x12\x12.cloud.DataRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3"
|
||||
" \x01(\tR\tupdatedAt2\xea\x04\n" +
|
||||
"\aPrivate\x12I\n" +
|
||||
"\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x13.blocks.StatusReply\x12?\n" +
|
||||
"\x0eGetPrivateData\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12A\n" +
|
||||
"\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x13.blocks.StatusReply\x12>\n" +
|
||||
"\x11DeletePrivateData\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12G\n" +
|
||||
"\x0fListPrivateData\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12L\n" +
|
||||
"\x14GetPrivateDataByType\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12I\n" +
|
||||
"\x11SearchPrivateData\x12\x14.blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x126\n" +
|
||||
"\vEncryptData\x12\x12.cloud.DataRequest\x1a\x13.blocks.StatusReply\x126\n" +
|
||||
"\vDecryptData\x12\x12.cloud.DataRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_private_proto_rawDescOnce sync.Once
|
||||
file_private_proto_rawDescData []byte
|
||||
file_module_base_cloud_proto_private_proto_rawDescOnce sync.Once
|
||||
file_module_base_cloud_proto_private_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_private_proto_rawDescGZIP() []byte {
|
||||
file_private_proto_rawDescOnce.Do(func() {
|
||||
file_private_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_private_proto_rawDesc), len(file_private_proto_rawDesc)))
|
||||
func file_module_base_cloud_proto_private_proto_rawDescGZIP() []byte {
|
||||
file_module_base_cloud_proto_private_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_cloud_proto_private_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_private_proto_rawDesc), len(file_module_base_cloud_proto_private_proto_rawDesc)))
|
||||
})
|
||||
return file_private_proto_rawDescData
|
||||
return file_module_base_cloud_proto_private_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_private_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_private_proto_goTypes = []any{
|
||||
var file_module_base_cloud_proto_private_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_module_base_cloud_proto_private_proto_goTypes = []any{
|
||||
(*CreatePrivateDataRequest)(nil), // 0: cloud.CreatePrivateDataRequest
|
||||
(*ListPrivateDataResponse)(nil), // 1: cloud.ListPrivateDataResponse
|
||||
(*DataRequest)(nil), // 2: cloud.DataRequest
|
||||
(*CloudPrivateItem)(nil), // 3: cloud.CloudPrivateItem
|
||||
(*IdentRequest)(nil), // 4: cloud.IdentRequest
|
||||
(*FetchRequest)(nil), // 5: cloud.FetchRequest
|
||||
(*StatusReply)(nil), // 6: cloud.StatusReply
|
||||
(*protobuf.IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*protobuf.FetchRequest)(nil), // 5: blocks.FetchRequest
|
||||
(*protobuf.StatusReply)(nil), // 6: blocks.StatusReply
|
||||
}
|
||||
var file_private_proto_depIdxs = []int32{
|
||||
var file_module_base_cloud_proto_private_proto_depIdxs = []int32{
|
||||
3, // 0: cloud.ListPrivateDataResponse.data:type_name -> cloud.CloudPrivateItem
|
||||
0, // 1: cloud.Private.CreatePrivateData:input_type -> cloud.CreatePrivateDataRequest
|
||||
4, // 2: cloud.Private.GetPrivateData:input_type -> cloud.IdentRequest
|
||||
4, // 2: cloud.Private.GetPrivateData:input_type -> blocks.IdentRequest
|
||||
3, // 3: cloud.Private.UpdatePrivateData:input_type -> cloud.CloudPrivateItem
|
||||
4, // 4: cloud.Private.DeletePrivateData:input_type -> cloud.IdentRequest
|
||||
5, // 5: cloud.Private.ListPrivateData:input_type -> cloud.FetchRequest
|
||||
5, // 6: cloud.Private.GetPrivateDataByType:input_type -> cloud.FetchRequest
|
||||
5, // 7: cloud.Private.SearchPrivateData:input_type -> cloud.FetchRequest
|
||||
4, // 4: cloud.Private.DeletePrivateData:input_type -> blocks.IdentRequest
|
||||
5, // 5: cloud.Private.ListPrivateData:input_type -> blocks.FetchRequest
|
||||
5, // 6: cloud.Private.GetPrivateDataByType:input_type -> blocks.FetchRequest
|
||||
5, // 7: cloud.Private.SearchPrivateData:input_type -> blocks.FetchRequest
|
||||
2, // 8: cloud.Private.EncryptData:input_type -> cloud.DataRequest
|
||||
2, // 9: cloud.Private.DecryptData:input_type -> cloud.DataRequest
|
||||
6, // 10: cloud.Private.CreatePrivateData:output_type -> cloud.StatusReply
|
||||
6, // 10: cloud.Private.CreatePrivateData:output_type -> blocks.StatusReply
|
||||
3, // 11: cloud.Private.GetPrivateData:output_type -> cloud.CloudPrivateItem
|
||||
6, // 12: cloud.Private.UpdatePrivateData:output_type -> cloud.StatusReply
|
||||
6, // 13: cloud.Private.DeletePrivateData:output_type -> cloud.StatusReply
|
||||
6, // 12: cloud.Private.UpdatePrivateData:output_type -> blocks.StatusReply
|
||||
6, // 13: cloud.Private.DeletePrivateData:output_type -> blocks.StatusReply
|
||||
1, // 14: cloud.Private.ListPrivateData:output_type -> cloud.ListPrivateDataResponse
|
||||
1, // 15: cloud.Private.GetPrivateDataByType:output_type -> cloud.ListPrivateDataResponse
|
||||
1, // 16: cloud.Private.SearchPrivateData:output_type -> cloud.ListPrivateDataResponse
|
||||
6, // 17: cloud.Private.EncryptData:output_type -> cloud.StatusReply
|
||||
6, // 18: cloud.Private.DecryptData:output_type -> cloud.StatusReply
|
||||
6, // 17: cloud.Private.EncryptData:output_type -> blocks.StatusReply
|
||||
6, // 18: cloud.Private.DecryptData:output_type -> blocks.StatusReply
|
||||
10, // [10:19] is the sub-list for method output_type
|
||||
1, // [1:10] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@@ -437,27 +438,26 @@ var file_private_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_private_proto_init() }
|
||||
func file_private_proto_init() {
|
||||
if File_private_proto != nil {
|
||||
func init() { file_module_base_cloud_proto_private_proto_init() }
|
||||
func file_module_base_cloud_proto_private_proto_init() {
|
||||
if File_module_base_cloud_proto_private_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_private_proto_rawDesc), len(file_private_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_private_proto_rawDesc), len(file_module_base_cloud_proto_private_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_private_proto_goTypes,
|
||||
DependencyIndexes: file_private_proto_depIdxs,
|
||||
MessageInfos: file_private_proto_msgTypes,
|
||||
GoTypes: file_module_base_cloud_proto_private_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_cloud_proto_private_proto_depIdxs,
|
||||
MessageInfos: file_module_base_cloud_proto_private_proto_msgTypes,
|
||||
}.Build()
|
||||
File_private_proto = out.File
|
||||
file_private_proto_goTypes = nil
|
||||
file_private_proto_depIdxs = nil
|
||||
File_module_base_cloud_proto_private_proto = out.File
|
||||
file_module_base_cloud_proto_private_proto_goTypes = nil
|
||||
file_module_base_cloud_proto_private_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user