package mapper

import (
	"web-qudo-be/app/database/entity"
	res "web-qudo-be/app/module/user_role_level_details/response"
)

func UserRoleLevelDetailsResponseMapper(userRoleLevelDetailsReq *entity.UserRoleLevelDetails) (userRoleLevelDetailsRes *res.UserRoleLevelDetailsResponse) {
	if userRoleLevelDetailsReq != nil {
		userRoleLevelDetailsRes = &res.UserRoleLevelDetailsResponse{
			ID:          userRoleLevelDetailsReq.ID,
			UserRoleId:  userRoleLevelDetailsReq.UserRoleId,
			UserLevelId: userRoleLevelDetailsReq.UserLevelId,
			IsActive:    userRoleLevelDetailsReq.IsActive,
			CreatedAt:   userRoleLevelDetailsReq.CreatedAt,
			UpdatedAt:   userRoleLevelDetailsReq.UpdatedAt,
		}
	}
	return userRoleLevelDetailsRes
}
