mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
16 lines
662 B
TypeScript
16 lines
662 B
TypeScript
import { request } from '@/utils/request'
|
|
|
|
export const promptApi = {
|
|
getList: (pageNum: any, pageSize: any, type: any, params: any) =>
|
|
request.get(`/system/custom_prompt/${type}/page/${pageNum}/${pageSize}${params}`),
|
|
updateEmbedded: (data: any) => request.put(`/system/custom_prompt`, data),
|
|
deleteEmbedded: (params: any) => request.delete('/system/custom_prompt', { data: params }),
|
|
getOne: (id: any) => request.get(`/system/custom_prompt/${id}`),
|
|
export2Excel: (type: any, params: any) =>
|
|
request.get(`/system/custom_prompt/${type}/export`, {
|
|
params,
|
|
responseType: 'blob',
|
|
requestOptions: { customError: true },
|
|
}),
|
|
}
|