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
50
51
52
53
54
| /*
| * @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',
| });
| },
| };
| }
|
|