package mapper

import (
	"jaecoo-be/app/database/entity/article_category_details"
	res "jaecoo-be/app/module/article_category_details/response"
)

func ArticleCategoryDetailsResponseMapper(articleCategoryDetailsReq *article_category_details.ArticleCategoryDetails) (articleCategoryDetailsRes *res.ArticleCategoryDetailsResponse) {
	if articleCategoryDetailsReq != nil {

		articleCategoryDetailsRes = &res.ArticleCategoryDetailsResponse{
			ID:         articleCategoryDetailsReq.ID,
			ArticleId:  articleCategoryDetailsReq.ArticleId,
			CategoryId: articleCategoryDetailsReq.CategoryId,
			IsActive:   articleCategoryDetailsReq.IsActive,
			CreatedAt:  articleCategoryDetailsReq.CreatedAt,
			UpdatedAt:  articleCategoryDetailsReq.UpdatedAt,
		}
	}
	return articleCategoryDetailsRes
}
