delete: dislikes
This commit is contained in:
parent
efc1d5eafe
commit
674c1bf358
2 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue