1.调整 controller 位置

2.添加日志拦截
This commit is contained in:
2025-08-07 21:17:47 +08:00
parent ff29da493e
commit 5caa4b6580
12 changed files with 91 additions and 23 deletions

View File

@@ -0,0 +1,31 @@
package vvpkassistant.controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import vvpkassistant.Data.ResponseData;
import vvpkassistant.file.service.FileService;
import javax.annotation.Resource;
/*
* @author: ziin
* @date: 2025/8/7 13:58
*/
@RestController
@RequestMapping("file")
public class FileController {
@Resource
private FileService fileService;
@PostMapping("/uploadHeadIcon")
public ResponseData<Object> uploadHeadIcon(@RequestParam("file") MultipartFile file) {
return ResponseData.success(fileService.uploadHeadIcon(file));
}
}