| | |
| | | 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);
|
| | |
|
| | | }
|
| | | 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; |
| | | |
| | | } |