std_chapter.js 547 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. /**
  3. * 标准项目节业务逻辑
  4. *
  5. * @author Mai
  6. * @date 2018/3/13
  7. * @version
  8. */
  9. const StandardLib = require('./standard_lib');
  10. module.exports = app => {
  11. class StdChapter extends StandardLib {
  12. /**
  13. * 构造函数
  14. *
  15. * @param {Object} ctx - egg全局变量
  16. * @return {void}
  17. */
  18. constructor(ctx) {
  19. super(ctx, 'project_chapter');
  20. this.dataId = 'chapter_id';
  21. this.stdType = 'chapter';
  22. }
  23. }
  24. return StdChapter;
  25. };