package com.patzn.lims.drug.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.core.web.IBaseService;
import com.patzn.lims.drug.entity.DrugSampleAnnex;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 食药单机系统-样品附件表 服务类
 * </p>
 *
 * @author wwd
 * @since 2020-03-09
 */
public interface IDrugSampleAnnexService extends IBaseService<DrugSampleAnnex> {

    Page<DrugSampleAnnex> page(Page<DrugSampleAnnex> page, DrugSampleAnnex drugSampleAnnex);

    boolean upload(MultipartFile file, Long contractId);

    void downloadFile(Long id, HttpServletRequest request, HttpServletResponse response);
}
