Files
electron-egg/electron/service/hardware.js
2023-05-09 21:19:45 +08:00

30 lines
417 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');
/**
* hardwareservice层为单例
* @class
*/
class HardwareService extends Service {
constructor(ctx) {
super(ctx);
}
/**
* test
*/
async test(args) {
let obj = {
status:'ok',
params: args
}
return obj;
}
}
HardwareService.toString = () => '[class HardwareService]';
module.exports = HardwareService;