m
This commit is contained in:
+3
-4
@@ -38,7 +38,7 @@ class CommonUploadController {
|
||||
return api_1.Api.error('uoload error');
|
||||
}
|
||||
}
|
||||
video(file, request) {
|
||||
async video(file) {
|
||||
try {
|
||||
const result = await cos_help_1.COSHelp.upload(file);
|
||||
return api_1.Api.success({
|
||||
@@ -117,9 +117,8 @@ __decorate([
|
||||
}),
|
||||
openapi.ApiResponse({ status: 201, type: Object }),
|
||||
__param(0, (0, common_1.UploadedFile)()),
|
||||
__param(1, (0, common_1.Req)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, Object]),
|
||||
__metadata("design:returntype", void 0)
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], CommonUploadController.prototype, "video", null);
|
||||
//# sourceMappingURL=common_upload.controller.js.map
|
||||
Reference in New Issue
Block a user