package com.dbnt.kcgfilemanager.repository;

import com.dbnt.kcgfilemanager.model.FileInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface FileInfoRepository extends JpaRepository<FileInfo, FileInfo.FileInfoId> {
  Optional<FileInfo> findTopByContentSeqOrderByFileSeqDesc(Integer contentSeq);
  List<FileInfo> findByContentSeqOrderByFileSeqAsc(Integer contentSeq);
}
