mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-03 16:34:35 +00:00
feat(mp): 新增公众号消息模板管理功能
- 新增消息模板、模板配置、发送记录的完整CRUD功能 - 实现消息模板同步、批量删除、消息推送等核心操作 - 支持模板变量动态提取与颜色配置 - 提供Excel导出和数据筛选功能 - 集成微信公众号模板消息发送能力 - 完善表单验证和用户交互体验
This commit is contained in:
@@ -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
|
// 微信模版消息发送记录 VO
|
||||||
export interface MsgTemplateLogVO {
|
export interface MsgTemplateLogVO {
|
||||||
id: number // 主键
|
id: number // 主键
|
||||||
|
|||||||
Reference in New Issue
Block a user