1
2
3
4
5
6
7
8
9
10
11
12
13
14
| import { DemoGoodsEntity } from '../../entity/goods';
| import { Provide } from '@midwayjs/core';
| import { CoolController, BaseController } from '@cool-midway/core';
| import { DemoTransactionService } from '../../service/transaction';
|
| /**
| * 事务
| */
| @CoolController({
| api: ['add', 'delete', 'update', 'info', 'list', 'page'],
| entity: DemoGoodsEntity,
| service: DemoTransactionService,
| })
| export class OpenDemoTransactionController extends BaseController {}
|
|