fix:文件上传--base64
This commit is contained in:
@@ -38,8 +38,24 @@ service upload {
|
||||
@handler UploadLogoHandler
|
||||
post /api/upload/up-logo(UploadLogoReq) returns (response);
|
||||
|
||||
// 上传文件发起--base64
|
||||
@handler UploadFileBaseHandler
|
||||
post /api/upload/upload-file-base(UploadFileBaseReq) returns (response);
|
||||
|
||||
}
|
||||
|
||||
type (
|
||||
UploadFileBaseReq {
|
||||
FileType string `form:"file_type"` // 上传文件类型
|
||||
FileKey string `form:"file_key"` // 上传唯一标识信息
|
||||
FileData string `form:"file_data"` // 上传文件额外信息
|
||||
Metadata string `form:"meta_data,optional"` // 上传文件额外信息
|
||||
UserId int64 `form:"user_id,optional"` // 上传文件额外信息
|
||||
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
|
||||
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
UploadLogoReq {
|
||||
ResourceId string `form:"resource_id"` // 资源ID
|
||||
|
||||
Reference in New Issue
Block a user