修改SDK中的id类型为String
This commit is contained in:
@ -60,7 +60,7 @@ public interface AttachmentClient {
|
||||
* @param file
|
||||
* @return
|
||||
*/
|
||||
Optional<UploadObject> upload(Long businessId, File file);
|
||||
Optional<UploadObject> upload(String businessId, File file);
|
||||
|
||||
/**
|
||||
* 上传资源文件
|
||||
@ -69,6 +69,6 @@ public interface AttachmentClient {
|
||||
* @param file
|
||||
* @return
|
||||
*/
|
||||
Optional<UploadObject> upload(Long businessId, String filename, byte[] array);
|
||||
Optional<UploadObject> upload(String businessId, String filename, byte[] array);
|
||||
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ public class DefaultAttachmentClient implements AttachmentClient {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Optional<UploadObject> upload(Long businessId, File file) {
|
||||
public Optional<UploadObject> upload(String businessId, File file) {
|
||||
Objects.requireNonNull(businessId);
|
||||
Objects.requireNonNull(file);
|
||||
|
||||
@ -117,7 +117,7 @@ public class DefaultAttachmentClient implements AttachmentClient {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Optional<UploadObject> upload(Long businessId, String filename, byte[] array) {
|
||||
public Optional<UploadObject> upload(String businessId, String filename, byte[] array) {
|
||||
Objects.requireNonNull(businessId);
|
||||
Objects.requireNonNull(array);
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class QueryServiceFallback implements QueryService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeedbackMessage handleFileUpload(Long businessId, MultipartFile file) {
|
||||
public FeedbackMessage handleFileUpload(String businessId, MultipartFile file) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ public interface QueryService {
|
||||
AttachmentDetail getAttachmentDetails(@RequestBody QueryParameter param);
|
||||
|
||||
@RequestMapping(value = "/v1/attachment/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
FeedbackMessage handleFileUpload(@RequestPart(value = "businessId") Long businessId,
|
||||
FeedbackMessage handleFileUpload(@RequestPart(value = "businessId") String businessId,
|
||||
@RequestPart(value = "file") MultipartFile file);
|
||||
|
||||
@GetMapping("/v1/attachment/download/bid/{bid}")
|
||||
|
Reference in New Issue
Block a user