Skip to content

Commit e0710a9

Browse files
committed
fix dto
1 parent a9072ba commit e0710a9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/main/kotlin/goodspace/teaming/payment/controller/PaymentController.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package goodspace.teaming.payment.controller
22

33
import goodspace.teaming.global.security.getUserId
4+
import goodspace.teaming.payment.dto.PaymentRoomIdDto
45
import goodspace.teaming.payment.dto.PaymentVerifyRespondDto
56
import goodspace.teaming.payment.service.PaymentService
67
import org.springframework.http.MediaType
@@ -70,7 +71,7 @@ class PaymentController(
7071
}
7172

7273
@PostMapping("/cancelAuth")
73-
fun requestCancel(@RequestBody roomId: String): ResponseEntity<Void> {
74-
return paymentService.requestCancel(roomId.toLong())
74+
fun requestCancel(@RequestBody paymentRoomIdDto: PaymentRoomIdDto): ResponseEntity<Void> {
75+
return paymentService.requestCancel(paymentRoomIdDto.roomId.toLong())
7576
}
7677
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package goodspace.teaming.payment.dto
2+
3+
class PaymentRoomIdDto (
4+
val roomId: String
5+
)

0 commit comments

Comments
 (0)