feat: add avatar operations
This commit is contained in:
parent
ff70020224
commit
057a5aab9b
@ -74,8 +74,9 @@ public class UserController {
|
||||
|
||||
@PostMapping("/avatar")
|
||||
@Operation(description = "上传头像")
|
||||
public Result<String> changeAvatar(MultipartFile file, @Auth User user) {
|
||||
return userServices.changeAvatar(file, user);
|
||||
@Auth
|
||||
public Result<String> changeAvatar(MultipartFile file) {
|
||||
return userServices.changeAvatar(file);
|
||||
}
|
||||
|
||||
@PutMapping("/avatar")
|
||||
|
Loading…
x
Reference in New Issue
Block a user