chore: .vscode/controller.code-snippets
This commit is contained in:
Vendored
+19
@@ -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代码片段"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user