package mapper

import (
	"go-humas-be/app/database/entity"
	res "go-humas-be/app/module/user_levels/response"
)

func UserLevelsResponseMapper(userLevelsReq *entity.UserLevels) (userLevelsRes *res.UserLevelsResponse) {
	if userLevelsReq != nil {
		userLevelsRes = &res.UserLevelsResponse{
			ID:    userLevelsReq.ID,
			Name:    userLevelsReq.Name,
			AliasName:    userLevelsReq.AliasName,
			LevelNumber:    userLevelsReq.LevelNumber,
			ParentLevelId:    userLevelsReq.ParentLevelId,
			ProvinceId:    userLevelsReq.ProvinceId,
			IsActive:    userLevelsReq.IsActive,
			CreatedAt:    userLevelsReq.CreatedAt,
			UpdatedAt:    userLevelsReq.UpdatedAt,
		}
	}
	return userLevelsRes
}