package egovframework.service.impl;

import egovframework.service.MainService;
import egovframework.service.mapper.MainMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.springframework.stereotype.Service;

import java.net.ConnectException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@RequiredArgsConstructor
@Service
@Slf4j
public class MainServiceImpl extends EgovAbstractServiceImpl implements MainService {

    private final MainMapper mainMapper;

    @Override
    public List<Map<String, Object>> getPossiblePopupList() throws SQLException, ConnectException {
        return this.mainMapper.getPossiblePopupList();
    }

    @Override
    public Map<String, Object> getPopupObject(Map<String, Object> paramMap) throws SQLException, ConnectException{
        return this.mainMapper.getPopupObject(paramMap);
    }

}
