package com.corewing.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.corewing.app.common.Result;
import com.corewing.app.dto.qc.UploadTestRecordRequest;
import com.corewing.app.dto.qc.ValidateSnRequest;
import com.corewing.app.entity.QcTestRecord;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface QcTestService extends IService<QcTestRecord> {

    Result<String> uploadTestRecord(UploadTestRecordRequest request);

    Result<Map<String, String>> uploadPhoto(String testNo, MultipartFile photo);

    Result<Boolean> validateSn(ValidateSnRequest request);

    Result<List<QcTestRecord>> getHistory(String sn);

    Result<String> getReport(String testNo);
}
