package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.db.entity.CacheTk;
import com.jeequan.jeepay.model.CacheInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * tk缓存表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-02-02
 */
public interface CacheTkMapper extends BaseMapper<CacheTk> {

    @Select("SELECT id,keyCode,appId,appSercet,accessToken,refreshToken,expires_in as 'expiresIn',createTime  from `shouyinbei`.tb_pluss_cache_info  where keyCode = #{keyCode}")
    CacheInfo getKeyCode(@Param("keyCode") String keyCode);
}
