feat: update article category response

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

View File

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

View File

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