diff --git a/Comment/comment.go b/Comment/comment.go index d66b15c..d69c8e5 100755 --- a/Comment/comment.go +++ b/Comment/comment.go @@ -15,7 +15,6 @@ type Comment struct { postId string text string likes int - dislikes int } const ( @@ -61,7 +60,6 @@ func CreateNewComment(userLogin string, postId string, text string) { postId: postId, text: text, likes: 0, - dislikes: 0, } var comments = make([]Comment, 0) comments = GetByPostId(postId) diff --git a/Post/post_contract.go b/Post/post_contract.go index 3008357..a76c94e 100755 --- a/Post/post_contract.go +++ b/Post/post_contract.go @@ -14,7 +14,6 @@ type Post struct { text string login string likes int - dislikes int id string } @@ -52,7 +51,6 @@ func NewPost(login string, text string, postName string) { post := Post{ text: text, login: login, - dislikes: 0, likes: 0, postName: postName, id: post_id,