介绍
    业务逻辑层

    示例

    1. const Service = require('ee-core').Service;
    2. /**
    3. * 示例服务
    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;