1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user