123456789101112131415 |
- 'use strict';
- const { CrudService } = require('naf-framework-mongoose-free/lib/service');
- const { BusinessError, ErrorCode } = require('naf-core').Error;
- const _ = require('lodash');
- const assert = require('assert');
- // 邀请码
- class InviteCodeService extends CrudService {
- constructor(ctx) {
- super(ctx, 'invite_code');
- this.model = this.ctx.model.User.InviteCode;
- }
- }
- module.exports = InviteCodeService;
|