27 lines
834 B
Go
27 lines
834 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type Blog struct {
|
|
Id string `json:"id"`
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
Summary string `json:"summary"`
|
|
CoverImage string `json:"cover_image"`
|
|
ContentHtml string `json:"content_html"`
|
|
ContentJson interface{} `json:"content_json"`
|
|
Status string `json:"status"`
|
|
IsFeatured bool `json:"is_featured"`
|
|
ViewCount int `json:"view_count"`
|
|
Slug string `json:"slug"`
|
|
CategoryId string `json:"category_id"`
|
|
Category struct {
|
|
Id string `json:"id"`
|
|
Title string `json:"title"`
|
|
} `json:"category"`
|
|
MetaTags interface{} `json:"meta_tags"`
|
|
Author string `json:"author"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|