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

const request = (url, ...arg) => baseRequest(`/api/webapp/` + url, ...arg)

export default {
	pageList: (query) => request('/api/admin/task/page', query, 'post'),
	edit: (query) => request('/api/admin/task/edit', query, 'post'),
	select: (id) => request('/api/admin/task/select/' + id, '', 'post'),
	deleteTask: (id) => v('/api/admin/task/delete/' + id, '', 'post')
}
