weixin.controller.ts 403 B

12345678910111213141516
  1. import { Controller, Get, Inject, Post } from '@midwayjs/core';
  2. import { WeixinService } from '../service/weixin.service';
  3. import get = require('lodash/get');
  4. @Controller('/weixin')
  5. export class WeixinController {
  6. @Inject()
  7. service: WeixinService;
  8. @Get('/appAuth')
  9. async appAuth() {
  10. const data = await this.service.appAuth();
  11. return data;
  12. }
  13. @Post('/decrypt')
  14. async decrypt() {}
  15. }