ludc
2024-10-23 f6b9c6c0e930cca51e049e1f446c03499ee8f29a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.vci.web.service;
 
import com.vci.corba.common.PLException;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.RequestClientInfo;
import com.vci.bo.LoginResultBO;
import com.vci.dto.LoginUserDTO;
 
/**
 * 登录和退出服务
 * @author weidy
 * @date 2020/1/29
 */
public interface LoginServiceI {
 
    /**
     * 登录
     * @param userDTO 登录信息
     * @param clientInfo 请求的客户端的信息
     * @return 登录的结果对象
     * @throws VciBaseException 登录失败的时候抛出异常
     */
    LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws PLException;
 
    /**
     * 单点登录
     * @param userDTO 登录信息
     * @param clientInfo 请求的客户端的信息
     * @return 登录的结果对象
     * @throws VciBaseException 登录失败的时候抛出异常
     */
    LoginResultBO singleLogin(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws PLException;
 
    /**
     * 退出系统
     * @param userToken 用户的许可码
     * @throws VciBaseException 删除会话信息出错的时候会抛出异常
     */
    void logout(String userToken) throws VciBaseException;
}