|
@@ -757,7 +757,9 @@ public class CommunityArticleController extends BaseController {
|
|
|
if (Objects.isNull(userId)) {
|
|
|
return AjaxResult.error("参数异常!");
|
|
|
}
|
|
|
-
|
|
|
+ int pageNum = Convert.toInt(ServletUtils.getParameter("pageNum"), 1);
|
|
|
+ int pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
|
|
|
+ int searchType = Convert.toInt(ServletUtils.getParameter("searchType"), 0);
|
|
|
// List<CommunityCollection> collections = communityCollectionService.list(new QueryWrapper<CommunityCollection>()
|
|
|
// .eq("user_id", userId)
|
|
|
// .ne("is_delete", true)
|
|
@@ -766,7 +768,7 @@ public class CommunityArticleController extends BaseController {
|
|
|
|
|
|
List<CommunityCollectionVo> communityCollectionVos = null;
|
|
|
try {
|
|
|
- communityCollectionVos = communityCollectionService.selectUserCollection(userId, articleId);
|
|
|
+ communityCollectionVos = communityCollectionService.selectUserCollection(userId, articleId,pageNum,pageSize,searchType);
|
|
|
} catch (Exception e) {
|
|
|
System.out.println(e.getMessage());
|
|
|
throw new ProjectException();
|
|
@@ -1033,8 +1035,6 @@ public class CommunityArticleController extends BaseController {
|
|
|
@ApiOperation("获取个人中心信息")
|
|
|
@GetMapping("/userPrompt")
|
|
|
public AjaxResult userPrompt(Long userId) {
|
|
|
-
|
|
|
-
|
|
|
List<CommunityUserPromptVo> communityUserPromptVo = null;
|
|
|
try {
|
|
|
communityUserPromptVo = communityArticleService.selectCommunityUserPrompt(userId);
|
|
@@ -1051,13 +1051,9 @@ public class CommunityArticleController extends BaseController {
|
|
|
int pageNum = Convert.toInt(ServletUtils.getParameter("pageNum"), 1);
|
|
|
int pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
|
|
|
int searchType = Convert.toInt(ServletUtils.getParameter("searchType"), 0);
|
|
|
-
|
|
|
- TableDataInfo rspData = null;
|
|
|
- CommunityArticle communityArticle = new CommunityArticle();
|
|
|
List<CommunityArticleVo> communityArticleVos = null;
|
|
|
try {
|
|
|
communityArticleVos = communityArticleService.selectUserLike(pageNum, pageSize, searchType);
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
System.out.println(e.getMessage());
|
|
|
throw new ProjectException();
|
|
@@ -1072,8 +1068,6 @@ public class CommunityArticleController extends BaseController {
|
|
|
int pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
|
|
|
int searchType = Convert.toInt(ServletUtils.getParameter("searchType"), 0);
|
|
|
|
|
|
- TableDataInfo rspData = null;
|
|
|
- CommunityArticle communityArticle = new CommunityArticle();
|
|
|
List<CommunityArticleVo> communityArticleVos = null;
|
|
|
try {
|
|
|
communityArticleVos = communityArticleService.selectUserCollect(pageNum, pageSize, searchType);
|