upload file
This commit is contained in:
parent
3614e90e99
commit
c6005983f8
29
server_api/upload.api
Normal file
29
server_api/upload.api
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user