【新增】 word考点数关系列表,文件上传仅限图片更改成所有文件
This commit is contained in:
42
src/api/wps/word/index.ts
Normal file
42
src/api/wps/word/index.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
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 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 })
|
||||
}
|
Reference in New Issue
Block a user