fix: some api bug
This commit is contained in:
@@ -18,7 +18,7 @@ type (
|
||||
}
|
||||
// 获取文件请求(用于私有文件或代理访问)
|
||||
GetFileReq {
|
||||
FileId string `path:"fileId"`
|
||||
FileId string `form:"key"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -34,6 +34,6 @@ service file-api {
|
||||
|
||||
@doc "文件获取接口 (如果是私有文件,通过此接口获取或重定向)"
|
||||
@handler GetFile
|
||||
get /files/:fileId (GetFileReq)
|
||||
get /files (GetFileReq)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user