

package com.weather.modules.security.service;

import com.weather.common.service.BaseService;
import com.weather.common.utils.Result;
import com.weather.modules.security.entity.SysUserTokenEntity;

/**
 * 用户Token
 * 
 * @author 123
 */
public interface SysUserTokenService extends BaseService<SysUserTokenEntity> {

	/**
	 * 生成token
	 * @param userId  用户ID
	 */
	Result createToken(Long userId);

	/**
	 * 退出，修改token值
	 * @param userId  用户ID
	 */
	void logout(Long userId);

}