mirror of
https://gitee.com/beecue/fastbee.git
synced 2026-02-06 00:55:57 +08:00
1.优化代码
This commit is contained in:
@@ -59,13 +59,6 @@ export function getStreaminfo(deviceId, channelId) {
|
||||
})
|
||||
}
|
||||
|
||||
export function playback(deviceId, channelId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playback/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function closeStream(deviceId, channelId, streamId){
|
||||
return request({
|
||||
@@ -74,32 +67,3 @@ export function closeStream(deviceId, channelId, streamId){
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackPause(deviceId, channelId, streamId) {
|
||||
return request({
|
||||
url: '/sip/player/playbackPause/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackReplay(deviceId, channelId, streamId) {
|
||||
return request({
|
||||
url: '/sip/player/playbackReplay/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackSeek(deviceId, channelId, streamId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playbackSeek/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackSpeed(deviceId, channelId, streamId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playbackSpeed/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getDevRecord(deviceId,channelId,query) {
|
||||
return request({
|
||||
url: '/sip/record/devquery/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getRecord(channelId,sn) {
|
||||
return request({
|
||||
url: '/sip/record/query/' + channelId + "/" + sn,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecord(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByDate(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/date/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByStream(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/stream/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByApp(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/app/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByFile(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/file/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByDevice(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function startPlayRecord(deviceId, channelId) {
|
||||
return request({
|
||||
url: '/sip/record/play/' + deviceId + "/" + channelId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function startDownloadRecord(deviceId, channelId, query) {
|
||||
return request({
|
||||
url: '/sip/record/download/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function uploadRecord(query) {
|
||||
return request({
|
||||
url: '/sip/record/upload',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user