web
2025-03-20 200737d7c5fee9de223a92bd1a4aaeb05733a27f
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
/*
 * @Author: Liuyi candymxq888@outlook.com
 * @Date: 2024-08-13 15:42:27
 * @LastEditors: Liuyi candymxq888@outlook.com
 * @LastEditTime: 2024-08-13 15:45:58
 * @FilePath: \water-qinghe-web\src\api\configuration\companySetting\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
 
import { publicRequest } from '@/utils/request.js'
 
//配置信息
export default function waterFacilityParameter() {
    return {
        create: (data) => {
            return publicRequest({
                url: '/waterFacilityParameter/create',
                method: 'post',
                data,
            });
        },
        remove: (id) => {
            return publicRequest({
                url: `/waterFacilityParameter/remove?id=${id}`,
                method: 'post',
            });
        },
        modify: (data) => {
            return publicRequest({
                url: '/waterFacilityParameter/modify',
                method: 'post',
                data,
            });
        },
        search: (data) => {
            return publicRequest({
                url: '/waterFacilityParameter/search',
                method: 'post',
                data,
            });
        },
        getParam: (id) => {
            return publicRequest({
                url: `waterFacilityParameter/getListByFacilityId?facilityId=${id}`,
                method: 'get',
            });
        },
    };
}