package com.javaweb.cms.mapper; import com.javaweb.cms.domain.Filetype; import java.util.List; import java.util.Map; /** * 文件类型Mapper接口 * * @author wujiyue * @date 2019-11-01 */ public interface FiletypeMapper { /** * 查询文件类型 * * @param id 文件类型ID * @return 文件类型 */ public Filetype selectFiletypeById(Long id); /** * 查询文件类型 * * @param suffix 后缀 * @return 文件类型 */ public Filetype selectFiletypeBySuffix(String suffix); /** * 查询文件类型列表 * * @param filetype 文件类型 * @return 文件类型集合 */ public List selectFiletypeList(Filetype filetype); /** * 新增文件类型 * * @param filetype 文件类型 * @return 结果 */ public int insertFiletype(Filetype filetype); /** * 修改文件类型 * * @param filetype 文件类型 * @return 结果 */ public int updateFiletype(Filetype filetype); /** * 删除文件类型 * * @param id 文件类型ID * @return 结果 */ public int deleteFiletypeById(Long id); /** * 批量删除文件类型 * * @param ids 需要删除的数据ID * @return 结果 */ public int deleteFiletypeByIds(String[] ids); /** * 查询字典格式的数据 * dictValue,dictLabel * @return */ public List> selectDictData(); }