门店管理,销售管理的代码框架开发
This commit is contained in:
82
src/api/video.js
Normal file
82
src/api/video.js
Normal file
@@ -0,0 +1,82 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 分页查询视频列表
|
||||
export function getVideoList(params) {
|
||||
return request({
|
||||
url: '/videoManagement/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current: params.current || 1,
|
||||
size: params.size || 10,
|
||||
videoName: params.videoName,
|
||||
customerPhone: params.customerPhone,
|
||||
dealershipId: params.dealershipId,
|
||||
salesId: params.salesId,
|
||||
customerName: params.customerName,
|
||||
minDuration: params.minDuration,
|
||||
maxDuration: params.maxDuration,
|
||||
recordingTimeStart: params.recordingTimeStart,
|
||||
recordingTimeEnd: params.recordingTimeEnd
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据客户手机号查询视频信息
|
||||
export function getVideoByCustomerPhone(customerPhone) {
|
||||
return request({
|
||||
url: '/videoManagement/getByCustomerPhone',
|
||||
method: 'get',
|
||||
params: { customerPhone }
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询视频
|
||||
export function getVideoById(id) {
|
||||
return request({
|
||||
url: `/videoManagement/get/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除视频
|
||||
export function deleteVideo(id) {
|
||||
return request({
|
||||
url: `/videoManagement/delete/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 批量删除视频
|
||||
export function batchDeleteVideo(ids) {
|
||||
return request({
|
||||
url: '/videoManagement/batchDelete',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
// 添加新的视频信息
|
||||
export function addVideo(data) {
|
||||
return request({
|
||||
url: '/videoManagement/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新视频信息
|
||||
export function updateVideo(data) {
|
||||
return request({
|
||||
url: '/videoManagement/update',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取视频统计信息
|
||||
export function getVideoStatistics() {
|
||||
return request({
|
||||
url: '/videoManagement/statistics',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user