car_show.js 533 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  4. // 车奖
  5. class Car_showController extends Controller {
  6. constructor(ctx) {
  7. super(ctx);
  8. this.service = this.ctx.service.carShow;
  9. }
  10. async checkUser() {
  11. await this.service.checkUser(this.ctx.query);
  12. this.ctx.ok();
  13. }
  14. async getCarShow() {
  15. await this.service.getCarShow(this.ctx.query);
  16. this.ctx.ok();
  17. }
  18. }
  19. module.exports = CrudController(Car_showController, {});