From 89e220aab3d6e43e3f5f8bb47fa6229fe48d876a Mon Sep 17 00:00:00 2001 From: wuKong Date: Wed, 5 Nov 2025 14:15:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(mp):=20=E6=96=B0=E5=A2=9E=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E6=B6=88=E6=81=AF=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增消息模板、模板配置、发送记录的完整CRUD功能 - 实现消息模板同步、批量删除、消息推送等核心操作 - 支持模板变量动态提取与颜色配置 - 提供Excel导出和数据筛选功能 - 集成微信公众号模板消息发送能力 - 完善表单验证和用户交互体验 --- src/api/mp/template/index.ts | 44 ------------------------------------ 1 file changed, 44 deletions(-) diff --git a/src/api/mp/template/index.ts b/src/api/mp/template/index.ts index 30f1baa1f..8d3e168ba 100644 --- a/src/api/mp/template/index.ts +++ b/src/api/mp/template/index.ts @@ -66,50 +66,6 @@ export const MsgTemplateApi = { }, } -// 模板消息配置 VO -export interface MsgTemplateConfigVO { - id: number // 主键 - appId: string // appId - templateId: string // 公众号模板ID - templateType: string // 模板类型 - title: string // 标题 - status: number // 是否有效 0有效,1无效 - remark: string // 备注 -} - -// 模板消息配置 API -export const MsgTemplateConfigApi = { - // 查询模板消息配置分页 - getMsgTemplateConfigPage: async (params: any) => { - return await request.get({ url: `/mp/template/config/page`, params }) - }, - - // 查询模板消息配置详情 - getMsgTemplateConfig: async (id: number) => { - return await request.get({ url: `/mp/template/config/get?id=` + id }) - }, - - // 新增模板消息配置 - createMsgTemplateConfig: async (data: MsgTemplateConfigVO) => { - return await request.post({ url: `/mp/template/config/create`, data }) - }, - - // 修改模板消息配置 - updateMsgTemplateConfig: async (data: MsgTemplateConfigVO) => { - return await request.put({ url: `/mp/template/config/update`, data }) - }, - - // 删除模板消息配置 - deleteMsgTemplateConfig: async (id: number) => { - return await request.delete({ url: `/mp/template/config/delete?id=` + id }) - }, - - // 导出模板消息配置 Excel - exportMsgTemplateConfig: async (params) => { - return await request.download({ url: `/mp/template/config/export-excel`, params }) - }, -} - // 微信模版消息发送记录 VO export interface MsgTemplateLogVO { id: number // 主键