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
|
postId string
|
||||||
text string
|
text string
|
||||||
likes int
|
likes int
|
||||||
dislikes int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -61,7 +60,6 @@ func CreateNewComment(userLogin string, postId string, text string) {
|
||||||
postId: postId,
|
postId: postId,
|
||||||
text: text,
|
text: text,
|
||||||
likes: 0,
|
likes: 0,
|
||||||
dislikes: 0,
|
|
||||||
}
|
}
|
||||||
var comments = make([]Comment, 0)
|
var comments = make([]Comment, 0)
|
||||||
comments = GetByPostId(postId)
|
comments = GetByPostId(postId)
|
||||||
|
|
|
@ -14,7 +14,6 @@ type Post struct {
|
||||||
text string
|
text string
|
||||||
login string
|
login string
|
||||||
likes int
|
likes int
|
||||||
dislikes int
|
|
||||||
id string
|
id string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +51,6 @@ func NewPost(login string, text string, postName string) {
|
||||||
post := Post{
|
post := Post{
|
||||||
text: text,
|
text: text,
|
||||||
login: login,
|
login: login,
|
||||||
dislikes: 0,
|
|
||||||
likes: 0,
|
likes: 0,
|
||||||
postName: postName,
|
postName: postName,
|
||||||
id: post_id,
|
id: post_id,
|
||||||
|
|
Loading…
Reference in a new issue