This commit is contained in:
张成
2025-11-28 09:50:38 +08:00
parent 4db078c80a
commit 0e334116b6
4 changed files with 749 additions and 5 deletions

View File

@@ -96,6 +96,17 @@ module.exports = {
let result = await ossToolService.uploadStream(buffer, 'image/jpeg', 'jpg')
return ctx.success(result);
},
'POST /file/upload_file_to_oss_by_auto_work': async (ctx) => {
const file =ctx.request.files.file ;
const result = await ossToolService.uploadFile(file, 'work_boss');
return ctx.success(result);
}
}