package cn.estsh.i3plus.core.api.iservice.base;

import cn.estsh.i3plus.pojo.base.shirotoken.AdminToken;
import cn.estsh.i3plus.pojo.base.shirotoken.SaAdminToken;
import cn.estsh.i3plus.pojo.base.shirotoken.UserToken;
import cn.estsh.i3plus.pojo.platform.bean.SessionUser;
import io.swagger.annotations.ApiOperation;

/**
 * @Description : 用户登陆方法，平台统一登陆
 * @Reference :
 * @Author : alwaysfrin
 * @CreateDate : 2018-10-11 16:59
 * @Modify:
 **/
public interface ISystemLoginService {

    @ApiOperation(value = "用户登录",notes = "普通用户登录")
    SessionUser queryUserLogin(String loginName, String s, String languageCode);

    @ApiOperation(value = "用户登录",notes = "管理用户登录")
    SessionUser queryAdminLogin(String loginName, String s, String languageCode);

    @ApiOperation(value = "封装用户",notes = "封装普通用户信息")
    SessionUser queryCheckUserLogin(UserToken authenticationToken);

    @ApiOperation(value = "封装用户",notes = "封装管理员信息")
    SessionUser queryCheckAdminLogin(AdminToken authenticationToken);

    @ApiOperation(value = "封装用户",notes = "封装超级管理员信息")
    SessionUser queryCheckSaAdminLogin(SaAdminToken authenticationToken);

    @ApiOperation(value = "登录密码错误",notes = "登录密码错误记录错误次数功能")
    Integer doLoginPasswordError(String loginName,String sessionId);
}
