Files
pengchen-exam-vue/src/api/wps/word/index.ts
2025-07-08 14:42:32 +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
nodeName: string
parentId: number
status: number
sort: number
toChinese: string
nodeFunction: string
createTime: Date
}
// 查询Word节点精简)列表
export const getSimpleWordList = async (): Promise<WordVO[]> => {
return await request.get({ url: '/wps/word/simple-list' })
}
// 查询Word节点列表(小类)
export const getWordInfos = async (params: any) => {
return await request.get({ url: '/wps/word/listInfo', params })
}
// 查询Word节点列表
export const getWordPage = async (params: PageParam) => {
return await request.get({ url: '/wps/word/list', params })
}
// 查询Word节点详情
export const getWord = async (id: number) => {
return await request.get({ url: '/wps/word/get?id=' + id })
}
// 新增Word节点
export const createWord = async (data: WordVO) => {
return await request.post({ url: '/wps/word/create', data: data })
}
// 修改Word节点
export const updateWord = async (params: WordVO) => {
return await request.put({ url: '/wps/word/update', data: params })
}
// 删除Word节点
export const deleteWord = async (id: number) => {
return await request.delete({ url: '/wps/word/delete?id=' + id })
}
// 获取Word考点大类
export const getWordInfo = async (path: String) => {
return await request.get({ url: '/tool/wps/runWpsWord?path=' + path })
}
// 获取Word考点
export const getWordListInfos = async (data: any) => {
return await request.post({ url: '/tool/wps/runWpsWordInfo' , data })
}
// 2025-07-04 word统一获取考点
export const getDocxMaster = async (path: String) => {
return await request.get({ url: '/tool/wps/docxMaster?path=' + path })
}