package com.lf.server.mapper.data; import com.lf.server.entity.data.DictEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; /** * 字典管理 * @author sws * @date 2022-09-26 */ @Mapper @Repository public interface DictMapper { /** * 添加数据 * @param dictEntity * @return */ public Integer insertDict(DictEntity dictEntity); /** * 批量添加 * @param dictEntity * @return */ public Integer insertDicts(List dictEntity); /** * 刪除数据 * @param id * @return */ public Integer deleteDict(int id); /** * 批量删除 * @param ids * @return */ public Integer deleteDicts(List ids); /** * 修改数据 * @param dictEntity * @return */ public Integer updateDict(DictEntity dictEntity); /** * 查询单条数据 * @param id * @return */ public DictEntity selectDict(int id); /** * 查询全部数据 * @return */ public List selectDictAll(); /** * 查询表格中文名 * @return */ public List selectDictTab(); }