fix: add publishedFor in detail

This commit is contained in:
Sabda Yagra 2026-02-13 09:30:53 +07:00
parent f43d96c621
commit 5ad79e75e2
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ func ArticlesResponseMapper(
HtmlDescription: articlesReq.HtmlDescription, HtmlDescription: articlesReq.HtmlDescription,
TypeId: articlesReq.TypeId, TypeId: articlesReq.TypeId,
Tags: articlesReq.Tags, Tags: articlesReq.Tags,
PublishedFor: articlesReq.PublishedFor,
CategoryId: articlesReq.CategoryId, CategoryId: articlesReq.CategoryId,
AiArticleId: articlesReq.AiArticleId, AiArticleId: articlesReq.AiArticleId,
CategoryName: categoryName, CategoryName: categoryName,

View File

@ -16,6 +16,7 @@ type ArticlesResponse struct {
CategoryName string `json:"categoryName"` CategoryName string `json:"categoryName"`
TypeId int `json:"typeId"` TypeId int `json:"typeId"`
Tags string `json:"tags"` Tags string `json:"tags"`
PublishedFor *string `json:"publishedFor"`
ThumbnailUrl string `json:"thumbnailUrl"` ThumbnailUrl string `json:"thumbnailUrl"`
PageUrl *string `json:"pageUrl"` PageUrl *string `json:"pageUrl"`
CreatedById *uint `json:"createdById"` CreatedById *uint `json:"createdById"`