Files
pqs-9100_client/electron/service/example.js

30 lines
426 B
JavaScript
Raw Permalink Normal View History

2025-10-15 14:12:24 +08:00
'use strict';
const { logger } = require('ee-core/log');
/**
* 示例服务
* @class
*/
class ExampleService {
/**
* test
*/
async test(args) {
let obj = {
status:'ok',
params: args
}
logger.info('ExampleService obj:', obj);
return obj;
}
}
ExampleService.toString = () => '[class ExampleService]';
module.exports = {
ExampleService,
exampleService: new ExampleService()
};