From 5cc76a71e524cb89d784c2be0e2d64cabba32f9c Mon Sep 17 00:00:00 2001 From: rita <97798661+Love-YeLin@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:32:24 +0800 Subject: [PATCH] =?UTF-8?q?Fix/=E6=9B=B4=E6=96=B0file=20rpc=20(#176)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloudmind/content/common.proto | 19 ++--- cloudmind/content/content.proto | 130 ++++++++++++++---------------- cloudmind/core_api/common.proto | 113 +++++++++++--------------- cloudmind/core_api/content.proto | 120 +++++++++++---------------- cloudmind/core_api/core_api.proto | 15 ---- cloudmind/core_api/platform.proto | 81 ++++++++++++++----- 6 files changed, 224 insertions(+), 254 deletions(-) diff --git a/cloudmind/content/common.proto b/cloudmind/content/common.proto index 1f9a1e1..24110cf 100644 --- a/cloudmind/content/common.proto +++ b/cloudmind/content/common.proto @@ -81,8 +81,8 @@ message Tag { string fatherTagId = 2; } -message FileInfo { - string fileId = 1; +message File { + string id = 1; string userId = 2; string name = 3; string type = 4; @@ -99,11 +99,10 @@ message FileInfo { int64 createAt = 15; int64 updateAt = 16; int64 deleteAt = 17; - } -message File { - string fileId = 1; +//message File { + string id = 1; string userId = 2; string name = 3; string type = 4; @@ -118,20 +117,14 @@ message File { repeated string labels = 13; int64 category = 14; int64 auditStatus = 15; -} +//} message FileParameter { - string fileId = 1; + string id = 1; string path = 2; int64 spaceSize = 3; } -message Zone { - string id = 1; - string fatherId = 2; - string value = 3; -} - message ShareFile { string code = 1; string userId = 2; diff --git a/cloudmind/content/content.proto b/cloudmind/content/content.proto index c0bc036..ae7f302 100644 --- a/cloudmind/content/content.proto +++ b/cloudmind/content/content.proto @@ -13,20 +13,36 @@ message GetFileIsExistResp { } message GetFileReq{ - string fileId = 1; + string id = 1; bool isGetSize = 2; } message GetFileResp{ - FileInfo file = 1; + string id = 1; + string userId = 2; + string name = 3; + string type = 4; + string path = 5; + string fatherId = 6; + int64 spaceSize = 7; + string md5 = 8; + int64 isDel = 9; + string zone = 10; + string subZone = 11; + string description = 12; + repeated string labels = 13; + int64 auditStatus = 14; + int64 createAt = 15; + int64 updateAt = 16; + int64 deleteAt = 17; } message GetFilesByIdsReq{ - repeated string fileIds = 1; + repeated string ids = 1; } message GetFilesByIdsResp{ - repeated FileInfo files = 1; + repeated File files = 1; } message GetFileListReq{ @@ -37,7 +53,7 @@ message GetFileListReq{ } message GetFileListResp{ - repeated FileInfo files = 1; + repeated File files = 1; int64 total = 2; string token = 3; string fatherNamePath = 4; @@ -50,20 +66,20 @@ message GetRecycleBinFilesReq{ } message GetRecycleBinFilesResp{ - repeated FileInfo files = 1; + repeated File files = 1; int64 total = 2; string token = 3; } message GetFileBySharingCodeReq{ - repeated string fileIds = 1; + repeated string ids = 1; optional string onlyFatherId = 2; optional basic.PaginationOptions paginationOptions = 3; optional SortOptions sortOptions = 4; } message GetFileBySharingCodeResp{ - repeated FileInfo files = 1; + repeated File files = 1; int64 total = 2; string token = 3; string fatherNamePath = 4; @@ -71,16 +87,25 @@ message GetFileBySharingCodeResp{ } message CreateFileReq{ - File file = 1; + string userId = 1; + string name = 2; + string type = 3; + string fatherId = 4; + int64 spaceSize = 5; + string md5 = 6; + int64 category = 7; } message CreateFileResp{ - string fileId = 1; + string id = 1; string name = 2; } message UpdateFileReq{ - File file = 1; + string id = 1; + string userId = 2; + string name = 3; + int64 auditStatus = 4; } message UpdateFileResp{ @@ -90,7 +115,7 @@ message UpdateFileResp{ message MoveFileReq{ string fatherId = 1; string newPath = 2; - string fileId = 3; + string id = 3; string oldPath = 4; int64 spaceSize = 5; string name = 6; @@ -101,7 +126,7 @@ message MoveFileResp{ } message SaveFileToPrivateSpaceReq{ - string fileId = 1; + string id = 1; string userId = 2; string newPath = 3; string fatherId = 4; @@ -113,12 +138,12 @@ message SaveFileToPrivateSpaceReq{ } message SaveFileToPrivateSpaceResp{ - string fileId = 1; + string id = 1; string name = 2; } message AddFileToPublicSpaceReq{ - string fileId = 1; + string id = 1; string path = 2; int64 spaceSize = 3; string zone = 4; @@ -128,7 +153,7 @@ message AddFileToPublicSpaceReq{ } message AddFileToPublicSpaceResp{ - repeated string fileIds = 1; + repeated string ids = 1; } message CompletelyRemoveFileReq { @@ -140,7 +165,7 @@ message CompletelyRemoveFileResp { } message MakeFilePrivateReq{ - string fileId = 1; + string id = 1; string userId = 2; } @@ -171,50 +196,10 @@ message RecoverRecycleBinFileReq{ message RecoverRecycleBinFileResp{ } -message CreateZoneReq { - Zone zone = 1; -} - -message CreateZoneResp { - string id = 1; -} - -message GetZoneReq { - string id = 1; -} - -message GetZoneResp { - Zone zone = 1; -} - -message GetZonesReq { - string fatherId= 1; - optional basic.PaginationOptions paginationOptions = 2; -} - -message GetZonesResp { - repeated Zone zones = 1; - int64 total = 2; - string token = 3; -} - -message UpdateZoneReq { - Zone zone = 1; -} - -message UpdateZoneResp { -} - -message DeleteZoneReq { - string id = 1; -} - -message DeleteZoneResp { -} - message CheckShareFileReq{ - repeated string fileIds = 1; - string fileId = 2; + repeated string fileIds = 1; // 分享链接中的文件id列表 + string id = 2; // 要保存到的目标文件夹id + } message CheckShareFileResp{ @@ -222,7 +207,10 @@ message CheckShareFileResp{ } message CreateShareCodeReq { - ShareFile shareFile = 1; + string userId = 1; + string name = 2; + int64 effectiveTime = 3; + repeated string fileList = 4; } message CreateShareCodeResp { @@ -231,7 +219,7 @@ message CreateShareCodeResp { } message GetShareListReq { - optional ShareFileFilterOptions shareFileFilterOptions = 1; + optional ShareFileFilterOptions filterOptions = 1; optional basic.PaginationOptions paginationOptions = 2; } @@ -242,7 +230,9 @@ message GetShareListResp { } message UpdateShareCodeReq { - ShareFile shareFile = 1; + string code = 1; + string name = 2; + int64 browseNumber = 3; } message UpdateShareCodeResp { @@ -260,7 +250,14 @@ message ParsingShareCodeReq { } message ParsingShareCodeResp { - ShareFile shareFile = 1; + string userId = 1; + string name = 2; + int64 status = 3; + int64 effectiveTime = 4; + int64 browseNumber = 5; + int64 createAt = 6; + repeated string fileList = 7; + string key = 8; } message UpdateUserReq{ @@ -563,11 +560,6 @@ service ContentService { rpc DeleteFile(DeleteFileReq) returns(DeleteFileResp); rpc EmptyRecycleBin(EmptyRecycleBinReq) returns(EmptyRecycleBinResp); rpc RecoverRecycleBinFile(RecoverRecycleBinFileReq) returns(RecoverRecycleBinFileResp); - rpc GetZone(GetZoneReq) returns(GetZoneResp); - rpc GetZones(GetZonesReq) returns(GetZonesResp); - rpc CreateZone(CreateZoneReq) returns(CreateZoneResp); - rpc UpdateZone(UpdateZoneReq) returns(UpdateZoneResp); - rpc DeleteZone(DeleteZoneReq) returns(DeleteZoneResp); rpc GetShareList(GetShareListReq) returns(GetShareListResp); rpc CheckShareFile(CheckShareFileReq) returns(CheckShareFileResp); rpc CreateShareCode(CreateShareCodeReq) returns(CreateShareCodeResp); diff --git a/cloudmind/core_api/common.proto b/cloudmind/core_api/common.proto index cbda538..8de2b4a 100644 --- a/cloudmind/core_api/common.proto +++ b/cloudmind/core_api/common.proto @@ -24,12 +24,6 @@ enum Product_Type { File_Type = 3; } -message Slider{ - string sliderId = 1; - string imageUrl = 2; - string linkUrl = 3; - int64 isPublic = 4; -} enum TargetType { UnKnowTargetType = 0; UserType = 1; @@ -86,6 +80,13 @@ enum Category { PostCategory = 3; } +message Slider{ + string sliderId = 1; + string imageUrl = 2; + string linkUrl = 3; + int64 isPublic = 4; +} + message User { string userId = 1; string name = 2; @@ -96,6 +97,12 @@ message User { string description = 7; } +message SimpleUser { + string userId = 1; + string name = 2; + string url = 3; +} + message PostUser { string userId = 1; string name = 2; @@ -108,6 +115,18 @@ message PostUser { int64 postCount = 9; } +message FileUser { + string userId = 1; + string name = 2; + string url = 3; + repeated string labels = 4; + bool followed = 5; + int64 followedCount = 6; + string description = 7; + int64 likedCount = 8; + int64 fileCount = 9; +} + message HotUser { string userId = 1; string name = 2; @@ -123,8 +142,8 @@ message HotPost { message HotFile { string fileId = 1; - string name = 3; - string type = 4; + string name = 2; + string type = 3; } message RecommendUser { @@ -137,12 +156,6 @@ message RecommendUser { bool followed = 7; } -message LabelInfo{ - string tagId = 1; - string zoneId = 2; - string value = 3; -} - message UserDetail { string name = 1; int64 sex = 2; @@ -153,7 +166,7 @@ message UserDetail { } message PrivateFile { - string fileId = 1; + string id = 1; string userId = 2; string name = 3; string type = 4; @@ -167,23 +180,21 @@ message PrivateFile { } message PublicFile { - string fileId = 1; + string id = 1; string userId = 2; string name = 3; string type = 4; - string path = 5; - string fatherId = 6; - int64 spaceSize = 7; - int64 isDel = 8; - string zone = 9; - string subZone = 10; - string description = 11; - int64 createAt = 12; - int64 updateAt = 13; - repeated Label labels = 14; - User author = 15; // 作者信息 - FileCount fileCount = 16; // 文章统计信息 - FileRelation fileRelation = 17; // 文章关系信息 + int64 spaceSize = 5; + int64 isDel = 6; + string zone = 7; + string subZone = 8; + string description = 9; + int64 createAt = 10; + int64 updateAt = 11; + repeated Label labels = 12; + FileUser author = 13; // 作者信息 + FileCount fileCount = 14; // 文章统计信息 + FileRelation fileRelation = 15; // 文章关系信息 } message SearchInfo { @@ -192,7 +203,7 @@ message SearchInfo { int64 type = 3; string description = 4; int64 createAt = 5; - repeated LabelInfo labels = 6; + repeated Label labels = 6; int64 viewCount = 7; int64 likedCount = 8; int64 liked = 9; @@ -201,17 +212,6 @@ message SearchInfo { string postUrl = 12; } -message Zone { - string id = 1; - string fatherId = 2; - string value = 3; -} - -message ZoneInfo { - string id = 1; - string value = 2; -} - message ShareFile { string code = 1; string userId = 2; @@ -245,7 +245,7 @@ message ShareCode { message SearchField { optional string name = 1; optional string id = 2; - optional string tag = 3; // 仅限Post + optional string label = 3; // 仅限Post optional string text = 4; optional string title = 5; optional string description = 6; @@ -267,7 +267,7 @@ message FileFilterOptions { optional string onlyZone = 5; // 分区 optional string onlySubZone = 6; // 子分区 optional int64 onlyDocumentType = 7; // 操作类型 1:个人空间文件 2:公共空间文件 - repeated string onlyLabels = 8; // 标签id + repeated string onlyLabelId = 8; // 标签id repeated string onlyType = 9; // 文件类型 optional int64 onlyCategory = 10; } @@ -313,7 +313,7 @@ message Post { string title = 2; string text = 3; string url = 4; - repeated string labelIds = 5; + repeated Label labels = 5; int64 likeCount = 6; // 点赞量 int64 commentCount = 7; // 评论量 int64 viewCount = 8; @@ -338,21 +338,6 @@ message Notification { 三级评论:rootId != fatherId != subjectId */ message Comment { - string id = 1; - string subjectId = 2; - string rootId = 3; - string fatherId = 4; - optional int64 count = 5; // 回复数 - State state = 6; // 1: 正常, 2: 删除 - Attrs attrs = 7; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华 - repeated string labels = 8; // 标签:作者点赞,作者回复等 - string userId = 9; // 评论者 - string atUserId = 10; // @谁 - string content = 11; // 内容 - string meta = 12; // 皮肤,字体等 -} - -message CommentInfo { string id = 1; string subjectId = 2; string rootId = 3; @@ -360,14 +345,14 @@ message CommentInfo { int64 count = 5; // 回复数 int64 state = 6; // 1: 正常, 2: 删除 int64 attrs = 7; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华 - repeated Label labels = 8; // 标签:作者点赞,作者回复等 + repeated string labels = 8; // 标签:作者点赞,作者回复等 string userId = 9; // 评论者 string atUserId = 10; // @谁 string content = 11; // 内容 string meta = 12; // 皮肤,字体等 int64 createTime = 13; // 创建时间 int64 like = 14; // 点赞数 - User author = 15; // 评论者信息 + SimpleUser author = 15; // 评论者信息 CommentRelation commentRelation = 16; // 评论关系信息 } @@ -416,10 +401,8 @@ message SubjectInfo { } message Label { - string labelId = 1; - string zone = 2; - string subZone = 3; - string value = 4; + string id = 1; + string value = 2; } message Recommends { diff --git a/cloudmind/core_api/content.proto b/cloudmind/core_api/content.proto index 992111b..ea1df3e 100644 --- a/cloudmind/core_api/content.proto +++ b/cloudmind/core_api/content.proto @@ -11,7 +11,7 @@ message UpdateUserReq{ string fullName = 3; string idCard = 4; string description = 5; - repeated string labels = 6; + repeated string labelIds = 6; string url = 7; bool isSure = 8; } @@ -45,21 +45,41 @@ message SearchUserResp{ } message GetPrivateFileReq{ - string fileId = 1; + string id = 1; bool isGetSize = 2; } message GetPrivateFileResp{ - PrivateFile file = 1; + string name = 1; + string type = 2; + string path = 3; + int64 spaceSize = 4; + int64 isDel = 5; + int64 createAt = 6; + int64 updateAt = 7; + int64 deleteAt = 8; } message GetPublicFileReq{ - string fileId = 1; + string id = 1; bool isGetSize = 2; } message GetPublicFileResp{ - PublicFile file = 1; + string userId = 1; + string name = 2; + string type = 3; + int64 spaceSize = 4; + int64 isDel = 5; + string zone = 6; + string subZone = 7; + string description = 8; + int64 createAt = 9; + int64 updateAt = 10; + repeated Label labels = 11; + FileUser author = 12; // 作者信息 + FileCount fileCount = 13; // 社区文件统计信息 + FileRelation fileRelation = 14; // 社区文件关系信息 } message GetPrivateFilesReq{ @@ -153,12 +173,12 @@ message CreateFileReq{ } message CreateFileResp{ - string fileId = 1; + string id = 1; string name = 2; } message UpdateFileReq{ - string fileId = 1; + string id = 1; string name = 2[(http.vd) = "len($) >= 1 && len($) <= 80"]; } @@ -167,7 +187,7 @@ message UpdateFileResp{ } message CheckFileReq{ - string fileId = 1; + string id = 1; } message CheckFileResp{ @@ -175,7 +195,7 @@ message CheckFileResp{ } message MoveFileReq{ - string fileId = 1; + string id = 1; string fatherId = 2; } @@ -183,7 +203,7 @@ message MoveFileResp{ } message SaveFileToPrivateSpaceReq{ - string fileId = 1; + string id = 1; string fatherId = 2; DocumentType documentType = 3; optional string code = 4; @@ -191,12 +211,12 @@ message SaveFileToPrivateSpaceReq{ } message SaveFileToPrivateSpaceResp{ - string fileId = 1; + string id = 1; string name = 2; } message AddFileToPublicSpaceReq{ - string fileId = 1; + string id = 1; string zone = 2; string subZone = 3; string description = 4; @@ -207,7 +227,7 @@ message AddFileToPublicSpaceResp{ } message DeleteFileReq{ - repeated string fileIds = 1; + repeated string ids = 1; IsDel deleteType = 2; bool clearCommunity = 3; } @@ -222,64 +242,19 @@ message EmptyRecycleBinResp{ } message CompletelyRemoveFileReq { - repeated string fileIds = 1; + repeated string ids = 1; } message CompletelyRemoveFileResp { } message RecoverRecycleBinFileReq{ - repeated string fileIds = 1; + repeated string ids = 1; } message RecoverRecycleBinFileResp{ } -message CreateZoneReq { - string fatherId = 1; - string value = 2; -} - -message CreateZoneResp { - string id = 1; -} - -message GetZoneReq { - string id = 1; -} - -message GetZoneResp { - Zone zone = 1; -} - -message GetZonesReq { - string fatherId= 1; - optional int64 limit = 2; - optional string lastToken = 3; - optional bool backward = 4; - optional int64 offset = 5; -} - -message GetZonesResp { - repeated ZoneInfo zones = 1; - int64 total = 2; - string token = 3; -} - -message UpdateZoneReq { - Zone zone = 1; -} - -message UpdateZoneResp { -} - -message DeleteZoneReq { - string id = 1; -} - -message DeleteZoneResp { -} - message CreateShareCodeReq { string name = 1[(http.vd) = "len($) >= 1 && len($) <= 80"]; int64 effectiveTime = 2; @@ -313,7 +288,7 @@ message UpdateShareCodeResp { } message DeleteShareCodeReq { - string onlyCode = 1; + string code = 1; } message DeleteShareCodeResp { @@ -325,7 +300,12 @@ message ParsingShareCodeReq { } message ParsingShareCodeResp { - ShareFile shareFile = 1; + string userId = 1; + string name = 2; + int64 effectiveTime = 3; + int64 browseNumber = 4; + int64 createAt = 5; + repeated string fileList = 6; } message AskUploadFileReq { @@ -357,7 +337,7 @@ message GetUserResp{ string userId = 1; string name = 2; string url = 3; - repeated string tags = 4; + repeated string labels = 4; string description = 5; int64 sex = 6; int64 createTime = 7; @@ -386,9 +366,9 @@ message GetUserDetailResp { string description = 5; string url = 6; int64 flow = 7; - int64 momery = 8; + int64 memory = 8; int64 point = 9; - repeated string tags = 10; + repeated string labels = 10; int64 createTime = 11; } @@ -399,12 +379,6 @@ message DeleteUserReq{ message DeleteUserResp{ } -message Tag { - string tagId = 1; - string zoneId = 2; -} - - message CreatePostReq{ string title = 1; string text = 2; @@ -454,7 +428,7 @@ message GetPostResp{ int64 status = 3; string url = 4; PostUser author = 5; // 作者信息 - repeated string labelIds = 6; // 标签 + repeated Label labels = 6; // 标签 int64 viewCount = 7; // 浏览量 int64 likeCount = 8; // 点赞量 int64 commentCount = 9; // 评论量 @@ -619,7 +593,7 @@ message GetHotRanksResp{ } message MakeFilePrivateReq{ - string fileId = 1; + string id = 1; } message MakeFilePrivateResp{ diff --git a/cloudmind/core_api/core_api.proto b/cloudmind/core_api/core_api.proto index 6f0757e..e0564d4 100644 --- a/cloudmind/core_api/core_api.proto +++ b/cloudmind/core_api/core_api.proto @@ -70,21 +70,6 @@ service content { rpc RecoverRecycleBinFile(RecoverRecycleBinFileReq) returns(RecoverRecycleBinFileResp){ option (http.post) = "/content/recoverRecycleBinFile"; } - rpc CreateZone(CreateZoneReq) returns(CreateZoneResp){ - option (http.post) = "/content/createZone"; - } - rpc UpdateZone(UpdateZoneReq) returns(UpdateZoneResp){ - option (http.post) = "/content/updateZone"; - } - rpc GetZone(GetZoneReq) returns(GetZoneResp){ - option (http.get) = "/content/getZone"; - } - rpc GetZones(GetZonesReq) returns(GetZonesResp){ - option (http.get) = "/content/getZones"; - } - rpc DeleteZone(DeleteZoneReq) returns(DeleteZoneResp){ - option (http.post) = "/content/deleteZone"; - } rpc CreateShareCode(CreateShareCodeReq) returns(CreateShareCodeResp){ option (http.post) = "/content/createShareCode"; } diff --git a/cloudmind/core_api/platform.proto b/cloudmind/core_api/platform.proto index 4ca3e2d..1cfd784 100644 --- a/cloudmind/core_api/platform.proto +++ b/cloudmind/core_api/platform.proto @@ -6,19 +6,40 @@ import "cloudmind/core_api/common.proto"; import "http/http.proto"; message CreateCommentReq { - Comment comment = 1; + string subjectId = 1; + string rootId = 2; + string fatherId = 3; + repeated string labelIds = 4; // 标签id列表:作者点赞,作者回复等 + string userId = 5; // 评论者 + string atUserId = 6; // @谁 + string content = 7; // 内容 + string meta = 8; // 皮肤,字体等 } message CreateCommentResp { - string commentId = 1; + string id = 1; } message GetCommentReq { - string commentId = 1; + string id = 1; } message GetCommentResp { - CommentInfo comment = 1; + string subjectId = 1; + string rootId = 2; + string fatherId = 3; + int64 count = 4; // 回复数 + int64 state = 5; // 1: 正常, 2: 删除 + int64 attrs = 6; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华 + repeated string labels = 7; // 标签:作者点赞,作者回复等 + string userId = 8; // 评论者 + string atUserId = 9; // @谁 + string content = 10; // 内容 + string meta = 11; // 皮肤,字体等 + int64 createTime = 12; // 创建时间 + int64 like = 13; // 点赞数 + SimpleUser author = 14; // 评论者信息 + CommentRelation commentRelation = 15; // 评论关系信息 } message GetCommentsReq { @@ -37,27 +58,29 @@ message GetCommentsReq { } message GetCommentsResp { - repeated CommentInfo comments = 1; + repeated Comment comments = 1; int64 total = 2; string token = 3; } message UpdateCommentReq { - Comment comment = 1; + string id = 1; + State state = 2; // 1: 正常, 2: 删除 + repeated string labelIds = 3; // 标签:作者点赞,作者回复等 } message UpdateCommentResp { } message DeleteCommentReq { - string commentId = 1; + string id = 1; } message DeleteCommentResp { } message SetCommentAttrsReq { - string commentId = 1; + string id = 1; Attrs attrs = 2; } @@ -65,15 +88,22 @@ message SetCommentAttrsResp{ } message GetCommentSubjectReq { - string subjectId = 1; + string id = 1; } message GetCommentSubjectResp { - SubjectDetails subject = 1; + string userId = 1; + string topCommentId = 2; + int64 rootCount = 3; + int64 allCount = 4; + int64 state = 5; // 1: 正常, 2: 删除 + int64 attrs = 6; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华 } message UpdateCommentSubjectReq { - Subject subject = 1; + string id = 1; + State state = 2; // 1: 正常, 2: 删除 + Attrs attrs = 3; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华 } message UpdateCommentSubjectResp { @@ -87,44 +117,57 @@ message DeleteCommentSubjectResp { } message CreateLabelReq { - Label label = 1; + string fatherId = 1; + string value = 2; } + message CreateLabelResp { - string labelId = 1; + string id = 1; } + message DeleteLabelReq { - string labelId = 1; + string id = 1; } + message DeleteLabelResp { } + message GetLabelReq { - string labelId = 1; + string id = 1; } + message GetLabelResp { string label = 1; } + message UpdateLabelReq { - Label label = 1; + string id = 1; + string fatherId = 2; + string value = 3; } + message UpdateLabelResp { } + message GetLabelsReq { optional string key = 1; // 用于匹配标签的key optional int64 limit = 2; optional string lastToken = 3; optional bool backward = 4; optional int64 offset = 5; - optional string zone = 6; - optional string subZone = 7; + optional string fatherId = 6; } + message GetLabelsResp { repeated Label labels = 1; int64 total = 2; string token = 3; } + message GetLabelsInBatchReq { - repeated string labelIds = 1; + repeated string ids = 1; } + message GetLabelsInBatchResp { repeated string labels = 1; }