【新增】专业-课程-题型管理

This commit is contained in:
任维炳
2025-04-21 15:30:57 +08:00
committed by 陆光LG
parent 071b43854c
commit 7eb2a0e524
3 changed files with 380 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
import request from '@/config/axios'
export interface SpecialtyVO {
id?: number
name: string
parentId: number
status: number
sort: number
leaderUserId: number
phone: string
email: string
createTime: Date
}
// 查询部门(精简)列表
export const getSimpleSpecialtyist = async (): Promise<SpecialtyVO[]> => {
return await request.get({ url: '/exam/specialty/simple-list' })
}
// 查询部门列表
export const getSpecialtyPage = async (params: PageParam) => {
return await request.get({ url: '/exam/specialty/list', params })
}
// 查询部门详情
export const getSpecialty = async (id: number) => {
return await request.get({ url: '/exam/specialty/' + id })
}
// 新增部门
export const createSpecialty = async (data: any) => {
return await request.post({ url: '/exam/specialty', data: data })
}
// 修改部门
export const updateSpecialty = async (params: any) => {
return await request.put({ url: '/exam/specialty', data: params })
}
// 删除部门
export const deleteSpecialty = async (id: number) => {
return await request.delete({ url: '/exam/specialty/' + id })
}