xiangpei
2024-12-03 8c3eaeddeff2c9c5a92352e6bf830e5000ff5882
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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),
  page: query => post('/api/admin/education/subject/page1', query),
  edit: data => post('/api/admin/education/subject/edit', data),
  update: data => post('/api/admin/education/subject/edit1', data),
  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),
  add: data => post('/api/admin/education/subject/add', data),
  save: data => post('/api/admin/education/subject/save', data)
}