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 }}); }