initial commit
This commit is contained in:
26
internal/dto/blog.go
Normal file
26
internal/dto/blog.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user