添加s3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
syntax = "v1"
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: // TODO: add title
|
||||
@@ -10,20 +10,24 @@ info (
|
||||
import "basic.api"
|
||||
|
||||
type RequestUpFile {
|
||||
UpFile string `json:"upfile"`
|
||||
IsCut string `json:"upfile"` // 是否裁剪
|
||||
UpFile string `form:"upfile"`
|
||||
IsCut string `form:"is_cut"` // 是否裁剪
|
||||
}
|
||||
|
||||
type RequestUploadFile {
|
||||
FileName string `json:"file_name"`
|
||||
FileType string `json:"file_type"` // Image / fbx / hdr
|
||||
FileSize int64 `json:"file_size"`
|
||||
FileName string `json:"file_name"` // 文件名
|
||||
FileType string `json:"file_type"` // Image / fbx / hdr
|
||||
FileSize int64 `json:"file_size"` // 文件大小
|
||||
Category string `json:"category"` // 类别
|
||||
}
|
||||
|
||||
service upload {
|
||||
@handler UploadUpFileHandler
|
||||
get /upload/up-file(RequestUpFile) returns (response);
|
||||
|
||||
@handler UploadUpFileHandler
|
||||
get /upload/up-all-type-file(RequestUploadFile) returns (response);
|
||||
|
||||
@handler UploadFileFrontendHandler
|
||||
post /upload/upload-file-frontend(RequestUploadFile) returns (response);
|
||||
|
||||
@handler UploadFileBackendHandler
|
||||
post /upload/upload-file-backend(RequestUploadFile) returns (response);
|
||||
}
|
||||
Reference in New Issue
Block a user