init
This commit is contained in:
44
src/api/cai/sysPush.js
Normal file
44
src/api/cai/sysPush.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询推送系统消息列表
|
||||
export function listSysPush(query) {
|
||||
return request({
|
||||
url: '/cai/sysPush/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询推送系统消息详细
|
||||
export function getSysPush(id) {
|
||||
return request({
|
||||
url: '/cai/sysPush/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增推送系统消息
|
||||
export function addSysPush(data) {
|
||||
return request({
|
||||
url: '/cai/sysPush',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改推送系统消息
|
||||
export function updateSysPush(data) {
|
||||
return request({
|
||||
url: '/cai/sysPush',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除推送系统消息
|
||||
export function delSysPush(id) {
|
||||
return request({
|
||||
url: '/cai/sysPush/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
src/api/cai/sysPushLog.js
Normal file
44
src/api/cai/sysPushLog.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询推送系统消息记录列表
|
||||
export function listSysPushLog(query) {
|
||||
return request({
|
||||
url: '/cai/sysPushLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询推送系统消息记录详细
|
||||
export function getSysPushLog(id) {
|
||||
return request({
|
||||
url: '/cai/sysPushLog/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增推送系统消息记录
|
||||
export function addSysPushLog(data) {
|
||||
return request({
|
||||
url: '/cai/sysPushLog',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改推送系统消息记录
|
||||
export function updateSysPushLog(data) {
|
||||
return request({
|
||||
url: '/cai/sysPushLog',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除推送系统消息记录
|
||||
export function delSysPushLog(id) {
|
||||
return request({
|
||||
url: '/cai/sysPushLog/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user