feat: update magazine, and magazine files
This commit is contained in:
parent
5eeebdcdf3
commit
a20728cd05
|
|
@ -13,6 +13,13 @@ func MagazineFilesResponseMapper(magazineFilesReq *entity.MagazineFiles) (magazi
|
|||
Description: magazineFilesReq.Description,
|
||||
MagazineId: magazineFilesReq.MagazineId,
|
||||
DownloadCount: magazineFilesReq.DownloadCount,
|
||||
FilePath: magazineFilesReq.FilePath,
|
||||
FileUrl: magazineFilesReq.FileUrl,
|
||||
FileName: magazineFilesReq.FileName,
|
||||
FileAlt: magazineFilesReq.FileAlt,
|
||||
WidthPixel: magazineFilesReq.WidthPixel,
|
||||
HeightPixel: magazineFilesReq.HeightPixel,
|
||||
Size: magazineFilesReq.Size,
|
||||
StatusId: magazineFilesReq.StatusId,
|
||||
IsPublish: magazineFilesReq.IsPublish,
|
||||
PublishedAt: magazineFilesReq.PublishedAt,
|
||||
|
|
|
|||
|
|
@ -6,12 +6,19 @@ type MagazineFilesResponse struct {
|
|||
ID uint `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
MagazineId int `json:"magazine_id"`
|
||||
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"`
|
||||
MagazineId uint `json:"magazineId"`
|
||||
DownloadCount *int `json:"downloadCount"`
|
||||
FilePath *string `json:"filePath"`
|
||||
FileUrl *string `json:"fileUrl"`
|
||||
FileName *string `json:"fileName"`
|
||||
FileAlt *string `json:"fileAlt"`
|
||||
WidthPixel *string `json:"widthPixel"`
|
||||
HeightPixel *string `json:"heightPixel"`
|
||||
Size *string `json:"size"`
|
||||
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"`
|
||||
}
|
||||
|
|
@ -6,14 +6,14 @@ type MagazinesResponse struct {
|
|||
ID uint `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
ThumbnailPath string `json:"thumbnail_path"`
|
||||
ThumbnailUrl string `json:"thumbnail_url"`
|
||||
PageUrl string `json:"page_url"`
|
||||
CreatedById int `json:"created_by_id"`
|
||||
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"`
|
||||
ThumbnailPath string `json:"thumbnailPath"`
|
||||
ThumbnailUrl string `json:"thumbnailUrl"`
|
||||
PageUrl string `json:"pageUrl"`
|
||||
CreatedById *uint `json:"createdById"`
|
||||
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"`
|
||||
}
|
||||
Loading…
Reference in New Issue