| Line 286... |
Line 286... |
| 286 |
@GetMapping("/insurance/checkplans")
|
286 |
@GetMapping("/insurance/checkplans")
|
| 287 |
public ResponseEntity<ApiResponse<?>> getInsurancePrices(HttpServletRequest request,
|
287 |
public ResponseEntity<ApiResponse<?>> getInsurancePrices(HttpServletRequest request,
|
| 288 |
@RequestParam float price,
|
288 |
@RequestParam float price,
|
| 289 |
@RequestParam int itemId,
|
289 |
@RequestParam int itemId,
|
| 290 |
@RequestParam String createdDate) throws Throwable {
|
290 |
@RequestParam String createdDate) throws Throwable {
|
| - |
|
291 |
LocalDateTime createDate = LocalDateTime.parse(createdDate);
|
| 291 |
return wrapResponse(orderController.getInsurancePrices(request, price, itemId, createdDate));
|
292 |
return wrapResponse(orderController.getInsurancePrices(request, price, itemId, String.valueOf(createDate)));
|
| 292 |
}
|
293 |
}
|
| 293 |
|
294 |
|
| 294 |
@PostMapping("/create-insurance")
|
295 |
@PostMapping("/create-insurance")
|
| 295 |
public ResponseEntity<ApiResponse<?>> createInsurance(HttpServletRequest request,
|
296 |
public ResponseEntity<ApiResponse<?>> createInsurance(HttpServletRequest request,
|
| 296 |
@RequestBody InsuranceModel insuranceModel,
|
297 |
@RequestBody InsuranceModel insuranceModel,
|