mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 11:25:07 +08:00
主子表:暂时存储,准备重构
This commit is contained in:
35
src/api/infra/demo02/index.ts
Normal file
35
src/api/infra/demo02/index.ts
Normal file
@ -0,0 +1,35 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface DemoStudentVO {
|
||||
id: number
|
||||
}
|
||||
|
||||
// 查询学生列表
|
||||
export const getDemoStudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo-student/page`, params })
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemoStudent = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo-student/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemoStudent = async (data: DemoStudentVO) => {
|
||||
return await request.post({ url: `/infra/demo-student/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemoStudent = async (data: DemoStudentVO) => {
|
||||
return await request.put({ url: `/infra/demo-student/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemoStudent = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo-student/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemoStudent = async (params) => {
|
||||
return await request.download({ url: `/infra/demo-student/export-excel`, params })
|
||||
}
|
Reference in New Issue
Block a user