import Vue from 'vue';
|
|
const http = Vue.prototype.$u
|
|
// 对练记录列表
|
export function userlist(data) {
|
return http.get('/base/practice/user/list', data, {custom: {loading: true}});
|
}
|
|
// 查询剧本详细
|
export function getScript(id) {
|
return http.get('/base/script/' + id, {custom: {loading: true}});
|
}
|
|
// 查询剧本详细
|
export function getPractice(id) {
|
return http.get('/base/practice/user/' + id, {custom: {loading: true}});
|
}
|
|
// 设置大模型角色
|
export function setAiRole(data) {
|
return http.get('/base/practice/user/setAiRole/' + data.appId, data, {custom: {loading: true}});
|
}
|
|
// 获取对练剧本
|
export function getUserScript(id) {
|
return http.get('/base/practice/user/getUserScript/' + id);
|
}
|
|
// 获取用户回答评分
|
export function getDelRemark(data) {
|
return http.get('/base/practice/user/getDelRemark/' + data.appId, data, {custom: {loading: true}});
|
}
|
|
// 一问一答获取智能体语音
|
export function getAiContent(data) {
|
return http.post('/base/practice/user/getAiContent/' + data.appId, data, {
|
custom: {loading: true},
|
"Content-Type": "application/x-www-form-urlencoded",
|
});
|
}
|
|
// 实时对练获取智能体语音
|
export function getAiPhone(data) {
|
return http.post('/base/practice/user/getAiPhone/' + data.appId, data, {
|
custom: {loading: true},
|
"Content-Type": "application/x-www-form-urlencoded",
|
});
|
}
|
|
// 实时对练获取用户回答评分
|
export function getPhoneDelRemark(data) {
|
return http.get('/base/practice/user/getPhoneDelRemark/' + data.appId, data, {custom: {loading: true}});
|
}
|
// 保存用户对练记录
|
export function addTraining(data) {
|
return http.post('/base/practice/user/add', data, {custom: {loading: true}});
|
}
|
// 流程——获取提示内容——对练记录
|
export function getNextTips(data) {
|
return http.get('base/practice/user/getNextTips/' + data.appId, data, {custom: {loading: true}});
|
}
|
|
export function getFlowDelRemark(data) {
|
return http.get('base/practice/user/getFlowDelRemark/' + data.appId, data, {custom: {loading: true}});
|
}
|
export function getNextNodeId(data) {
|
return http.get('base/practice/user/getNextNode/' + data.appId, data, {custom: {loading: true}});
|
}
|
export function checkPracticeNum(data) {
|
return http.get('base/practice/user/checkPracticeNum/' + data.appId, data, {custom: {loading: true}});
|
}
|
export function getInfoUse() {
|
return http.get('getInfo/');
|
}
|
|
export function saveVoicePwd(data) {
|
return http.put(
|
'system/user/saveVoicePwd/',
|
data,{custom: {loading: true}})
|
}
|