package incheon.res.mng.nt.faq.service.impl;

import incheon.res.mng.nt.faq.mapper.MngNtFaqMapper;
import incheon.res.mng.nt.faq.service.MngNtFaqService;
import incheon.res.mng.nt.faq.vo.MngNtFaq;
import incheon.res.mng.nt.faq.vo.MngNtFaqVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MngNtFaqServiceimpl implements MngNtFaqService {
    @Resource
    private MngNtFaqMapper mngNtFaqMapper;

    public int countFaq(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.countFaq(vo);
    }

    public List selectFaqList(MngNtFaqVO vo) throws Exception{
        return mngNtFaqMapper.selectFaqList(vo);
    }

    public MngNtFaq selectFaq(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.selectFaq(vo);
    }

    public void updateFaqHitCntAdd(MngNtFaqVO vo) throws Exception {
        mngNtFaqMapper.updateFaqHitCntAdd(vo);
    }

    public int updateFaq(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.updateFaq(vo);
    }

    public int insertFaq(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.insertFaq(vo);
    }

    public void deleteFaq(MngNtFaqVO vo) throws Exception {
        mngNtFaqMapper.deleteFaq(vo);
    }

    public String selectMaxFaqIdn(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.selectMaxFaqIdn(vo);
    }

    public List selectFaqCdeList(MngNtFaqVO vo) throws Exception {
        return mngNtFaqMapper.selectFaqCdeList(vo);
    }
}
