import request from '@/utils/request' import constant from '@/constant' function pageList(formData){ return request.post(constant.serverUrl + "/base/rolePersonCheckOn/pageList", formData); } function create(){ return request.get(constant.serverUrl + "/base/rolePersonCheckOn/create"); } function edit(id){ return request.get(constant.serverUrl + "/base/rolePersonCheckOn/edit/" + id); } function editRole(id){ return request.get(constant.serverUrl + "/base/rolePersonCheckOn/editRole/" + id); } function add(formModel){ return request.post(constant.serverUrl + "/base/rolePersonCheckOn/add", formModel,{ headers: { "Content-Type": "application/json" } }); } function save(formModel){ return request.post(constant.serverUrl + "/base/rolePersonCheckOn/save", formModel,{ headers: { "Content-Type": "application/json" } }); } function remove(id){ return request.post(constant.serverUrl + "/base/rolePersonCheckOn/delete/" + id); } function batchRemove(idList){ return request.post(constant.serverUrl + "/base/rolePersonCheckOn/batchDelete",idList,{ headers: { "Content-Type": "application/json" } }); } export default { pageList,create,edit,add,save,remove,batchRemove,editRole }