1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
| import { CoolController, BaseController } from '@cool-midway/core';
| import { Modelstatic } from '../entity/modelstatic';
| import { ModelstaticService } from '../service/modelstatic';
| import { DataController } from '../../base/controller/dataController';
| /**
| * 静态模型数据
| */
| @Provide()
| @CoolController({
| api: ['add', 'delete', 'update', 'list'],
| entity: Modelstatic,
| service: ModelstaticService,
| })
| export class ModelstaticController extends DataController {
| @Inject()
| modelstaticService: ModelstaticService;
| }
|
|