This commit is contained in:
eson
2023-07-05 19:00:33 +08:00
parent c6005983f8
commit 1c74c0ea4b
24 changed files with 196 additions and 131 deletions

View File

@@ -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);
}