| 12345678910111213141516171819202122 |
- {
- "entity": {
- "prefix": "entity",
- "body": [
- "import { EntityModel } from '@midwayjs/orm';",
- "import { BaseEntity } from 'midwayjs-cool-core';",
- "import { Column } from 'typeorm';",
- "",
- "/**",
- " * 描述",
- " */",
- "@EntityModel('xxx_xxx_xxx')",
- "export class XxxEntity extends BaseEntity {",
- " @Column({ comment: '描述' })",
- " xxx: string;",
- "}",
- ""
- ],
- "description": "cool-admin entity代码片段"
- }
- }
|