zhangfei
2025-06-03 14c90f4513a26dbc30960121c57a3cdf60996aa3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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}})
}