Sign in

简柏林 / thingskit-app · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit-app
  • api
  • alarmApi
  • index.js
  • pref:统一管理API 按模块区分
    6ecafafd
    fengtao authored
    2022-12-14 17:45:59 +0800  
    Browse Files »
index.js 394 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
//获取告警分页API
const getAlarmApi = (params = {}) => {
	return uni.$u.http.get("/yt/alarm", params)
};

//告警处理API
const postAlarmAckApi = (id) => {
	return uni.$u.http
		.post(`/alarm/${id}/ack`)
};

//告警清除API
const postAlarmClearApi = (id) => {
	return uni.$u.http
		.post(`/alarm/${id}/clear`)
};

export default {
	getAlarmApi,
	postAlarmAckApi,
	postAlarmClearApi
}