feat(api): 增加新api

master
钟良源 3 months ago
parent f856a0db4f
commit 171205d183

@ -86,8 +86,8 @@ export function resumeApp(data: any) {
} }
// 停止 // 停止
export function stopApp(data: any) { export function stopApp(appid: any) {
return axios.post<apiResData>(`${runPrefix}/apps/${data.id}/stop`); return axios.post<apiResData>(`${runPrefix}/apps/${appid}/stop`);
} }
// APi发布 // APi发布

@ -35,9 +35,13 @@ export function queryEventItem(name: string) {
} }
// 事件管理-使用场景ID查询事件 // 事件管理-使用场景ID查询事件
export function queryEventItemBySceneId(sceneId: string) { export function queryEventItemBySceneIdOld(sceneId: string) {
return axios.get(`${urlPrefix}/event/${sceneId}/get`); return axios.get(`${urlPrefix}/event/${sceneId}/get`);
} }
// 事件管理-使用场景ID查询事件新
export function queryEventItemBySceneId(sceneId: string) {
return axios.get(`${urlPrefix}/event/${sceneId}/getTopic`);
}
// 事件管理-获取工程下可用的topic // 事件管理-获取工程下可用的topic
export function getTopicList(id: string) { export function getTopicList(id: string) {

Loading…
Cancel
Save