import{b as d}from"./system.1703796278973.js";import{B as t,L as o,T as c}from"./comm.1703796278973.js";const p={list:(e,a)=>d.post(`/media/device/${a}/channel/_query`,e),detail:e=>d.get(`/media/channel/${e}`),validateField:e=>d.get("/media/channel/channelId/_validate",e),save:e=>d.post("/media/channel",e),update:(e,a)=>d.put(`/media/channel/${e}`,a),del:e=>d.remove(`/media/channel/${e}`),queryTree:(e,a)=>d.post(`/media/device/${e}/catalog/_query/tree`,a),ptzStart:(e,a,r)=>`${t}/media/device/${e}/${a}/live.${r}?:X_Access_Token=${o.get(c)}`,ptzStop:(e,a)=>d.post(`/media/device/${e}/${a}/_ptz/STOP`),ptzTool:(e,a,r,i=90)=>d.post(`/media/device/${e}/${a}/_ptz/${r}/${i}`),mediaStop:(e,a)=>d.post(`/media/device/${e}/${a}/_stop`),ptzIsRecord:(e,a)=>d.get(`/media/device/${e}/${a}/live/recording`),recordStart:(e,a,r)=>d.post(`/media/device/${e}/${a}/_record`,r),recordStop:(e,a,r)=>d.post(`/media/device/${e}/${a}/_stop-record`,r),queryRecordLocal:(e,a,r)=>d.post(`/media/device/${e}/${a}/records/in-local`,r),playbackLocal:(e,a,r)=>d.get(`/media/device/${e}/${a}/playback.${r}`),playbackControl:(e,a)=>d.post(`/media/device/${e}/${a}/stream-control`),recordsInServer:(e,a)=>d.post(`/media/device/${e}/${a}/records/in-server`),recordsInServerFiles:(e,a)=>d.post(`/media/device/${e}/${a}/records/in-server/files`),playbackStart:e=>d.get(`/media/record/${e}.mp4`)};export{p as c};
