mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-11 00:22:49 +00:00
17 lines
309 B
TypeScript
17 lines
309 B
TypeScript
import { Inject, Provide } from '@midwayjs/decorator';
|
|
import { BaseService } from '@cool-midway/core';
|
|
import { CoolRpc } from '@cool-midway/rpc';
|
|
|
|
/**
|
|
* 缓存
|
|
*/
|
|
@Provide()
|
|
export class DemoGoodsService extends BaseService {
|
|
@Inject()
|
|
rpc: CoolRpc;
|
|
|
|
async test() {
|
|
console.log('调用');
|
|
}
|
|
}
|