import service from '../service'
|
const serviceUrl = '/awl-basecommon-service'
|
// 消息推送api
|
export class MessagePushApi {
|
/**
|
* 获取活动列表
|
*/
|
getList= (params, showLoading = true) => {
|
return service.get(`${serviceUrl}/msgSite/findComMsgRecordByPage`, { params, showLoading })
|
}
|
|
/**
|
*新增
|
*/
|
addItem= (params, showLoading = true) => {
|
return service.post(`${serviceUrl}/msgSite/addMsgSite`, params, showLoading)
|
}
|
|
/**
|
*编辑
|
*/
|
editItem= (params, showLoading = true) => {
|
return service.post(`${serviceUrl}/msgSite/updateMessageInfo`, params, showLoading)
|
}
|
|
/**
|
*获取详情
|
* @param {*} params
|
* @param {*} showLoading
|
*/
|
detailsInfo = (params, showLoading = true) => {
|
return service.get(`${serviceUrl}/msgSite/findComMsgInfoyId`, { params, showLoading })
|
}
|
|
/**
|
*停止推送
|
*/
|
stopPush= (params, showLoading = true) => {
|
return service.get(`${serviceUrl}/msgSite/stopSendMessage?id=${params.id}`, { showLoading })
|
}
|
}
|
export default new MessagePushApi()
|