| 12 |
- import"./dayjs-919e6097.js";import{bg as u,bh as d}from"./index-a8341fa1.js";const g=(e=!1)=>e?`gb_${new Date().getTime()}/`:"",r=u({requestOptions:{apiUrl:()=>d("gb28181"),isDeconstructionData:!1}});function p(e){return r.get({url:"/list",params:e})}function i(e){return r.get({url:`/devices/${e}/sync`})}function M({id:e,name:t,channelId:a}){return r.post({url:`/channel/update/${e}`,data:{name:t,channelId:a}})}function f(e){return r.post({url:"/device/update",data:e})}function m(e){return r.post({url:`/device/remove/${e}`})}function h(e){return r.get({url:`/ptz/${e.deviceId}/${e.channelId}`,params:{ptzcmd:e.ptzcmd}},{errorMessageMode:"message"})}function $(e){return r.get({url:`/records/${e.deviceId}/${e.channelId}`,params:{start:e.start,end:e.end}},{errorMessageMode:"message"})}function v(e){return r.get({url:`/groups/${e}`},{errorMessageMode:"message"})}function b({name:e,pid:t}){return r.post({url:"/groups/add",data:{pid:t,name:e}},{errorMessageMode:"message"})}function P({name:e,pid:t,id:a}){return r.post({url:"/groups/update",data:{pid:t,name:e,id:a}},{errorMessageMode:"message"})}function C(e){return r.post({url:`/groups/delete/${e}`})}function D(e,t){return r.get({url:`/groups/${e}/channels`,params:t},{errorMessageMode:"message"})}function G({groupId:e,channelIds:t}){return r.post({url:`/groups/channel/add/${e}`,data:t},{errorMessageMode:"message"})}function w(e){const{deviceId:t,start:a,end:s,count:n,page:o}=e;return r.get({url:`/alarms/${t}`,params:{count:n,page:o,start:a,end:s}},{errorMessageMode:"message"})}function y(e){return r.get({url:"/platform/list",params:e},{errorMessageMode:"message"})}function k(e){return r.post({url:"/platform/add",data:e},{errorMessageMode:"message"})}function I(e){return r.post({url:"/platform/update",data:e},{errorMessageMode:"message"})}function z(e){return r.post({url:`/platform/remove/${e}`},{errorMessageMode:"message"})}function x(e){return r.get({url:`/download/${e.deviceId}/${e.channelId}`,params:{start:e.start,end:e.end,downloadSpeed:e.downloadSpeed||4}},{errorMessageMode:"none"})}function A(e){return r.get({url:`/download/progress/${e}`},{errorMessageMode:"none"})}function L(e){return r.get({url:"/channel/list",params:e})}function S(e){return r.post({url:"/channel/add",data:e},{errorMessageMode:"message"})}function q(e){return r.post({url:`/channel/update/${e.id}`,data:e},{errorMessageMode:"message"})}function U(e){return r.post({url:`/channel/delete/${e}`},{errorMessageMode:"message"})}function B(e){return r.get({url:"/playback/pause?streamPath="+e})}function R(e){return r.get({url:"/playback/resume?streamPath="+e})}function j(e,t){return r.get({url:"/playback/speed?streamPath="+e+"&speed="+t})}export{v as A,g as G,M as a,p as b,A as c,m as d,$ as e,b as f,w as g,P as h,D as i,G as j,C as k,h as l,k as m,I as n,z as o,y as p,S as q,i as r,x as s,q as t,f as u,U as v,L as w,R as x,B as y,j as z};
- //# sourceMappingURL=gb28181-0e98f3aa.js.map
|