| | |
| | | package com.yeshi.fanli.service.inter.homemodule;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar;
|
| | |
|
| | | /**
|
| | | * APP导航栏
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface HomeNavbarService {
|
| | |
|
| | | public int deleteByPrimaryKey(Long id);
|
| | |
|
| | | public int insert(HomeNavbar record);
|
| | |
|
| | | public int insertSelective(HomeNavbar record);
|
| | |
|
| | | public HomeNavbar selectByPrimaryKey(Long id);
|
| | |
|
| | | public int updateByPrimaryKeySelective(HomeNavbar record);
|
| | |
|
| | | public int updateByPrimaryKey(HomeNavbar record);
|
| | |
|
| | | }
|
| | | 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.HomeNavbar; |
| | | import com.yeshi.fanli.exception.homemodule.HomeNavbarException; |
| | | |
| | | /** |
| | | * APP导航栏 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface HomeNavbarService { |
| | | |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 保存 |
| | | * @param file |
| | | * @param record |
| | | * @throws HomeNavbarException |
| | | * @throws Exception |
| | | */ |
| | | public void saveObject(MultipartFile file, HomeNavbar record) throws HomeNavbarException, Exception; |
| | | |
| | | /** |
| | | * 更新排序顺序 |
| | | * @param id |
| | | * @param moveType |
| | | * @throws HomeNavbarException |
| | | * @throws Exception |
| | | */ |
| | | public void updateOrder(Long id, Integer moveType, Integer sex) throws HomeNavbarException, Exception; |
| | | |
| | | |
| | | /** |
| | | * 后端查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public List<HomeNavbar> listQuery(long start, int count, String key, Integer sex, SystemEnum system); |
| | | |
| | | public long countlistQuery(String key, Integer sex, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 查询有效导航栏 |
| | | * @return |
| | | */ |
| | | public List<HomeNavbar> listQueryEffectiveNavbar(SystemEnum system); |
| | | |
| | | /** |
| | | * 根据分类查询有效导航栏 |
| | | * @param classId |
| | | * @return |
| | | */ |
| | | public HomeNavbar getEffectiveByClassId(@Param("classId") Long classId, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 默认导航栏 |
| | | * @return |
| | | */ |
| | | public List<HomeNavbar> listQueryDefaultNavbar(Integer sex, SystemEnum system); |
| | | |
| | | /** |
| | | * 固定的导航栏 |
| | | * @return |
| | | */ |
| | | public List<HomeNavbar> listQueryFixedNavbar(SystemEnum system); |
| | | |
| | | /** |
| | | * 改变状态 |
| | | * @param id |
| | | * @throws HomeNavbarException |
| | | */ |
| | | public void switchState(Long id) throws HomeNavbarException; |
| | | |
| | | } |