fusenapi/server_api/upload.api
2023-07-04 19:59:54 +08:00

29 lines
613 B
Plaintext

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