# 添加设备、日志统计api
This commit is contained in:
parent
87d04a0568
commit
21796fb5fe
|
@ -1,5 +1,6 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// device list api
|
||||
export function fetchDeviceList(query) {
|
||||
return request({
|
||||
url: '/api/counter/device/',
|
||||
|
@ -8,6 +9,7 @@ export function fetchDeviceList(query) {
|
|||
})
|
||||
}
|
||||
|
||||
// device log api
|
||||
export function fetchDeviceLogs(query) {
|
||||
return request({
|
||||
url: '/api/counter/logs/',
|
||||
|
@ -15,3 +17,21 @@ export function fetchDeviceLogs(query) {
|
|||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// device info statistic api
|
||||
export function fetchDeviceInfoStatistic(query) {
|
||||
return request({
|
||||
url: '/api/counter/device/statistic/',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// device log statistic api
|
||||
export function fetchDeviceLogStatistic(query) {
|
||||
return request({
|
||||
url: '/api/counter/logs/statistic/',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue