From 0d90e20ec20f0aeee642756a7ebf9e8514174124 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期一, 26 十月 2026 21:15:20 +0800
Subject: [PATCH] 微信小程序插件支持
---
src/modules/user/controller/app/info.ts | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/modules/user/controller/app/info.ts b/src/modules/user/controller/app/info.ts
index d96e807..0bc8ab5 100644
--- a/src/modules/user/controller/app/info.ts
+++ b/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
--
Gitblit v1.9.1