12345678910111213141516 |
- import { Controller, Get, Inject, Post } from '@midwayjs/core';
- import { WeixinService } from '../service/weixin.service';
- import get = require('lodash/get');
- @Controller('/weixin')
- export class WeixinController {
- @Inject()
- service: WeixinService;
- @Get('/appAuth')
- async appAuth() {
- const data = await this.service.appAuth();
- return data;
- }
- @Post('/decrypt')
- async decrypt() {}
- }
|