package incheon.sgp.tdr.service.impl;


import incheon.sgp.tdr.vo.TdrComboVO;
import incheon.sgp.tdr.mapper.SgpTdrMapper;
import incheon.sgp.tdr.service.SgpTdrService;
import incheon.sgp.tdr.vo.SgpNatureVO;
import incheon.sgp.tdr.vo.DronePoiVO;
import incheon.sgp.tdr.vo.SgpTdrVO;
import incheon.sgp.tdr.vo.TdrRequestVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : ShinYoung, Kim
 * @version 1.0
 * @Class Name  : SgpSgpTdrVOServiceImpl.java
 * @Description :
 * @Modification Information
 * 개정일자			     개정자                  개정내용
 * ------------------ ----------- --------------------------
 * 2025. 09. 23        ShinYoung, Kim         최초생성
 * <p>
 * <p>
 * Copyright 2025. 올포랜드 INC.All rights reserved.
 * @since : 2025. 09. 23
 */


@Service
@RequiredArgsConstructor
public class SgpTdrServiceImpl implements SgpTdrService {

    private final SgpTdrMapper mapper;

    @Override
    public List<SgpTdrVO> getTourMapDreamList(TdrRequestVO tdrRequestVO) {
        return mapper.selectTourMapDreamList(tdrRequestVO);
    }

    @Override
    public List<SgpNatureVO> getNatureList(TdrRequestVO tdrRequestVO) {
        return mapper.selectNatureList(tdrRequestVO);
    }
    
    
    @Override
    public List<TdrComboVO> selectTourCatList() {
    	 return mapper.selectTourCatList();
    }
    
    @Override
    public List<TdrComboVO> selectNatureCatList() {
    	 return mapper.selectNatureCatList();
    }
    
    public List<DronePoiVO> getDronePoiList(TdrRequestVO tdrRequestVO) {
        return mapper.selectDronePoiList(tdrRequestVO);
    }

    @Override
    public SgpTdrVO getTdr(Long id) {
        return mapper.selectTdrById(id);
    }
    

    @Override
    public int addPlace(SgpTdrVO vo) {
        return mapper.insertPlace(vo);
    }

    @Override
    public int modifyPlace(SgpTdrVO vo) {
        return mapper.updatePlace(vo);
    }

    @Override
    public int removePlace(Long id) {
        return mapper.deletePlace(id);
    }
}
