Spaces:
Configuration error
Configuration error
File size: 582 Bytes
b58280e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
package com.example.app.mappers;
import org.springframework.stereotype.Component;
import com.example.app.dtos.JwtRequestDto;
import com.example.app.misc.JwtRequest;
@Component
public class JwtRequestMapper implements Mapper<JwtRequest, JwtRequestDto> {
@Override
public JwtRequest fromDto(JwtRequestDto dto) {
return JwtRequest.builder().username(dto.getEmail()).password(dto.getPassword()).build();
}
@Override
public JwtRequestDto toDto(JwtRequest entity) {
throw new UnsupportedOperationException("Unimplemented method 'toDto'");
}
}
|