fix:修复上传
This commit is contained in:
@@ -17,7 +17,7 @@ service upload {
|
||||
post /api/upload/upload-file-frontend(RequestUploadFileFrontend) returns (response);
|
||||
|
||||
@handler UploadFileBackendHandler
|
||||
post /api/upload/upload-file-backend(RequestUploadFileBackend) returns (response);
|
||||
post /api/upload/upload-file-backend(UploadFileBackendReq) returns (response);
|
||||
//生成二维码
|
||||
@handler UploadQrcodeHandler
|
||||
post /api/upload/qrcode(UploadQrcodeReq) returns (response);
|
||||
@@ -67,10 +67,12 @@ type (
|
||||
)
|
||||
|
||||
type (
|
||||
UploadInfo {
|
||||
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
||||
FileKeys string `form:"file_keys,optional"` // 上传唯一标识信息
|
||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||
UploadFileBackendReq {
|
||||
ApiType int64 `form:"api_type,options=[1,2],default=1"` // 调用类型:1=对外,2=对内
|
||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
||||
FileKey string `form:"file_key"` // 上传唯一标识信息
|
||||
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||
}
|
||||
|
||||
UploadFilesReq {
|
||||
|
||||
Reference in New Issue
Block a user