suerprisePlus
2024-05-30 d4c810f9803aa13d806724a5f4f71fe85abac38e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import request from '@/utils/request'
 
// 查询第三方登录平台控制列表
export function listPlatform(query) {
  return request({
    url: '/iot/platform/list',
    method: 'get',
    params: query
  })
}
 
// 查询第三方登录平台控制详细
export function getPlatform(socialPlatformId) {
  return request({
    url: '/iot/platform/' + socialPlatformId,
    method: 'get'
  })
}
 
// 新增第三方登录平台控制
export function addPlatform(data) {
  return request({
    url: '/iot/platform',
    method: 'post',
    data: data
  })
}
 
// 修改第三方登录平台控制
export function updatePlatform(data) {
  return request({
    url: '/iot/platform',
    method: 'put',
    data: data
  })
}
 
// 删除第三方登录平台控制
export function delPlatform(socialPlatformId) {
  return request({
    url: '/iot/platform/' + socialPlatformId,
    method: 'delete'
  })
}
 
//解除绑定
export function unbind(socialUserId){
  return request({
    url: '/iot/social/unbind/' + socialUserId,
    method: 'get'
  })
}
 
//绑定跳转
export function bind(platform){
  return request({
    url: '/iot/social/bind/' + platform,
    method: 'get'
  })
}
 
//绑定
export function bindUser(bindId){
  return request({
    url: '/iot/social/bindId/' + bindId,
    method: 'get'
  })
}