FAICS/src/main/java/kcg/faics/cmmn/bbs/BaseFileService.java

98 lines
2.3 KiB
Java
Raw Normal View History

2022-03-17 02:42:45 +00:00
package kcg.faics.cmmn.bbs;
import java.util.List;
import java.util.Map;
import org.springframework.web.multipart.MultipartFile;
/**
* Interface.
*
* @author kimnomin
*
* @param <T>
* .
*/
public interface BaseFileService<T> {
/**
* .
*
* @param fileVO
* VO
* @return
* @throws Exception
*
*/
T select(T fileVO) throws Exception;
/**
* .
*
* @param fileVO
* VO
* @return
* @throws Exception
*
*/
List<T> selectList(T fileVO) throws Exception;
/**
* .
*
* @param fileVO
* File VO
* @return 1-, 0-
* @throws Exception
*
*/
int insert(T fileVO) throws Exception;
/**
* .
*
* @param fileVO
* File VO
* @return 1-, 0-
* @throws Exception
*
*/
int delete(T fileVO) throws Exception;
/**
* .
*
* @param fileVO
* File VO
* @param fileMap
* Map
* @return 1-, 0-
* @throws Exception
*
*/
int insertAndSaveFiles(T fileVO, Map<String, MultipartFile> fileMap)
throws Exception;
/**
* .
*
* @param fileVO
* File VO
* @return 1-, 0-
* @throws Exception
*
*/
int deleteAndRemoveFile(T fileVO) throws Exception;
/**
* fileVO parentSeq .
*
* @param fileVO
* File VO
* @return 1-, 0-
* @throws Exception
*
*/
int deleteAndRemoveFiles(T fileVO) throws Exception;
}