package com.eactive.eai.rms.data.entity.onl.bzwkdstcd;

import org.springframework.stereotype.Component;

import com.eactive.eai.rms.common.login.LoginVo;
import com.eactive.eai.rms.common.login.SessionManager;
import com.eactive.eai.rms.onl.common.exception.BizException;

@Component
public class UserIdResolverImpl implements UserIdResolver {

	@Override
	public String getUserId() {
		LoginVo loginVo = SessionManager.getLoginVo();

		if (loginVo == null) {
			throw new BizException("세션 정보가 없습니다.");
		}
		return loginVo.getUserId();
	}

}
