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/post.go

22 lines
649 B
Go

package vo
import "github.com/go-sonic/sonic/model/dto"
type Post struct {
dto.Post
CommentCount int64 `json:"commentCount"`
Tags []*dto.Tag `json:"tags"`
Categories []*dto.CategoryDTO `json:"categories"`
Metas map[string]interface{} `json:"metas"`
}
type PostDetailVO struct {
dto.PostDetail
TagIDs []int32 `json:"tagIds"`
Tags []*dto.Tag `json:"tags"`
CategoryIDs []int32 `json:"categoryIds"`
Categories []*dto.CategoryDTO `json:"categories"`
MetaIDs []int32 `json:"metaIds"`
Metas []*dto.Meta `json:"metas"`
}