You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
994 B
54 lines
994 B
|
1 month ago
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
export function listTimelineSegments(query) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline/list',
|
||
|
|
method: 'get',
|
||
|
|
params: query
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getTimelineSegmentsByRoomId(roomId) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline/listByRoomId/' + roomId,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getTimelineSegment(id) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline/' + id,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function addTimelineSegment(data) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateTimelineSegment(data) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline',
|
||
|
|
method: 'put',
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function delTimelineSegment(id) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline/' + id,
|
||
|
|
method: 'delete'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function delTimelineSegmentsByRoomId(roomId) {
|
||
|
|
return request({
|
||
|
|
url: '/system/timeline/room/' + roomId,
|
||
|
|
method: 'delete'
|
||
|
|
})
|
||
|
|
}
|