refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: bookmark.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/base/cloud/proto/bookmark.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 CreateBookmarkRequest struct {
func (x *CreateBookmarkRequest) Reset() {
*x = CreateBookmarkRequest{}
mi := &file_bookmark_proto_msgTypes[0]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -50,7 +51,7 @@ func (x *CreateBookmarkRequest) String() string {
func (*CreateBookmarkRequest) ProtoMessage() {}
func (x *CreateBookmarkRequest) ProtoReflect() protoreflect.Message {
mi := &file_bookmark_proto_msgTypes[0]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -63,7 +64,7 @@ func (x *CreateBookmarkRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateBookmarkRequest.ProtoReflect.Descriptor instead.
func (*CreateBookmarkRequest) Descriptor() ([]byte, []int) {
return file_bookmark_proto_rawDescGZIP(), []int{0}
return file_module_base_cloud_proto_bookmark_proto_rawDescGZIP(), []int{0}
}
func (x *CreateBookmarkRequest) GetCloudId() uint64 {
@@ -139,7 +140,7 @@ type ListBookmarksResponse struct {
func (x *ListBookmarksResponse) Reset() {
*x = ListBookmarksResponse{}
mi := &file_bookmark_proto_msgTypes[1]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -151,7 +152,7 @@ func (x *ListBookmarksResponse) String() string {
func (*ListBookmarksResponse) ProtoMessage() {}
func (x *ListBookmarksResponse) ProtoReflect() protoreflect.Message {
mi := &file_bookmark_proto_msgTypes[1]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -164,7 +165,7 @@ func (x *ListBookmarksResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListBookmarksResponse.ProtoReflect.Descriptor instead.
func (*ListBookmarksResponse) Descriptor() ([]byte, []int) {
return file_bookmark_proto_rawDescGZIP(), []int{1}
return file_module_base_cloud_proto_bookmark_proto_rawDescGZIP(), []int{1}
}
func (x *ListBookmarksResponse) GetBookmarks() []*CloudBookmarkItem {
@@ -191,7 +192,7 @@ type ImportBookmarksRequest struct {
func (x *ImportBookmarksRequest) Reset() {
*x = ImportBookmarksRequest{}
mi := &file_bookmark_proto_msgTypes[2]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -203,7 +204,7 @@ func (x *ImportBookmarksRequest) String() string {
func (*ImportBookmarksRequest) ProtoMessage() {}
func (x *ImportBookmarksRequest) ProtoReflect() protoreflect.Message {
mi := &file_bookmark_proto_msgTypes[2]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -216,7 +217,7 @@ func (x *ImportBookmarksRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ImportBookmarksRequest.ProtoReflect.Descriptor instead.
func (*ImportBookmarksRequest) Descriptor() ([]byte, []int) {
return file_bookmark_proto_rawDescGZIP(), []int{2}
return file_module_base_cloud_proto_bookmark_proto_rawDescGZIP(), []int{2}
}
func (x *ImportBookmarksRequest) GetData() string {
@@ -253,7 +254,7 @@ type CloudBookmarkItem struct {
func (x *CloudBookmarkItem) Reset() {
*x = CloudBookmarkItem{}
mi := &file_bookmark_proto_msgTypes[3]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -265,7 +266,7 @@ func (x *CloudBookmarkItem) String() string {
func (*CloudBookmarkItem) ProtoMessage() {}
func (x *CloudBookmarkItem) ProtoReflect() protoreflect.Message {
mi := &file_bookmark_proto_msgTypes[3]
mi := &file_module_base_cloud_proto_bookmark_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -278,7 +279,7 @@ func (x *CloudBookmarkItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use CloudBookmarkItem.ProtoReflect.Descriptor instead.
func (*CloudBookmarkItem) Descriptor() ([]byte, []int) {
return file_bookmark_proto_rawDescGZIP(), []int{3}
return file_module_base_cloud_proto_bookmark_proto_rawDescGZIP(), []int{3}
}
func (x *CloudBookmarkItem) GetId() uint64 {
@@ -358,11 +359,11 @@ func (x *CloudBookmarkItem) GetUpdatedAt() string {
return ""
}
var File_bookmark_proto protoreflect.FileDescriptor
var File_module_base_cloud_proto_bookmark_proto protoreflect.FileDescriptor
const file_bookmark_proto_rawDesc = "" +
const file_module_base_cloud_proto_bookmark_proto_rawDesc = "" +
"\n" +
"\x19base/cloud/bookmark.proto\x12\x05cloud\x1a\x12cloud/blocks.proto\"\x86\x02\n" +
"&module/base/cloud/proto/bookmark.proto\x12\x05cloud\x1a\x15protobuf/blocks.proto\"\x86\x02\n" +
"\x15CreateBookmarkRequest\x12\x19\n" +
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\x12\x14\n" +
@@ -395,51 +396,51 @@ const file_bookmark_proto_rawDesc = "" +
"created_at\x18\n" +
" \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\v \x01(\tR\tupdatedAt2\x8b\x03\n" +
"\bBookmark\x12B\n" +
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x12.cloud.StatusReply\x129\n" +
"\vGetBookmark\x12\x10.cloud.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12>\n" +
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x12.cloud.StatusReply\x126\n" +
"\x0eDeleteBookmark\x12\x10.cloud.IDRequest\x1a\x12.cloud.StatusReply\x12B\n" +
"\rListBookmarks\x12\x13.cloud.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12D\n" +
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3"
"updated_at\x18\v \x01(\tR\tupdatedAt2\x92\x03\n" +
"\bBookmark\x12C\n" +
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x13.blocks.StatusReply\x12:\n" +
"\vGetBookmark\x12\x11.blocks.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12?\n" +
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x13.blocks.StatusReply\x128\n" +
"\x0eDeleteBookmark\x12\x11.blocks.IDRequest\x1a\x13.blocks.StatusReply\x12C\n" +
"\rListBookmarks\x12\x14.blocks.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12E\n" +
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_bookmark_proto_rawDescOnce sync.Once
file_bookmark_proto_rawDescData []byte
file_module_base_cloud_proto_bookmark_proto_rawDescOnce sync.Once
file_module_base_cloud_proto_bookmark_proto_rawDescData []byte
)
func file_bookmark_proto_rawDescGZIP() []byte {
file_bookmark_proto_rawDescOnce.Do(func() {
file_bookmark_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bookmark_proto_rawDesc), len(file_bookmark_proto_rawDesc)))
func file_module_base_cloud_proto_bookmark_proto_rawDescGZIP() []byte {
file_module_base_cloud_proto_bookmark_proto_rawDescOnce.Do(func() {
file_module_base_cloud_proto_bookmark_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_bookmark_proto_rawDesc), len(file_module_base_cloud_proto_bookmark_proto_rawDesc)))
})
return file_bookmark_proto_rawDescData
return file_module_base_cloud_proto_bookmark_proto_rawDescData
}
var file_bookmark_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_bookmark_proto_goTypes = []any{
var file_module_base_cloud_proto_bookmark_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_module_base_cloud_proto_bookmark_proto_goTypes = []any{
(*CreateBookmarkRequest)(nil), // 0: cloud.CreateBookmarkRequest
(*ListBookmarksResponse)(nil), // 1: cloud.ListBookmarksResponse
(*ImportBookmarksRequest)(nil), // 2: cloud.ImportBookmarksRequest
(*CloudBookmarkItem)(nil), // 3: cloud.CloudBookmarkItem
(*IDRequest)(nil), // 4: cloud.IDRequest
(*FetchRequest)(nil), // 5: cloud.FetchRequest
(*StatusReply)(nil), // 6: cloud.StatusReply
(*protobuf.IDRequest)(nil), // 4: blocks.IDRequest
(*protobuf.FetchRequest)(nil), // 5: blocks.FetchRequest
(*protobuf.StatusReply)(nil), // 6: blocks.StatusReply
}
var file_bookmark_proto_depIdxs = []int32{
var file_module_base_cloud_proto_bookmark_proto_depIdxs = []int32{
3, // 0: cloud.ListBookmarksResponse.bookmarks:type_name -> cloud.CloudBookmarkItem
0, // 1: cloud.Bookmark.CreateBookmark:input_type -> cloud.CreateBookmarkRequest
4, // 2: cloud.Bookmark.GetBookmark:input_type -> cloud.IDRequest
4, // 2: cloud.Bookmark.GetBookmark:input_type -> blocks.IDRequest
3, // 3: cloud.Bookmark.UpdateBookmark:input_type -> cloud.CloudBookmarkItem
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> cloud.IDRequest
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> cloud.FetchRequest
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> blocks.IDRequest
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> blocks.FetchRequest
2, // 6: cloud.Bookmark.ImportBookmarks:input_type -> cloud.ImportBookmarksRequest
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> cloud.StatusReply
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> blocks.StatusReply
3, // 8: cloud.Bookmark.GetBookmark:output_type -> cloud.CloudBookmarkItem
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> cloud.StatusReply
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> cloud.StatusReply
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> blocks.StatusReply
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> blocks.StatusReply
1, // 11: cloud.Bookmark.ListBookmarks:output_type -> cloud.ListBookmarksResponse
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> cloud.StatusReply
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> blocks.StatusReply
7, // [7:13] is the sub-list for method output_type
1, // [1:7] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@@ -447,27 +448,26 @@ var file_bookmark_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_bookmark_proto_init() }
func file_bookmark_proto_init() {
if File_bookmark_proto != nil {
func init() { file_module_base_cloud_proto_bookmark_proto_init() }
func file_module_base_cloud_proto_bookmark_proto_init() {
if File_module_base_cloud_proto_bookmark_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_bookmark_proto_rawDesc), len(file_bookmark_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_bookmark_proto_rawDesc), len(file_module_base_cloud_proto_bookmark_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_bookmark_proto_goTypes,
DependencyIndexes: file_bookmark_proto_depIdxs,
MessageInfos: file_bookmark_proto_msgTypes,
GoTypes: file_module_base_cloud_proto_bookmark_proto_goTypes,
DependencyIndexes: file_module_base_cloud_proto_bookmark_proto_depIdxs,
MessageInfos: file_module_base_cloud_proto_bookmark_proto_msgTypes,
}.Build()
File_bookmark_proto = out.File
file_bookmark_proto_goTypes = nil
file_bookmark_proto_depIdxs = nil
File_module_base_cloud_proto_bookmark_proto = out.File
file_module_base_cloud_proto_bookmark_proto_goTypes = nil
file_module_base_cloud_proto_bookmark_proto_depIdxs = nil
}