UNPKG

@jdlinker/linker

Version:

jdLinker 系统模块

22 lines (21 loc) 687 B
// 仪表盘数据 import { defHttp } from '@jdlinker/func'; /** * 项目数量 */ export const productCount = (data?: any) => defHttp.post({ url: `/device/product/_count`, data }, { isTransformResponse: false }); /** * 设备数量 */ export const deviceCount = (params?: any) => defHttp.get({ url: '/device/instance/count', params }, { isTransformResponse: false }); /** * 当前在线 */ export const dashboard = (data?: any) => defHttp.post({ url: '/dashboard/_multi', data }, { isTransformResponse: false }); /** * 地图数据 */ export const getGo = (data?: any) => defHttp.post({ url: '/geo/object/device/_search/geo.json', data }, { isTransformResponse: false });