mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-02 06:33:42 +08:00
22 lines
483 B
Plaintext
22 lines
483 B
Plaintext
|
{
|
||
|
"queue": {
|
||
|
"prefix": "queue",
|
||
|
"body": [
|
||
|
"import { BaseCoolQueue, CoolQueue } from '@cool-midway/task';",
|
||
|
"",
|
||
|
"/**",
|
||
|
" * 队列",
|
||
|
" */",
|
||
|
"@CoolQueue()",
|
||
|
"export abstract class xxxQueue extends BaseCoolQueue {",
|
||
|
" async data(job: any, done: any) {",
|
||
|
" console.log('收到的数据', job.data);",
|
||
|
" done();",
|
||
|
" }",
|
||
|
"}",
|
||
|
""
|
||
|
],
|
||
|
"description": "cool-admin service代码片段"
|
||
|
}
|
||
|
}
|