chore: src/modules/user/controller/app/comm.ts

This commit is contained in:
2026-07-01 17:57:35 +08:00
parent af7782a9a3
commit c9677cde30
+25
View File
@@ -0,0 +1,25 @@
import {
CoolController,
BaseController,
CoolUrlTag,
TagTypes,
CoolTag,
} from '@cool-midway/core';
import { Body, Inject, Post } from '@midwayjs/core';
import { UserWxService } from '../../service/wx';
/**
* 通用
*/
@CoolUrlTag()
@CoolController()
export class UserCommController extends BaseController {
@Inject()
userWxService: UserWxService;
@CoolTag(TagTypes.IGNORE_TOKEN)
@Post('/wxMpConfig', { summary: '获取微信公众号配置' })
public async getWxMpConfig(@Body('url') url: string) {
return this.ok(await this.userWxService.getWxMpConfig(url));
}
}