马宇豪
2023-06-14 d2d8982a787bf7267612c19983798d7aaa0c37fe
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//将拦截器整体导入
import request from '@/util/request'//导入已经写好的拦截器
 
// 我收到的
export function getMsgRecord(data){
    return request({
        url: '/published/warninfo/receive/Page',
        method: 'post',
        data: data
    })
}
 
// 叫应
export function responseMsg(id){
    return request({
        url: '/published/warninfo/responseById?id=' + id,
        method: 'get'
    })
}
 
 
export function readById(id){
    return request({
        url: '/published/warninfo/readById?id=' + id,
        method: 'get'
    })
}
 
// 我发出的
export function getPublishRecord(data){
    return request({
        url: '/published/warninfo/publish/Page',
        method: 'post',
        data: data
    })
}
 
// 历史信息
export function getHistoryRecord(data){
    return request({
        url: '/published/warninfo/history/publish',
        method: 'post',
        data: data
    })
}
 
// 历史叫应信息
export function getResponseRecord(data){
    return request({
        url: '/published/warninfo/history/response',
        method: 'post',
        data: data
    })
}
 
// 根据id获取叫应信息
export function getResponseById(data){
    return request({
        url: '/published/warninfo/responses/page',
        method: 'post',
        data: data
    })
}