头像上传接口
This commit is contained in:
parent
391c5cc039
commit
a2688a0ac1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue