From 91a65f41e633a1b63148936a3232f3d80ce4fde6 Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:55:04 +0800 Subject: [PATCH] chore: .vscode/entity.code-snippets --- .vscode/entity.code-snippets | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .vscode/entity.code-snippets diff --git a/.vscode/entity.code-snippets b/.vscode/entity.code-snippets new file mode 100644 index 0000000..0a362e1 --- /dev/null +++ b/.vscode/entity.code-snippets @@ -0,0 +1,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代码片段" + } +}