ozon-task/graph/model/mutation.go
2024-06-25 02:34:10 +03:00

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"`
}