web
2025-04-07 235a4425195251d0beec8e902746a5313d6f072d
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
/*
 * @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\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
            });
        },
    };
}