web
2025-06-20 9bb6d0b9d8078a0311d16a1faefef9c2330f4d29
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
/*
 * @Author: elkers
 * @Date: 2024-08-09 14:29:49
 * @LastEditors: web candymxq888@outlook.com
 * @LastEditTime: 2025-06-20 14:01:16
 * @FilePath: \water-qinghe-web\src\api\facility\point.js
 * @Description: 监控点api
 */
import { publicRequest } from '@/utils/request'
export default function pointApi() {
    return {
        create: (data) => {
            return publicRequest({
                url: '/waterMonitoryPoint/create',
                method: 'post',
                data
            });
        },
        modify: (data) => {
            return publicRequest({
                url: '/waterMonitoryPoint/modify',
                method: 'post',
                data
            });
        },
        remove: (id) => {
            return publicRequest({
                url: `/waterMonitoryPoint/remove?id=${id}`,
                method: 'post'
            });
        },
        search: (data) => {
            return publicRequest({
                url: '/waterMonitoryPoint/search',
                method: 'post',
                data
            });
        },
        getParentPoint: () => {
            return publicRequest({
                url: 'waterMonitoryPoint/getListTree',
                method: 'get',
            })
        }
    };
}