Files
ApiServer-Web-admin_dashboa…/src/api/admin/noticeChannel.js
T
shiran 4180f73c53
Build and Deploy Vue3 / build (push) Successful in 1m27s
Build and Deploy Vue3 / deploy (push) Successful in 36s
feat(admin): 订单管理重构、设置管理增强、短信签名模板管理及通知渠道优化
- 订单列表重构为卡片式布局并新增筛选功能

- 设置管理支持struct/struct_list类型配置

- 新增短信签名和模板独立管理页面

- 通知渠道新增短信渠道配置

- 产品参数管理优化

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 18:27:23 +08:00

49 lines
1.5 KiB
JavaScript

import { http2 } from '@/utils/request.js'
// ========== 通知渠道配置 ==========
/** 获取全部通知渠道配置列表(无分页) */
export const getNoticeChannelList = () => {
return http2.get('/api/v1/admin/notice_message/channel/list')
}
/** 修改通知渠道配置 */
export const updateNoticeChannel = (data) => {
return http2.post('/api/v1/admin/notice_message/channel/update', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
// ========== 通知模板管理 ==========
/** 获取全部通知模板列表(无分页) */
export const getNoticeTemplateList = () => {
return http2.get('/api/v1/admin/notice_message/template/list')
}
/** 添加通知模板 */
export const addNoticeTemplate = (data) => {
return http2.post('/api/v1/admin/notice_message/template/add', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
/** 修改通知模板 */
export const updateNoticeTemplate = (data) => {
return http2.post('/api/v1/admin/notice_message/template/update', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
/** 删除通知模板 */
export const deleteNoticeTemplate = (params) => {
return http2.delete('/api/v1/admin/notice_message/template/delete', { params })
}
/** 使用默认参数预览渲染模板 */
export const previewNoticeTemplate = (data) => {
return http2.post('/api/v1/admin/notice_message/template/default_msg', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}