Files
pengcheng-exam-teacher/src/api/wps/pptx/index.ts

55 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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[]> => {
return await request.get({ url: '/exam/pptx/simple-list' })
}
// 查询Pptx节点列表
export const getPptxPage = async (params: PageParam) => {
return await request.get({ url: '/exam/pptx/list', params })
}
// 查询Pptx节点详情
export const getPptx = async (id: number) => {
return await request.get({ url: '/exam/pptx/get?id=' + id })
}
// 新增Pptx节点
export const createPptx = async (data: PptxVO) => {
return await request.post({ url: '/exam/pptx/create', data: data })
}
// 修改Pptx节点
export const updatePptx = async (params: PptxVO) => {
return await request.put({ url: '/exam/pptx/update', data: params })
}
// 删除Pptx节点
export const deletePptx = async (id: number) => {
return await request.delete({ url: '/exam/pptx/delete?id=' + id })
}
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
export const getPptxByNameList = async (title: string) => {
console.log(title)
return await request.get({ url: '/exam/pptx/getByNameList?title=' + title })
}
// 上传文件
export const getSlideDataInfo = (data: any) => {
return request.upload({ url: '/auto/wps/slideDataInfo', data })
}
// 获取考点
export const getslideMaster = (data: any) => {
return request.upload({ url: '/auto/wps/slideMaster', data })
}