AI生成话术
This commit is contained in:
@@ -52,23 +52,6 @@ export function delProductSalesScript(scriptId) {
|
||||
})
|
||||
}
|
||||
|
||||
// // 记录话术访问频率
|
||||
// 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({
|
||||
@@ -76,3 +59,18 @@ export function getProductRanking() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据产品生成话术
|
||||
* @param {*} data.productId 产品id
|
||||
* @param {*} data.scriptCount 生成话术数量
|
||||
* @returns
|
||||
*/
|
||||
export function generateForProduct(data) {
|
||||
return request({
|
||||
url: '/wms/salesScriptGenerator/generateForProduct',
|
||||
method: 'post',
|
||||
data,
|
||||
timeout: 1000000
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user