fix: base service bug

pull/21/merge
xiaojunnuo 2023-05-01 21:53:28 +08:00
parent 0a946f55ca
commit 0fca7dc3ce
2 changed files with 3 additions and 7 deletions

View File

@ -1,10 +1,7 @@
import { ALL, Body, Post, Query } from '@midwayjs/decorator';
import { BaseService } from './base-service';
import { BaseController } from './base-controller';
import { ALL, Body, Post, Query } from "@midwayjs/decorator";
import { BaseController } from "./base-controller";
export abstract class CrudController<
T extends BaseService
> extends BaseController {
export abstract class CrudController extends BaseController {
abstract getService();
@Post('/page')

View File

@ -4,7 +4,6 @@ import * as previewConfig from './config/config.preview';
import * as defaultConfig from './config/config.default';
import { Configuration, App } from '@midwayjs/decorator';
import * as koa from '@midwayjs/koa';
import * as bodyParser from 'koa-bodyparser';
import * as orm from '@midwayjs/typeorm';
import * as cache from '@midwayjs/cache';
import * as cors from '@koa/cors';