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