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,
TypeId: articlesReq.TypeId,
Tags: articlesReq.Tags,
PublishedFor: articlesReq.PublishedFor,
CategoryId: articlesReq.CategoryId,
AiArticleId: articlesReq.AiArticleId,
CategoryName: categoryName,

View File

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