fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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()