mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-12 07:25:39 +08:00
remove 国际化删除, 依赖精简
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import UserService from '../service/UserService';
|
||||
import UserService from '../service/UserService'
|
||||
|
||||
class UserController {
|
||||
private service: UserService = new UserService();
|
||||
private service: UserService = new UserService()
|
||||
|
||||
login = async (ctx) => {
|
||||
ctx.body = await this.service.login();
|
||||
};
|
||||
ctx.body = await this.service.login()
|
||||
}
|
||||
|
||||
getUserInfoById = async (ctx) => {
|
||||
ctx.body = await this.service.getUserInfoById();
|
||||
};
|
||||
ctx.body = await this.service.getUserInfoById()
|
||||
}
|
||||
}
|
||||
|
||||
export default new UserController();
|
||||
export default new UserController()
|
||||
|
||||
Reference in New Issue
Block a user