upload file

This commit is contained in:
eson 2023-07-04 19:59:54 +08:00
parent 3614e90e99
commit c6005983f8

29
server_api/upload.api Normal file
View File

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