From b555874608be2e4bb40cceba60b497c04caef842 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 12 九月 2023 14:17:51 +0800 Subject: [PATCH] 三菱协议更改 --- docs/docs.go | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 103 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 1f4a9ab..486c228 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -158,7 +158,7 @@ "application/json" ], "tags": [ - "鑾峰彇鍔ㄦ�佹暟鎹�" + "鐢熶骇鏁伴噺" ], "summary": "鑾峰彇鐢熶骇杩涘害", "responses": { @@ -178,6 +178,25 @@ } } ] + } + } + } + } + }, + "/v1/plc/setProductNumber": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鐢熶骇鏁伴噺" + ], + "summary": "璁剧疆鐢熶骇鎬婚噺", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/contextx.Response" } } } @@ -300,6 +319,37 @@ "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/v1/task/countdown": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Task" + ], + "summary": "鏂颁换鍔″�掕鏃�", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.TaskCountdown" + } + } + } + ] } } } @@ -535,6 +585,28 @@ "PlcMethodSerial" ] }, + "constvar.PlcStartAddressType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "PlcStartAddressTypeFinishNumber", + "PlcStartAddressTypeTotalNumber" + ] + }, + "constvar.PlcStartAddressValueType": { + "type": "string", + "enum": [ + "string", + "int" + ], + "x-enum-varnames": [ + "PlcStartAddressValueTypeString", + "PlcStartAddressValueTypeInt" + ] + }, "contextx.Response": { "type": "object", "properties": { @@ -591,7 +663,11 @@ "properties": { "fieldName": { "description": "瀵瑰簲绯荤粺瀛楁", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.PlcStartAddressType" + } + ] }, "length": { "description": "鏁版嵁闀垮害", @@ -603,7 +679,11 @@ }, "type": { "description": "鏁版嵁绫诲瀷", - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/constvar.PlcStartAddressValueType" + } + ] } } }, @@ -871,6 +951,26 @@ "properties": { "finishNumber": { "type": "integer" + }, + "totalNumber": { + "type": "integer" + } + } + }, + "response.TaskCountdown": { + "type": "object", + "properties": { + "countDownHour": { + "description": "鍊掕鏃� 鏃�", + "type": "integer" + }, + "countDownMinute": { + "description": "鍊掕鏃� 鍒�", + "type": "integer" + }, + "showCountDown": { + "description": "鏄惁灞曠ず鍊掕鏃�", + "type": "boolean" } } }, -- Gitblit v1.8.0