'use strict'; const meta = require('./config/.admin.js'); const Controller = require('egg').Controller; const { CrudController } = require('naf-framework-mongoose-free/lib/controller'); // class AdminController extends Controller { constructor(ctx) { super(ctx); this.service = this.ctx.service.admin; } async wxAppLogin() { await this.service.wxAppLogin(this.ctx.request.body); this.ctx.ok(); } async wxAppBind() { await this.service.wxAppBind(this.ctx.request.body); this.ctx.ok(); } } module.exports = CrudController(AdminController, meta);