/* * @Author: Liuyi candymxq888@outlook.com * @Date: 2024-08-13 17:47:53 * @LastEditors: Liuyi candymxq888@outlook.com * @LastEditTime: 2024-08-16 14:26:39 * @FilePath: \water-qinghe-web\src\api\workOrderManage\waterMeterStopAccountApi\index.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import {publicRequest} from '@/utils/request' export function waterMeterStopAccountApi() { return { //添加水表信息 create: (data) => { return publicRequest({ url: '/waterMeterStopAccount/create', method: 'post', data, }); }, //修改水表信息 modify: (data) => { return publicRequest({ url: '/waterMeterStopAccount/modify', method: 'post', data, }); }, //删除水表信息 remove: (data) => { return publicRequest({ url: `/waterMeterStopAccount/remove?id=${data}`, method: 'post', data, }); }, //停用水表信息 stop: (data) => { return publicRequest({ url: `/waterMeterStopAccount/stop?id=${data}`, method: 'post', data, }); }, //启用水表信息 enable: (data) => { return publicRequest({ url: `/waterMeterStopAccount/enable?id=${data}`, method: 'post', data, }); }, //分页查询水表信息 search: (data) => { return publicRequest({ url: '/waterMeterStopAccount/search', method: 'post', data, }); }, //获取水表信息 get: (data) => { return publicRequest({ url: `/waterMeterStopAccount/get?id=${data}`, method: 'get', data, }); }, //执行工单 execute: (id,state) => { return publicRequest({ url: `/waterMeterStopAccount/execute?id=${id}&state=${state}`, method: 'get', }); }, }; }