message.js 259 B

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