diff --git a/.vscode/controller.code-snippets b/.vscode/controller.code-snippets new file mode 100644 index 0000000..5bd7095 --- /dev/null +++ b/.vscode/controller.code-snippets @@ -0,0 +1,19 @@ +{ + "controller": { + "prefix": "controller", + "body": [ + "import { CoolController, BaseController } from '@cool-midway/core';", + "", + "/**", + " * 描述", + " */", + "@CoolController({", + " api: ['add', 'delete', 'update', 'info', 'list', 'page'],", + " entity: 实体,", + "})", + "export class XxxController extends BaseController {}", + "" + ], + "description": "cool-admin controller代码片段" + } +}