'use strict'; const { CrudService } = require('naf-framework-mongoose-free/lib/service'); const { BusinessError, ErrorCode } = require('naf-core').Error; const { ObjectId } = require('mongoose').Types; const _ = require('lodash'); const assert = require('assert'); // 信息 class NewsService extends CrudService { constructor(ctx) { super(ctx, 'news'); this.model = this.ctx.model.News.News; } } module.exports = NewsService;