Fixiaobai
2023-11-09 3059430a0db3f75426e435c06090358646fc3792
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);
 
}