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