package com.fufan.mtsaas.modules.sysmgr.hrsys.service;

import com.fufan.mtsaas.modules.common.bo.response.RequestPojo;
import com.fufan.mtsaas.modules.common.bo.response.Result;
import com.fufan.mtsaas.modules.common.bo.response.ResultStandard;
import com.fufan.mtsaas.modules.sysmgr.hrsys.bo.request.LoginRequest;
import com.fufan.mtsaas.modules.sysmgr.hrsys.bo.response.HRUserInfo;
import org.apache.poi.ss.formula.functions.T;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpSession;

/**
 * 登录登出服务类
 *
 * @auther Liby
 * @create 2019-09-15
 * */
public interface HRLoginUserSvc {
    /**
     * 登录
     * */
    Result<HRUserInfo> loginCheckByUser(LoginRequest map);

    /**
     * 登录
     */
    Result<HRUserInfo> loginCheck(LoginRequest map, HttpSession session);

//    Result<HRUserInfo> loginCheck(String map, @ApiIgnore HttpSession session);
    /**
     * 登出
     * */
    void loginOut(HttpSession session, RequestPojo requestPojo);

    /**
     * 微信登录
     * */
    Result<T> doWechatLogin(String map, RequestPojo requestPojo);

    /**
     * 微信工资查询 2020-10-25
     * */
    Result<T> doWechatQuery(String map, RequestPojo requestPojo);

    /**
     * 验证码
     * */
    ResultStandard loginCheckJs(String map, HttpSession session);
}
