You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.6 KiB

import { axios } from '@/utils/axios';
import { apiUrl } from "@/axios";
import qs from 'qs';
const CisApiUrl = apiUrl.CisApiUrl;
enum Api {
Add = '/cmMarkLabel/add',
AddReturnId = '/cmMarkLabel/addReturnId',
Update = '/cmMarkLabel/update',
Delete = '/cmMarkLabel/delete',
Get = '/cmMarkLabel/get',
GetList = '/cmMarkLabel/getList',
GetPageList = '/cmMarkLabel/getPageList',
}
interface modelParams {
CbCameraId: number, //相机 Id
CmMarkGroupId?: number, //标记组 Id
Name: string, //名称
PanPosition?: number, //Pan 坐标
TiltPosition?: number, //Tilt 坐标
ZoomPosition?: number, //Zoom 坐标
VideoWidth: number, //视频宽度
VideoHeight: number, //视频高度
CanvasLeftRatio: number,//画布 left 距离比例
CanvasTopRatio: number, //画布 top 距离比例
Remark?: string, //备注
IsDelete?: boolean, //软删除
Id?: string,
CreateTime?: string
}
export const Add = (params?: any) => axios.post(CisApiUrl + Api.Add, qs.stringify(params))
export const AddReturnId = (params?: any) => axios.post(CisApiUrl + Api.AddReturnId, qs.stringify(params))
export const Update = (params?: modelParams) => axios.post(CisApiUrl + Api.Update, qs.stringify(params))
export const Delete = (params?: any) => axios.post(CisApiUrl + Api.Delete, qs.stringify(params))
export const Get = (params?: any) => axios.get(CisApiUrl + Api.Get, { params: params })
export const GetList = (params?: any) => axios.get(CisApiUrl + Api.GetList, { params: params })
export const GetPageList = (params?: any) => axios.get(CisApiUrl + Api.GetPageList, { params: params })