feat: ui模式

BREAKING CHANGE: 接口配置变更
This commit is contained in:
xiaojunnuo
2023-05-23 18:01:20 +08:00
parent 8c152371a1
commit 6f6606d76d
40 changed files with 303 additions and 262 deletions
@@ -1,8 +1,8 @@
import { ALL, Body, Post, Query } from "@midwayjs/decorator";
import { BaseController } from "./base-controller";
import { ALL, Body, Post, Query } from '@midwayjs/decorator';
import { BaseController } from './base-controller';
export abstract class CrudController extends BaseController {
abstract getService();
export abstract class CrudController<T> extends BaseController {
abstract getService<T>();
@Post('/page')
async page(
@@ -62,4 +62,3 @@ export abstract class CrudController extends BaseController {
return this.ok(null);
}
}