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
| /*
| * @Author: elkers
| * @Date: 2024-08-09 14:29:49
| * @LastEditors: hqs elkers@163.com
| * @LastEditTime: 2024-08-14 09:33:32
| * @FilePath: \water-qinghe-web\src\api\facility\facilityType.js
| * @Description: 设备类型api
| */
| import { publicRequest } from '@/utils/request'
| export default function facilityTypeApi() {
| return {
| create: (data) => {
| return publicRequest({
| url: '/waterFacilityType/create',
| method: 'post',
| data
| });
| },
| modify: (data) => {
| return publicRequest({
| url: '/waterFacilityType/modify',
| method: 'post',
| data
| });
| },
| remove: (id) => {
| return publicRequest({
| url: `/waterFacilityType/remove?id=${id}`,
| method: 'post'
| });
| },
| stop: (id) => {
| return publicRequest({
| url: `/waterFacilityType/stop?id=${id}`,
| method: 'post'
| });
| },
| enable: (id) => {
| return publicRequest({
| url: `/waterFacilityType/enable?id=${id}`,
| method: 'post'
| });
| },
| search: (data) => {
| return publicRequest({
| url: '/waterFacilityType/search',
| method: 'post',
| data
| });
| },
| getList: (data) => {
| return publicRequest({
| url: `/waterFacilityType/getList`,
| method: 'get',
| data
| });
| },
| };
| }
|
|