example.js 336 B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. const Service = require('ee-core').Service;
  3. /**
  4. * 示例服务
  5. * @class
  6. */
  7. class ExampleService extends Service {
  8. constructor(ctx) {
  9. super(ctx);
  10. }
  11. /**
  12. * test
  13. */
  14. async test (args) {
  15. let obj = {
  16. status:'ok',
  17. params: args
  18. }
  19. return obj;
  20. }
  21. }
  22. module.exports = ExampleService;