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