| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * @since 2026/03/02 11:20 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "售后服务附件表") |
| | | @Tag(name = "售后服务附件表") |
| | | @RequestMapping("/afterSalesService/file") |
| | | @AllArgsConstructor |
| | | public class AfterSalesServiceFileController extends BaseController { |
| | | |
| | | @Autowired |
| | | private AfterSalesServiceFileService afterSalesServiceFileService; |
| | | |
| | | @PostMapping("/upload") |
| | | @ApiOperation("售后服务-文件上传") |
| | | @Operation(summary = "售后服务-文件上传") |
| | | @Log(title = "售后服务-文件上传", businessType = BusinessType.INSERT) |
| | | public AjaxResult fileUpload(@RequestParam("file") MultipartFile file, |
| | | @RequestParam("id") Long afterSalesServiceId) { |
| | |
| | | } |
| | | |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("售后处理-售后附件列表") |
| | | @Operation(summary = "售后处理-售后附件列表") |
| | | @Log(title = "售后处理-售后附件列表", businessType = BusinessType.OTHER) |
| | | public AjaxResult fileList(Page<AfterSalesServiceFile> page, Long afterSalesServiceId) { |
| | | return AjaxResult.success(afterSalesServiceFileService.fileList(page, afterSalesServiceId)); |
| | | } |
| | | |
| | | @DeleteMapping("/del/{fileId}") |
| | | @ApiOperation("售后处理-删除附件") |
| | | @Operation(summary = "售后处理-删除附件") |
| | | @Log(title = "售后处理-删除附件", businessType = BusinessType.DELETE) |
| | | public AjaxResult delFile(@PathVariable Long fileId) { |
| | | afterSalesServiceFileService.delFile(fileId); |