/**
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
*
|
* https://www.renren.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package com.zt.security.dao;
|
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import com.zt.common.dao.BaseDao;
|
import com.zt.security.model.SysUserToken;
|
|
/**
|
* 系统用户Token
|
*
|
* @author Mark sunlightcs@gmail.com
|
*/
|
@Mapper
|
public interface SysUserTokenDao extends BaseDao<SysUserToken> {
|
|
SysUserToken getByToken(String token);
|
|
SysUserToken getByUserId(Long userId);
|
|
void updateToken(@Param("userId") Long userId, @Param("token") String token);
|
}
|