| | |
| | | package com.yeshi.fanli.service.inter.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.FloatAD;
|
| | | import com.yeshi.fanli.exception.banner.SwiperPictureException;
|
| | | import com.yeshi.fanli.exception.homemodule.FloatADException;
|
| | |
|
| | | public interface FloatADService {
|
| | |
|
| | |
|
| | | /**
|
| | | * 保存
|
| | | * @param record
|
| | | * @throws FloatADException
|
| | | */
|
| | | public void saveObject(MultipartFile file, FloatAD record, String jumpType) throws FloatADException, Exception;
|
| | |
|
| | | /**
|
| | | * 修改排序
|
| | | * @param id
|
| | | * @param moveType
|
| | | * @throws FloatADException
|
| | | */
|
| | | public void updateOrder(Long id, Integer moveType) throws FloatADException;
|
| | | |
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * |
| | | * @param list 管理id
|
| | | * @return
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public int deleteByPrimaryKeyList(List<Long> list) throws Exception;
|
| | |
|
| | |
|
| | | /**
|
| | | * 后端列表查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<FloatAD> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("state") Integer state) throws FloatADException;
|
| | |
|
| | | public long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | |
|
| | | /**
|
| | | * 查询有效的悬浮大图
|
| | | * @return
|
| | | */
|
| | | public FloatAD getEffectiveFloatAD(String position, Integer type);
|
| | |
|
| | |
|
| | | /**
|
| | | * 设置版本信息
|
| | | * @param id
|
| | | * @param versions
|
| | | * @throws Exception
|
| | | */
|
| | | public void setVersions(Long id, List<Long> versions) throws Exception;
|
| | |
|
| | | /**
|
| | | * 有效版本信息 |
| | | * @param position
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | public List<FloatAD> getValidFloatADCache(String position, Integer type, String platform, Integer versionCode);
|
| | |
|
| | | |
| | | /**
|
| | | * 状态切换
|
| | | * @param id
|
| | | * @throws FloatADException
|
| | | */
|
| | | public void switchState(Long id) throws FloatADException;
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.FloatAD; |
| | | import com.yeshi.fanli.exception.banner.SwiperPictureException; |
| | | import com.yeshi.fanli.exception.homemodule.FloatADException; |
| | | |
| | | public interface FloatADService { |
| | | |
| | | |
| | | /** |
| | | * 保存 |
| | | * @param record |
| | | * @throws FloatADException |
| | | */ |
| | | public void saveObject(MultipartFile file, FloatAD record, String jumpType) throws FloatADException, Exception; |
| | | |
| | | /** |
| | | * 修改排序 |
| | | * @param id |
| | | * @param moveType |
| | | * @throws FloatADException |
| | | */ |
| | | public void updateOrder(Long id, Integer moveType) throws FloatADException; |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param list 管理id |
| | | * @return |
| | | * @throws SwiperPictureException |
| | | */ |
| | | public int deleteByPrimaryKeyList(List<Long> list) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<FloatAD> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("state") Integer state,SystemEnum system) throws FloatADException; |
| | | |
| | | public long countQuery(@Param("key") String key, @Param("state") Integer state,SystemEnum system); |
| | | |
| | | /** |
| | | * 查询有效的悬浮大图 |
| | | * @return |
| | | */ |
| | | public FloatAD getEffectiveFloatAD(String position, Integer type,SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 设置版本信息 |
| | | * @param id |
| | | * @param versions |
| | | * @throws Exception |
| | | */ |
| | | public void setVersions(Long id, List<Long> versions) throws Exception; |
| | | |
| | | /** |
| | | * 有效版本信息 |
| | | * @param position |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public List<FloatAD> getValidFloatADCache(String position, Integer type, String platform, Integer versionCode, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 状态切换 |
| | | * @param id |
| | | * @throws FloatADException |
| | | */ |
| | | public void switchState(Long id) throws FloatADException; |
| | | |
| | | } |