remove 国际化删除, 依赖精简

This commit is contained in:
bootx
2024-07-02 21:27:05 +08:00
parent e1b2d4c094
commit 4835eb66c7
188 changed files with 2086 additions and 1161 deletions

View File

@@ -1,18 +1,18 @@
import FileService from '../service/FileService';
import FileService from '../service/FileService'
class FileController {
private service: FileService = new FileService();
private service: FileService = new FileService()
upload = async (ctx) => {
const files = ctx.request.files.file;
console.log(files);
const files = ctx.request.files.file
console.log(files)
if (files.length === undefined) {
this.service.upload(ctx, files, false);
this.service.upload(ctx, files, false)
} else {
this.service.upload(ctx, files, true);
this.service.upload(ctx, files, true)
}
};
}
}
export default new FileController();
export default new FileController()