From 602d118cbe5d5a6910766c3e83208f09c0ba0bb6 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 24 八月 2023 21:57:05 +0800 Subject: [PATCH] 增加设置生产总量接口 --- docs/swagger.yaml | 38 +++++++++++++++++++++++++++++++++++--- 1 files changed, 35 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 260f74c..87e7cfd 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,8 @@ properties: finishNumber: type: integer + totalNumber: + type: integer type: object response.TaskData: properties: @@ -409,7 +429,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: -- Gitblit v1.8.0