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

21 lines
524 B
Plaintext
Raw Normal View History

2022-03-14 14:46:21 +08:00
{
"controller": {
"prefix": "controller",
"body": [
"import { Provide } from '@midwayjs/decorator';",
"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代码片段"
}
}