From e14358f85a7d32a753225f253ff223d17cf36c25 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 02 Apr 2025 19:10:00 +0800
Subject: [PATCH] style: 风格处理
---
src/api/home/machineNest.js | 85 +++++++++++++++++++++---------------------
1 files changed, 42 insertions(+), 43 deletions(-)
diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 70bd5d2..f69f70d 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,49 +1,48 @@
-import request from '@/axios';
+import request from '@/axios'
// 机巢统计
-export const getDeviceInfoNum = (params) => {
- return request({
- url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
- method: 'get',
- params,
- });
-};
+export const getDeviceInfoNum = params => {
+ return request({
+ url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
+ method: 'get',
+ params,
+ })
+}
// 机巢列表
-export const selectDevicePage = ({ nickname,is_execute, ...params}) => {
- return request({
- url: `/drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}¤t=${params.current}&size=${params.size}`,
- method: 'post',
- data: {
- nickname,
- is_execute,
- },
- });
-};
+export const selectDevicePage = ({ nickname, is_execute, ...params }) => {
+ return request({
+ url: `/drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}¤t=${params.current}&size=${params.size}`,
+ method: 'post',
+ data: {
+ nickname,
+ is_execute,
+ },
+ })
+}
// 机巢数据
-export const getFlightStatistics = (dockSn) => {
- return request({
- url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
- method: 'get',
- params: {},
- });
-};
+export const getFlightStatistics = dockSn => {
+ return request({
+ url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
+ method: 'get',
+ params: {},
+ })
+}
// 机巢直播/无人机直播 均可使用
-export const liveStart = (deviceSn) => {
- return request({
- url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}`,
- method: 'post',
- data: {},
- headers: {
- 'areaCode': '',
- },
- });
-};
+export const liveStart = deviceSn => {
+ return request({
+ url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}`,
+ method: 'post',
+ data: {},
+ headers: {
+ areaCode: '',
+ },
+ })
+}
// 单个机巢获取机巢详情
-export const getDeviceDetail = (deviceSn) => {
- return request({
- url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`,
- method: 'get',
- params: {},
- });
-};
-
+export const getDeviceDetail = deviceSn => {
+ return request({
+ url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`,
+ method: 'get',
+ params: {},
+ })
+}
--
Gitblit v1.9.3