15815213711
2025-04-24 16c179b122eb8c69d31b0fab66c5e29b9c332b8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'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;
  }
}
 
ExampleService.toString = () => '[class ExampleService]';
module.exports = ExampleService;