package com.yeshi.buwan.service.inter.recommend;
|
|
import com.yeshi.buwan.domain.recommend.HomeRecommendSpecial;
|
import com.yeshi.buwan.domain.recommend.SuperHomeRecommendSpecial;
|
import com.yeshi.buwan.dto.recommend.HomeRecommendSpecialDTO;
|
import com.yeshi.buwan.exception.ParamsException;
|
|
import javax.validation.Valid;
|
import java.util.List;
|
|
public interface HomeRecommendSpecialService {
|
|
|
/**
|
* 列表
|
*
|
* @param systemId
|
* @param detailSystemId
|
* @param key
|
* @return
|
*/
|
public List<HomeRecommendSpecialDTO> list(String systemId, String detailSystemId, String key, int page, int pageSize);
|
|
public long count(String systemId, String detailSystemId, String key);
|
|
|
/**
|
* 添加专题
|
*
|
* @param special
|
* @throws Exception
|
*/
|
public void addSpecial(@Valid HomeRecommendSpecial special) throws ParamsException, Exception;
|
|
/**
|
* 专题更新
|
*
|
* @param special
|
* @throws Exception
|
*/
|
public void updateSpecial(HomeRecommendSpecial special) throws Exception;
|
|
/**
|
* 获取专题
|
*
|
* @param id
|
* @return
|
*/
|
public HomeRecommendSpecial getSpecial(String id);
|
|
/**
|
* 根据系统ID检索
|
*
|
* @param systemId
|
* @return
|
*/
|
public List<HomeRecommendSpecial> listSpecialBySystemId(String systemId, String key, int page, int pageSize);
|
|
|
public long countSpecialBySystemId(String systemId, String key);
|
|
/**
|
* 根据子系统ID检索
|
*
|
* @param detailSystemId
|
* @return
|
*/
|
public List<HomeRecommendSpecial> listSpecialByDetailSystemId(String detailSystemId, String key, int page, int pageSize);
|
|
public long countSpecialByDetailSystemId(String detailSystemId, String key);
|
|
|
/**
|
* 删除专题
|
*
|
* @param specialId
|
*/
|
public void deleteSpecial(String specialId);
|
|
|
/**
|
* 添加专题子系统映射
|
*
|
* @param superSpecial
|
* @throws Exception
|
*/
|
public void addSuperSpecial(@Valid SuperHomeRecommendSpecial superSpecial) throws ParamsException, Exception;
|
|
|
/**
|
* 更新映射
|
*
|
* @param superSpecial
|
* @throws Exception
|
*/
|
public void updateSuperSpecial(SuperHomeRecommendSpecial superSpecial) throws Exception;
|
|
|
/**
|
* 根据专题ID检索
|
*
|
* @param specialId
|
* @return
|
*/
|
public List<SuperHomeRecommendSpecial> listSuperSpecialBySpecialId(String specialId);
|
|
|
/**
|
* 删除映射
|
*
|
* @param specialId
|
* @param detailSystemId
|
*/
|
public void deleteSuperSpecial(String specialId, String detailSystemId);
|
|
|
public void deleteSuperSpecial(String id);
|
|
|
}
|