| | |
| | |
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.CommonShareInfo;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
|
| | | import com.yeshi.fanli.exception.banner.SwiperPictureException;
|
| | | import com.yeshi.fanli.vo.homemodule.BannerVO;
|
| | |
|
| | | public interface SwiperPictureService {
|
| | |
|
| | |
| | | * @return
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public List<SwiperPicture> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException;
|
| | | public List<BannerVO> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException;
|
| | |
|
| | | public long countQueryByBannerID(Long bannerId) throws SwiperPictureException;
|
| | |
|
| | |
| | | * 唯一标识
|
| | | * @return
|
| | | */
|
| | | public List<SwiperPicture> getByBannerCard(String card);
|
| | | public List<BannerVO> getByBannerCard(String card);
|
| | |
|
| | | /**
|
| | | * 根据标识与版本查询
|
| | |
| | | * @param version
|
| | | * @return
|
| | | */
|
| | | public List<SwiperPicture> getByBannerCardAndVersion(String card, String platform, int version);
|
| | | public List<BannerVO> getByBannerCardAndVersion(String card, String platform, int version);
|
| | |
|
| | | /**
|
| | | * 保存信息
|
| | |
| | | * @param record
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public void saveObject(MultipartFile file, SwiperPicture record, String jumpType)
|
| | | public void saveObject(MultipartFile file, SwiperPicture record, String jumpType, CommonShareInfo shareInfo)
|
| | | throws SwiperPictureException, Exception;
|
| | |
|
| | | /**
|
| | |
| | | * @return
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public List<SwiperPicture> getByBannerId(Long bannerId) throws SwiperPictureException;
|
| | | public List<BannerVO> getByBannerId(Long bannerId) throws SwiperPictureException;
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | * @return
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public List<SwiperPicture> getByBannerId(Long bannerId,String platform,int version) throws SwiperPictureException;
|
| | | public List<BannerVO> getByBannerId(Long bannerId,String platform,int version) throws SwiperPictureException;
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | */
|
| | | public void setVersions(Long id, List<Long> versions) throws SwiperPictureException;
|
| | |
|
| | | |
| | | /**
|
| | | * 状态切换
|
| | | * @param id
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public void switchState(Long id) throws SwiperPictureException;
|
| | |
|
| | | }
|