新增以下内容1.客户端查看详情和断开连接,2.规则引擎的增删改查,3.资源的增删改查,

This commit is contained in:
sxh
2022-04-21 12:43:59 +08:00
44 changed files with 3588 additions and 589 deletions

View File

@@ -0,0 +1,44 @@
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'
})
}

View File

@@ -56,4 +56,59 @@ export function getCodeImg() {
method: 'get',
timeout: 20000
})
}
}
//查看是否存在bindId
export function checkBindId(bindId) {
return request({
url: '/auth/checkBindId/' + bindId,
method: 'get',
})
}
//查看是否存在errorId
export function getErrorMsg(errorId) {
return request({
url: '/auth/getErrorMsg/' + errorId,
method: 'get',
})
}
// 登录方法
export function bindLogin(username, password, code, uuid, bindId) {
const data = {
username,
password,
code,
uuid,
bindId
}
return request({
url: '/auth/bind/login',
headers: {
isToken: false
},
method: 'post',
data: data
})
}
// 注册方法
export function bindRegister(data) {
return request({
url: '/auth/bind/register',
headers: {
isToken: false
},
method: 'post',
data: data
})
}
//跳转登录
export function redirectLogin(loginId) {
return request({
url: '/auth/login/' + loginId,
method: 'get',
})
}