kontenhumas-be/app/module/custom_static_pages/mapper/custom_static_pages.mapper.go

23 lines
770 B
Go
Raw Normal View History

2025-09-28 01:53:09 +00:00
package mapper
import (
2025-09-30 13:34:56 +00:00
"netidhub-saas-be/app/database/entity"
res "netidhub-saas-be/app/module/custom_static_pages/response"
2025-09-28 01:53:09 +00:00
)
func CustomStaticPagesResponseMapper(customStaticPagesReq *entity.CustomStaticPages) (customStaticPagesRes *res.CustomStaticPagesResponse) {
if customStaticPagesReq != nil {
customStaticPagesRes = &res.CustomStaticPagesResponse{
ID: customStaticPagesReq.ID,
Title: customStaticPagesReq.Title,
Description: customStaticPagesReq.Description,
Slug: customStaticPagesReq.Slug,
HtmlBody: customStaticPagesReq.HtmlBody,
IsActive: customStaticPagesReq.IsActive,
CreatedAt: customStaticPagesReq.CreatedAt,
UpdatedAt: customStaticPagesReq.UpdatedAt,
}
}
return customStaticPagesRes
}