26 lines
878 B
Go
26 lines
878 B
Go
package response
|
|
|
|
import "time"
|
|
|
|
type ArticlesResponse struct {
|
|
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"`
|
|
} |