Files
SerpentRace/SerpentRace_Backend/dist/Application/DTOs/Mappers/BaseMapper.js
T

16 lines
501 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseMapper = void 0;
class BaseMapper {
toShortDtoList(entities) {
return entities.map(entity => this.toShortDto(entity));
}
toDetailDtoList(entities) {
return entities.map(entity => this.toDetailDto(entity));
}
static toShortDtoListStatic(entities, mapperFn) {
return entities.map(mapperFn);
}
}
exports.BaseMapper = BaseMapper;
//# sourceMappingURL=BaseMapper.js.map