medol-be/app/module/articles/response/articles.response.go

34 lines
1.2 KiB
Go
Raw Normal View History

2024-03-05 19:15:53 +00:00
package response
2024-05-07 07:48:46 +00:00
import (
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"`
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"`
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"`
ViewCount *int `json:"viewCount"`
DownloadCount *int `json:"downloadCount"`
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
ArticleFiles []*articleFilesResponse.ArticleFilesResponse `json:"files"`
2024-03-31 15:19:45 +00:00
}