Commit changes

This commit is contained in:
LavashGms
2025-12-11 19:51:11 +07:00
parent 83b3202ea2
commit fb2acb3b70
17 changed files with 361 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
package com.example.nto.dto.converter;
import com.example.nto.dto.EmployeeDto;
import com.example.nto.entity.Employee;
import lombok.experimental.UtilityClass;
import java.util.stream.Collectors;
@UtilityClass
public class EmployeeDtoConverter {
public EmployeeDto ToDto(Employee entity) {
return EmployeeDto.builder()
.name(entity.getName())
.photoUrl(entity.getPhotoUrl())
//.booking(entity.getBooking().stream().map(DateBookingsDtoConverter::ToDto).collect(Collectors.toSet()))
.build();
}
}