feat: update article category response

This commit is contained in:
hanif salafi 2025-02-14 18:00:44 +07:00
parent b641be77c6
commit 62223041c1
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ func ArticleCategoriesResponseMapper(articleCategoriesReq *entity.ArticleCategor
Slug: articleCategoriesReq.Slug, Slug: articleCategoriesReq.Slug,
ThumbnailPath: articleCategoriesReq.ThumbnailPath, ThumbnailPath: articleCategoriesReq.ThumbnailPath,
ParentId: articleCategoriesReq.ParentId, ParentId: articleCategoriesReq.ParentId,
OldCategoryId: articleCategoriesReq.OldCategoryId,
CreatedById: articleCategoriesReq.CreatedById, CreatedById: articleCategoriesReq.CreatedById,
StatusId: articleCategoriesReq.StatusId, StatusId: articleCategoriesReq.StatusId,
IsPublish: articleCategoriesReq.IsPublish, IsPublish: articleCategoriesReq.IsPublish,

View File

@ -11,6 +11,7 @@ type ArticleCategoriesResponse struct {
Tags []string `json:"tags"` Tags []string `json:"tags"`
ThumbnailPath *string `json:"thumbnailPath"` ThumbnailPath *string `json:"thumbnailPath"`
ParentId *int `json:"parentId"` ParentId *int `json:"parentId"`
OldCategoryId *uint `json:"oldCategoryId"`
CreatedById *uint `json:"createdById"` CreatedById *uint `json:"createdById"`
StatusId int `json:"statusId"` StatusId int `json:"statusId"`
IsPublish *bool `json:"isPublish"` IsPublish *bool `json:"isPublish"`