2024-03-05 19:15:53 +00:00
|
|
|
package response
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type ArticlesResponse struct {
|
2024-03-31 15:19:45 +00:00
|
|
|
ID uint `json:"id"`
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
Slug string `json:"slug"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
HtmlDescription string `json:"html_description"`
|
|
|
|
|
TypeId int `json:"type_id"`
|
|
|
|
|
Tags string `json:"tags"`
|
|
|
|
|
ThumbnailPath *string `json:"thumbnail_path"`
|
|
|
|
|
ThumbnailUrl *string `json:"thumbnail_url"`
|
|
|
|
|
PageUrl *string `json:"page_url"`
|
|
|
|
|
CreatedById *int `json:"created_by_id"`
|
|
|
|
|
ShareCount *int `json:"share_count"`
|
|
|
|
|
ViewCount *int `json:"view_count"`
|
|
|
|
|
DownloadCount *int `json:"download_count"`
|
|
|
|
|
StatusId *int `json:"status_id"`
|
|
|
|
|
IsPublish *bool `json:"is_publish"`
|
|
|
|
|
PublishedAt *time.Time `json:"published_at"`
|
|
|
|
|
IsActive *bool `json:"is_active"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
|
}
|