Skip to content

Commit 1258cc6

Browse files
committed
📝 UserDataMapper 에 toResponse 함수 추가
1 parent e632a9b commit 1258cc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/kotlin/andreas311/miso/domain/user/adapter/input/mapper/UserDataMapper.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package andreas311.miso.domain.user.adapter.input.mapper
22

3+
import andreas311.miso.domain.user.adapter.input.data.response.PointResponse
34
import andreas311.miso.domain.user.adapter.input.data.response.UserInfoResponse
5+
import andreas311.miso.domain.user.application.port.input.dto.PointDto
46
import andreas311.miso.domain.user.application.port.input.dto.UserInfoDto
57
import org.springframework.stereotype.Component
68

@@ -12,4 +14,9 @@ class UserDataMapper {
1214
email = userInfoDto.email,
1315
role = userInfoDto.role
1416
)
17+
18+
fun toResponse(pointDto: PointDto): PointResponse =
19+
PointResponse(
20+
point = pointDto.point
21+
)
1522
}

0 commit comments

Comments
 (0)