refactor: add unified all service gateway

This commit is contained in:
2026-08-10 10:03:46 +08:00
parent 5ea45a76fe
commit f994b2de9c
143 changed files with 2853 additions and 2129 deletions

View File

@@ -2,7 +2,7 @@
* @Author: david.yan(david.yan@qq.com)
* @Date: 2021-11-26 15:25:03
*/
package service
package main
import (
"bsm/full/module/base/cloud/internal/config"
@@ -20,7 +20,7 @@ func Run() {
impl.NewImpl()
// 初始化服务
s := server.New(config.Spec.Addr)
s := server.New(nil)
srv := service.New(
s.Grpc,
&service.Options{

View File

@@ -17,10 +17,15 @@ type Server struct {
grpcConns map[string]*grpc.ClientConn // 连接池
}
func New(addr string) *Server {
func New(grpcServ *grpc.Server) *Server {
standalone := grpcServ == nil
if standalone {
grpcServ = grpc.NewServer()
}
srv := &Server{
Ctx: context.Background(),
Grpc: grpc.NewServer(),
Grpc: grpcServ,
grpcConns: make(map[string]*grpc.ClientConn),
}
@@ -33,7 +38,9 @@ func New(addr string) *Server {
pb.RegisterShareServer(srv.Grpc, NewShareServer())
pb.RegisterSpaceServer(srv.Grpc, NewSpaceServer())
reflection.Register(srv.Grpc)
if standalone {
reflection.Register(srv.Grpc)
}
return srv
}

View File

@@ -650,22 +650,22 @@ const file_module_base_cloud_proto_album_proto_rawDesc = "" +
"created_at\x18\x0e \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\x0f \x01(\tR\tupdatedAt\x12+\n" +
"\x05album\x18\x10 \x01(\v2\x15.cloud.CloudAlbumItemR\x05album2\xd9\x05\n" +
"\x05Album\x12=\n" +
"\vCreateAlbum\x12\x19.cloud.CreateAlbumRequest\x1a\x13.blocks.StatusReply\x127\n" +
"\bGetAlbum\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudAlbumItem\x129\n" +
"\vUpdateAlbum\x12\x15.cloud.CloudAlbumItem\x1a\x13.blocks.StatusReply\x128\n" +
"\vDeleteAlbum\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
"\x05album\x18\x10 \x01(\v2\x15.cloud.CloudAlbumItemR\x05album2\xf3\x06\n" +
"\x05Album\x12H\n" +
"\vCreateAlbum\x12\x19.cloud.CreateAlbumRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
"\bGetAlbum\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudAlbumItem\x12D\n" +
"\vUpdateAlbum\x12\x15.cloud.CloudAlbumItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
"\vDeleteAlbum\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
"\n" +
"ListAlbums\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListAlbumsResponse\x12A\n" +
"\rSetCoverPhoto\x12\x1b.cloud.SetCoverPhotoRequest\x1a\x13.blocks.StatusReply\x129\n" +
"\vUploadPhoto\x12\x15.cloud.CloudPhotoItem\x1a\x13.blocks.StatusReply\x127\n" +
"\bGetPhoto\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudPhotoItem\x129\n" +
"\vUpdatePhoto\x12\x15.cloud.CloudPhotoItem\x1a\x13.blocks.StatusReply\x128\n" +
"\vDeletePhoto\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
"ListAlbums\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListAlbumsResponse\x12L\n" +
"\rSetCoverPhoto\x12\x1b.cloud.SetCoverPhotoRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
"\vUploadPhoto\x12\x15.cloud.CloudPhotoItem\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
"\bGetPhoto\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudPhotoItem\x12D\n" +
"\vUpdatePhoto\x12\x15.cloud.CloudPhotoItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
"\vDeletePhoto\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
"\n" +
"ListPhotos\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListPhotosResponse\x129\n" +
"\tMovePhoto\x12\x17.cloud.MovePhotoRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
"ListPhotos\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListPhotosResponse\x12D\n" +
"\tMovePhoto\x12\x17.cloud.MovePhotoRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_album_proto_rawDescOnce sync.Once
@@ -688,9 +688,9 @@ var file_module_base_cloud_proto_album_proto_goTypes = []any{
(*ListPhotosResponse)(nil), // 4: cloud.ListPhotosResponse
(*MovePhotoRequest)(nil), // 5: cloud.MovePhotoRequest
(*CloudPhotoItem)(nil), // 6: cloud.CloudPhotoItem
(*IdentRequest)(nil), // 7: blocks.IdentRequest
(*FetchRequest)(nil), // 8: blocks.FetchRequest
(*StatusReply)(nil), // 9: blocks.StatusReply
(*IdentRequest)(nil), // 7: base_cloud_blocks.IdentRequest
(*FetchRequest)(nil), // 8: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 9: base_cloud_blocks.StatusReply
}
var file_module_base_cloud_proto_album_proto_depIdxs = []int32{
3, // 0: cloud.ListAlbumsResponse.albums:type_name -> cloud.CloudAlbumItem
@@ -698,29 +698,29 @@ var file_module_base_cloud_proto_album_proto_depIdxs = []int32{
6, // 2: cloud.ListPhotosResponse.photos:type_name -> cloud.CloudPhotoItem
3, // 3: cloud.CloudPhotoItem.album:type_name -> cloud.CloudAlbumItem
0, // 4: cloud.Album.CreateAlbum:input_type -> cloud.CreateAlbumRequest
7, // 5: cloud.Album.GetAlbum:input_type -> blocks.IdentRequest
7, // 5: cloud.Album.GetAlbum:input_type -> base_cloud_blocks.IdentRequest
3, // 6: cloud.Album.UpdateAlbum:input_type -> cloud.CloudAlbumItem
7, // 7: cloud.Album.DeleteAlbum:input_type -> blocks.IdentRequest
8, // 8: cloud.Album.ListAlbums:input_type -> blocks.FetchRequest
7, // 7: cloud.Album.DeleteAlbum:input_type -> base_cloud_blocks.IdentRequest
8, // 8: cloud.Album.ListAlbums:input_type -> base_cloud_blocks.FetchRequest
2, // 9: cloud.Album.SetCoverPhoto:input_type -> cloud.SetCoverPhotoRequest
6, // 10: cloud.Album.UploadPhoto:input_type -> cloud.CloudPhotoItem
7, // 11: cloud.Album.GetPhoto:input_type -> blocks.IdentRequest
7, // 11: cloud.Album.GetPhoto:input_type -> base_cloud_blocks.IdentRequest
6, // 12: cloud.Album.UpdatePhoto:input_type -> cloud.CloudPhotoItem
7, // 13: cloud.Album.DeletePhoto:input_type -> blocks.IdentRequest
8, // 14: cloud.Album.ListPhotos:input_type -> blocks.FetchRequest
7, // 13: cloud.Album.DeletePhoto:input_type -> base_cloud_blocks.IdentRequest
8, // 14: cloud.Album.ListPhotos:input_type -> base_cloud_blocks.FetchRequest
5, // 15: cloud.Album.MovePhoto:input_type -> cloud.MovePhotoRequest
9, // 16: cloud.Album.CreateAlbum:output_type -> blocks.StatusReply
9, // 16: cloud.Album.CreateAlbum:output_type -> base_cloud_blocks.StatusReply
3, // 17: cloud.Album.GetAlbum:output_type -> cloud.CloudAlbumItem
9, // 18: cloud.Album.UpdateAlbum:output_type -> blocks.StatusReply
9, // 19: cloud.Album.DeleteAlbum:output_type -> blocks.StatusReply
9, // 18: cloud.Album.UpdateAlbum:output_type -> base_cloud_blocks.StatusReply
9, // 19: cloud.Album.DeleteAlbum:output_type -> base_cloud_blocks.StatusReply
1, // 20: cloud.Album.ListAlbums:output_type -> cloud.ListAlbumsResponse
9, // 21: cloud.Album.SetCoverPhoto:output_type -> blocks.StatusReply
9, // 22: cloud.Album.UploadPhoto:output_type -> blocks.StatusReply
9, // 21: cloud.Album.SetCoverPhoto:output_type -> base_cloud_blocks.StatusReply
9, // 22: cloud.Album.UploadPhoto:output_type -> base_cloud_blocks.StatusReply
6, // 23: cloud.Album.GetPhoto:output_type -> cloud.CloudPhotoItem
9, // 24: cloud.Album.UpdatePhoto:output_type -> blocks.StatusReply
9, // 25: cloud.Album.DeletePhoto:output_type -> blocks.StatusReply
9, // 24: cloud.Album.UpdatePhoto:output_type -> base_cloud_blocks.StatusReply
9, // 25: cloud.Album.DeletePhoto:output_type -> base_cloud_blocks.StatusReply
4, // 26: cloud.Album.ListPhotos:output_type -> cloud.ListPhotosResponse
9, // 27: cloud.Album.MovePhoto:output_type -> blocks.StatusReply
9, // 27: cloud.Album.MovePhoto:output_type -> base_cloud_blocks.StatusReply
16, // [16:28] is the sub-list for method output_type
4, // [4:16] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name

View File

@@ -395,14 +395,14 @@ const file_module_base_cloud_proto_bookmark_proto_rawDesc = "" +
"created_at\x18\n" +
" \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"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"
"updated_at\x18\v \x01(\tR\tupdatedAt2\xdf\x03\n" +
"\bBookmark\x12N\n" +
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12E\n" +
"\vGetBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12J\n" +
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
"\x0eDeleteBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
"\rListBookmarks\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12P\n" +
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_bookmark_proto_rawDescOnce sync.Once
@@ -422,24 +422,24 @@ var file_module_base_cloud_proto_bookmark_proto_goTypes = []any{
(*ListBookmarksResponse)(nil), // 1: cloud.ListBookmarksResponse
(*ImportBookmarksRequest)(nil), // 2: cloud.ImportBookmarksRequest
(*CloudBookmarkItem)(nil), // 3: cloud.CloudBookmarkItem
(*IDRequest)(nil), // 4: blocks.IDRequest
(*FetchRequest)(nil), // 5: blocks.FetchRequest
(*StatusReply)(nil), // 6: blocks.StatusReply
(*IDRequest)(nil), // 4: base_cloud_blocks.IDRequest
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
}
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 -> blocks.IDRequest
4, // 2: cloud.Bookmark.GetBookmark:input_type -> base_cloud_blocks.IDRequest
3, // 3: cloud.Bookmark.UpdateBookmark:input_type -> cloud.CloudBookmarkItem
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> blocks.IDRequest
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> blocks.FetchRequest
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> base_cloud_blocks.IDRequest
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> base_cloud_blocks.FetchRequest
2, // 6: cloud.Bookmark.ImportBookmarks:input_type -> cloud.ImportBookmarksRequest
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> blocks.StatusReply
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> base_cloud_blocks.StatusReply
3, // 8: cloud.Bookmark.GetBookmark:output_type -> cloud.CloudBookmarkItem
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> blocks.StatusReply
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> blocks.StatusReply
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> base_cloud_blocks.StatusReply
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> base_cloud_blocks.StatusReply
1, // 11: cloud.Bookmark.ListBookmarks:output_type -> cloud.ListBookmarksResponse
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> blocks.StatusReply
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> base_cloud_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

View File

@@ -2975,12 +2975,12 @@ var File_module_base_cloud_proto_const_proto protoreflect.FileDescriptor
const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\n" +
"#module/base/cloud/proto/const.proto\x12\x06blocks\"\a\n" +
"\x05Empty\"\xbb\x01\n" +
"#module/base/cloud/proto/const.proto\x12\x11base_cloud_blocks\"\a\n" +
"\x05Empty\"\xc6\x01\n" +
"\fFetchRequest\x12\x18\n" +
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x128\n" +
"\x06params\x18\x03 \x03(\v2 .blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12C\n" +
"\x06params\x18\x03 \x03(\v2+.base_cloud_blocks.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
"\vParamsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
@@ -2999,11 +2999,11 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\x10CmsSearchRequest\x12\x18\n" +
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\xf6\x02\n" +
"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x81\x03\n" +
"\x10MallFetchRequest\x12\x18\n" +
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12<\n" +
"\x06params\x18\x03 \x03(\v2$.blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12G\n" +
"\x06params\x18\x03 \x03(\v2/.base_cloud_blocks.MallFetchRequest.ParamsEntryR\x06params\x12&\n" +
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\x12\x18\n" +
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1f\n" +
"\vcategory_id\x18\x06 \x03(\x03R\n" +
@@ -3013,11 +3013,11 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\tmax_price\x18\t \x01(\x03R\tmax_price\x1a9\n" +
"\vParamsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x02\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xba\x02\n" +
"\x12MarketFetchRequest\x12\x18\n" +
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12>\n" +
"\x06params\x18\x03 \x03(\v2&.blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x12I\n" +
"\x06params\x18\x03 \x03(\v21.base_cloud_blocks.MarketFetchRequest.ParamsEntryR\x06params\x12\x1a\n" +
"\bidentity\x18\x04 \x01(\tR\bidentity\x12\x18\n" +
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x16\n" +
"\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" +
@@ -3072,7 +3072,7 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" +
"\tCloudBase\x12\x19\n" +
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xe0\x02\n" +
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"\xeb\x02\n" +
"\x0fCmsCategoryItem\x12$\n" +
"\rsite_identity\x18\x01 \x01(\tR\rsite_identity\x12\x0e\n" +
"\x02id\x18\x02 \x01(\x03R\x02id\x12\x1a\n" +
@@ -3088,9 +3088,9 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"created_at\x12\x1e\n" +
"\n" +
"updated_at\x18\t \x01(\tR\n" +
"updated_at\x12-\n" +
"updated_at\x128\n" +
"\x05child\x18\n" +
" \x03(\v2\x17.blocks.CmsCategoryItemR\x05child\x12\"\n" +
" \x03(\v2\".base_cloud_blocks.CmsCategoryItemR\x05child\x12\"\n" +
"\fcategory_key\x18\v \x01(\tR\fcategory_key\"\xa5\x01\n" +
"\vCmsTagsItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
@@ -3129,7 +3129,7 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\n" +
"created_at\x18\b \x01(\tR\n" +
"created_at\x12 \n" +
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xcc\t\n" +
"\vmarket_name\x18\t \x01(\tR\vmarket_name\"\xd7\t\n" +
"\x10OrderSummaryItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
@@ -3165,8 +3165,8 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"pay_remark\x18\x1e \x01(\tR\n" +
"pay_remark\x12\x18\n" +
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
"\aupdated\x18 \x01(\tR\aupdated\x12.\n" +
"\adetails\x18! \x03(\v2\x14.blocks.OrderDetailsR\adetails\x12\x12\n" +
"\aupdated\x18 \x01(\tR\aupdated\x129\n" +
"\adetails\x18! \x03(\v2\x1f.base_cloud_blocks.OrderDetailsR\adetails\x12\x12\n" +
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
@@ -3196,10 +3196,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"O\n" +
"\x11FeedPostListReply\x12(\n" +
"\x04list\x18\x01 \x03(\v2\x14.blocks.FeedPostItemR\x04list\x12\x10\n" +
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd1\x02\n" +
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_price\"Z\n" +
"\x11FeedPostListReply\x123\n" +
"\x04list\x18\x01 \x03(\v2\x1f.base_cloud_blocks.FeedPostItemR\x04list\x12\x10\n" +
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe7\x02\n" +
"\fFeedPostItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" +
@@ -3210,10 +3210,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
"\vcnt_comment\x18\a \x01(\x03R\n" +
"cntComment\x12\x19\n" +
"\bcnt_like\x18\b \x01(\x03R\acntLike\x120\n" +
"\aattachs\x18\t \x03(\v2\x16.blocks.FeedAttachItemR\aattachs\x12'\n" +
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12;\n" +
"\aattachs\x18\t \x03(\v2!.base_cloud_blocks.FeedAttachItemR\aattachs\x122\n" +
"\x04tags\x18\n" +
" \x03(\v2\x13.blocks.FeedTagItemR\x04tags\"_\n" +
" \x03(\v2\x1e.base_cloud_blocks.FeedTagItemR\x04tags\"_\n" +
"\x0eFeedAttachItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
"\vattach_type\x18\x02 \x01(\tR\n" +
@@ -3221,10 +3221,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"\x03url\x18\x03 \x01(\tR\x03url\"9\n" +
"\vFeedTagItem\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\"Q\n" +
"\x12GroupPostListReply\x12)\n" +
"\x04list\x18\x01 \x03(\v2\x15.blocks.GroupPostItemR\x04list\x12\x10\n" +
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xe4\x02\n" +
"\acontent\x18\x02 \x01(\tR\acontent\"\\\n" +
"\x12GroupPostListReply\x124\n" +
"\x04list\x18\x01 \x03(\v2 .base_cloud_blocks.GroupPostItemR\x04list\x12\x10\n" +
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xfa\x02\n" +
"\rGroupPostItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
@@ -3236,10 +3236,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
"\vcnt_comment\x18\a \x01(\x03R\n" +
"cntComment\x12\x19\n" +
"\bcnt_like\x18\b \x01(\x03R\acntLike\x121\n" +
"\aattachs\x18\t \x03(\v2\x17.blocks.GroupAttachItemR\aattachs\x12(\n" +
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12<\n" +
"\aattachs\x18\t \x03(\v2\".base_cloud_blocks.GroupAttachItemR\aattachs\x123\n" +
"\x04tags\x18\n" +
" \x03(\v2\x14.blocks.GroupTagItemR\x04tags\"`\n" +
" \x03(\v2\x1f.base_cloud_blocks.GroupTagItemR\x04tags\"`\n" +
"\x0fGroupAttachItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
"\vattach_type\x18\x02 \x01(\tR\n" +
@@ -3263,10 +3263,10 @@ const file_module_base_cloud_proto_const_proto_rawDesc = "" +
" \x01(\x05R\x04area\x12\x12\n" +
"\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" +
"\x04tags\x18\f \x03(\tR\x04tags\x12%\n" +
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"X\n" +
"\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"c\n" +
"\x16FetchRelationItemReply\x12\x14\n" +
"\x05total\x18\x01 \x01(\x03R\x05total\x12(\n" +
"\x04data\x18\x02 \x03(\v2\x14.blocks.RelationItemR\x04dataB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
"\x05total\x18\x01 \x01(\x03R\x05total\x123\n" +
"\x04data\x18\x02 \x03(\v2\x1f.base_cloud_blocks.RelationItemR\x04dataB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_const_proto_rawDescOnce sync.Once
@@ -3282,60 +3282,60 @@ func file_module_base_cloud_proto_const_proto_rawDescGZIP() []byte {
var file_module_base_cloud_proto_const_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
var file_module_base_cloud_proto_const_proto_goTypes = []any{
(*Empty)(nil), // 0: blocks.Empty
(*FetchRequest)(nil), // 1: blocks.FetchRequest
(*IdentRequest)(nil), // 2: blocks.IdentRequest
(*VersionRequest)(nil), // 3: blocks.VersionRequest
(*SearchRequest)(nil), // 4: blocks.SearchRequest
(*StatusReply)(nil), // 5: blocks.StatusReply
(*CmsSearchRequest)(nil), // 6: blocks.CmsSearchRequest
(*MallFetchRequest)(nil), // 7: blocks.MallFetchRequest
(*MarketFetchRequest)(nil), // 8: blocks.MarketFetchRequest
(*OrderIdentRequest)(nil), // 9: blocks.OrderIdentRequest
(*DeliveryStatusReply)(nil), // 10: blocks.DeliveryStatusReply
(*IdentityStatusReply)(nil), // 11: blocks.IdentityStatusReply
(*OrderStatusReply)(nil), // 12: blocks.OrderStatusReply
(*DataStatusReply)(nil), // 13: blocks.DataStatusReply
(*StoreSerialRequest)(nil), // 14: blocks.StoreSerialRequest
(*IDRequest)(nil), // 15: blocks.IDRequest
(*IDListRequest)(nil), // 16: blocks.IDListRequest
(*StdIicuds)(nil), // 17: blocks.StdIicuds
(*StdPassport)(nil), // 18: blocks.StdPassport
(*CloudBase)(nil), // 19: blocks.CloudBase
(*CmsCategoryItem)(nil), // 20: blocks.CmsCategoryItem
(*CmsTagsItem)(nil), // 21: blocks.CmsTagsItem
(*CmsAccessoryItem)(nil), // 22: blocks.CmsAccessoryItem
(*VerifyStatus)(nil), // 23: blocks.VerifyStatus
(*MarketLoginReply)(nil), // 24: blocks.MarketLoginReply
(*OrderSummaryItem)(nil), // 25: blocks.OrderSummaryItem
(*OrderDetails)(nil), // 26: blocks.OrderDetails
(*FeedPostListReply)(nil), // 27: blocks.FeedPostListReply
(*FeedPostItem)(nil), // 28: blocks.FeedPostItem
(*FeedAttachItem)(nil), // 29: blocks.FeedAttachItem
(*FeedTagItem)(nil), // 30: blocks.FeedTagItem
(*GroupPostListReply)(nil), // 31: blocks.GroupPostListReply
(*GroupPostItem)(nil), // 32: blocks.GroupPostItem
(*GroupAttachItem)(nil), // 33: blocks.GroupAttachItem
(*GroupTagItem)(nil), // 34: blocks.GroupTagItem
(*RelationItem)(nil), // 35: blocks.RelationItem
(*FetchRelationItemReply)(nil), // 36: blocks.FetchRelationItemReply
nil, // 37: blocks.FetchRequest.ParamsEntry
nil, // 38: blocks.MallFetchRequest.ParamsEntry
nil, // 39: blocks.MarketFetchRequest.ParamsEntry
(*Empty)(nil), // 0: base_cloud_blocks.Empty
(*FetchRequest)(nil), // 1: base_cloud_blocks.FetchRequest
(*IdentRequest)(nil), // 2: base_cloud_blocks.IdentRequest
(*VersionRequest)(nil), // 3: base_cloud_blocks.VersionRequest
(*SearchRequest)(nil), // 4: base_cloud_blocks.SearchRequest
(*StatusReply)(nil), // 5: base_cloud_blocks.StatusReply
(*CmsSearchRequest)(nil), // 6: base_cloud_blocks.CmsSearchRequest
(*MallFetchRequest)(nil), // 7: base_cloud_blocks.MallFetchRequest
(*MarketFetchRequest)(nil), // 8: base_cloud_blocks.MarketFetchRequest
(*OrderIdentRequest)(nil), // 9: base_cloud_blocks.OrderIdentRequest
(*DeliveryStatusReply)(nil), // 10: base_cloud_blocks.DeliveryStatusReply
(*IdentityStatusReply)(nil), // 11: base_cloud_blocks.IdentityStatusReply
(*OrderStatusReply)(nil), // 12: base_cloud_blocks.OrderStatusReply
(*DataStatusReply)(nil), // 13: base_cloud_blocks.DataStatusReply
(*StoreSerialRequest)(nil), // 14: base_cloud_blocks.StoreSerialRequest
(*IDRequest)(nil), // 15: base_cloud_blocks.IDRequest
(*IDListRequest)(nil), // 16: base_cloud_blocks.IDListRequest
(*StdIicuds)(nil), // 17: base_cloud_blocks.StdIicuds
(*StdPassport)(nil), // 18: base_cloud_blocks.StdPassport
(*CloudBase)(nil), // 19: base_cloud_blocks.CloudBase
(*CmsCategoryItem)(nil), // 20: base_cloud_blocks.CmsCategoryItem
(*CmsTagsItem)(nil), // 21: base_cloud_blocks.CmsTagsItem
(*CmsAccessoryItem)(nil), // 22: base_cloud_blocks.CmsAccessoryItem
(*VerifyStatus)(nil), // 23: base_cloud_blocks.VerifyStatus
(*MarketLoginReply)(nil), // 24: base_cloud_blocks.MarketLoginReply
(*OrderSummaryItem)(nil), // 25: base_cloud_blocks.OrderSummaryItem
(*OrderDetails)(nil), // 26: base_cloud_blocks.OrderDetails
(*FeedPostListReply)(nil), // 27: base_cloud_blocks.FeedPostListReply
(*FeedPostItem)(nil), // 28: base_cloud_blocks.FeedPostItem
(*FeedAttachItem)(nil), // 29: base_cloud_blocks.FeedAttachItem
(*FeedTagItem)(nil), // 30: base_cloud_blocks.FeedTagItem
(*GroupPostListReply)(nil), // 31: base_cloud_blocks.GroupPostListReply
(*GroupPostItem)(nil), // 32: base_cloud_blocks.GroupPostItem
(*GroupAttachItem)(nil), // 33: base_cloud_blocks.GroupAttachItem
(*GroupTagItem)(nil), // 34: base_cloud_blocks.GroupTagItem
(*RelationItem)(nil), // 35: base_cloud_blocks.RelationItem
(*FetchRelationItemReply)(nil), // 36: base_cloud_blocks.FetchRelationItemReply
nil, // 37: base_cloud_blocks.FetchRequest.ParamsEntry
nil, // 38: base_cloud_blocks.MallFetchRequest.ParamsEntry
nil, // 39: base_cloud_blocks.MarketFetchRequest.ParamsEntry
}
var file_module_base_cloud_proto_const_proto_depIdxs = []int32{
37, // 0: blocks.FetchRequest.params:type_name -> blocks.FetchRequest.ParamsEntry
38, // 1: blocks.MallFetchRequest.params:type_name -> blocks.MallFetchRequest.ParamsEntry
39, // 2: blocks.MarketFetchRequest.params:type_name -> blocks.MarketFetchRequest.ParamsEntry
20, // 3: blocks.CmsCategoryItem.child:type_name -> blocks.CmsCategoryItem
26, // 4: blocks.OrderSummaryItem.details:type_name -> blocks.OrderDetails
28, // 5: blocks.FeedPostListReply.list:type_name -> blocks.FeedPostItem
29, // 6: blocks.FeedPostItem.attachs:type_name -> blocks.FeedAttachItem
30, // 7: blocks.FeedPostItem.tags:type_name -> blocks.FeedTagItem
32, // 8: blocks.GroupPostListReply.list:type_name -> blocks.GroupPostItem
33, // 9: blocks.GroupPostItem.attachs:type_name -> blocks.GroupAttachItem
34, // 10: blocks.GroupPostItem.tags:type_name -> blocks.GroupTagItem
35, // 11: blocks.FetchRelationItemReply.data:type_name -> blocks.RelationItem
37, // 0: base_cloud_blocks.FetchRequest.params:type_name -> base_cloud_blocks.FetchRequest.ParamsEntry
38, // 1: base_cloud_blocks.MallFetchRequest.params:type_name -> base_cloud_blocks.MallFetchRequest.ParamsEntry
39, // 2: base_cloud_blocks.MarketFetchRequest.params:type_name -> base_cloud_blocks.MarketFetchRequest.ParamsEntry
20, // 3: base_cloud_blocks.CmsCategoryItem.child:type_name -> base_cloud_blocks.CmsCategoryItem
26, // 4: base_cloud_blocks.OrderSummaryItem.details:type_name -> base_cloud_blocks.OrderDetails
28, // 5: base_cloud_blocks.FeedPostListReply.list:type_name -> base_cloud_blocks.FeedPostItem
29, // 6: base_cloud_blocks.FeedPostItem.attachs:type_name -> base_cloud_blocks.FeedAttachItem
30, // 7: base_cloud_blocks.FeedPostItem.tags:type_name -> base_cloud_blocks.FeedTagItem
32, // 8: base_cloud_blocks.GroupPostListReply.list:type_name -> base_cloud_blocks.GroupPostItem
33, // 9: base_cloud_blocks.GroupPostItem.attachs:type_name -> base_cloud_blocks.GroupAttachItem
34, // 10: base_cloud_blocks.GroupPostItem.tags:type_name -> base_cloud_blocks.GroupTagItem
35, // 11: base_cloud_blocks.FetchRelationItemReply.data:type_name -> base_cloud_blocks.RelationItem
12, // [12:12] is the sub-list for method output_type
12, // [12:12] is the sub-list for method input_type
12, // [12:12] is the sub-list for extension type_name

View File

@@ -792,27 +792,27 @@ const file_module_base_cloud_proto_disk_proto_rawDesc = "" +
" \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\v \x01(\tR\tupdatedAt\x125\n" +
"\tdirectory\x18\f \x01(\v2\x17.cloud.CloudDiskDirItemR\tdirectory2\xfb\x06\n" +
"\x04Disk\x129\n" +
"\tCreateDir\x12\x17.cloud.CreateDirRequest\x1a\x13.blocks.StatusReply\x127\n" +
"\x06GetDir\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x129\n" +
"\tUpdateDir\x12\x17.cloud.CloudDiskDirItem\x1a\x13.blocks.StatusReply\x126\n" +
"\tDeleteDir\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x129\n" +
"\bListDirs\x12\x14.blocks.FetchRequest\x1a\x17.cloud.ListDirsResponse\x12;\n" +
"\tdirectory\x18\f \x01(\v2\x17.cloud.CloudDiskDirItemR\tdirectory2\xb6\b\n" +
"\x04Disk\x12D\n" +
"\tCreateDir\x12\x17.cloud.CreateDirRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
"\x06GetDir\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x12D\n" +
"\tUpdateDir\x12\x17.cloud.CloudDiskDirItem\x1a\x1e.base_cloud_blocks.StatusReply\x12L\n" +
"\tDeleteDir\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
"\bListDirs\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x17.cloud.ListDirsResponse\x12F\n" +
"\n" +
"GetDirTree\x12\x14.blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x125\n" +
"\aMoveDir\x12\x15.cloud.MoveDirRequest\x1a\x13.blocks.StatusReply\x12>\n" +
"GetDirTree\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudDiskDirItem\x12@\n" +
"\aMoveDir\x12\x15.cloud.MoveDirRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12I\n" +
"\n" +
"UploadFile\x12\x1b.cloud.CloudDiskFileRequest\x1a\x13.blocks.StatusReply\x129\n" +
"\aGetFile\x12\x14.blocks.IdentRequest\x1a\x18.cloud.CloudDiskFileItem\x12;\n" +
"UploadFile\x12\x1b.cloud.CloudDiskFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12D\n" +
"\aGetFile\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x18.cloud.CloudDiskFileItem\x12F\n" +
"\n" +
"UpdateFile\x12\x18.cloud.CloudDiskFileItem\x1a\x13.blocks.StatusReply\x127\n" +
"UpdateFile\x12\x18.cloud.CloudDiskFileItem\x1a\x1e.base_cloud_blocks.StatusReply\x12M\n" +
"\n" +
"DeleteFile\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12;\n" +
"\tListFiles\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListFilesResponse\x127\n" +
"\bMoveFile\x12\x16.cloud.MoveFileRequest\x1a\x13.blocks.StatusReply\x127\n" +
"\bCopyFile\x12\x16.cloud.CopyFileRequest\x1a\x13.blocks.StatusReply\x12=\n" +
"\vSearchFiles\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListFilesResponseB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
"DeleteFile\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12F\n" +
"\tListFiles\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListFilesResponse\x12B\n" +
"\bMoveFile\x12\x16.cloud.MoveFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
"\bCopyFile\x12\x16.cloud.CopyFileRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
"\vSearchFiles\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListFilesResponseB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_disk_proto_rawDescOnce sync.Once
@@ -837,9 +837,9 @@ var file_module_base_cloud_proto_disk_proto_goTypes = []any{
(*CopyFileRequest)(nil), // 6: cloud.CopyFileRequest
(*CloudDiskFileRequest)(nil), // 7: cloud.CloudDiskFileRequest
(*CloudDiskFileItem)(nil), // 8: cloud.CloudDiskFileItem
(*IdentRequest)(nil), // 9: blocks.IdentRequest
(*FetchRequest)(nil), // 10: blocks.FetchRequest
(*StatusReply)(nil), // 11: blocks.StatusReply
(*IdentRequest)(nil), // 9: base_cloud_blocks.IdentRequest
(*FetchRequest)(nil), // 10: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 11: base_cloud_blocks.StatusReply
}
var file_module_base_cloud_proto_disk_proto_depIdxs = []int32{
2, // 0: cloud.ListDirsResponse.dirs:type_name -> cloud.CloudDiskDirItem
@@ -849,34 +849,34 @@ var file_module_base_cloud_proto_disk_proto_depIdxs = []int32{
8, // 4: cloud.ListFilesResponse.files:type_name -> cloud.CloudDiskFileItem
2, // 5: cloud.CloudDiskFileItem.directory:type_name -> cloud.CloudDiskDirItem
0, // 6: cloud.Disk.CreateDir:input_type -> cloud.CreateDirRequest
9, // 7: cloud.Disk.GetDir:input_type -> blocks.IdentRequest
9, // 7: cloud.Disk.GetDir:input_type -> base_cloud_blocks.IdentRequest
2, // 8: cloud.Disk.UpdateDir:input_type -> cloud.CloudDiskDirItem
9, // 9: cloud.Disk.DeleteDir:input_type -> blocks.IdentRequest
10, // 10: cloud.Disk.ListDirs:input_type -> blocks.FetchRequest
9, // 11: cloud.Disk.GetDirTree:input_type -> blocks.IdentRequest
9, // 9: cloud.Disk.DeleteDir:input_type -> base_cloud_blocks.IdentRequest
10, // 10: cloud.Disk.ListDirs:input_type -> base_cloud_blocks.FetchRequest
9, // 11: cloud.Disk.GetDirTree:input_type -> base_cloud_blocks.IdentRequest
3, // 12: cloud.Disk.MoveDir:input_type -> cloud.MoveDirRequest
7, // 13: cloud.Disk.UploadFile:input_type -> cloud.CloudDiskFileRequest
9, // 14: cloud.Disk.GetFile:input_type -> blocks.IdentRequest
9, // 14: cloud.Disk.GetFile:input_type -> base_cloud_blocks.IdentRequest
8, // 15: cloud.Disk.UpdateFile:input_type -> cloud.CloudDiskFileItem
9, // 16: cloud.Disk.DeleteFile:input_type -> blocks.IdentRequest
10, // 17: cloud.Disk.ListFiles:input_type -> blocks.FetchRequest
9, // 16: cloud.Disk.DeleteFile:input_type -> base_cloud_blocks.IdentRequest
10, // 17: cloud.Disk.ListFiles:input_type -> base_cloud_blocks.FetchRequest
5, // 18: cloud.Disk.MoveFile:input_type -> cloud.MoveFileRequest
6, // 19: cloud.Disk.CopyFile:input_type -> cloud.CopyFileRequest
10, // 20: cloud.Disk.SearchFiles:input_type -> blocks.FetchRequest
11, // 21: cloud.Disk.CreateDir:output_type -> blocks.StatusReply
10, // 20: cloud.Disk.SearchFiles:input_type -> base_cloud_blocks.FetchRequest
11, // 21: cloud.Disk.CreateDir:output_type -> base_cloud_blocks.StatusReply
2, // 22: cloud.Disk.GetDir:output_type -> cloud.CloudDiskDirItem
11, // 23: cloud.Disk.UpdateDir:output_type -> blocks.StatusReply
11, // 24: cloud.Disk.DeleteDir:output_type -> blocks.StatusReply
11, // 23: cloud.Disk.UpdateDir:output_type -> base_cloud_blocks.StatusReply
11, // 24: cloud.Disk.DeleteDir:output_type -> base_cloud_blocks.StatusReply
1, // 25: cloud.Disk.ListDirs:output_type -> cloud.ListDirsResponse
2, // 26: cloud.Disk.GetDirTree:output_type -> cloud.CloudDiskDirItem
11, // 27: cloud.Disk.MoveDir:output_type -> blocks.StatusReply
11, // 28: cloud.Disk.UploadFile:output_type -> blocks.StatusReply
11, // 27: cloud.Disk.MoveDir:output_type -> base_cloud_blocks.StatusReply
11, // 28: cloud.Disk.UploadFile:output_type -> base_cloud_blocks.StatusReply
8, // 29: cloud.Disk.GetFile:output_type -> cloud.CloudDiskFileItem
11, // 30: cloud.Disk.UpdateFile:output_type -> blocks.StatusReply
11, // 31: cloud.Disk.DeleteFile:output_type -> blocks.StatusReply
11, // 30: cloud.Disk.UpdateFile:output_type -> base_cloud_blocks.StatusReply
11, // 31: cloud.Disk.DeleteFile:output_type -> base_cloud_blocks.StatusReply
4, // 32: cloud.Disk.ListFiles:output_type -> cloud.ListFilesResponse
11, // 33: cloud.Disk.MoveFile:output_type -> blocks.StatusReply
11, // 34: cloud.Disk.CopyFile:output_type -> blocks.StatusReply
11, // 33: cloud.Disk.MoveFile:output_type -> base_cloud_blocks.StatusReply
11, // 34: cloud.Disk.CopyFile:output_type -> base_cloud_blocks.StatusReply
4, // 35: cloud.Disk.SearchFiles:output_type -> cloud.ListFilesResponse
21, // [21:36] is the sub-list for method output_type
6, // [6:21] is the sub-list for method input_type

View File

@@ -519,21 +519,21 @@ const file_module_base_cloud_proto_note_proto_rawDesc = "" +
"\tfile_size\x18\x05 \x01(\x03R\bfileSize\x12\x1b\n" +
"\tmime_type\x18\x06 \x01(\tR\bmimeType\x12\x1d\n" +
"\n" +
"created_at\x18\a \x01(\tR\tcreatedAt2\xe3\x04\n" +
"\x04Note\x12;\n" +
"created_at\x18\a \x01(\tR\tcreatedAt2\xf2\x05\n" +
"\x04Note\x12F\n" +
"\n" +
"CreateNote\x12\x18.cloud.CreateNoteRequest\x1a\x13.blocks.StatusReply\x125\n" +
"\aGetNote\x12\x14.blocks.IdentRequest\x1a\x14.cloud.CloudNoteItem\x127\n" +
"CreateNote\x12\x18.cloud.CreateNoteRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12@\n" +
"\aGetNote\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x14.cloud.CloudNoteItem\x12B\n" +
"\n" +
"UpdateNote\x12\x14.cloud.CloudNoteItem\x1a\x13.blocks.StatusReply\x127\n" +
"UpdateNote\x12\x14.cloud.CloudNoteItem\x1a\x1e.base_cloud_blocks.StatusReply\x12M\n" +
"\n" +
"DeleteNote\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12;\n" +
"\tListNotes\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x129\n" +
"\tTogglePin\x12\x17.cloud.TogglePinRequest\x1a\x13.blocks.StatusReply\x12;\n" +
"\x0eIncrementViews\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
"\vSearchNotes\x12\x14.blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12B\n" +
"\x10InsertAttachment\x12\x19.cloud.NoteAttachmentItem\x1a\x13.blocks.StatusReply\x12=\n" +
"\x10DeleteAttachment\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
"DeleteNote\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12F\n" +
"\tListNotes\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12D\n" +
"\tTogglePin\x12\x17.cloud.TogglePinRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12Q\n" +
"\x0eIncrementViews\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
"\vSearchNotes\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12M\n" +
"\x10InsertAttachment\x12\x19.cloud.NoteAttachmentItem\x1a\x1e.base_cloud_blocks.StatusReply\x12S\n" +
"\x10DeleteAttachment\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_note_proto_rawDescOnce sync.Once
@@ -554,33 +554,33 @@ var file_module_base_cloud_proto_note_proto_goTypes = []any{
(*TogglePinRequest)(nil), // 2: cloud.TogglePinRequest
(*CloudNoteItem)(nil), // 3: cloud.CloudNoteItem
(*NoteAttachmentItem)(nil), // 4: cloud.NoteAttachmentItem
(*IdentRequest)(nil), // 5: blocks.IdentRequest
(*FetchRequest)(nil), // 6: blocks.FetchRequest
(*StatusReply)(nil), // 7: blocks.StatusReply
(*IdentRequest)(nil), // 5: base_cloud_blocks.IdentRequest
(*FetchRequest)(nil), // 6: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 7: base_cloud_blocks.StatusReply
}
var file_module_base_cloud_proto_note_proto_depIdxs = []int32{
3, // 0: cloud.ListNotesResponse.notes:type_name -> cloud.CloudNoteItem
4, // 1: cloud.CloudNoteItem.attachments:type_name -> cloud.NoteAttachmentItem
0, // 2: cloud.Note.CreateNote:input_type -> cloud.CreateNoteRequest
5, // 3: cloud.Note.GetNote:input_type -> blocks.IdentRequest
5, // 3: cloud.Note.GetNote:input_type -> base_cloud_blocks.IdentRequest
3, // 4: cloud.Note.UpdateNote:input_type -> cloud.CloudNoteItem
5, // 5: cloud.Note.DeleteNote:input_type -> blocks.IdentRequest
6, // 6: cloud.Note.ListNotes:input_type -> blocks.FetchRequest
5, // 5: cloud.Note.DeleteNote:input_type -> base_cloud_blocks.IdentRequest
6, // 6: cloud.Note.ListNotes:input_type -> base_cloud_blocks.FetchRequest
2, // 7: cloud.Note.TogglePin:input_type -> cloud.TogglePinRequest
5, // 8: cloud.Note.IncrementViews:input_type -> blocks.IdentRequest
6, // 9: cloud.Note.SearchNotes:input_type -> blocks.FetchRequest
5, // 8: cloud.Note.IncrementViews:input_type -> base_cloud_blocks.IdentRequest
6, // 9: cloud.Note.SearchNotes:input_type -> base_cloud_blocks.FetchRequest
4, // 10: cloud.Note.InsertAttachment:input_type -> cloud.NoteAttachmentItem
5, // 11: cloud.Note.DeleteAttachment:input_type -> blocks.IdentRequest
7, // 12: cloud.Note.CreateNote:output_type -> blocks.StatusReply
5, // 11: cloud.Note.DeleteAttachment:input_type -> base_cloud_blocks.IdentRequest
7, // 12: cloud.Note.CreateNote:output_type -> base_cloud_blocks.StatusReply
3, // 13: cloud.Note.GetNote:output_type -> cloud.CloudNoteItem
7, // 14: cloud.Note.UpdateNote:output_type -> blocks.StatusReply
7, // 15: cloud.Note.DeleteNote:output_type -> blocks.StatusReply
7, // 14: cloud.Note.UpdateNote:output_type -> base_cloud_blocks.StatusReply
7, // 15: cloud.Note.DeleteNote:output_type -> base_cloud_blocks.StatusReply
1, // 16: cloud.Note.ListNotes:output_type -> cloud.ListNotesResponse
7, // 17: cloud.Note.TogglePin:output_type -> blocks.StatusReply
7, // 18: cloud.Note.IncrementViews:output_type -> blocks.StatusReply
7, // 17: cloud.Note.TogglePin:output_type -> base_cloud_blocks.StatusReply
7, // 18: cloud.Note.IncrementViews:output_type -> base_cloud_blocks.StatusReply
1, // 19: cloud.Note.SearchNotes:output_type -> cloud.ListNotesResponse
7, // 20: cloud.Note.InsertAttachment:output_type -> blocks.StatusReply
7, // 21: cloud.Note.DeleteAttachment:output_type -> blocks.StatusReply
7, // 20: cloud.Note.InsertAttachment:output_type -> base_cloud_blocks.StatusReply
7, // 21: cloud.Note.DeleteAttachment:output_type -> base_cloud_blocks.StatusReply
12, // [12:22] is the sub-list for method output_type
2, // [2:12] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name

View File

@@ -376,17 +376,17 @@ const file_module_base_cloud_proto_private_proto_rawDesc = "" +
"created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\n" +
" \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"
" \x01(\tR\tupdatedAt2\xd8\x05\n" +
"\aPrivate\x12T\n" +
"\x11CreatePrivateData\x12\x1f.cloud.CreatePrivateDataRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12J\n" +
"\x0eGetPrivateData\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x17.cloud.CloudPrivateItem\x12L\n" +
"\x11UpdatePrivateData\x12\x17.cloud.CloudPrivateItem\x1a\x1e.base_cloud_blocks.StatusReply\x12T\n" +
"\x11DeletePrivateData\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12R\n" +
"\x0fListPrivateData\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12W\n" +
"\x14GetPrivateDataByType\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12T\n" +
"\x11SearchPrivateData\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1e.cloud.ListPrivateDataResponse\x12A\n" +
"\vEncryptData\x12\x12.cloud.DataRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12A\n" +
"\vDecryptData\x12\x12.cloud.DataRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_private_proto_rawDescOnce sync.Once
@@ -406,30 +406,30 @@ var file_module_base_cloud_proto_private_proto_goTypes = []any{
(*ListPrivateDataResponse)(nil), // 1: cloud.ListPrivateDataResponse
(*DataRequest)(nil), // 2: cloud.DataRequest
(*CloudPrivateItem)(nil), // 3: cloud.CloudPrivateItem
(*IdentRequest)(nil), // 4: blocks.IdentRequest
(*FetchRequest)(nil), // 5: blocks.FetchRequest
(*StatusReply)(nil), // 6: blocks.StatusReply
(*IdentRequest)(nil), // 4: base_cloud_blocks.IdentRequest
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
}
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 -> blocks.IdentRequest
4, // 2: cloud.Private.GetPrivateData:input_type -> base_cloud_blocks.IdentRequest
3, // 3: cloud.Private.UpdatePrivateData:input_type -> cloud.CloudPrivateItem
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
4, // 4: cloud.Private.DeletePrivateData:input_type -> base_cloud_blocks.IdentRequest
5, // 5: cloud.Private.ListPrivateData:input_type -> base_cloud_blocks.FetchRequest
5, // 6: cloud.Private.GetPrivateDataByType:input_type -> base_cloud_blocks.FetchRequest
5, // 7: cloud.Private.SearchPrivateData:input_type -> base_cloud_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 -> blocks.StatusReply
6, // 10: cloud.Private.CreatePrivateData:output_type -> base_cloud_blocks.StatusReply
3, // 11: cloud.Private.GetPrivateData:output_type -> cloud.CloudPrivateItem
6, // 12: cloud.Private.UpdatePrivateData:output_type -> blocks.StatusReply
6, // 13: cloud.Private.DeletePrivateData:output_type -> blocks.StatusReply
6, // 12: cloud.Private.UpdatePrivateData:output_type -> base_cloud_blocks.StatusReply
6, // 13: cloud.Private.DeletePrivateData:output_type -> base_cloud_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 -> blocks.StatusReply
6, // 18: cloud.Private.DecryptData:output_type -> blocks.StatusReply
6, // 17: cloud.Private.EncryptData:output_type -> base_cloud_blocks.StatusReply
6, // 18: cloud.Private.DecryptData:output_type -> base_cloud_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

View File

@@ -403,14 +403,14 @@ const file_module_base_cloud_proto_share_proto_rawDesc = "" +
"\n" +
"created_at\x18\v \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\f \x01(\tR\tupdatedAt2\xcb\x02\n" +
"\x05Share\x12=\n" +
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x13.blocks.StatusReply\x127\n" +
"\bGetShare\x12\x14.blocks.IdentRequest\x1a\x15.cloud.CloudShareItem\x128\n" +
"\vDeleteShare\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\x12=\n" +
"updated_at\x18\f \x01(\tR\tupdatedAt2\x8d\x03\n" +
"\x05Share\x12H\n" +
"\vCreateShare\x12\x19.cloud.CreateShareRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12B\n" +
"\bGetShare\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x15.cloud.CloudShareItem\x12N\n" +
"\vDeleteShare\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12H\n" +
"\n" +
"ListShares\x12\x14.blocks.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12Q\n" +
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x13.blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
"ListShares\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x19.cloud.ListSharesResponse\x12\\\n" +
"\x15ValidateSharePassword\x12#.cloud.ValidateSharePasswordRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_share_proto_rawDescOnce sync.Once
@@ -430,22 +430,22 @@ var file_module_base_cloud_proto_share_proto_goTypes = []any{
(*ListSharesResponse)(nil), // 1: cloud.ListSharesResponse
(*ValidateSharePasswordRequest)(nil), // 2: cloud.ValidateSharePasswordRequest
(*CloudShareItem)(nil), // 3: cloud.CloudShareItem
(*IdentRequest)(nil), // 4: blocks.IdentRequest
(*FetchRequest)(nil), // 5: blocks.FetchRequest
(*StatusReply)(nil), // 6: blocks.StatusReply
(*IdentRequest)(nil), // 4: base_cloud_blocks.IdentRequest
(*FetchRequest)(nil), // 5: base_cloud_blocks.FetchRequest
(*StatusReply)(nil), // 6: base_cloud_blocks.StatusReply
}
var file_module_base_cloud_proto_share_proto_depIdxs = []int32{
3, // 0: cloud.ListSharesResponse.shares:type_name -> cloud.CloudShareItem
0, // 1: cloud.Share.CreateShare:input_type -> cloud.CreateShareRequest
4, // 2: cloud.Share.GetShare:input_type -> blocks.IdentRequest
4, // 3: cloud.Share.DeleteShare:input_type -> blocks.IdentRequest
5, // 4: cloud.Share.ListShares:input_type -> blocks.FetchRequest
4, // 2: cloud.Share.GetShare:input_type -> base_cloud_blocks.IdentRequest
4, // 3: cloud.Share.DeleteShare:input_type -> base_cloud_blocks.IdentRequest
5, // 4: cloud.Share.ListShares:input_type -> base_cloud_blocks.FetchRequest
2, // 5: cloud.Share.ValidateSharePassword:input_type -> cloud.ValidateSharePasswordRequest
6, // 6: cloud.Share.CreateShare:output_type -> blocks.StatusReply
6, // 6: cloud.Share.CreateShare:output_type -> base_cloud_blocks.StatusReply
3, // 7: cloud.Share.GetShare:output_type -> cloud.CloudShareItem
6, // 8: cloud.Share.DeleteShare:output_type -> blocks.StatusReply
6, // 8: cloud.Share.DeleteShare:output_type -> base_cloud_blocks.StatusReply
1, // 9: cloud.Share.ListShares:output_type -> cloud.ListSharesResponse
6, // 10: cloud.Share.ValidateSharePassword:output_type -> blocks.StatusReply
6, // 10: cloud.Share.ValidateSharePassword:output_type -> base_cloud_blocks.StatusReply
6, // [6:11] is the sub-list for method output_type
1, // [1:6] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name

View File

@@ -245,10 +245,10 @@ const file_module_base_cloud_proto_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\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"
"\fcloud_shares\x18\x13 \x03(\v2\x15.cloud.CloudShareItemR\vcloudShares2\x85\x01\n" +
"\x05Space\x122\n" +
"\x03Get\x12\x18.base_cloud_blocks.Empty\x1a\x11.cloud.CloudSpace\x12H\n" +
"\x12GetByKeyIdentifier\x12\x1f.base_cloud_blocks.IdentRequest\x1a\x11.cloud.CloudSpaceB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"
var (
file_module_base_cloud_proto_space_proto_rawDescOnce sync.Once
@@ -271,8 +271,8 @@ var file_module_base_cloud_proto_space_proto_goTypes = []any{
(*CloudBookmarkItem)(nil), // 4: cloud.CloudBookmarkItem
(*CloudPrivateItem)(nil), // 5: cloud.CloudPrivateItem
(*CloudShareItem)(nil), // 6: cloud.CloudShareItem
(*Empty)(nil), // 7: blocks.Empty
(*IdentRequest)(nil), // 8: blocks.IdentRequest
(*Empty)(nil), // 7: base_cloud_blocks.Empty
(*IdentRequest)(nil), // 8: base_cloud_blocks.IdentRequest
}
var file_module_base_cloud_proto_space_proto_depIdxs = []int32{
1, // 0: cloud.CloudSpace.cloud_disk_dirs:type_name -> cloud.CloudDiskDirItem
@@ -281,8 +281,8 @@ var file_module_base_cloud_proto_space_proto_depIdxs = []int32{
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 -> blocks.Empty
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> blocks.IdentRequest
7, // 6: cloud.Space.Get:input_type -> base_cloud_blocks.Empty
8, // 7: cloud.Space.GetByKeyIdentifier:input_type -> base_cloud_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

View File

@@ -6,30 +6,30 @@ import "module/base/cloud/proto/const.proto";
// 相册服务
service Album {
// 创建相册
rpc CreateAlbum(CreateAlbumRequest) returns (blocks.StatusReply);
rpc CreateAlbum(CreateAlbumRequest) returns (base_cloud_blocks.StatusReply);
// 获取相册详情
rpc GetAlbum(blocks.IdentRequest) returns (CloudAlbumItem);
rpc GetAlbum(base_cloud_blocks.IdentRequest) returns (CloudAlbumItem);
// 更新相册
rpc UpdateAlbum(CloudAlbumItem) returns (blocks.StatusReply);
rpc UpdateAlbum(CloudAlbumItem) returns (base_cloud_blocks.StatusReply);
// 删除相册
rpc DeleteAlbum(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteAlbum(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取相册列表
rpc ListAlbums(blocks.FetchRequest) returns (ListAlbumsResponse);
rpc ListAlbums(base_cloud_blocks.FetchRequest) returns (ListAlbumsResponse);
// 设置封面照片
rpc SetCoverPhoto(SetCoverPhotoRequest) returns (blocks.StatusReply);
rpc SetCoverPhoto(SetCoverPhotoRequest) returns (base_cloud_blocks.StatusReply);
// 上传照片
rpc UploadPhoto(CloudPhotoItem) returns (blocks.StatusReply);
rpc UploadPhoto(CloudPhotoItem) returns (base_cloud_blocks.StatusReply);
// 获取照片详情
rpc GetPhoto(blocks.IdentRequest) returns (CloudPhotoItem);
rpc GetPhoto(base_cloud_blocks.IdentRequest) returns (CloudPhotoItem);
// 更新照片
rpc UpdatePhoto(CloudPhotoItem) returns (blocks.StatusReply);
rpc UpdatePhoto(CloudPhotoItem) returns (base_cloud_blocks.StatusReply);
// 删除照片
rpc DeletePhoto(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeletePhoto(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取照片列表
rpc ListPhotos(blocks.FetchRequest) returns (ListPhotosResponse);
rpc ListPhotos(base_cloud_blocks.FetchRequest) returns (ListPhotosResponse);
// 移动照片到其他相册
rpc MovePhoto(MovePhotoRequest) returns (blocks.StatusReply);
rpc MovePhoto(MovePhotoRequest) returns (base_cloud_blocks.StatusReply);
}
// 请求消息定义
@@ -99,4 +99,4 @@ message CloudPhotoItem {
// 关联关系
CloudAlbumItem album = 16;
}
}

View File

@@ -6,17 +6,17 @@ import "module/base/cloud/proto/const.proto";
// 书签服务
service Bookmark {
// 创建书签
rpc CreateBookmark(CreateBookmarkRequest) returns (blocks.StatusReply);
rpc CreateBookmark(CreateBookmarkRequest) returns (base_cloud_blocks.StatusReply);
// 获取书签详情
rpc GetBookmark(blocks.IDRequest) returns (CloudBookmarkItem);
rpc GetBookmark(base_cloud_blocks.IDRequest) returns (CloudBookmarkItem);
// 更新书签
rpc UpdateBookmark(CloudBookmarkItem) returns (blocks.StatusReply);
rpc UpdateBookmark(CloudBookmarkItem) returns (base_cloud_blocks.StatusReply);
// 删除书签
rpc DeleteBookmark(blocks.IDRequest) returns (blocks.StatusReply);
rpc DeleteBookmark(base_cloud_blocks.IDRequest) returns (base_cloud_blocks.StatusReply);
// 获取书签列表
rpc ListBookmarks(blocks.FetchRequest) returns (ListBookmarksResponse);
rpc ListBookmarks(base_cloud_blocks.FetchRequest) returns (ListBookmarksResponse);
// 导入书签
rpc ImportBookmarks(ImportBookmarksRequest) returns (blocks.StatusReply);
rpc ImportBookmarks(ImportBookmarksRequest) returns (base_cloud_blocks.StatusReply);
}
message CreateBookmarkRequest {

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
package blocks;
package base_cloud_blocks;
option go_package = "bsm/full/module/base/cloud/pb;cloud";

View File

@@ -6,36 +6,36 @@ import "module/base/cloud/proto/const.proto";
// 云盘目录服务
service Disk {
// 创建目录
rpc CreateDir(CreateDirRequest) returns (blocks.StatusReply);
rpc CreateDir(CreateDirRequest) returns (base_cloud_blocks.StatusReply);
// 获取目录详情
rpc GetDir(blocks.IdentRequest) returns (CloudDiskDirItem);
rpc GetDir(base_cloud_blocks.IdentRequest) returns (CloudDiskDirItem);
// 更新目录
rpc UpdateDir(CloudDiskDirItem) returns (blocks.StatusReply);
rpc UpdateDir(CloudDiskDirItem) returns (base_cloud_blocks.StatusReply);
// 删除目录
rpc DeleteDir(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteDir(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取目录列表
rpc ListDirs(blocks.FetchRequest) returns (ListDirsResponse);
rpc ListDirs(base_cloud_blocks.FetchRequest) returns (ListDirsResponse);
// 获取目录树
rpc GetDirTree(blocks.IdentRequest) returns (CloudDiskDirItem);
rpc GetDirTree(base_cloud_blocks.IdentRequest) returns (CloudDiskDirItem);
// 移动目录
rpc MoveDir(MoveDirRequest) returns (blocks.StatusReply);
rpc MoveDir(MoveDirRequest) returns (base_cloud_blocks.StatusReply);
// 上传文件
rpc UploadFile(CloudDiskFileRequest) returns (blocks.StatusReply);
rpc UploadFile(CloudDiskFileRequest) returns (base_cloud_blocks.StatusReply);
// 获取文件详情
rpc GetFile(blocks.IdentRequest) returns (CloudDiskFileItem);
rpc GetFile(base_cloud_blocks.IdentRequest) returns (CloudDiskFileItem);
// 更新文件
rpc UpdateFile(CloudDiskFileItem) returns (blocks.StatusReply);
rpc UpdateFile(CloudDiskFileItem) returns (base_cloud_blocks.StatusReply);
// 删除文件
rpc DeleteFile(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteFile(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取文件列表
rpc ListFiles(blocks.FetchRequest) returns (ListFilesResponse);
rpc ListFiles(base_cloud_blocks.FetchRequest) returns (ListFilesResponse);
// 移动文件
rpc MoveFile(MoveFileRequest) returns (blocks.StatusReply);
rpc MoveFile(MoveFileRequest) returns (base_cloud_blocks.StatusReply);
// 复制文件
rpc CopyFile(CopyFileRequest) returns (blocks.StatusReply);
rpc CopyFile(CopyFileRequest) returns (base_cloud_blocks.StatusReply);
// 搜索文件
rpc SearchFiles(blocks.FetchRequest) returns (ListFilesResponse);
rpc SearchFiles(base_cloud_blocks.FetchRequest) returns (ListFilesResponse);
}
message CreateDirRequest {

View File

@@ -6,26 +6,26 @@ import "module/base/cloud/proto/const.proto";
// 笔记服务
service Note {
// 创建笔记
rpc CreateNote(CreateNoteRequest) returns (blocks.StatusReply);
rpc CreateNote(CreateNoteRequest) returns (base_cloud_blocks.StatusReply);
// 获取笔记详情
rpc GetNote(blocks.IdentRequest) returns (CloudNoteItem);
rpc GetNote(base_cloud_blocks.IdentRequest) returns (CloudNoteItem);
// 更新笔记
rpc UpdateNote(CloudNoteItem) returns (blocks.StatusReply);
rpc UpdateNote(CloudNoteItem) returns (base_cloud_blocks.StatusReply);
// 删除笔记
rpc DeleteNote(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteNote(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取笔记列表
rpc ListNotes(blocks.FetchRequest) returns (ListNotesResponse);
rpc ListNotes(base_cloud_blocks.FetchRequest) returns (ListNotesResponse);
// 置顶/取消置顶笔记
rpc TogglePin(TogglePinRequest) returns (blocks.StatusReply);
rpc TogglePin(TogglePinRequest) returns (base_cloud_blocks.StatusReply);
// 增加浏览次数
rpc IncrementViews(blocks.IdentRequest) returns (blocks.StatusReply);
rpc IncrementViews(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 搜索笔记
rpc SearchNotes(blocks.FetchRequest) returns (ListNotesResponse);
rpc SearchNotes(base_cloud_blocks.FetchRequest) returns (ListNotesResponse);
// 上传附件
rpc InsertAttachment(NoteAttachmentItem) returns (blocks.StatusReply);
rpc InsertAttachment(NoteAttachmentItem) returns (base_cloud_blocks.StatusReply);
// 删除附件
rpc DeleteAttachment(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteAttachment(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
}
// 请求消息定义

View File

@@ -6,23 +6,23 @@ import "module/base/cloud/proto/const.proto";
// 隐私数据服务
service Private {
// 创建隐私数据
rpc CreatePrivateData(CreatePrivateDataRequest) returns (blocks.StatusReply);
rpc CreatePrivateData(CreatePrivateDataRequest) returns (base_cloud_blocks.StatusReply);
// 获取隐私数据详情
rpc GetPrivateData(blocks.IdentRequest) returns (CloudPrivateItem);
rpc GetPrivateData(base_cloud_blocks.IdentRequest) returns (CloudPrivateItem);
// 更新隐私数据
rpc UpdatePrivateData(CloudPrivateItem) returns (blocks.StatusReply);
rpc UpdatePrivateData(CloudPrivateItem) returns (base_cloud_blocks.StatusReply);
// 删除隐私数据
rpc DeletePrivateData(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeletePrivateData(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取隐私数据列表
rpc ListPrivateData(blocks.FetchRequest) returns (ListPrivateDataResponse);
rpc ListPrivateData(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
// 按类型获取隐私数据
rpc GetPrivateDataByType(blocks.FetchRequest) returns (ListPrivateDataResponse);
rpc GetPrivateDataByType(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
// 搜索隐私数据
rpc SearchPrivateData(blocks.FetchRequest) returns (ListPrivateDataResponse);
rpc SearchPrivateData(base_cloud_blocks.FetchRequest) returns (ListPrivateDataResponse);
// 加密数据
rpc EncryptData(DataRequest) returns (blocks.StatusReply);
rpc EncryptData(DataRequest) returns (base_cloud_blocks.StatusReply);
// 解密数据
rpc DecryptData(DataRequest) returns (blocks.StatusReply);
rpc DecryptData(DataRequest) returns (base_cloud_blocks.StatusReply);
}
// 请求消息定义
message CreatePrivateDataRequest {

View File

@@ -6,15 +6,15 @@ import "module/base/cloud/proto/const.proto";
// 分享服务
service Share {
// 创建分享
rpc CreateShare(CreateShareRequest) returns (blocks.StatusReply);
rpc CreateShare(CreateShareRequest) returns (base_cloud_blocks.StatusReply);
// 获取分享详情
rpc GetShare(blocks.IdentRequest) returns (CloudShareItem);
rpc GetShare(base_cloud_blocks.IdentRequest) returns (CloudShareItem);
// 删除分享
rpc DeleteShare(blocks.IdentRequest) returns (blocks.StatusReply);
rpc DeleteShare(base_cloud_blocks.IdentRequest) returns (base_cloud_blocks.StatusReply);
// 获取分享列表
rpc ListShares(blocks.FetchRequest) returns (ListSharesResponse);
rpc ListShares(base_cloud_blocks.FetchRequest) returns (ListSharesResponse);
// 验证分享密码
rpc ValidateSharePassword(ValidateSharePasswordRequest) returns (blocks.StatusReply);
rpc ValidateSharePassword(ValidateSharePasswordRequest) returns (base_cloud_blocks.StatusReply);
}
// 请求消息定义

View File

@@ -12,10 +12,10 @@ import "module/base/cloud/proto/share.proto";
service Space {
// 获取空间数据
rpc Get(blocks.Empty) returns (CloudSpace);
rpc Get(base_cloud_blocks.Empty) returns (CloudSpace);
// 获取空间数据
rpc GetByKeyIdentifier(blocks.IdentRequest) returns (CloudSpace);
rpc GetByKeyIdentifier(base_cloud_blocks.IdentRequest) returns (CloudSpace);
}
// 系统统计和配置模型

View File

@@ -0,0 +1,43 @@
package service
import (
"context"
"bsm/full/module/base/cloud/internal/server"
pb "bsm/full/module/base/cloud/pb"
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/grpc"
)
type ExposeOptions struct {
GRPC *grpc.Server
Gateway *gwRuntime.ServeMux
}
func Expose(options ExposeOptions) error {
server.New(options.GRPC)
ctx := context.Background()
if err := pb.RegisterAlbumHandlerServer(ctx, options.Gateway, server.NewAlbumServer()); err != nil {
return err
}
if err := pb.RegisterBookmarkHandlerServer(ctx, options.Gateway, server.NewBookmarkServer()); err != nil {
return err
}
if err := pb.RegisterDiskHandlerServer(ctx, options.Gateway, server.NewDiskServer()); err != nil {
return err
}
if err := pb.RegisterNoteHandlerServer(ctx, options.Gateway, server.NewNoteServer()); err != nil {
return err
}
if err := pb.RegisterPrivateHandlerServer(ctx, options.Gateway, server.NewPrivateServer()); err != nil {
return err
}
if err := pb.RegisterShareHandlerServer(ctx, options.Gateway, server.NewShareServer()); err != nil {
return err
}
if err := pb.RegisterSpaceHandlerServer(ctx, options.Gateway, server.NewSpaceServer()); err != nil {
return err
}
return nil
}