|
@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 点赞记录
|
|
@@ -72,6 +73,10 @@ public class PublishThumbsController extends AppBaseController {
|
|
|
} else { // 取消
|
|
|
thumbsService.removeById(thumbs.getId());
|
|
|
}
|
|
|
- return AjaxResult.success();
|
|
|
+ // 点赞或取消后,返回点赞记录
|
|
|
+ List<TbPublishThumbs> list = thumbsService.selectList(new LambdaQueryWrapper<TbPublishThumbs>()
|
|
|
+ .eq(TbPublishThumbs::getPublishId,publishId)
|
|
|
+ );
|
|
|
+ return AjaxResult.success(list);
|
|
|
}
|
|
|
}
|