xiangpei
2024-05-30 1aec2bdf5d71df8e120b3ead4b104fb3438f4713
src/api/subject.js
@@ -1,9 +1,10 @@
import { post } from '@/utils/request'
import { post, get } from '@/utils/request'
export default {
  list: query => post('/api/admin/education/subject/list'),
  pageList: query => post('/api/admin/education/subject/page', query),
  edit: query => post('/api/admin/education/subject/edit', query),
  select: id => post('/api/admin/education/subject/select/' + id),
  selectByDeptId: deptId => get('/api/admin/education/subject/select/dept/' + deptId),
  deleteSubject: id => post('/api/admin/education/subject/delete/' + id)
}