import request from '/@/utils/request';

export function warningSetApi() {
    return {

        //预警设置查询
        getWarnSetPage: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasThreshold/list`,
                method: 'post',
                data: data
            });
        },

        //预警设置修改
        handelWarnSet: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasThreshold/update`,
                method: 'post',
                data: data
            });
        },
    };
}