44 lines
977 B
TypeScript
44 lines
977 B
TypeScript
|
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 },
|
||
|
})
|
||
|
}
|