Introduction


business logic layer

example

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