NewsDictMapper.java
959 Bytes
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
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.NewsDictDO;
import com.laowu.model.NewsLabelDictDO;
import com.laowu.vo.lables.NewsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-05-16
*/
@Repository
public interface NewsDictMapper extends BaseMapper<NewsDictDO> {
/**
* 查看新闻
*/
IPage<NewsVO> news(IPage iPage,Long labelId,String title);
/**
* 查看新闻有哪几个
*/
List<NewsLabelDictDO> newsLabels(Long newId);
/**
* 把所有置顶状态都置为0
*/
void updateTopStatus();
/**
* 查看一个新闻
*/
NewsVO oneNews(Long id);
/**
* 查看除去置顶的新闻
*/
IPage<NewsVO> noTopNews(IPage iPage,Long labelId,String title);
}