/* * @Author: Liuyi candymxq888@outlook.com * @Date: 2024-08-13 17:47:53 * @LastEditors: Liuyi candymxq888@outlook.com * @LastEditTime: 2024-08-16 15:15:11 * @FilePath: \water-qinghe-web\src\api\workOrderManage\waterMeterMaintainRecordsApi\index.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看é…ç½® 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE import { publicRequest } from '@/utils/request' */ import { publicRequest } from '@/utils/request' export function waterMeterMaintainRecordsApi() { return { //æ·»åŠ æ°´è¡¨ä¿¡æ¯ create: (data) => { return publicRequest({ url: '/waterMeterMaintainRecords/create', method: 'post', data, }); }, //ä¿®æ”¹æ°´è¡¨ä¿¡æ¯ modify: (data) => { return publicRequest({ url: '/waterMeterMaintainRecords/modify', method: 'post', data, }); }, //åˆ é™¤æ°´è¡¨ä¿¡æ¯ remove: (data) => { return publicRequest({ url: `/waterMeterMaintainRecords/remove?id=${data}`, method: 'post', data, }); }, //åˆ†é¡µæŸ¥è¯¢æ°´è¡¨ä¿¡æ¯ search: (data) => { return publicRequest({ url: '/waterMeterMaintainRecords/search', method: 'post', data, }); }, //èŽ·å–æ°´è¡¨ä¿¡æ¯ get: (id) => { return publicRequest({ url: `/waterMeterMaintainRecords/get?id=${id}`, method: 'get', }); }, }; }