package com.cpop.core.strategy.login;

import com.cpop.core.base.entity.LoginUser;
import com.cpop.core.base.table.SysUser;

import java.util.Map;

/**
 * 登陆策略
 * @author DB
 */
public interface LoginStrategy {

    /**
     * @descriptions 获取登陆用户信息
     * @author DB
     * @date 2023/11/08 9:34
     * @param sysUser 系统用户
     * @param credentials 登陆相关凭着
     * @return: com.cpop.core.base.entity.LoginUser
     */
    LoginUser getLoginUserInfo(SysUser sysUser, Map<String, Object> credentials);
}
