package com.chinaztt.mes.technology.feign; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.multipart.MultipartFile; import java.util.List; /** * @Author 张宾 * @Date 2023/10/27 */ @FeignClient(value = "mes-file",path = "/mes-file") public interface MesFileApi { @PostMapping(value = "/uploadFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = {MediaType.APPLICATION_JSON_VALUE}) String uploadFile(MultipartFile file); }