feat(storage): add cos support
This commit is contained in:
@@ -29,6 +29,14 @@ func RegisterDocRouter(app *soda.Soda) {
|
||||
SetJSONRequestBody(schema.UpdateDoc{}).
|
||||
AddJSONResponse(200, schema.Doc{}).OK()
|
||||
|
||||
// get presigned url for tmp file upload
|
||||
app.Get("/docs/upload-url", nil).
|
||||
AddTags("文档管理").
|
||||
SetSummary("获取临时上传文件用的预签名URL").
|
||||
AddJWTSecurity(JWTRequired).
|
||||
SetParameters(schema.CreateUploadURL{}).
|
||||
AddJSONResponse(200, schema.UploadURL{}).OK()
|
||||
|
||||
app.Delete("/docs/:id", nil).
|
||||
AddTags("文档管理").
|
||||
SetSummary("获取文档列表").
|
||||
|
||||
Reference in New Issue
Block a user