mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-06-13 11:14:37 +08:00
28 lines
444 B
JavaScript
28 lines
444 B
JavaScript
'use strict';
|
||
|
||
const { Service } = require('ee-core');
|
||
const Log = require('ee-core/log');
|
||
|
||
/**
|
||
* effect(service层为单例)
|
||
* @class
|
||
*/
|
||
class EffectService extends Service {
|
||
|
||
/**
|
||
* hello
|
||
*/
|
||
async hello(args) {
|
||
let obj = {
|
||
status:'ok',
|
||
params: args
|
||
}
|
||
Log.info('EffectService obj:', obj);
|
||
|
||
return obj;
|
||
}
|
||
|
||
}
|
||
|
||
EffectService.toString = () => '[class EffectService]';
|
||
module.exports = EffectService;
|