package com.citygis.web.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface SingleLoginService {

    void singleLogin(HttpServletRequest request, HttpServletResponse response) throws IOException;

    /**
     * 拿到code ，获取用户
     *
     * @param code code
     * @return
     */
    String getUser(String code) throws UnsupportedEncodingException;

}
