From 1e84774c0c0752c61e60592e7f7fc1c0d25a1dab Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期二, 27 十月 2020 16:38:48 +0800
Subject: [PATCH] 首页加入算法
---
src/api/app.ts | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/api/app.ts b/src/api/app.ts
index 06b3328..d9f378d 100644
--- a/src/api/app.ts
+++ b/src/api/app.ts
@@ -9,7 +9,7 @@
});
};
-//鑾峰彇搴旂敤涓績鍟嗗煄寰呮縺娲诲垪琛�
+//鑾峰彇搴旂敤涓績鍟嗗煄寰呮縺娲荤畻娉曞垪琛�
export const getUnActivedSdk = () => {
return request({
url: "/data/api-v/sdk/buyList",
@@ -25,21 +25,31 @@
})
}
-//鑾峰彇鍟嗗煄鎵�鏈夊簲鐢�
+//鑾峰彇鍟嗗煄鎵�鏈夊簲鐢�(宸叉縺娲�)
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 installApp = (query:any) => request({
+ url: '/data/api-v/sdk/sdkDownload',
+ method: 'get',
+ params: query
});
//鍗歌浇搴旂敤
export const removeApp = (data:any)=> request({
url: '/data/api-v/app/unInstall',
method: 'post',
data
-})
\ No newline at end of file
+});
+//鑾峰彇鍟嗗煄寰呮縺娲荤殑搴旂敤
+export const getUnActivedApp = ()=> request({
+ url:'/data/api-v/app/buyList',
+ method: 'get'
+});
+//婵�娲诲晢鍩庡簲鐢�
+export const actApp = (appId:String,code:String) => request({
+ url:`/data/api-v/app/active?appId=${appId}&code=${code}`,
+ method:'get'
+});
--
Gitblit v1.8.0