From 19a9687715dc79c275359443af55d6112cd5d704 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 21 十一月 2023 19:01:42 +0800
Subject: [PATCH] 同步状态和生产数按id正序取
---
docs/docs.go | 69 ++++++++++++++++++++++++++++++----
1 files changed, 60 insertions(+), 9 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index df8f13f..35c052f 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -152,6 +152,36 @@
}
}
},
+ "/v1/device/config": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "璁惧"
+ ],
+ "summary": "璁剧疆璁惧涓�浜涢厤缃�",
+ "parameters": [
+ {
+ "description": "鏌ヨ鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.DeviceConfig"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/contextx.Response"
+ }
+ }
+ }
+ }
+ },
"/v1/device/list": {
"get": {
"produces": [
@@ -555,11 +585,6 @@
"summary": "鑾峰彇浠诲姟",
"parameters": [
{
- "type": "string",
- "name": "deviceID",
- "in": "query"
- },
- {
"type": "integer",
"description": "椤电爜",
"name": "page",
@@ -953,11 +978,13 @@
"type": "string",
"enum": [
"string",
- "int"
+ "int16",
+ "int32"
],
"x-enum-varnames": [
"PlcStartAddressValueTypeString",
- "PlcStartAddressValueTypeInt"
+ "PlcStartAddressValueTypeInt16",
+ "PlcStartAddressValueTypeInt32"
]
},
"constvar.ProblemCode": {
@@ -1441,6 +1468,15 @@
}
}
},
+ "request.DeviceConfig": {
+ "type": "object",
+ "properties": {
+ "needSetProcessParams": {
+ "description": "鏄惁闇�瑕佽缃伐鑹哄弬鏁�",
+ "type": "boolean"
+ }
+ }
+ },
"request.GetProductProgress": {
"type": "object",
"properties": {
@@ -1570,6 +1606,21 @@
}
}
},
+ "response.Device": {
+ "type": "object",
+ "properties": {
+ "deviceID": {
+ "type": "string"
+ },
+ "deviceName": {
+ "type": "string"
+ },
+ "needSetProcessParams": {
+ "description": "鏄惁闇�瑕佽缃伐鑹哄弬鏁�",
+ "type": "boolean"
+ }
+ }
+ },
"response.DeviceListResponse": {
"type": "object",
"properties": {
@@ -1585,11 +1636,11 @@
"description": "褰撳墠閫夊畾鐨勭敓浜ц澶�",
"type": "string"
},
- "deviceIDList": {
+ "deviceList": {
"description": "鐢熶骇璁惧id鍒楄〃",
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/response.Device"
}
},
"systemDeviceID": {
--
Gitblit v1.8.0