fix: add publishedFor in detail
This commit is contained in:
parent
f43d96c621
commit
5ad79e75e2
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue