You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/model/vo/comment.go

33 lines
531 B
Go

package vo
import "github.com/go-sonic/sonic/model/dto"
type Comment struct {
*dto.Comment
Children []*Comment
}
type CommentWithParent struct {
*dto.Comment
Parent *dto.Comment
}
type PostCommentWithPost struct {
dto.Comment
Post *dto.PostMinimal `json:"post"`
}
type SheetCommentWithSheet struct {
dto.Comment
*dto.PostMinimal
}
type JournalCommentWithJournal struct {
dto.Comment
Journal *dto.Journal `json:"journal"`
}
type CommentWithHasChildren struct {
*dto.Comment
HasChildren bool `json:"hasChildren"`
}