| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @PostMapping(value = "/create") |
| | | @Operation(summary = "申请售后") |
| | | public CommonResult<Long> createAfterSale(@RequestBody AppAfterSaleCreateReqVO createReqVO) { |
| | | public CommonResult<Long> createAfterSale(@Valid @RequestBody AppAfterSaleCreateReqVO createReqVO) { |
| | | return success(afterSaleService.createAfterSale(getLoginUserId(), createReqVO)); |
| | | } |
| | | |
| | | @PutMapping(value = "/delivery") |
| | | @Operation(summary = "退回货物") |
| | | public CommonResult<Boolean> deliveryAfterSale(@RequestBody AppAfterSaleDeliveryReqVO deliveryReqVO) { |
| | | public CommonResult<Boolean> deliveryAfterSale(@Valid @RequestBody AppAfterSaleDeliveryReqVO deliveryReqVO) { |
| | | afterSaleService.deliveryAfterSale(getLoginUserId(), deliveryReqVO); |
| | | return success(true); |
| | | } |