linwe
2023-11-25 aa6df327e9c022e4a89baef1462f3f868dce1fd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package org.springblade.modules.article.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.article.entity.Article;
import org.springblade.modules.article.vo.ArticleVO;
import java.util.List;
 
 
/**
 * @author zhongrj
 * mapper 映射层
 */
public interface ArticleMapper extends BaseMapper<Article> {
 
    /**
     * 自定义分页-APP
     * @param page
     * @param article
     * @return
     */
    List<ArticleVO> selectArticlePageByApp(IPage page, @Param("article") ArticleVO article);
 
    /**
     * 查询资讯分页信息
     * @param page
     * @param article 资讯对象
     * @return
     */
    List<Article> selectArticlePage(IPage<Article> page, @Param("article") ArticleVO article);
    List<Article> selectArticleG(IPage<Article> page, @Param("article") ArticleVO article);
    /**
     * 查询资讯分页信息(角色权限)
     * @param page
     * @param article 资讯对象
     * @return
     */
    List<Article> pageDate(IPage<Article> page, @Param("article") ArticleVO article);
 
    List<Article> pageWords(IPage<Article> page, @Param("article") ArticleVO article);
 
    List<Article> pageCollectList(IPage<Article> page, @Param("article") ArticleVO article);
 
    /**
     * 查询资讯分页信息(角色权限)附带评论点赞数量
     * @param page
     * @param article 资讯对象
     * @return
     */
    List<Article> pageLikes(IPage<Article> page, @Param("article") ArticleVO article);
 
    List<Article> pageCollect(IPage<Article> page, @Param("article") ArticleVO article);
 
    Boolean upcomment(String ids, String type);
 
    ArticleVO getArticleOne(ArticleVO article);
}