admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
59
60
61
package com.yeshi.fanli.service.inter.dynamic;
 
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.dynamic.ArticleOfficial;
import com.yeshi.fanli.exception.dynamic.ArticleOfficialException;
import com.yeshi.fanli.vo.dynamic.ArticleVO;
 
public interface ArticleOfficialService {
 
    /**
     * 插入
     * 
     * @param record
     */
    public void save(MultipartFile file, ArticleOfficial record)  throws ArticleOfficialException;
 
    /**
     * 根据id查询
     * 
     * @param id
     * @return
     */
    public ArticleOfficial getById(String id);
 
    public List<ArticleOfficial> query(int start, int count, String key, Integer state);
 
    public long count(String key, Integer state);
 
    /**
     * 查询有效
     * 
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<ArticleVO> queryValid(int start, int count, String key);
 
    /**
     * 统计有效
     * 
     * @param key
     * @return
     */
    public long countValid(String key);
 
    public void deleteBatchByPrimaryKey(List<String> list);
 
    public void updateReadNum(String id);
 
    /**
     * 状态切换
     * @param id
     * @throws ArticleOfficialException
     */
    public void switchState(String id) throws ArticleOfficialException;
 
}