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
import Vue from 'vue';
const http = Vue.prototype.$u
 
export function listitem(data) {
    return http.get('/base/app/my/list', data, { custom: { loading: true }});
}
 
export function getInfo(id) {
    return http.get('/base/app/'+id, { custom: { loading: true }});
}
 
export function loglist(data) {
    return http.get('/base/session/log/list',data, { custom: { loading: true }});
}
 
/**
 * @author shiguangpeng
 * @date 2024-10-20 22:52
 * @Description: 获取语音——大模型应用信息
 * @Method: 请求方法 GET
 * @param {Object} data  参数描述
 * @param {String} data.logId 参数描述
 */
export function getSoundBySessionLogId(id) {
    return http.get('/base/app/sound/'+id, { custom: { loading: false }});
}
/**
 * @author shiguangpeng
 * @date 2024-10-20 22:52
 * @Description: 语音文字--大模型应用信息
 * @Method: 请求方法 GET
 * @param {Object} data  参数描述
 * @param {String} data.logSound 参数描述
 */
export function getTxtBySound(data) {
    return http.get('/base/app/getTxtBySound',data, { custom: { loading: false }});
}
/**
 * @author shiguangpeng
 * @date 2024-10-20 22:52
 * @Description: 获取阿里一句话token
 * @Method: 请求方法 GET
 */
export function getAlToken(data) {
    return http.get('/tool/sse/getAlToken',data, { custom: { loading: false }});
}
 
export function chat(data) {
    return http.get('/base/app/chat', data, { custom: { loading: false }});
}
export function addSessionLog(data) {
    return http.post('/base/session/log/add', data, { custom: { loading: false }});
}
// 验证问答权限
export function checkAppScope(data) {
    return http.get('/base/app/checkAppScope', data, { custom: { loading: false }});
}