package tech.easyflow.auth.service;

import tech.easyflow.auth.entity.LoginDTO;
import tech.easyflow.auth.entity.LoginVO;

import java.math.BigInteger;

public interface AuthService {
    /**
     * 登录
     */
    LoginVO login(LoginDTO loginDTO);

    /**
     * 开发模式免登录
     */
    LoginVO devLogin(String account);

    /**
     * 通过访问令牌登录
     */
    LoginVO loginByApiKey(String apiKey);

    /**
     * 通过账号ID登录
     */
    LoginVO loginByAccountId(BigInteger accountId, Long timeoutSeconds);
}
