123456789101112131415161718 |
- 'use strict';
- const meta = require('./config/.notice.js');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose-free/lib/controller');
- //
- class NoticeController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.user.notice;
- }
- async msgList() {
- const res = await this.service.msgList(this.ctx.query);
- this.ctx.ok(res);
- }
- }
- module.exports = CrudController(NoticeController, meta);
|