group.ts
825 Bytes
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
import axios from "axios";
import qs from "qs";
/**
* 设备分组对象
*/
export interface DeviceGroupEntity {
//编号
id: number;
//父编号
parentId:number;
//分类名称
categoryName: string;
//逻辑代码
logicCode: string;
//状态
status: string;
//备注
remark:string;
}
/**
* 用户查询对象
*/
export interface DeviceGroupParams extends Partial<DeviceGroupEntity> {
current: number;
pageSize: number;
}
/**
* 用户分页对象
*/
export interface DeviceGroupListPage {
list: DeviceGroupEntity[];
total: number;
}
//获取用户列表
export function queryDeviceGroupList(params: DeviceGroupParams): any {
return axios.get<DeviceGroupListPage>("/manage/device/group/", {
params,
paramsSerializer: (obj) => {
return qs.stringify(obj);
},
});
}