/**
 * Copyright (c) 2020 fumeiai All rights reserved.
 *
 *
 *
 * 版权所有，侵权必究！
 */

package com.lz.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.sys.entity.SysUserTokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 系统用户Token
 *
 * @author Mark sunlightcs@gmail.com
 */
@Mapper
public interface SysUserTokenDao extends BaseMapper<SysUserTokenEntity> {

    SysUserTokenEntity queryByToken(String token);

    Long insertBySysUserTokenEntity(SysUserTokenEntity tokenEntity);

    SysUserTokenEntity getByTokenCode(@Param("code") String code);
}
