后台:独立数据库,路径转发

This commit is contained in:
luying
2021-11-22 19:56:16 +08:00
parent 9d9ed77423
commit 7940e6d09d
16 changed files with 256 additions and 303 deletions

View File

@@ -1,8 +1,9 @@
import { STATUS } from '@consts';
import { Controller } from 'egg';
export default class HomeController extends Controller {
public async index() {
const { ctx } = this;
ctx.body = await ctx.service.test.sayHi('egg');
ctx.body = await ctx.service.utils.resResult(STATUS.SUCCESS);
}
}