From a2fcc4be5f133d490f20fa4d2401811d8e1307d9 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 21 九月 2023 14:29:38 +0800 Subject: [PATCH] 更改字段类型,避免gorm每次重启程序时重建表 --- docs/docs.go | 65 ++++++++++++++++++++++++++++++-- 1 files changed, 61 insertions(+), 4 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 6c17dbd..b8014f8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -153,7 +153,7 @@ } }, "/v1/plc/productProgress": { - "get": { + "post": { "produces": [ "application/json" ], @@ -172,6 +172,37 @@ } } ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.ProductProgress" + } + } + } + ] + } + } + } + } + }, + "/v1/plc/productProgressRealTime": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鐢熶骇鏁伴噺" + ], + "summary": "瀹炴椂鑾峰彇鐢熶骇杩涘害", "responses": { "200": { "description": "鎴愬姛", @@ -439,7 +470,7 @@ } } }, - "/v1/task/sendProcessParams/{id}": { + "/v1/task/sendProcessParams": { "post": { "produces": [ "application/json" @@ -551,6 +582,13 @@ "common.ProductProcedure": { "type": "object", "properties": { + "allProcedureNames": { + "description": "鎵�灞炲伐鍗曞伐搴忓垪琛�", + "type": "array", + "items": { + "type": "string" + } + }, "deviceId": { "type": "string" }, @@ -605,11 +643,15 @@ "type": "string", "enum": [ "modbusTCP", - "serial" + "serial", + "缃戠粶", + "涓插彛" ], "x-enum-varnames": [ "PlcMethodModbusTCP", - "PlcMethodSerial" + "PlcMethodSerial", + "PlcMethodModbusTCPChinese", + "PlcMethodSerialChinese" ] }, "constvar.PlcStartAddressType": { @@ -698,6 +740,10 @@ }, "length": { "description": "鏁版嵁闀垮害", + "type": "integer" + }, + "position": { + "description": "鏁版嵁璧峰鍦板潃", "type": "integer" }, "startAddress": { @@ -865,6 +911,10 @@ "id": { "type": "integer" }, + "position": { + "description": "姣忎釜璁惧鍙兘鏈夊涓満浣嶅悓鏃剁敓浜э紝鐢╬osition琛ㄧず浣嶇疆", + "type": "integer" + }, "procedure": { "description": "common.ProductProcedure 瀵硅薄", "allOf": [ @@ -1003,6 +1053,9 @@ "finishNumber": { "type": "integer" }, + "plcStatus": { + "type": "integer" + }, "totalNumber": { "type": "integer" } @@ -1040,6 +1093,10 @@ "order": { "$ref": "#/definitions/model.Order" }, + "position": { + "description": "褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆", + "type": "integer" + }, "procedure": { "$ref": "#/definitions/model.Procedures" } -- Gitblit v1.8.0