|
@@ -109,6 +109,18 @@ public class OrderController extends CommonController {
|
|
|
Page<PayOrderVO> result = orderService.getPage(queryParams);
|
|
|
return PageResult.success(result);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @Operation(summary = "申请退款", security = {@SecurityRequirement(name = "Authorization")})
|
|
|
+ @PostMapping("/applyForRefund/{id}")
|
|
|
+ public Result<?> applyForRefund(
|
|
|
+ @PathVariable Long id,
|
|
|
+ @RequestBody Map<String, Object> map
|
|
|
+ ) {
|
|
|
+ String refundReason = map.get("refundReason") != null ? map.get("refundReason").toString() : "";
|
|
|
+ Boolean result = orderService.applyForRefund(id,refundReason);
|
|
|
+ return Result.success(result);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
@Operation(summary = "后台订单退款", security = {@SecurityRequirement(name = "Authorization")})
|