package mapper

import (
	"netidhub-saas-be/app/database/entity"
	res "netidhub-saas-be/app/module/activity_logs/response"
)

func ActivityLogsResponseMapper(activityLogsReq *entity.ActivityLogs) (activityLogsRes *res.ActivityLogsResponse) {
	if activityLogsReq != nil {
		activityLogsRes = &res.ActivityLogsResponse{
			ID:             activityLogsReq.ID,
			ActivityTypeId: activityLogsReq.ActivityTypeId,
			Url:            activityLogsReq.Url,
			ArticleId:      activityLogsReq.ArticleId,
			UserId:         activityLogsReq.UserId,
			CreatedAt:      activityLogsReq.CreatedAt,
		}
	}
	return activityLogsRes
}
