1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| {
| "entity": {
| "prefix": "entity",
| "body": [
| "import { EntityModel } from '@midwayjs/orm';",
| "import { BaseEntity } from '@cool-midway/core';",
| "import { Column } from 'typeorm';",
| "",
| "/**",
| " * 描述",
| " */",
| "@EntityModel('xxx_xxx_xxx')",
| "export class XxxEntity extends BaseEntity {",
| " @Column({ comment: '描述' })",
| " xxx: string;",
| "}",
| ""
| ],
| "description": "cool-admin entity代码片段"
| }
| }
|
|