package com.cwhelp.modules.system.repository;

import com.cwhelp.modules.system.domain.Upload;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author yan.y
 */
public interface UploadRepository extends JpaRepository<Upload, Long> {

    /**
     * 查找指定文件sha1记录
     * @param sha1 文件sha1值
     */
    Upload findBySha1(String sha1);
}

