File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
src/main/kotlin/site/billilge/api/backend/domain Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ class AdminPayerController(
2020 override fun getAllPayers (
2121 @ModelAttribute pageableCondition : PageableCondition ,
2222 @ModelAttribute searchCondition : SearchCondition ,
23- // @RequestParam(required = false, defaultValue = "0") pageNo: Int,
24- // @RequestParam(required = false, defaultValue = "10") size: Int,
25- // @RequestParam(required = false, defaultValue = "enrollmentYear") criteria: String
2623 ): ResponseEntity <PayerFindAllResponse > {
2724 return ResponseEntity .ok(payerService.getAllPayers(pageableCondition, searchCondition))
2825 }
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody
55import io.swagger.v3.oas.annotations.responses.ApiResponse
66import io.swagger.v3.oas.annotations.responses.ApiResponses
77import io.swagger.v3.oas.annotations.tags.Tag
8+ import org.springframework.http.HttpStatus
89import org.springframework.http.ResponseEntity
910import org.springframework.security.core.annotation.AuthenticationPrincipal
1011import org.springframework.web.bind.annotation.PathVariable
12+ import org.springframework.web.bind.annotation.PostMapping
1113import org.springframework.web.bind.annotation.RequestParam
1214import site.billilge.api.backend.domain.rental.dto.request.RentalHistoryRequest
1315import site.billilge.api.backend.domain.rental.dto.response.RentalHistoryFindAllResponse
@@ -93,4 +95,10 @@ interface RentalApi {
9395 fun getReturnRequiredHistory (
9496 @AuthenticationPrincipal userAuthInfo : UserAuthInfo ,
9597 ) : ResponseEntity <ReturnRequiredItemFindAllResponse >
98+
99+ @Operation(hidden = true )
100+ fun createDevRental (
101+ @AuthenticationPrincipal userAuthInfo : UserAuthInfo ,
102+ @org.springframework.web.bind.annotation.RequestBody rentalHistoryRequest : RentalHistoryRequest
103+ ): ResponseEntity <Void >
96104}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class RentalController(
2828 }
2929
3030 @PostMapping(" /dev" )
31- fun createDevRental (
31+ override fun createDevRental (
3232 @AuthenticationPrincipal userAuthInfo : UserAuthInfo ,
3333 @RequestBody rentalHistoryRequest : RentalHistoryRequest
3434 ): ResponseEntity <Void > {
You can’t perform that action at this time.
0 commit comments