package ru.soune.nocopy.repository;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import ru.soune.nocopy.entity.file.moderation.ModerationPassportFile;

import java.util.List;

@Repository
public interface ModerationFileRepository extends CrudRepository<ModerationPassportFile, Long> {

    public List<ModerationPassportFile> findByStatus(String status);

    public List<ModerationPassportFile> findByUserIdAndStatus(Long userId, String status);
}
