mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
更新
This commit is contained in:
@@ -1,127 +1,146 @@
|
||||
import request from '@/utils/request'
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询设备列表
|
||||
export function listDevice(query) {
|
||||
return request({
|
||||
url: '/iot/device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询未授权设备列表
|
||||
export function listUnAuthDevice(query) {
|
||||
return request({
|
||||
url: '/iot/device/unAuthlist',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/unAuthlist',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询分组可添加设备分页列表
|
||||
export function listDeviceByGroup(query) {
|
||||
return request({
|
||||
url: '/iot/device/listByGroup',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/listByGroup',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备简短列表
|
||||
export function listDeviceShort(query) {
|
||||
return request({
|
||||
url: '/iot/device/shortList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/shortList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询所有设备简短列表
|
||||
export function listAllDeviceShort() {
|
||||
return request({
|
||||
url: '/iot/device/all',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/all',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备详细
|
||||
export function getDevice(deviceId) {
|
||||
return request({
|
||||
url: '/iot/device/' + deviceId,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/' + deviceId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 设备数据同步
|
||||
export function deviceSynchronization(serialNumber) {
|
||||
return request({
|
||||
url: '/iot/device/synchronization/' + serialNumber,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/synchronization/' + serialNumber,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 根据设备编号查询设备详细
|
||||
export function getDeviceBySerialNumber(serialNumber) {
|
||||
return request({
|
||||
url: '/iot/device/getDeviceBySerialNumber/' + serialNumber,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/getDeviceBySerialNumber/' + serialNumber,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备统计信息
|
||||
export function getDeviceStatistic() {
|
||||
return request({
|
||||
url: '/iot/device/statistic',
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/statistic',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备运行状态详细
|
||||
export function getDeviceRunningStatus(deviceId) {
|
||||
return request({
|
||||
url: '/iot/device/runningStatus/' + deviceId,
|
||||
method: 'get'
|
||||
})
|
||||
export function getDeviceRunningStatus(params) {
|
||||
return request({
|
||||
url: '/iot/device/runningStatus',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备物模型的值
|
||||
export function getDeviceThingsModelValue(deviceId) {
|
||||
return request({
|
||||
url: '/iot/device/thingsModelValue/' + deviceId,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/thingsModelValue/' + deviceId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 新增设备
|
||||
export function addDevice(data) {
|
||||
return request({
|
||||
url: '/iot/device',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改设备
|
||||
export function updateDevice(data) {
|
||||
return request({
|
||||
url: '/iot/device',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除设备
|
||||
export function delDevice(deviceId) {
|
||||
return request({
|
||||
url: '/iot/device/' + deviceId,
|
||||
method: 'delete'
|
||||
})
|
||||
return request({
|
||||
url: '/iot/device/' + deviceId,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 生成设备编号
|
||||
export function generatorDeviceNum() {
|
||||
return request({
|
||||
url: '/iot/device/generator',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function generatorDeviceNum(params) {
|
||||
return request({
|
||||
url: '/iot/device/generator',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export function getGwDevCode(params) {
|
||||
return request({
|
||||
url: '/iot/device/gwDevCount',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
//mqtt连接参数查看
|
||||
export function getMqttConnect(params) {
|
||||
return request({
|
||||
url: '/iot/device/getMqttConnectData',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,6 +18,15 @@ export function listMonitor(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备监测数据
|
||||
export function listHistory(query) {
|
||||
return request({
|
||||
url: '/iot/deviceLog/history',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备日志详细
|
||||
export function getDeviceLog(logId) {
|
||||
return request({
|
||||
|
||||
@@ -1,20 +1,29 @@
|
||||
import request from '@/utils/request'
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询设备用户列表
|
||||
export function listDeviceUser(query) {
|
||||
return request({
|
||||
url: '/iot/deviceUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询设备用户详细
|
||||
export function getDeviceUser(deviceId, userId) {
|
||||
return request({
|
||||
url: '/iot/deviceUser/' + deviceId + '/' + userId,
|
||||
method: 'get'
|
||||
})
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询用户
|
||||
export function shareUser(query) {
|
||||
return request({
|
||||
url: '/iot/deviceUser/shareUser',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增设备用户
|
||||
@@ -22,8 +31,8 @@ export function addDeviceUser(data) {
|
||||
return request({
|
||||
url: '/iot/deviceUser',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增多个设备用户
|
||||
@@ -31,8 +40,8 @@ export function addDeviceUsers(data) {
|
||||
return request({
|
||||
url: '/iot/deviceUser/addDeviceUsers',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改设备用户
|
||||
@@ -40,8 +49,8 @@ export function updateDeviceUser(data) {
|
||||
return request({
|
||||
url: '/iot/deviceUser',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除设备用户
|
||||
@@ -49,6 +58,6 @@ export function delDeviceUser(device) {
|
||||
return request({
|
||||
url: '/iot/deviceUser',
|
||||
method: 'delete',
|
||||
data: device
|
||||
})
|
||||
data: device,
|
||||
});
|
||||
}
|
||||
|
||||
45
vue/src/api/iot/eventLog.js
Normal file
45
vue/src/api/iot/eventLog.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// 查询事件日志列表
|
||||
export function listEventLog(query) {
|
||||
return request({
|
||||
url: '/iot/event/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询事件日志详细
|
||||
export function getEventLog(logId) {
|
||||
return request({
|
||||
url: '/iot/event/' + logId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增事件日志
|
||||
export function addEventLog(data) {
|
||||
return request({
|
||||
url: '/iot/event',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改事件日志
|
||||
export function updateEventLog(data) {
|
||||
return request({
|
||||
url: '/iot/event',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除事件日志
|
||||
export function delLog(logId) {
|
||||
return request({
|
||||
url: '/iot/event/' + logId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
vue/src/api/iot/functionLog.js
Normal file
44
vue/src/api/iot/functionLog.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设备服务下发日志列表
|
||||
export function listLog(query) {
|
||||
return request({
|
||||
url: '/iot/log/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备服务下发日志详细
|
||||
export function getLog(id) {
|
||||
return request({
|
||||
url: '/iot/log/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设备服务下发日志
|
||||
export function addLog(data) {
|
||||
return request({
|
||||
url: '/iot/log',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设备服务下发日志
|
||||
export function updateLog(data) {
|
||||
return request({
|
||||
url: '/iot/log',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备服务下发日志
|
||||
export function delLog(id) {
|
||||
return request({
|
||||
url: '/iot/log/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -1,20 +1,28 @@
|
||||
import request from '@/utils/request'
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询物模型列表
|
||||
export function listModel(query) {
|
||||
return request({
|
||||
url: '/iot/model/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询物模型详细
|
||||
export function getModel(modelId) {
|
||||
return request({
|
||||
url: '/iot/model/' + modelId,
|
||||
method: 'get'
|
||||
})
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询物模型对应分享设备用户权限列表
|
||||
export function permListModel(productId) {
|
||||
return request({
|
||||
url: '/iot/model/permList/' + productId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 新增物模型
|
||||
@@ -22,8 +30,8 @@ export function addModel(data) {
|
||||
return request({
|
||||
url: '/iot/model',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 导入通用物模型
|
||||
@@ -31,8 +39,8 @@ export function importModel(data) {
|
||||
return request({
|
||||
url: '/iot/model/import',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改物模型
|
||||
@@ -40,22 +48,31 @@ export function updateModel(data) {
|
||||
return request({
|
||||
url: '/iot/model',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除物模型
|
||||
export function delModel(modelId) {
|
||||
return request({
|
||||
url: '/iot/model/' + modelId,
|
||||
method: 'delete'
|
||||
})
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 根据产品ID获取缓存的物模型
|
||||
export function cacheJsonThingsModel(productId){
|
||||
export function cacheJsonThingsModel(productId) {
|
||||
return request({
|
||||
url: '/iot/model/cache/' + productId,
|
||||
method: 'get'
|
||||
})
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 同步采集点模板到产品物模型
|
||||
export function synchron(data) {
|
||||
return request({
|
||||
url: '/iot/model/synchron',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
36
vue/src/api/iot/netty.js
Normal file
36
vue/src/api/iot/netty.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 集群下所有客户端列表
|
||||
export function listNettyMqttClient(query) {
|
||||
return request({
|
||||
url: '/iot/mqtt/clients',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function clientOut(query) {
|
||||
return request({
|
||||
url: '/iot/mqtt/client/out',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getNettyMqttStats() {
|
||||
return request({
|
||||
url: '/bashBoard/stats',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function statisticNettyMqtt(query) {
|
||||
return request({
|
||||
url: '/bashBoard/metrics',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
62
vue/src/api/iot/point.js
Normal file
62
vue/src/api/iot/point.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询变量模板从机采集点列表
|
||||
export function listPoint(query) {
|
||||
return request({
|
||||
url: '/iot/point/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询变量模板从机采集点详细
|
||||
export function getPoint(id) {
|
||||
return request({
|
||||
url: '/iot/point/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增变量模板从机采集点
|
||||
export function addPoint(data) {
|
||||
return request({
|
||||
url: '/iot/point',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改变量模板从机采集点
|
||||
export function updatePoint(data) {
|
||||
return request({
|
||||
url: '/iot/point',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除变量模板从机采集点
|
||||
export function delPoint(id) {
|
||||
return request({
|
||||
url: '/iot/point/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//根据从机id删除采集点数据
|
||||
export function delBySlaveId(data){
|
||||
return request({
|
||||
url: '/iot/point/delBySlaveId',
|
||||
method: 'delete',
|
||||
data: data,
|
||||
|
||||
})
|
||||
}
|
||||
//..
|
||||
export function selectByTemp(query){
|
||||
return request({
|
||||
url: '/iot/point/getPoints',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
@@ -43,6 +43,14 @@ export function updateProduct(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取产品下设备的数量
|
||||
export function deviceCount(productId) {
|
||||
return request({
|
||||
url: '/iot/product/deviceCount/' + productId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品状态
|
||||
export function changeProductStatus(data) {
|
||||
return request({
|
||||
@@ -59,3 +67,12 @@ export function delProduct(productId) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据采集点模板id查询所有产品
|
||||
export function selectByTempleId(params) {
|
||||
return request({
|
||||
url: '/iot/product/queryByTemplateId',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
44
vue/src/api/iot/protocol.js
Normal file
44
vue/src/api/iot/protocol.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询协议列表
|
||||
export function listProtocol(query) {
|
||||
return request({
|
||||
url: '/iot/protocol/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询协议详细
|
||||
export function getProtocol(id) {
|
||||
return request({
|
||||
url: '/iot/protocol/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增协议
|
||||
export function addProtocol(data) {
|
||||
return request({
|
||||
url: '/iot/protocol',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改协议
|
||||
export function updateProtocol(data) {
|
||||
return request({
|
||||
url: '/iot/protocol',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除协议
|
||||
export function delProtocol(id) {
|
||||
return request({
|
||||
url: '/iot/protocol/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
29
vue/src/api/iot/runstatus.js
Normal file
29
vue/src/api/iot/runstatus.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//查询设备实时数据
|
||||
export function runStatus(params) {
|
||||
return request({
|
||||
url: '/iot/runtime/runState',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//查询设备实时数据
|
||||
export function serviceInvoke(data) {
|
||||
return request({
|
||||
url: '/iot/runtime/service/invoke',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
//查询设备服务下发日志
|
||||
export function funcLog(params) {
|
||||
return request({
|
||||
url: '/iot/runtime/funcLog',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
53
vue/src/api/iot/salve.js
Normal file
53
vue/src/api/iot/salve.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询变量模板设备从机列表
|
||||
export function listSalve(query) {
|
||||
return request({
|
||||
url: '/iot/salve/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询变量模板设备从机详细
|
||||
export function getSalve(id) {
|
||||
return request({
|
||||
url: '/iot/salve/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增变量模板设备从机
|
||||
export function addSalve(data) {
|
||||
return request({
|
||||
url: '/iot/salve',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改变量模板设备从机
|
||||
export function updateSalve(data) {
|
||||
return request({
|
||||
url: '/iot/salve',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除变量模板设备从机
|
||||
export function delSalve(id) {
|
||||
return request({
|
||||
url: '/iot/salve/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//根据产品id查询从机列表
|
||||
export function listByPid(params){
|
||||
return request({
|
||||
url: "/iot/salve/listByPId",
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
62
vue/src/api/iot/temp.js
Normal file
62
vue/src/api/iot/temp.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设备采集变量模板列表
|
||||
export function listTemp(query) {
|
||||
return request({
|
||||
url: '/iot/temp/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备采集变量模板详细
|
||||
export function getTemp(templateId) {
|
||||
return request({
|
||||
url: '/iot/temp/' + templateId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设备采集变量模板
|
||||
export function addTemp(data) {
|
||||
return request({
|
||||
url: '/iot/temp',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设备采集变量模板
|
||||
export function updateTemp(data) {
|
||||
return request({
|
||||
url: '/iot/temp',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备采集变量模板
|
||||
export function delTemp(templateId) {
|
||||
return request({
|
||||
url: '/iot/temp/' + templateId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//根据产品查询采集点关联
|
||||
export function getDeviceTemp(params){
|
||||
return request({
|
||||
url: '/iot/temp/getTemp' ,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
export function getTempByPId(params){
|
||||
return request({
|
||||
url: '/iot/temp/getTempByPid',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
@@ -42,3 +42,12 @@ export function delTemplate(templateId) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询通用物模型详细
|
||||
export function getAllPoints(params) {
|
||||
return request({
|
||||
url: '/iot/template/getPoints',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -27,3 +27,24 @@ export function listUser(query) {
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取所有下发的topic
|
||||
export function getTopics(params){
|
||||
return request({
|
||||
url: '/iot/tool/getTopics',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取所有下发的topic
|
||||
export function decode(params){
|
||||
return request({
|
||||
url: '/iot/tool/decode',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import request from '@/utils/request'
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) {
|
||||
@@ -6,16 +6,16 @@ export function login(username, password, code, uuid) {
|
||||
username,
|
||||
password,
|
||||
code,
|
||||
uuid
|
||||
}
|
||||
uuid,
|
||||
};
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
@@ -23,18 +23,34 @@ export function register(data) {
|
||||
return request({
|
||||
url: '/register',
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 检查BindID
|
||||
export function checkBindId(bindId) {
|
||||
return request({
|
||||
url: '/auth/checkBindId/' + bindId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 微信绑定获取结果信息
|
||||
export function getWxBindMsg(wxBindMsgId) {
|
||||
return request({
|
||||
url: '/wechat/getWxBindMsg?wxBindMsgId=' + wxBindMsgId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
@@ -42,8 +58,8 @@ export function getInfo() {
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post'
|
||||
})
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
@@ -51,64 +67,41 @@ export function getCodeImg() {
|
||||
return request({
|
||||
url: '/captchaImage',
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
timeout: 20000,
|
||||
});
|
||||
}
|
||||
|
||||
//查看是否存在bindId
|
||||
export function checkBindId(bindId) {
|
||||
// 微信登录直接跳转登录
|
||||
export function socialLogin(loginId) {
|
||||
return request({
|
||||
url: '/auth/checkBindId/' + bindId,
|
||||
url: '/auth/login/' + loginId,
|
||||
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
|
||||
}
|
||||
// 微信登录绑定登录
|
||||
export function bindLogin(data) {
|
||||
return request({
|
||||
url: '/auth/bind/login',
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
// 三方登录注册绑定
|
||||
export function bindRegister(data) {
|
||||
return request({
|
||||
url: '/auth/bind/register',
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//跳转登录
|
||||
export function redirectLogin(loginId) {
|
||||
return request({
|
||||
url: '/auth/login/' + loginId,
|
||||
method: 'get',
|
||||
})
|
||||
timeout: 20000,
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,3 +7,51 @@ export function getCache() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存名称列表
|
||||
export function listCacheName() {
|
||||
return request({
|
||||
url: '/monitor/cache/getNames',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/getKeys/' + cacheName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheName/' + cacheName,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理全部缓存
|
||||
export function clearCacheAll() {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheAll',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -17,6 +17,14 @@ export function delLogininfor(infoId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 解锁用户登录状态
|
||||
export function unlockLogininfor(userName) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/unlock/' + userName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空登录日志
|
||||
export function cleanLogininfor() {
|
||||
return request({
|
||||
|
||||
@@ -25,22 +25,6 @@ export function getDept(deptId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
export function treeselect() {
|
||||
return request({
|
||||
url: '/system/dept/treeselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询部门树结构
|
||||
export function roleDeptTreeselect(roleId) {
|
||||
return request({
|
||||
url: '/system/dept/roleDeptTreeselect/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门
|
||||
export function addDept(data) {
|
||||
return request({
|
||||
|
||||
@@ -108,4 +108,12 @@ export function authUserSelectAll(data) {
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 根据角色ID查询部门树结构
|
||||
export function deptTreeSelect(roleId) {
|
||||
return request({
|
||||
url: '/system/role/deptTree/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import request from '@/utils/request'
|
||||
import { praseStrEmpty } from "@/utils/ruoyi";
|
||||
import { parseStrEmpty } from "@/utils/ruoyi";
|
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) {
|
||||
@@ -13,7 +13,7 @@ export function listUser(query) {
|
||||
// 查询用户详细
|
||||
export function getUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + praseStrEmpty(userId),
|
||||
url: '/system/user/' + parseStrEmpty(userId),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -69,7 +69,21 @@ export function changeUserStatus(userId, status) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取微信二维码
|
||||
export function getLoginParam() {
|
||||
return request({
|
||||
url: '/wechat/getWxBindQr',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
// 解除绑定
|
||||
export function secureBind(data) {
|
||||
return request({
|
||||
url: '/wechat/cancelBind',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
// 查询用户个人信息
|
||||
export function getUserProfile() {
|
||||
return request({
|
||||
@@ -125,3 +139,11 @@ export function updateAuthRole(data) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
44
vue/src/api/tool/ossConfig.js
Normal file
44
vue/src/api/tool/ossConfig.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询文件存储配置列表
|
||||
export function listOssConfig(query) {
|
||||
return request({
|
||||
url: '/oss/ossConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询文件存储配置详细
|
||||
export function getOssConfig(id) {
|
||||
return request({
|
||||
url: '/oss/ossConfig/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增文件存储配置
|
||||
export function addOssConfig(data) {
|
||||
return request({
|
||||
url: '/oss/ossConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改文件存储配置
|
||||
export function updateOssConfig(data) {
|
||||
return request({
|
||||
url: '/oss/ossConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除文件存储配置
|
||||
export function delOssConfig(id) {
|
||||
return request({
|
||||
url: '/oss/ossConfig/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
vue/src/api/tool/ossDetail.js
Normal file
44
vue/src/api/tool/ossDetail.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询文件记录列表
|
||||
export function listOssDetail(query) {
|
||||
return request({
|
||||
url: '/oss/OssDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询文件记录详细
|
||||
export function getOssDetail(id) {
|
||||
return request({
|
||||
url: '/oss/OssDetail/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增文件记录
|
||||
export function addOssDetail(data) {
|
||||
return request({
|
||||
url: '/oss/OssDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改文件记录
|
||||
export function updateOssDetail(data) {
|
||||
return request({
|
||||
url: '/oss/OssDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除文件记录
|
||||
export function delOssDetail(id) {
|
||||
return request({
|
||||
url: '/oss/OssDetail/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user