import{h as r}from"../../assets/index.856feaee.js";import{E as e}from"../element-plus/element-plus.34b51316.js";function s(s){return new Promise((async(t,a)=>{const n=await r.get("/api/ad/taskRecord",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}function t(s){return new Promise((async(t,a)=>{const n=await r.get("/api/ad/taskList",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}function a(s){return new Promise((async(t,a)=>{const n=await r.post("/api/ad/adTaskDel",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}function n(s){return new Promise((async(t,a)=>{const n=await r.post("/api/ad/adTaskEdit",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}function o(s){return new Promise((async(t,a)=>{const n=await r.get("/api/ad/taskDetail",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}function i(s){return new Promise((async(t,a)=>{const n=await r.get("/api/ad/getStrategyByTaskId",s);0==n.errNo?t(n.rst):(e.error(n.errMsg),a())}))}export{o as a,t as b,n as c,a as d,i as g,s as t};