ozon-task/graph/model/mutation.go

20 lines
500 B
Go
Raw Normal View History

2024-06-24 23:34:10 +00:00
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"`
}