Files
pengcheng-exam-teacher/src/api/wps/word/index.ts
2025-08-13 09:02:56 +08:00

62 lines
1.7 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 WordVO {
id?: number
parentId: number
status: number
sort: number
createTime: Date
}
// 查询Docx节点精简)列表
export const getSimpleWordList = async (): Promise<WordVO[]> => {
return await request.get({ url: '/exam/docx/simple-list' })
}
// 查询Docx节点列表
export const getWordPage = async (params: PageParam) => {
return await request.get({ url: '/exam/docx/list', params })
}
// 查询Docx节点详情
export const getWord = async (id: number) => {
return await request.get({ url: '/exam/docx/get?id=' + id })
}
// 新增Docx节点
export const createWord = async (data: WordVO) => {
return await request.post({ url: '/exam/docx/create', data: data })
}
// 修改Docx节点
export const updateWord = async (params: WordVO) => {
return await request.put({ url: '/exam/docx/update', data: params })
}
// 删除Docx节点
export const deleteWord = async (id: number) => {
return await request.delete({ url: '/exam/docx/delete?id=' + id })
}
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
export const getDocxByNameList = async (title: string) => {
console.log(title)
return await request.get({ url: '/exam/docx/getByNameList?title=' + title })
}
// 2025-07-04 word统一获取考点
export const getWordMaster = async (path: String) => {
return await request.get({ url: '/auto/wps/docxMaster?path=' + path })
}
// 上传文件
export const getWordDataInfo = (data: any) => {
return request.upload({ url: '/auto/wps/docxDataInfo', data })
}
export const getdocxMaster = (data: any) => {
return request.upload({ url: '/auto/wps/docxMaster', data })
}