管道基础大数据平台系统开发-【后端】-Server
1
Surpriseplus
2022-09-28 37f3afebbec6b60aacc1d87363f59f5d1aa5fe68
src/main/java/com/lf/server/mapper/data/TokenMapper.java
@@ -2,6 +2,7 @@
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.TokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -19,36 +20,34 @@
    /**
     * 根据表名查询记录数
     *
     * @param tab 表名
     * @param token 表名
     * @return 记录数
     */
    public Integer selectCount(String tab);
    public Integer selectCount(String token);
    /**
     * 根据表名分页查询
     *
     * @param tab    表名
     * @param token    表名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
     */
    public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset);
    public List<TokenEntity> selectByPage(String token, Integer limit, Integer offset);
    /**
     * 添加数据
     *
     * @param dictEntity
     * @param tokenEntity
     * @return
     */
    public Integer insertDict(DictEntity dictEntity);
    public Integer insertToken(TokenEntity tokenEntity);
    /**
     * 批量添加
     *
     * @param dictEntity
     * @param tokenEntity
     * @return
     */
    public Integer insertDicts(List<DictEntity> dictEntity);
    public Integer insertTokens(List<TokenEntity> tokenEntity);
    /**
     * 刪除数据
@@ -56,7 +55,7 @@
     * @param id
     * @return
     */
    public Integer deleteDict(int id);
    public Integer deleteToken(int id);
    /**
     * 批量删除
@@ -64,30 +63,27 @@
     * @param ids
     * @return
     */
    public Integer deleteDicts(List<Integer> ids);
    public Integer deleteTokens(List<Integer> ids);
    /**
     * 修改数据
     *
     * @param dictEntity
     * @param tokenEntity
     * @return
     */
    public Integer updateDict(DictEntity dictEntity);
    public Integer updateToken(TokenEntity tokenEntity);
    /**
     * 查询单条数据
     *
     * @param id
     * @return
     */
    public DictEntity selectDict(int id);
    public TokenEntity selectToken(int id);
    /**
     * 查询全部数据
     *
     * @return
     */
    public List<DictEntity> selectDictAll();
    public List<TokenEntity> selectTokenAll();