头像上传接口
This commit is contained in:
parent
391c5cc039
commit
a2688a0ac1
|
@ -89,7 +89,7 @@ public class AuthController {
|
||||||
|
|
||||||
@ApiOperation(value = "上传头像文件")
|
@ApiOperation(value = "上传头像文件")
|
||||||
@PostMapping("/upload-avatar")
|
@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);
|
return authService.uploadAvatar(token, file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ spring:
|
||||||
server:
|
server:
|
||||||
port: 3536
|
port: 3536
|
||||||
minio:
|
minio:
|
||||||
endpoint: http://1.14.105.160:9001
|
url: http://1.14.105.160:9001
|
||||||
bucket: catchtheletters
|
|
||||||
accessKey: lOz0abIfahyfs70aCCX6
|
accessKey: lOz0abIfahyfs70aCCX6
|
||||||
secretKey: ffxkRxt2TLjZcKQqfEAmv5SfcqxvsUnY0bIIitaH
|
secretKey: ffxkRxt2TLjZcKQqfEAmv5SfcqxvsUnY0bIIitaH
|
||||||
|
bucket-name: catchtheletters
|
||||||
|
|
Loading…
Reference in New Issue