mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 06:02:39 +08:00
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
{
|
|
"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代码片段"
|
|
}
|
|
}
|