Skip to content

Commit

Permalink
Fix/修改commnet的删除bug (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Love-YeLin authored Apr 14, 2024
1 parent 1b717e4 commit a57a298
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
17 changes: 1 addition & 16 deletions cloudmind/core_api/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -379,22 +379,7 @@ message Subject {
optional int64 allCount = 5;
State state = 6; // 1: 正常, 2: 删除
Attrs attrs = 7; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
}

message SubjectDetails {
string id = 1;
string userId = 2;
string TopCommentId = 3;
int64 rootCount = 4;
int64 allCount = 5;
int64 state = 6; // 1: 正常, 2: 删除
int64 attrs = 7; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
}

message SubjectInfo {
string id = 1;
string userId = 2;
int64 attrs = 3; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
TargetType itemType = 8;
}

message Label {
Expand Down
3 changes: 3 additions & 0 deletions cloudmind/core_api/platform.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message CreateCommentReq {
string atUserId = 5; // @谁
string content = 6; // 内容
string meta = 7; // 皮肤,字体等
TargetType itemType = 8;
}

message CreateCommentResp {
Expand Down Expand Up @@ -41,6 +42,7 @@ message GetCommentResp {
int64 hatedCount = 14;
SimpleUser author = 15; // 评论者信息
CommentRelation commentRelation = 16; // 评论关系信息
TargetType itemType = 17;
}

message GetCommentsReq {
Expand Down Expand Up @@ -113,6 +115,7 @@ message GetCommentSubjectResp {
int64 allCount = 4;
int64 state = 5; // 1: 正常, 2: 删除
int64 attrs = 6; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
int64 type = 7;
}

message UpdateCommentSubjectReq {
Expand Down
2 changes: 2 additions & 0 deletions platform/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ message Comment {
string content = 11; // 内容
string meta = 12; // 皮肤,字体等
int64 createTime = 13;
int64 type = 14;
}

message CommentBlock {
Expand Down Expand Up @@ -67,6 +68,7 @@ message Subject {
int64 allCount = 5;
int64 state = 6; // 1: 正常, 2: 删除
int64 attrs = 7; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
int64 type = 8;
}

message Label {
Expand Down
6 changes: 5 additions & 1 deletion platform/platform.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ message CreateCommentReq {
string userId = 5; // 评论者
string atUserId = 6; // @谁
string content = 7; // 内容
string meta = 8; // 皮肤,字体等
string meta = 8; // 皮肤,字
int64 type = 9;// 体等
}

message CreateCommentResp {
Expand All @@ -37,6 +38,7 @@ message GetCommentResp {
string content = 10; // 内容
string meta = 11; // 皮肤,字体等
int64 createTime = 12;
int64 type = 13;
}

message GetCommentListReq {
Expand Down Expand Up @@ -100,11 +102,13 @@ message GetCommentSubjectResp {
int64 allCount = 4;
int64 state = 5; // 1: 正常, 2: 删除
int64 attrs = 6; // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
int64 type = 7;
}

message CreateCommentSubjectReq {
string subjectId = 1;
string userId = 2;
int64 type = 3;
}

message CreateCommentSubjectResp {
Expand Down

0 comments on commit a57a298

Please sign in to comment.