message.js 277 B

12345678910111213
  1. 'use strict';
  2. const _ = require('lodash');
  3. const { CrudService } = require('naf-framework-mongoose/lib/service');
  4. class MessageService extends CrudService {
  5. constructor(ctx) {
  6. super(ctx);
  7. this.model = this.ctx.model.Message;
  8. }
  9. }
  10. module.exports = MessageService;