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: space.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/cloud/proto/space.proto
|
||||
|
||||
package cloud
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -50,7 +51,7 @@ type CloudSpace struct {
|
||||
|
||||
func (x *CloudSpace) Reset() {
|
||||
*x = CloudSpace{}
|
||||
mi := &file_space_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_space_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -62,7 +63,7 @@ func (x *CloudSpace) String() string {
|
||||
func (*CloudSpace) ProtoMessage() {}
|
||||
|
||||
func (x *CloudSpace) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_space_proto_msgTypes[0]
|
||||
mi := &file_module_base_cloud_proto_space_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -75,7 +76,7 @@ func (x *CloudSpace) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CloudSpace.ProtoReflect.Descriptor instead.
|
||||
func (*CloudSpace) Descriptor() ([]byte, []int) {
|
||||
return file_space_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_cloud_proto_space_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CloudSpace) GetId() uint64 {
|
||||
@@ -211,13 +212,11 @@ func (x *CloudSpace) GetCloudShares() []*CloudShareItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_space_proto protoreflect.FileDescriptor
|
||||
var File_module_base_cloud_proto_space_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_space_proto_rawDesc = "" +
|
||||
const file_module_base_cloud_proto_space_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x16base/cloud/space.proto\x12\x05cloud\x1a\x12cloud/blocks.proto\x1a\n" +
|
||||
"disk.proto\x1a\x16base/cloud/album.proto\x1a\n" +
|
||||
"note.proto\x1a\x19base/cloud/bookmark.proto\x1a\x18base/cloud/private.proto\x1a\x16base/cloud/share.proto\"\x98\x06\n" +
|
||||
"#module/base/cloud/proto/space.proto\x12\x05cloud\x1a\x15protobuf/blocks.proto\x1a\"module/base/cloud/proto/disk.proto\x1a#module/base/cloud/proto/album.proto\x1a\"module/base/cloud/proto/note.proto\x1a&module/base/cloud/proto/bookmark.proto\x1a%module/base/cloud/proto/private.proto\x1a#module/base/cloud/proto/share.proto\"\x98\x06\n" +
|
||||
"\n" +
|
||||
"CloudSpace\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x04R\x02id\x12\x1a\n" +
|
||||
@@ -247,44 +246,44 @@ const file_space_proto_rawDesc = "" +
|
||||
"cloudNotes\x12A\n" +
|
||||
"\x0fcloud_bookmarks\x18\x11 \x03(\v2\x18.cloud.CloudBookmarkItemR\x0ecloudBookmarks\x12<\n" +
|
||||
"\rcloud_private\x18\x12 \x03(\v2\x17.cloud.CloudPrivateItemR\fcloudPrivate\x128\n" +
|
||||
"\fcloud_shares\x18\x13 \x03(\v2\x15.cloud.CloudShareItemR\vcloudShares2m\n" +
|
||||
"\x05Space\x12&\n" +
|
||||
"\x03Get\x12\f.cloud.Empty\x1a\x11.cloud.CloudSpace\x12<\n" +
|
||||
"\x12GetByKeyIdentifier\x12\x13.cloud.IdentRequest\x1a\x11.cloud.CloudSpaceB\tZ\a.;cloudb\x06proto3"
|
||||
"\fcloud_shares\x18\x13 \x03(\v2\x15.cloud.CloudShareItemR\vcloudShares2o\n" +
|
||||
"\x05Space\x12'\n" +
|
||||
"\x03Get\x12\r.blocks.Empty\x1a\x11.cloud.CloudSpace\x12=\n" +
|
||||
"\x12GetByKeyIdentifier\x12\x14.blocks.IdentRequest\x1a\x11.cloud.CloudSpaceB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
|
||||
|
||||
var (
|
||||
file_space_proto_rawDescOnce sync.Once
|
||||
file_space_proto_rawDescData []byte
|
||||
file_module_base_cloud_proto_space_proto_rawDescOnce sync.Once
|
||||
file_module_base_cloud_proto_space_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_space_proto_rawDescGZIP() []byte {
|
||||
file_space_proto_rawDescOnce.Do(func() {
|
||||
file_space_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_space_proto_rawDesc), len(file_space_proto_rawDesc)))
|
||||
func file_module_base_cloud_proto_space_proto_rawDescGZIP() []byte {
|
||||
file_module_base_cloud_proto_space_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_cloud_proto_space_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_space_proto_rawDesc), len(file_module_base_cloud_proto_space_proto_rawDesc)))
|
||||
})
|
||||
return file_space_proto_rawDescData
|
||||
return file_module_base_cloud_proto_space_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_space_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_space_proto_goTypes = []any{
|
||||
(*CloudSpace)(nil), // 0: cloud.CloudSpace
|
||||
(*CloudDiskDirItem)(nil), // 1: cloud.CloudDiskDirItem
|
||||
(*CloudAlbumItem)(nil), // 2: cloud.CloudAlbumItem
|
||||
(*CloudNoteItem)(nil), // 3: cloud.CloudNoteItem
|
||||
(*CloudBookmarkItem)(nil), // 4: cloud.CloudBookmarkItem
|
||||
(*CloudPrivateItem)(nil), // 5: cloud.CloudPrivateItem
|
||||
(*CloudShareItem)(nil), // 6: cloud.CloudShareItem
|
||||
(*Empty)(nil), // 7: cloud.Empty
|
||||
(*IdentRequest)(nil), // 8: cloud.IdentRequest
|
||||
var file_module_base_cloud_proto_space_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_module_base_cloud_proto_space_proto_goTypes = []any{
|
||||
(*CloudSpace)(nil), // 0: cloud.CloudSpace
|
||||
(*CloudDiskDirItem)(nil), // 1: cloud.CloudDiskDirItem
|
||||
(*CloudAlbumItem)(nil), // 2: cloud.CloudAlbumItem
|
||||
(*CloudNoteItem)(nil), // 3: cloud.CloudNoteItem
|
||||
(*CloudBookmarkItem)(nil), // 4: cloud.CloudBookmarkItem
|
||||
(*CloudPrivateItem)(nil), // 5: cloud.CloudPrivateItem
|
||||
(*CloudShareItem)(nil), // 6: cloud.CloudShareItem
|
||||
(*protobuf.Empty)(nil), // 7: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 8: blocks.IdentRequest
|
||||
}
|
||||
var file_space_proto_depIdxs = []int32{
|
||||
var file_module_base_cloud_proto_space_proto_depIdxs = []int32{
|
||||
1, // 0: cloud.CloudSpace.cloud_disk_dirs:type_name -> cloud.CloudDiskDirItem
|
||||
2, // 1: cloud.CloudSpace.cloud_albums:type_name -> cloud.CloudAlbumItem
|
||||
3, // 2: cloud.CloudSpace.cloud_notes:type_name -> cloud.CloudNoteItem
|
||||
4, // 3: cloud.CloudSpace.cloud_bookmarks:type_name -> cloud.CloudBookmarkItem
|
||||
5, // 4: cloud.CloudSpace.cloud_private:type_name -> cloud.CloudPrivateItem
|
||||
6, // 5: cloud.CloudSpace.cloud_shares:type_name -> cloud.CloudShareItem
|
||||
7, // 6: cloud.Space.Get:input_type -> cloud.Empty
|
||||
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> cloud.IdentRequest
|
||||
7, // 6: cloud.Space.Get:input_type -> blocks.Empty
|
||||
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> blocks.IdentRequest
|
||||
0, // 8: cloud.Space.Get:output_type -> cloud.CloudSpace
|
||||
0, // 9: cloud.Space.GetByKeyIdentifier:output_type -> cloud.CloudSpace
|
||||
8, // [8:10] is the sub-list for method output_type
|
||||
@@ -294,33 +293,32 @@ var file_space_proto_depIdxs = []int32{
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_space_proto_init() }
|
||||
func file_space_proto_init() {
|
||||
if File_space_proto != nil {
|
||||
func init() { file_module_base_cloud_proto_space_proto_init() }
|
||||
func file_module_base_cloud_proto_space_proto_init() {
|
||||
if File_module_base_cloud_proto_space_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
file_disk_proto_init()
|
||||
file_album_proto_init()
|
||||
file_note_proto_init()
|
||||
file_bookmark_proto_init()
|
||||
file_private_proto_init()
|
||||
file_share_proto_init()
|
||||
file_module_base_cloud_proto_disk_proto_init()
|
||||
file_module_base_cloud_proto_album_proto_init()
|
||||
file_module_base_cloud_proto_note_proto_init()
|
||||
file_module_base_cloud_proto_bookmark_proto_init()
|
||||
file_module_base_cloud_proto_private_proto_init()
|
||||
file_module_base_cloud_proto_share_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_space_proto_rawDesc), len(file_space_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_space_proto_rawDesc), len(file_module_base_cloud_proto_space_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_space_proto_goTypes,
|
||||
DependencyIndexes: file_space_proto_depIdxs,
|
||||
MessageInfos: file_space_proto_msgTypes,
|
||||
GoTypes: file_module_base_cloud_proto_space_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_cloud_proto_space_proto_depIdxs,
|
||||
MessageInfos: file_module_base_cloud_proto_space_proto_msgTypes,
|
||||
}.Build()
|
||||
File_space_proto = out.File
|
||||
file_space_proto_goTypes = nil
|
||||
file_space_proto_depIdxs = nil
|
||||
File_module_base_cloud_proto_space_proto = out.File
|
||||
file_module_base_cloud_proto_space_proto_goTypes = nil
|
||||
file_module_base_cloud_proto_space_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user