70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询产品销售话术列表
|
|
export function listProductSalesScript(query) {
|
|
return request({
|
|
url: '/klp/productSalesScript/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询产品销售话术详细
|
|
export function getProductSalesScript(scriptId) {
|
|
return request({
|
|
url: '/klp/productSalesScript/' + scriptId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增产品销售话术
|
|
export function addProductSalesScript(data) {
|
|
return request({
|
|
url: '/klp/productSalesScript',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改产品销售话术
|
|
export function updateProductSalesScript(data) {
|
|
return request({
|
|
url: '/klp/productSalesScript',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除产品销售话术
|
|
export function delProductSalesScript(scriptId) {
|
|
return request({
|
|
url: '/klp/productSalesScript/' + scriptId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// // 记录话术访问频率
|
|
// export function recordVisit(productId) {
|
|
// return request({
|
|
// url: '/klp/productSalesScript/recordVisit/' + productId,
|
|
// method: 'post'
|
|
// })
|
|
// }
|
|
|
|
// // 获取热门产品排行
|
|
// export function getHotProducts(limit = 10) {
|
|
// return request({
|
|
// url: '/klp/productSalesScript/hotProducts',
|
|
// method: 'get',
|
|
// params: { limit }
|
|
// })
|
|
// }
|
|
|
|
// 获取产品咨询热度排行
|
|
export function getProductRanking() {
|
|
return request({
|
|
url: '/klp/productSalesScript/dashboard/ranking',
|
|
method: 'get'
|
|
})
|
|
}
|