From 17e756a67b23f9022359fcf0f10f04309745e8d4 Mon Sep 17 00:00:00 2001 From: yu Date: Wed, 6 Nov 2024 15:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9E=9A=E4=B8=BE=E5=AD=97?= =?UTF-8?q?=E5=85=B8APi;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/enumPage.md | 74 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/docs/api/enumPage.md b/docs/api/enumPage.md index 64213ff5..e589272c 100644 --- a/docs/api/enumPage.md +++ b/docs/api/enumPage.md @@ -12,6 +12,7 @@ | | 2.1.6删除枚举值 | /api/enum/deleteEnumValues | SYS_AUTHORITY_ID_DEVICE_MGR | | | 2.1.7修改枚举类型 | /api/enum/updateEnumTypes | SYS_AUTHORITY_ID_DEVICE_MGR | | | 2.1.8删除枚举类型 | /api/enum/deleteEnumTypes | SYS_AUTHORITY_ID_DEVICE_MGR | +| | 2.1.9获取枚举字典 | /api/enum/getEnumDict | | ### 2.1 枚举类型配置相关接口 @@ -387,4 +388,75 @@ POST 请求接口 "success": true, "msg": "操作成功" } -``` \ No newline at end of file +``` + +#### 2.1.9获取枚举字典 + +POST 请求接口 + +> /api/enum/getEnumDict + + +请求参数 + +无 + + +返回报文 + +```json +{ + "code": 200, + "success": true, + "data": [ + { + "name": "iTurbineOperationMode", + "description": "运行模式", + "enumValues": { + "0": "通讯断开", + "1": "紧急停机", + "2": "安全链停机", + "3": "199刹车停机", + "4": "198刹车停机" + } + }, + { + "name": "iBPLevel", + "description": "刹车等级", + "enumValues": { + "0": "无故障", + "30": "限功率", + "50": "降转速" + } + }, + { + "name": "iYPLevel", + "description": "偏航运行模式", + "enumValues": { + "0": "自动偏航", + "5": "自动解缆时待机", + "10": "自动解缆", + "20": "偏航节能" + } + }, + { + "name": "ActiveStatusCode", + "description": "故障代码", + "enumValues": { + "16842753": "01_01_001风机由于变桨系统安全链断开导致机组急停", + "16973825": "01_03_001风机轮毂温度>60℃", + "16973826": "01_03_002风机轮毂温度<-20℃", + "16973827": "01_03_003风机轮毂温度>50℃,24小时内允许出现3次" + } + } + ], + "msg": "操作成功" +} +``` +返参描述 + +| 参数名 | 参数类型 | 可选 | 描述 | +|-------------|------------------------|-----|--------| +| name | String | 否 | 枚举类型名称 | +| description | String | 否 | 枚举类型描述 | +| enumValues | Map map | 否 | 枚举类型值集合 |