Compare commits

..

No commits in common. "fe328950bc61d72bf24e1cc576e80d4ea8d0dbbb" and "0b0e071753ed559e07fa80f3fa3ba27d999bce4d" have entirely different histories.

2 changed files with 1 additions and 34 deletions

View File

@ -59,20 +59,6 @@ public class LoginController {
return loginService.getLogin(loginUser); return loginService.getLogin(loginUser);
} }
/**
* Q.CAST III에 자동 로그인하여 사용자 정보를 획득한다.
*
* @param loginUser LoginUser
* @return UserLoginResponse
* @throws Exception
*/
@Operation(description = "Q.CAST III에 자동 로그인하여 사용자 정보를 획득한다.")
@PostMapping("/v1.0/autoLogin")
@ResponseStatus(HttpStatus.CREATED)
public UserLoginResponse autoLogin(@RequestBody LoginUser loginUser) throws Exception {
return loginService.getAutoLogin(loginUser);
}
/** /**
* Q.CAST III에서 로그아웃한다. * Q.CAST III에서 로그아웃한다.
* *

View File

@ -50,27 +50,8 @@ public class LoginService {
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE, throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Password")); message.getMessage("common.message.required.data", "Password"));
return callLoginApi(loginUser, "LOGIN");
}
/**
* 자동 로그인 처리
*
* @param loginUser LoginUser
* @return UserLoginResponse
* @throws Exception
*/
public UserLoginResponse getAutoLogin(LoginUser loginUser) throws Exception {
if (loginUser.getLoginId() == null || "".equals(loginUser.getLoginId()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Login Id"));
return callLoginApi(loginUser, "AUTO_LOGIN");
}
private UserLoginResponse callLoginApi(LoginUser loginUser, String actLog) throws Exception {
loginUser.setAccsSiteCd("DESIGN"); loginUser.setAccsSiteCd("DESIGN");
loginUser.setActLog(actLog); loginUser.setActLog("LOGIN");
String sessionId = UUID.randomUUID().toString(); String sessionId = UUID.randomUUID().toString();
loginUser.setRequestId(sessionId); loginUser.setRequestId(sessionId);