头像上传接口

This commit is contained in:
石皮幼鸟 2024-06-18 20:22:56 +08:00
parent 391c5cc039
commit a2688a0ac1
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ public class AuthController {
@ApiOperation(value = "上传头像文件")
@PostMapping("/upload-avatar")
public R<String> uploadAvatar(@RequestHeader("token") String token, MultipartFile file) {
public R<String> uploadAvatar(@RequestHeader("token") String token, @RequestParam("file") MultipartFile file) {
return authService.uploadAvatar(token, file);
}
}

View File

@ -25,7 +25,7 @@ spring:
server:
port: 3536
minio:
endpoint: http://1.14.105.160:9001
bucket: catchtheletters
url: http://1.14.105.160:9001
accessKey: lOz0abIfahyfs70aCCX6
secretKey: ffxkRxt2TLjZcKQqfEAmv5SfcqxvsUnY0bIIitaH
bucket-name: catchtheletters