mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 02:25:06 +08:00
mp:梳理 message 的前端和后端代码
This commit is contained in:
27
yudao-ui-admin/src/api/mp/message.js
Normal file
27
yudao-ui-admin/src/api/mp/message.js
Normal file
@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建粉丝消息表
|
||||
export function createMessage(data) {
|
||||
return request({
|
||||
url: '/mp/message/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝消息表
|
||||
export function getMessage(id) {
|
||||
return request({
|
||||
url: '/mp/message/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝消息表 分页
|
||||
export function getMessagePage(query) {
|
||||
return request({
|
||||
url: '/mp/message/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建粉丝消息表
|
||||
export function createWxFansMsg(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新粉丝消息表
|
||||
export function updateWxFansMsg(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除粉丝消息表
|
||||
export function deleteWxFansMsg(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝消息表
|
||||
export function getWxFansMsg(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝消息表 分页
|
||||
export function getWxFansMsgPage(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出粉丝消息表 Excel
|
||||
export function exportWxFansMsgExcel(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-fans-msg/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user