wangrong
9 小时以前 0d90e20ec20f0aeee642756a7ebf9e8514174124
src/modules/user/controller/app/info.ts
@@ -1,4 +1,10 @@
import { CoolController, BaseController } from '@cool-midway/core';
import {
  CoolController,
  BaseController,
  CoolUrlTag,
  CoolTag,
  TagTypes,
} from '@cool-midway/core';
import { Body, Get, Inject, Post } from '@midwayjs/core';
import { UserInfoService } from '../../service/info';
import { UserInfoEntity } from '../../entity/info';
@@ -6,6 +12,7 @@
/**
 * 用户信息
 */
@CoolUrlTag()
@CoolController({
  api: [],
  entity: UserInfoEntity,
@@ -63,10 +70,10 @@
    );
  }
   @Post('/dashboard', { summary: '获取用户碳积分信息' })
  @CoolTag(TagTypes.IGNORE_TOKEN)
  @Post('/dashboard', { summary: '获取用户碳积分信息' })
  async dashboard(@Body() body) {
    console.log(body)
    const {unionid} = body;
    const { unionid } = body;
    return this.ok(
      await this.userInfoService.dashboard(
        unionid