123
This commit is contained in:
@@ -28,17 +28,17 @@ public class UserStartAppController {
|
||||
@PostMapping("/star")
|
||||
@Operation(summary = "关注用户")
|
||||
@Log(title = "关注用户", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<Boolean> star(@RequestBody StarOrVisitorReq starOrVisitorReq){
|
||||
boolean bool = userFollowService.star(starOrVisitorReq);
|
||||
return R.ok(bool);
|
||||
public R<Void> star(@RequestBody StarOrVisitorReq starOrVisitorReq){
|
||||
userFollowService.star(starOrVisitorReq);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@PostMapping("/unstar")
|
||||
@Operation(summary = "取消关注用户")
|
||||
@Log(title = "取消关注用户", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<Boolean> unStar(@RequestBody StarOrVisitorReq starOrVisitorReq){
|
||||
boolean bool = userFollowService.unStar(starOrVisitorReq);
|
||||
return R.ok(bool);
|
||||
public R<Void> unStar(@RequestBody StarOrVisitorReq starOrVisitorReq){
|
||||
userFollowService.unStar(starOrVisitorReq);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
|
||||
Reference in New Issue
Block a user