cool-admin-midway/.vscode/entity.code-snippets

21 lines
452 B
Plaintext
Raw Normal View History

2022-03-14 14:46:21 +08:00
{
"entity": {
"prefix": "entity",
"body": [
"import { BaseEntity } from '@cool-midway/core';",
2023-03-08 15:36:37 +08:00
"import { Column, Entity } from 'typeorm';",
2022-03-14 14:46:21 +08:00
"",
"/**",
" * 描述",
" */",
2023-03-08 15:36:37 +08:00
"@Entity('xxx_xxx_xxx')",
2022-03-14 14:46:21 +08:00
"export class XxxEntity extends BaseEntity {",
" @Column({ comment: '描述' })",
" xxx: string;",
"}",
""
],
"description": "cool-admin entity代码片段"
}
}