matchSign.js 569 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const { CrudService } = require('naf-framework-mongoose-free/lib/service');
  3. const { BusinessError, ErrorCode } = require('naf-core').Error;
  4. const _ = require('lodash');
  5. const assert = require('assert');
  6. //
  7. class MatchSignService extends CrudService {
  8. constructor(ctx) {
  9. super(ctx, 'matchsign');
  10. this.model = this.ctx.model.Race.MatchSign;
  11. }
  12. /**
  13. * 检查是否已经有该赛事,该组别,该项目的报名
  14. * @param {Object} body 参数体
  15. */
  16. async beforeCreate(body) {
  17. return body;
  18. }
  19. }
  20. module.exports = MatchSignService;