package com.vci.web.service; import com.vci.bo.LoginResultBO; import com.vci.corba.common.PLException; import com.vci.dto.LoginUserDTO; import com.vci.starter.web.exception.VciBaseException; import com.vci.starter.web.pagemodel.RequestClientInfo; /** * 登录和退出服务 * @author weidy * @date 2020/1/29 */ public interface OsLoginServiceI { /** * 登录 * @param userDTO 登录信息 * @param clientInfo 请求的客户端的信息 * @return 登录的结果对象 * @throws VciBaseException 登录失败的时候抛出异常 */ LoginResultBO login(LoginUserDTO userDTO, RequestClientInfo clientInfo) throws Exception; /** * 退出系统 * @param userToken 用户的许可码 * @throws VciBaseException 删除会话信息出错的时候会抛出异常 */ void logout(String userToken) throws Exception; }