package com.yeejoin.amos.api.openapi.feign;


import com.yeejoin.amos.api.openapi.face.dto.JyjcInspectionResultDataModel;
import com.yeejoin.amos.api.openapi.face.dto.PipelineInspectionResultDto;
import com.yeejoin.amos.boot.biz.common.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.typroject.tyboot.core.restful.utils.ResponseModel;

import java.util.List;

@FeignClient(name = "TZS-JYJC", path = "/jyjc", configuration = {FeignConfiguration.class})
public interface JyjcServiceFeignClient {


    /**
     * 报检结果接收-非压力管道
     *
     * @param resultDataModels 多个设备维度
     * @return 是否成功
     */
    @RequestMapping(value = "/jyjc-inspection-result/receive", method = RequestMethod.POST)
    ResponseModel<List<JyjcInspectionResultDataModel>> saveResultDataBatch(@RequestBody List<JyjcInspectionResultDataModel> resultDataModels);

    /**
     *  报检结果接收-压力管道
     * @param resultDataModels 多个装置维度
     * @return 上传的数据
     */
    @RequestMapping(value = "/jyjc-inspection-result/pipeline/receive", method = RequestMethod.POST)
    ResponseModel<List<PipelineInspectionResultDto>> savePipelineResultDataBatch(@RequestBody List<PipelineInspectionResultDto> resultDataModels);
}
