ai-manus/chat-client/src/api/prologue.ts

44 lines
977 B
TypeScript
Raw Normal View History

2025-07-23 17:41:28 +08:00
import request from '@/utils/request'
export function getRemark(chatType: string) {
return request({
url: '/brichat-service/prologue/getRemark',
method: 'get',
params: { chatType },
})
}
export function saveRemark(data: any) {
return request({
url: '/brichat-service/prologue/saveRemark',
method: 'post',
data,
})
}
// 获取指定 chatType 下的推荐问题列表
export function getRecommendations(chatType: string) {
return request({
url: '/brichat-service/prologue/getRecommendations',
method: 'get',
params: { chatType },
})
}
// 编辑推荐问题
export function eidtRecommendation(data: any) {
return request({
url: '/brichat-service/prologue/eidtRecommendation',
method: 'post',
data,
})
}
// 删除指定的推荐问题
export function deleteRecommendation(id: string) {
return request({
url: '/brichat-service/prologue/deleteRecommendation',
method: 'delete',
params: { id },
})
}