管道基础大数据平台系统开发-【后端】-Server
1
Surpriseplus
2022-09-30 9d25cb0ec78260a283b06fd96bc7b156f32cf9df
src/main/java/com/lf/server/mapper/data/TokenMapper.java
@@ -28,7 +28,7 @@
    /**
     * 根据表名分页查询
     *
     * @param token    表名
     * @param token  表名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
@@ -36,7 +36,31 @@
    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
     * @return
     */
@@ -44,6 +68,7 @@
    /**
     * 批量添加
     *
     * @param tokenEntity
     * @return
     */
@@ -67,24 +92,17 @@
    /**
     * 修改数据
     *
     * @param tokenEntity
     * @return
     */
    public Integer updateToken(TokenEntity tokenEntity);
    /**
     * 查询单条数据
     * @param id
     * 更新令牌为失效
     *
     * @param tokenEntity
     * @return
     */
    public TokenEntity selectToken(int id);
    /**
     * 查询全部数据
     * @return
     */
    public List<TokenEntity> selectTokenAll();
    public Integer updateTokenExpire(TokenEntity tokenEntity);
}