import{L as r}from"./index.bba5ce79.js";function c(){return r({url:"/traffic-light/intersections/list",method:"get"})}function i(e){return r({url:"/traffic-light/intersections/search",method:"get",params:e})}function s(e){return r({url:`/traffic-light/intersections/${e}`,method:"get"}).then(t=>(console.log("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u6210\u529F:",t),t)).catch(t=>{throw console.error("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25:",t),t})}function a(e){return r({url:"/traffic-light/intersections",method:"post",data:e}).then(t=>(console.log("\u65B0\u589E\u8DEF\u53E3\u6210\u529F:",t),t)).catch(t=>{throw console.error("\u65B0\u589E\u8DEF\u53E3\u5931\u8D25:",t),t})}function l(e,t){return r({url:`/traffic-light/intersections/${e}`,method:"put",data:t}).then(n=>(console.log("\u4FEE\u6539\u8DEF\u53E3\u6210\u529F:",n),n)).catch(n=>{throw console.error("\u4FEE\u6539\u8DEF\u53E3\u5931\u8D25:",n),n})}export{s as a,a as b,i as g,c as l,l as u};
