mirror of https://github.com/certd/certd
fix: base service bug
parent
0a946f55ca
commit
0fca7dc3ce
|
@ -1,10 +1,7 @@
|
||||||
import { ALL, Body, Post, Query } from '@midwayjs/decorator';
|
import { ALL, Body, Post, Query } from "@midwayjs/decorator";
|
||||||
import { BaseService } from './base-service';
|
import { BaseController } from "./base-controller";
|
||||||
import { BaseController } from './base-controller';
|
|
||||||
|
|
||||||
export abstract class CrudController<
|
export abstract class CrudController extends BaseController {
|
||||||
T extends BaseService
|
|
||||||
> extends BaseController {
|
|
||||||
abstract getService();
|
abstract getService();
|
||||||
|
|
||||||
@Post('/page')
|
@Post('/page')
|
||||||
|
|
|
@ -4,7 +4,6 @@ import * as previewConfig from './config/config.preview';
|
||||||
import * as defaultConfig from './config/config.default';
|
import * as defaultConfig from './config/config.default';
|
||||||
import { Configuration, App } from '@midwayjs/decorator';
|
import { Configuration, App } from '@midwayjs/decorator';
|
||||||
import * as koa from '@midwayjs/koa';
|
import * as koa from '@midwayjs/koa';
|
||||||
import * as bodyParser from 'koa-bodyparser';
|
|
||||||
import * as orm from '@midwayjs/typeorm';
|
import * as orm from '@midwayjs/typeorm';
|
||||||
import * as cache from '@midwayjs/cache';
|
import * as cache from '@midwayjs/cache';
|
||||||
import * as cors from '@koa/cors';
|
import * as cors from '@koa/cors';
|
||||||
|
|
Loading…
Reference in New Issue