luo
2023-12-25 23c4967b4cb8dbce8277f830f7152d315c5a4a57
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
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.EncyclopedicKnowledge;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.stylefeng.guns.modular.system.warpper.res.EncyclopedicKnowledgeInfoRes;
import com.stylefeng.guns.modular.system.warpper.res.EncyclopedicKnowledgeRes;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2023/11/23 15:18
 */
public interface IEncyclopedicKnowledgeService extends IService<EncyclopedicKnowledge> {
 
 
    /**
     * 获取列表数据
     * @param typeId
     * @return
     */
    List<EncyclopedicKnowledgeRes> getEncyclopedicKnowledgeList(Integer typeId);
 
 
    /**
     * 获取详情
     * @param id
     * @return
     */
    EncyclopedicKnowledgeInfoRes getEncyclopedicKnowledgeInfo(Integer id);
 
 
    /**
     * 点赞/取消点赞操作
     * @param id
     * @return
     */
    ResultUtil upvoteEncyclopedicKnowledge(Integer id);
 
    List<EncyclopedicKnowledge> list(Integer type, String title);
}