From 5ad79e75e23f16fdda9abfab94633f97aaeb8ca3 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Fri, 13 Feb 2026 09:30:53 +0700 Subject: [PATCH] fix: add publishedFor in detail --- app/module/articles/mapper/articles.mapper.go | 1 + app/module/articles/response/articles.response.go | 1 + 2 files changed, 2 insertions(+) diff --git a/app/module/articles/mapper/articles.mapper.go b/app/module/articles/mapper/articles.mapper.go index 076d657..c981c8a 100644 --- a/app/module/articles/mapper/articles.mapper.go +++ b/app/module/articles/mapper/articles.mapper.go @@ -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, diff --git a/app/module/articles/response/articles.response.go b/app/module/articles/response/articles.response.go index 255dc55..458394d 100644 --- a/app/module/articles/response/articles.response.go +++ b/app/module/articles/response/articles.response.go @@ -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"`