company.js 476 B

1234567891011121314151617
  1. 'use strict';
  2. const assert = require('assert');
  3. const _ = require('lodash');
  4. const { ObjectId } = require('mongoose').Types;
  5. const { CrudService } = require('naf-framework-mongoose/lib/service');
  6. const { BusinessError, ErrorCode } = require('naf-core').Error;
  7. class CompanyService extends CrudService {
  8. constructor(ctx) {
  9. super(ctx, 'company');
  10. this.model = this.ctx.model.Company;
  11. // this.umodel = this.ctx.model.User;
  12. }
  13. }
  14. module.exports = CompanyService;