mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
28 lines
336 B
JavaScript
28 lines
336 B
JavaScript
'use strict';
|
|
|
|
const Service = require('ee-core').Service;
|
|
|
|
/**
|
|
* 示例服务
|
|
* @class
|
|
*/
|
|
class ExampleService extends Service {
|
|
|
|
constructor(ctx) {
|
|
super(ctx);
|
|
}
|
|
|
|
/**
|
|
* test
|
|
*/
|
|
async test (args) {
|
|
let obj = {
|
|
status:'ok',
|
|
params: args
|
|
}
|
|
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
module.exports = ExampleService; |