2024-03-05 19:15:53 +00:00
|
|
|
package response
|
|
|
|
|
|
2024-05-07 07:48:46 +00:00
|
|
|
import (
|
2025-01-20 09:30:39 +00:00
|
|
|
articleCategoriesResponse "go-humas-be/app/module/article_categories/response"
|
2024-05-07 07:48:46 +00:00
|
|
|
articleFilesResponse "go-humas-be/app/module/article_files/response"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
2024-03-05 19:15:53 +00:00
|
|
|
|
|
|
|
|
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"`
|
2024-05-05 09:24:49 +00:00
|
|
|
HtmlDescription string `json:"htmlDescription"`
|
|
|
|
|
CategoryId int `json:"categoryId"`
|
|
|
|
|
CategoryName string `json:"categoryName"`
|
|
|
|
|
TypeId int `json:"typeId"`
|
2024-03-31 15:19:45 +00:00
|
|
|
Tags string `json:"tags"`
|
2024-05-05 09:24:49 +00:00
|
|
|
ThumbnailUrl string `json:"thumbnailUrl"`
|
|
|
|
|
PageUrl *string `json:"pageUrl"`
|
|
|
|
|
CreatedById *uint `json:"createdById"`
|
2024-05-07 07:48:46 +00:00
|
|
|
CreatedByName *string `json:"createdByName"`
|
2024-05-07 11:08:38 +00:00
|
|
|
ShareCount *int `json:"shareCount"`
|
2024-05-05 09:24:49 +00:00
|
|
|
ViewCount *int `json:"viewCount"`
|
|
|
|
|
DownloadCount *int `json:"downloadCount"`
|
2025-01-22 10:25:02 +00:00
|
|
|
AiArticleId *int `json:"aiArticleId"`
|
2024-05-05 09:24:49 +00:00
|
|
|
StatusId *int `json:"statusId"`
|
|
|
|
|
IsPublish *bool `json:"isPublish"`
|
|
|
|
|
PublishedAt *time.Time `json:"publishedAt"`
|
|
|
|
|
IsActive *bool `json:"isActive"`
|
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
2024-05-07 07:48:46 +00:00
|
|
|
|
2025-01-20 09:30:39 +00:00
|
|
|
ArticleFiles []*articleFilesResponse.ArticleFilesResponse `json:"files"`
|
|
|
|
|
ArticleCategories []*articleCategoriesResponse.ArticleCategoriesResponse `json:"categories"`
|
2024-03-31 15:19:45 +00:00
|
|
|
}
|