package com.multictrl.modules.security.service;

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

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

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

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

}