package incheon.res.rdm.com.attachfile.mapper;

import incheon.com.config.annotation.MainDB;
import incheon.res.rdm.com.attachfile.vo.RdmComAttachfile;
import incheon.res.rdm.com.attachfile.vo.RdmComAttachfileVO;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;

import java.util.List;

@org.egovframe.rte.psl.dataaccess.mapper.Mapper @incheon.com.config.annotation.MainDB
public interface RdmComAttachfileMapper {

	/**
	 * @MethodDESC : 첨부파일 목록 조회
	 */
	List selectAttachfileList(RdmComAttachfileVO vo) throws Exception;

	/**
	 * 파일에 대한 상세정보를 조회한다.
	 */
	RdmComAttachfileVO selectFileInf(RdmComAttachfileVO fvo) throws Exception;
	
	/**
	 * @MethodDESC : 첨부파일 추가
	 */
	void insertAttachfile(RdmComAttachfileVO vo) throws Exception;
	
	/**
	 * @MethodDESC : 첨부파일 모두 삭제
	 */
	int deleteAttachfileAll(RdmComAttachfileVO vo) throws Exception;
	
	/**
	 * @MethodDESC : 첨부파일 atfCde로 삭제
	 */
	int deleteAttachfileCde(RdmComAttachfileVO vo) throws Exception;
	
	/**
	 * @MethodDESC : 첨부파일 adfIdn으로 삭제
	 */
	int deleteAttachfileIdn(RdmComAttachfileVO vo) throws Exception;
}