channelVideo.js 509 B

12345678910111213141516
  1. 'use strict';
  2. const { CrudService } = require('naf-framework-mongoose-free/lib/service');
  3. const { BusinessError, ErrorCode } = require('naf-core').Error;
  4. const { ObjectId } = require('mongoose').Types;
  5. const _ = require('lodash');
  6. const assert = require('assert');
  7. // 科技频道-视频表
  8. class ChannelVideoService extends CrudService {
  9. constructor(ctx) {
  10. super(ctx, 'channel_video');
  11. this.model = this.ctx.model.Channel.ChannelVideo;
  12. }
  13. }
  14. module.exports = ChannelVideoService;