From c6005983f859ba3a2a3add1902d1f8d9e20fdde5 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 4 Jul 2023 19:59:54 +0800 Subject: [PATCH] upload file --- server_api/upload.api | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 server_api/upload.api diff --git a/server_api/upload.api b/server_api/upload.api new file mode 100644 index 00000000..3aef42db --- /dev/null +++ b/server_api/upload.api @@ -0,0 +1,29 @@ + syntax = "v1" + +info ( + title: // TODO: add title + desc: // TODO: add description + author: "" + email: "" +) + +import "basic.api" + +type RequestUpFile { + UpFile string `json:"upfile"` + IsCut string `json:"upfile"` // 是否裁剪 +} + +type RequestUploadFile { + FileName string `json:"file_name"` + FileType string `json:"file_type"` // Image / fbx / hdr + FileSize int64 `json:"file_size"` +} + +service upload { + @handler UploadUpFileHandler + get /upload/up-file(RequestUpFile) returns (response); + + @handler UploadUpFileHandler + get /upload/up-all-type-file(RequestUploadFile) returns (response); +} \ No newline at end of file