Fixiaobai
2023-11-04 958e45e28ca4f591ab13f2c6f4fe27d57c4880d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
 
}