admin
2021-09-30 42411e4a26461229c6bca6e89ca55e98a80f5a4e
fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperBannerService.java
@@ -1,30 +1,45 @@
package com.yeshi.fanli.service.inter.homemodule;
import java.util.List;
import com.yeshi.fanli.entity.bus.homemodule.SwiperBanner;
import com.yeshi.fanli.exception.banner.SwiperBannerException;
public interface SwiperBannerService {
   public int deleteByPrimaryKey(Long id) throws SwiperBannerException;
   public int insert(SwiperBanner record) throws SwiperBannerException;
   public int insertSelective(SwiperBanner record) throws SwiperBannerException;
   public SwiperBanner selectByPrimaryKey(Long id) throws SwiperBannerException;
   public int updateByPrimaryKeySelective(SwiperBanner record) throws SwiperBannerException;
   public int updateByPrimaryKey(SwiperBanner record) throws SwiperBannerException;
   public List<SwiperBanner> query(long start, int count, String key, Integer sort) throws SwiperBannerException;
   public long countQuery(String key) throws SwiperBannerException;
   public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
}
package com.yeshi.fanli.service.inter.homemodule;
import java.util.List;
import com.yeshi.fanli.entity.SystemEnum;
import com.yeshi.fanli.entity.bus.homemodule.SwiperBanner;
import com.yeshi.fanli.exception.banner.SwiperBannerException;
public interface SwiperBannerService {
   public int deleteByPrimaryKey(Long id) ;
   public int insert(SwiperBanner record);
   public int insertSelective(SwiperBanner record);
   public SwiperBanner selectByPrimaryKey(Long id);
   public int updateByPrimaryKeySelective(SwiperBanner record);
   public int updateByPrimaryKey(SwiperBanner record);
   public List<SwiperBanner> query(long start, int count, String key, Integer sort, SystemEnum system);
   public long countQuery(String key, SystemEnum system);
   public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
   /**
    * 有效
    * @return
    * @throws SwiperBannerException
    */
   public List<SwiperBanner> getEffectiveOption(SystemEnum system);
   /**
    * 状态切换
    * @param id
    * @throws SwiperBannerException
    */
   public void switchState(Long id) throws SwiperBannerException;
}