19 lines
500 B
Go
19 lines
500 B
Go
package model
|
|
|
|
type AddResult struct {
|
|
ItemID *uint `json:"item_id,omitempty"`
|
|
}
|
|
|
|
type CommentInput struct {
|
|
ParentPostID *uint `json:"parent_post_id,omitempty"`
|
|
ParentCommentID *uint `json:"parent_comment_id,omitempty"`
|
|
Author string `json:"author"`
|
|
Contents string `json:"contents"`
|
|
}
|
|
|
|
type PostInput struct {
|
|
Title string `json:"title"`
|
|
Author string `json:"author"`
|
|
Contents string `json:"contents"`
|
|
AllowComments bool `json:"allowComments"`
|
|
}
|