Skip to content

Commit

Permalink
Add comments struct & message to the model
Browse files Browse the repository at this point in the history
  • Loading branch information
JonyBepary committed Oct 21, 2023
1 parent c31d5f9 commit 51e10e9
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 56 deletions.
173 changes: 119 additions & 54 deletions internal/model/comments.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions internal/model/comments.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ package model;
option go_package = ".;model";
import "google/protobuf/timestamp.proto";

message Comments{
message Comment{
string id = 1;
string user = 2;
string post_id = 3;
Expand All @@ -23,8 +23,13 @@ message Comments{
google.protobuf.Timestamp created_date = 6 ;
google.protobuf.Timestamp updated_date = 7 ;
int64 likes = 8;
int64 replies = 9;
repeated string replies = 9;
bool is_deleted = 10;
bool is_updated = 11;
}


message Comments {
repeated Comment comments = 1;
}

0 comments on commit 51e10e9

Please sign in to comment.