Files
electron-egg/electron/service/effect.js
2024-10-15 18:59:21 +08:00

28 lines
444 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use strict';
const { Service } = require('ee-core');
const Log = require('ee-core/log');
/**
* effectservice层为单例
* @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;