package com.inspect.system.base;

import com.inspect.base.core.domain.Response;
import com.inspect.system.base.domain.SysFile;
import com.inspect.system.base.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(
   contextId = "remoteFileService",
   value = "inspect-file",
   fallbackFactory = RemoteFileFallbackFactory.class
)
public interface RemoteFileService {
   @PostMapping(
      value = {"/upload"},
      consumes = {"multipart/form-data"}
   )
   Response<SysFile> upload(@RequestPart("file") MultipartFile var1);
}
