index.js 864 Bytes
//获取首页统计数据API
const getHomeStatisticsApi = () => {
	return uni.$u.http.get("/yt/homepage/app?login=false")
};

//获取视频分页API
const getCameraApi = (params = {}) => {
	return uni.$u.http
		.get('/yt/video', params)
};

//获取视频详情API
const byCameraIdGetDetailApi = (id) => {
	return uni.$u.http.get(`/yt/video/url/${id}`)
};

//获取组态分页API
const getConfigurationApi = (params = {}) => {
	return uni.$u.http
		.get('/yt/configuration/center', params)
}

// 获取看板分页API
const getVisualBoardApi = (params) => {
	return uni.$u.http.get('yt/data_board',params)
}

//获取组织列表
const getMeOrgListApi = () => {
	return uni.$u.http
		.get('/yt/organization/me/list')
}

export default {
	getHomeStatisticsApi,
	getCameraApi,
	byCameraIdGetDetailApi,
	getConfigurationApi,
	getMeOrgListApi,
	getVisualBoardApi
}