Merge remote-tracking branch 'origin/feature/REQ-2119' into feature/REQ-2119
This commit is contained in:
commit
364bbc6dba
@ -11,6 +11,7 @@ import cn.axzo.oss.common.enums.FileUploadTypeEnum;
|
||||
import cn.axzo.oss.common.enums.StorageUnitEnum;
|
||||
import cn.axzo.oss.common.exception.BizException;
|
||||
import cn.axzo.oss.common.utils.BeanConvertUtil;
|
||||
import cn.axzo.oss.http.model.WebFileUploadVo;
|
||||
import cn.axzo.oss.manager.api.dto.request.*;
|
||||
import cn.axzo.oss.manager.api.dto.response.*;
|
||||
import cn.axzo.oss.service.api.FileService;
|
||||
|
||||
@ -0,0 +1,36 @@
|
||||
package cn.axzo.oss.http.api;
|
||||
|
||||
import cn.axzo.oss.http.model.WebFileUploadVo;
|
||||
import cn.azxo.framework.common.model.CommonResponse;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;
|
||||
|
||||
/**
|
||||
* @author wangsiqian
|
||||
* @since 2024/02/27
|
||||
*/
|
||||
@FeignClient(
|
||||
name = "oss",
|
||||
url = "http://oss:9123"
|
||||
)
|
||||
public interface WebFileServiceApi {
|
||||
/**
|
||||
* OBS:文件上传(断点续传)
|
||||
*
|
||||
* @param appCode 应用编码
|
||||
* @param bizScene 业务场景
|
||||
* @param file MultipartFile
|
||||
* @return WebFileUploadVo
|
||||
*/
|
||||
@PostMapping(value = "/webApi/v1/file2", consumes = MULTIPART_FORM_DATA_VALUE)
|
||||
CommonResponse<WebFileUploadVo> uploadObs(@Valid @RequestParam("appCode") String appCode,
|
||||
@Valid @RequestParam("bizScene") String bizScene,
|
||||
@Valid @RequestPart MultipartFile file);
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.axzo.oss.client.vo;
|
||||
package cn.axzo.oss.http.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user