refactor(test-server): improve test service code

This commit is contained in:
Vben
2021-06-05 22:29:33 +08:00
parent 8b6e07b768
commit a96cb2509c
31 changed files with 3278 additions and 1747 deletions

View File

@@ -0,0 +1,15 @@
import UserService from '../service/UserService';
class UserController {
private service: UserService = new UserService();
login = async (ctx) => {
ctx.body = await this.service.login();
};
getUserInfoById = async (ctx) => {
ctx.body = await this.service.getUserInfoById();
};
}
export default new UserController();