From 74f8cd07a39795656573d4e4bb2fe85a6dadbb8c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 02 九月 2023 15:15:44 +0800 Subject: [PATCH] 从云端请求工艺参数,加入deviceId字段用于消息过滤 --- docs/swagger.yaml | 67 ++++++++++++++++++++++++++++++++- 1 files changed, 64 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 260f74c..34d675d 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -67,6 +67,22 @@ x-enum-varnames: - PlcMethodModbusTCP - PlcMethodSerial + constvar.PlcStartAddressType: + enum: + - 1 + - 2 + type: integer + x-enum-varnames: + - PlcStartAddressTypeFinishNumber + - PlcStartAddressTypeTotalNumber + constvar.PlcStartAddressValueType: + enum: + - string + - int + type: string + x-enum-varnames: + - PlcStartAddressValueTypeString + - PlcStartAddressValueTypeInt contextx.Response: properties: code: @@ -107,8 +123,9 @@ model.DevicePlcAddress: properties: fieldName: + allOf: + - $ref: '#/definitions/constvar.PlcStartAddressType' description: 瀵瑰簲绯荤粺瀛楁 - type: integer length: description: 鏁版嵁闀垮害 type: integer @@ -116,8 +133,9 @@ description: 鏁版嵁璧峰鍦板潃 type: integer type: + allOf: + - $ref: '#/definitions/constvar.PlcStartAddressValueType' description: 鏁版嵁绫诲瀷 - type: string type: object model.NetConfig: properties: @@ -299,6 +317,20 @@ properties: finishNumber: type: integer + totalNumber: + type: integer + type: object + response.TaskCountdown: + properties: + countDownHour: + description: 鍊掕鏃� 鏃� + type: integer + countDownMinute: + description: 鍊掕鏃� 鍒� + type: integer + showCountDown: + description: 鏄惁灞曠ず鍊掕鏃� + type: boolean type: object response.TaskData: properties: @@ -409,7 +441,19 @@ type: object summary: 鑾峰彇鐢熶骇杩涘害 tags: - - 鑾峰彇鍔ㄦ�佹暟鎹� + - 鐢熶骇鏁伴噺 + /v1/plc/setProductNumber: + post: + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/contextx.Response' + summary: 璁剧疆鐢熶骇鎬婚噺 + tags: + - 鐢熶骇鏁伴噺 /v1/plcBrand/add: post: parameters: @@ -485,6 +529,23 @@ summary: 鏇存柊plc鍝佺墝 tags: - plc鍝佺墝 + /v1/task/countdown: + get: + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/contextx.Response' + - properties: + data: + $ref: '#/definitions/response.TaskCountdown' + type: object + summary: 鏂颁换鍔″�掕鏃� + tags: + - Task /v1/task/finish/{id}: put: parameters: -- Gitblit v1.8.0