2025-05-14 17:23:36 +08:00
|
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
|
|
export interface PptxVO {
|
|
|
|
|
id?: number
|
|
|
|
|
parentId: number
|
|
|
|
|
status: number
|
|
|
|
|
sort: number
|
|
|
|
|
createTime: Date
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询Pptx节点(精简)列表
|
|
|
|
|
export const getSimplePptxList = async (): Promise<PptxVO[]> => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.get({ url: '/exam/pptx/simple-list' })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询Pptx节点列表
|
|
|
|
|
export const getPptxPage = async (params: PageParam) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.get({ url: '/exam/pptx/list', params })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询Pptx节点详情
|
|
|
|
|
export const getPptx = async (id: number) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.get({ url: '/exam/pptx/get?id=' + id })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增Pptx节点
|
|
|
|
|
export const createPptx = async (data: PptxVO) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.post({ url: '/exam/pptx/create', data: data })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改Pptx节点
|
|
|
|
|
export const updatePptx = async (params: PptxVO) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.put({ url: '/exam/pptx/update', data: params })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除Pptx节点
|
|
|
|
|
export const deletePptx = async (id: number) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.delete({ url: '/exam/pptx/delete?id=' + id })
|
2025-05-14 17:23:36 +08:00
|
|
|
|
}
|
2025-06-23 14:24:37 +08:00
|
|
|
|
// // 获取Word考点(大类)
|
2025-05-29 15:39:50 +08:00
|
|
|
|
export const getPptxInfo = async (path: String) => {
|
|
|
|
|
return await request.get({ url: '/tool/wps/runWpsPptx?path=' + path })
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-23 14:24:37 +08:00
|
|
|
|
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
|
|
|
|
|
export const getPptxInfos = async (title: string) => {
|
|
|
|
|
console.log(title)
|
|
|
|
|
return await request.get({ url: '/exam/pptx/getByNameList?title=' + title })
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
2025-06-23 14:24:37 +08:00
|
|
|
|
// // 获取Pptx考点()
|
2025-05-29 15:39:50 +08:00
|
|
|
|
export const getPptxListInfos = async (data: any) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return await request.post({ url: '/tool/wps/runTestpptx' , data })
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|