mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: base service bug
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user