mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
20 lines
468 B
Plaintext
20 lines
468 B
Plaintext
|
{
|
||
|
"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代码片段"
|
||
|
}
|
||
|
}
|