searchauto.js 852 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict';
  2. const _ = require('lodash');
  3. const Controller = require('egg').Controller;
  4. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  5. // 管理
  6. class SearchautoController extends Controller {
  7. constructor(ctx) {
  8. super(ctx);
  9. this.service = this.ctx.service.searchauto;
  10. }
  11. // 股权融资查询接口
  12. async institutionsearch() {
  13. const data = await this.service.institutionsearch(this.ctx.request.body);
  14. this.ctx.ok({ ...data });
  15. }
  16. // 债权查询接口
  17. async financeclaimssearch() {
  18. const data = await this.service.financeclaimssearch(this.ctx.request.body);
  19. this.ctx.ok({ ...data });
  20. }
  21. //成功对接企业
  22. async successnum() {
  23. const data = await this.service.successnum(this.ctx.request.body);
  24. this.ctx.ok({ data });
  25. }
  26. }
  27. module.exports = SearchautoController;