| | |
| | | package com.yeshi.fanli.service.inter.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabel;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialLabelException;
|
| | |
|
| | | public interface SpecialLabelService {
|
| | |
|
| | | public void save(SpecialLabel record) throws SpecialLabelException;
|
| | |
|
| | | /**
|
| | | * 批量删除
|
| | | * @param list 主键id
|
| | | * @return
|
| | | */
|
| | | public int deleteByPrimaryKeyBatch(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 查询列表- 后台
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<SpecialLabel> listQuery(long start, int count, String key, Integer state);
|
| | |
|
| | | public long countQuery(String key, Integer state);
|
| | |
|
| | | |
| | | /**
|
| | | * 查询专题相应有效的标签
|
| | | * @param specialId
|
| | | * @return
|
| | | */
|
| | | public List<SpecialLabel> getLabelsBySpecialId(Long specialId);
|
| | |
|
| | | /**
|
| | | * 专题贴上标签
|
| | | * @param idList
|
| | | * @param labIdList
|
| | | */
|
| | | public void stickLabelOnSpecial(List<Long> idList, List<Long> labIdList);
|
| | |
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabel; |
| | | import com.yeshi.fanli.exception.homemodule.SpecialLabelException; |
| | | |
| | | public interface SpecialLabelService { |
| | | |
| | | public void save(SpecialLabel record) throws SpecialLabelException; |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list 主键id |
| | | * @return |
| | | */ |
| | | public int deleteByPrimaryKeyBatch(List<Long> list); |
| | | |
| | | /** |
| | | * 查询列表- 后台 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<SpecialLabel> listQuery(long start, int count, String key, Integer state); |
| | | |
| | | public long countQuery(String key, Integer state); |
| | | |
| | | |
| | | /** |
| | | * 查询专题相应有效的标签 |
| | | * @param specialId |
| | | * @return |
| | | */ |
| | | public List<SpecialLabel> getLabelsBySpecialId(Long specialId); |
| | | |
| | | /** |
| | | * 专题贴上标签 |
| | | * @param idList |
| | | * @param labIdList |
| | | */ |
| | | public void stickLabelOnSpecial(List<Long> idList, List<Long> labIdList); |
| | | |
| | | |
| | | /** |
| | | * 状态切换 |
| | | * @param id |
| | | * @throws SpecialLabelException |
| | | */ |
| | | public void switchState(Long id) throws SpecialLabelException; |
| | | |
| | | |
| | | } |