mark
2022-10-25 f20a554bdb24e9dfde9dc6a69d78595944f61d15
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import request from "@/scripts/httpRequest";
import qs from "qs";
 
/**
 * 事件推送保存
 */
export const eventPushsSave = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/save",
    method: "post",
    data: query
  });
};
 
 
/**
 * 根据事件推送主题的一级和二级选项获取最后下拉菜单列表
 */
export const findByEventTopic = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/findByEventTopic",
    method: "get",
    params: query
  });
};
 
/**
 * 查询事件列表
 */
export const findAll = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/findAll",
    method: "get",
    params: query
  });
};
 
/**
 * 改变enable状态
 */
export const changeStatus = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/changeStatus",
    method: "post",
    data: query
  });
};
 
 
/**
 * 根据事件id获取事件详情
 */
export const getById = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/getById",
    method: "get",
    params: query
  });
};
 
/**
 * 根据id删除
 */
export const deleteByid = (query: any) => {
  return request({
    url: "/data/api-v/eventPush/delete",
    method: "post",
    data: qs.stringify(query)
  });
};
 
//获取事件声音列表
export const getSoundList = () => {
  return request({
    url: "/saas/api-s/voice/findAll",
    method: "get"
 
  })
}
 
 
export const uploadSound = (data: any) => {
  return request({
    url: "/data/api-v/voice/upload",
    method: "post",
    data
  })
}
 
 
//获取所有的推送字段配置
export const getPushSet = ()=>{
  return request({
    url:'/data/api-v/eventPush/getPushSet',
    method:'get'
  })
}
 
export const deleteSound = (q:any) => {
  return request({
    url: "/data/api-v/voice/del",
    method: "get",
    params:q
  })
}