/** * Copyright (c) 2018 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */ package io.renren.service; import io.renren.common.service.BaseService; import io.renren.entity.TokenEntity; /** * 用户Token * * @author Mark sunlightcs@gmail.com */ public interface TokenService extends BaseService { TokenEntity getByToken(String token); /** * 生成token * @param userId 用户ID * @return 返回token信息 */ TokenEntity createToken(Long userId); /** * 设置token过期 * @param userId 用户ID */ void expireToken(Long userId); }