import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/webapp/` + url, ...arg)
export default {
	list: () => request('api/admin/education/subject/list', {}, 'post'),
	pageList: (query) => request('api/admin/education/subject/page', query, 'post'),
	edit: (query) => request('api/admin/education/subject/edit', query, 'post'),
	select: (id) => request('api/admin/education/subject/select/' + id, '', 'post'),
	deleteSubject: (id) => request('api/admin/education/subject/delete/' + id, '', 'post')
}
