管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-30 c15739adf58aa87002516f151d6314b8caecbb29
src/main/java/com/lf/server/mapper/data/TokenMapper.java
@@ -36,6 +36,29 @@
    public List<TokenEntity> selectByPage(String token, Integer limit, Integer offset);
    /**
     * 查询单条数据
     *
     * @param id
     * @return
     */
    public TokenEntity selectToken(int id);
    /**
     * 根据token值查询一条记录
     *
     * @param token
     * @return
     */
    public TokenEntity selectOneByToken(String token);
    /**
     * 查询全部数据
     *
     * @return
     */
    public List<TokenEntity> selectTokenAll();
    /**
     * 添加数据
     *
     * @param tokenEntity
@@ -76,24 +99,10 @@
    public Integer updateToken(TokenEntity tokenEntity);
    /**
     * 查询单条数据
     * 更新令牌为失效
     *
     * @param id
     * @param tokenEntity
     * @return
     */
    public TokenEntity selectToken(int id);
    /**
     * 根据token值查询一条记录
     * @param token
     * @return
     */
    public TokenEntity selectOneByToken(String token);
    /**
     * 查询全部数据
     *
     * @return
     */
    public List<TokenEntity> selectTokenAll();
    public Integer updateTokenExpire(TokenEntity tokenEntity);
}