package com.yihu.ehr.basic.fileresource.service;

import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * @author linaz
 * @created 2016.05.12 8:53
 */
public interface XFileResourceRepository extends PagingAndSortingRepository<FileResource, String> {

    List<FileResource> findByObjectId(String objectId);

    List<FileResource> findByStoragePath(String storagePath);

    List<FileResource> findByObjectIdAndMime(String objectId, String mime);

    FileResource findById(String id);
}
