完善注解
This commit is contained in:
parent
1ad8a673d2
commit
c8e4ad8575
@ -129,7 +129,7 @@ public class AppUserInfoController {
|
|||||||
@Login
|
@Login
|
||||||
@PostMapping("/userInfoEdit")
|
@PostMapping("/userInfoEdit")
|
||||||
@ApiOperation("用户修改个人信息")
|
@ApiOperation("用户修改个人信息")
|
||||||
public R userInfoEdit(@LoginUser AppUserEntity user, @RequestBody AppUserUpdateForm appUserUpdateForm) {
|
public R userInfoEdit(@ApiIgnore @LoginUser AppUserEntity user, @RequestBody AppUserUpdateForm appUserUpdateForm) {
|
||||||
appUserService.updateAppUserInfo(appUserUpdateForm, user);
|
appUserService.updateAppUserInfo(appUserUpdateForm, user);
|
||||||
return R.ok("修改成功");
|
return R.ok("修改成功");
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ public class AppUserInfoController {
|
|||||||
@Login
|
@Login
|
||||||
@PostMapping("/addFollow")
|
@PostMapping("/addFollow")
|
||||||
@ApiOperation("关注用户")
|
@ApiOperation("关注用户")
|
||||||
public R addFollow(@LoginUser AppUserEntity user, @RequestBody AddFollowForm request) {
|
public R addFollow(@ApiIgnore @LoginUser AppUserEntity user, @RequestBody AddFollowForm request) {
|
||||||
appUserService.addFollow(request, user);
|
appUserService.addFollow(request, user);
|
||||||
return R.ok("关注用户成功");
|
return R.ok("关注用户成功");
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ public class AppUserInfoController {
|
|||||||
@Login
|
@Login
|
||||||
@GetMapping("/userFans")
|
@GetMapping("/userFans")
|
||||||
@ApiOperation("我的粉丝分页列表")
|
@ApiOperation("我的粉丝分页列表")
|
||||||
public R userFans(@RequestParam("page") Integer page, @LoginUser AppUserEntity user) {
|
public R userFans(@RequestParam("page") Integer page, @ApiIgnore @LoginUser AppUserEntity user) {
|
||||||
|
|
||||||
AppPageUtils pages = appUserService.userFans(page, user.getUid());
|
AppPageUtils pages = appUserService.userFans(page, user.getUid());
|
||||||
return R.ok().put("result", pages);
|
return R.ok().put("result", pages);
|
||||||
|
Loading…
Reference in New Issue
Block a user