From a88314bd5d59f1dde2d430899555a3a5730f2ef9 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 25 九月 2020 09:37:00 +0800 Subject: [PATCH] 优化card时间显示和摄像机音频试听功能 --- src/api/app.ts | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/src/api/app.ts b/src/api/app.ts index ddefa18..06b3328 100644 --- a/src/api/app.ts +++ b/src/api/app.ts @@ -2,8 +2,44 @@ export const getApps = (query: any) => { return request({ - url: "/apps.json", + //url: "/apps.json", + url: '/data/api-v/app/findAllApp', method: "get", params: query }); }; + +//鑾峰彇搴旂敤涓績鍟嗗煄寰呮縺娲诲垪琛� +export const getUnActivedSdk = () => { + return request({ + url: "/data/api-v/sdk/buyList", + method: "get" + }); +}; + +//婵�娲婚〉闈㈢畻娉� +export const actPageAlg = (sdkId:String,code:String) => { + return request({ + url: `/data/api-v/sdk/active?sdkId=${sdkId}&code=${code}`, + method: "get", + }) +} + +//鑾峰彇鍟嗗煄鎵�鏈夊簲鐢� +export const findAllApp = () => request({ + url: '/data/api-v/app/findAllApp', + method: 'get' +}); + +//瀹夎搴旂敤 +export const installApp = (data:any) => request({ + url: '/data/api-v/app/install', + method: 'post', + data +}); +//鍗歌浇搴旂敤 +export const removeApp = (data:any)=> request({ + url: '/data/api-v/app/unInstall', + method: 'post', + data +}) \ No newline at end of file -- Gitblit v1.8.0