'use strict'; const _ = require('lodash'); const meta = require('./.companyuser.js'); const Controller = require('egg').Controller; const { CrudController } = require('naf-framework-mongoose/lib/controller'); // 管理 class CompanyuserController extends Controller { constructor(ctx) { super(ctx); this.service = this.ctx.service.companyuser; } async login() { const res = await this.service.login(this.ctx.request.body); this.ctx.ok({ data: res }); } async uppasswd() { const res = await this.service.uppasswd(this.ctx.request.body); this.ctx.ok({ data: res }); } } module.exports = CrudController(CompanyuserController, meta);