mirror of
https://gitcode.com/gh_mirrors/vue/vue-vben-admin
synced 2026-05-14 22:37:46 +00:00
perf: Refactor vite configuration
This commit is contained in:
15
apps/test-server/controller/UserController.ts
Normal file
15
apps/test-server/controller/UserController.ts
Normal 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();
|
||||
Reference in New Issue
Block a user