From 2234e8fa97e85e1e69a6f970416602f283e09df6 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 07 四月 2024 21:57:28 +0800 Subject: [PATCH] 解决联调问题,增加纤度检验相关接口 --- docs/docs.go | 389 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 387 insertions(+), 2 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 9dd3fd8..9332540 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,6 +16,153 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { + "/api-jl/v1/fineness/check": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害妫�楠�" + ], + "summary": "绾ゅ害妫�楠屽垪琛�", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.FinenessRegister" + } + } + } + } + ] + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害妫�楠�" + ], + "summary": "绾ゅ害妫�楠屼慨鏀�", + "parameters": [ + { + "description": "瀛楀吀淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddFinenessRegister" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/fineness/check/{id}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害妫�楠�" + ], + "summary": "绾ゅ害妫�楠岃鎯�", + "parameters": [ + { + "type": "string", + "description": "瀛楀吀淇℃伅", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.FinenessRegister" + } + } + } + ] + } + } + } + }, + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害妫�楠�" + ], + "summary": "绾ゅ害妫�楠屽垹闄�", + "parameters": [ + { + "type": "string", + "description": "瀛楀吀淇℃伅", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, "/api-jl/v1/fineness/register": { "get": { "produces": [ @@ -26,6 +173,11 @@ ], "summary": "绾ゅ害鐧昏鍒楄〃", "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, { "type": "integer", "description": "椤电爜", @@ -80,6 +232,13 @@ "schema": { "$ref": "#/definitions/request.AddFinenessRegister" } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -423,6 +582,40 @@ } } }, + "/api-jl/v1/system/getRankStandard": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯" + ], + "summary": "鑾峰彇鐢熶笣瀹氱骇鏍囧噯", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/response.RankStandard" + } + } + } + } + ] + } + } + } + } + }, "/api-jl/v1/system/getWorkshopManageList": { "get": { "produces": [ @@ -506,6 +699,36 @@ } } }, + "/api-jl/v1/system/saveRankStandard": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯" + ], + "summary": "淇濆瓨鐢熶笣瀹氱骇鏍囧噯", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SaveRankStandard" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, "/api-jl/v1/system/saveWorkshopManage": { "post": { "produces": [ @@ -524,6 +747,13 @@ "schema": { "$ref": "#/definitions/models.WorkshopManage" } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -546,7 +776,7 @@ 3 ], "x-enum-comments": { - "AllCar": "鍏ㄨ溅", + "AllCar": "鍏ㄨ溅缁撴潫", "LeftHalfCar": "宸﹀崐杞�", "RightHalfCar": "鍙冲崐杞�" }, @@ -554,6 +784,30 @@ "LeftHalfCar", "RightHalfCar", "AllCar" + ] + }, + "constvar.CheckItem": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-comments": { + "CheckItemCleanliness": "娓呮磥鍒�", + "CheckItemDeviation": "绾ゅ害鍋忓樊", + "CheckItemMaxDeviation": "鏈�澶у亸宸�", + "CheckItemPurity": "娲佸噣鍒�", + "CheckItemTwiceChange": "浜屾鍙樺寲" + }, + "x-enum-varnames": [ + "CheckItemDeviation", + "CheckItemTwiceChange", + "CheckItemCleanliness", + "CheckItemPurity", + "CheckItemMaxDeviation" ] }, "constvar.DictType": { @@ -719,7 +973,7 @@ }, "workshopGroup": { "description": "杞︾粍", - "type": "string" + "type": "integer" } } }, @@ -867,7 +1121,24 @@ }, "workshopGroup": { "description": "杞︾粍", + "type": "integer" + } + } + }, + "request.DynamicsRank": { + "type": "object", + "properties": { + "rankName": { + "description": "绛夌骇鍚嶇О", "type": "string" + }, + "rankProp": { + "description": "鍓嶇紑key", + "type": "string" + }, + "rankValue": { + "description": "绛夌骇鍊�", + "type": "number" } } }, @@ -889,6 +1160,60 @@ "sum": { "description": "鍚堣", "type": "number" + } + } + }, + "request.RankStandard": { + "type": "object", + "properties": { + "checkItem": { + "description": "妫�鏌ラ」鐩悕绉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.CheckItem" + } + ] + }, + "dynamicsRanks": { + "type": "array", + "items": { + "$ref": "#/definitions/request.DynamicsRank" + } + }, + "endFineness": { + "description": "缁撴潫绾ゅ害", + "type": "number" + }, + "lineId": { + "description": "琛宨d", + "type": "string" + }, + "rankA": { + "description": "閲庣氦", + "type": "number" + }, + "rankB": { + "description": "澶ч噹", + "type": "number" + }, + "rankC": { + "description": "鐗归噹", + "type": "number" + }, + "startFineness": { + "description": "寮�濮嬬氦搴�", + "type": "number" + } + } + }, + "request.SaveRankStandard": { + "type": "object", + "properties": { + "rankStandard": { + "type": "array", + "items": { + "$ref": "#/definitions/request.RankStandard" + } } } }, @@ -920,6 +1245,66 @@ } } }, + "response.DynamicsRank": { + "type": "object", + "properties": { + "rankName": { + "description": "绛夌骇鍚嶇О", + "type": "string" + }, + "rankProp": { + "description": "鍓嶇紑key", + "type": "string" + }, + "rankValue": { + "description": "绛夌骇鍊�", + "type": "number" + } + } + }, + "response.RankStandard": { + "type": "object", + "properties": { + "checkItem": { + "description": "妫�鏌ラ」鐩悕绉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.CheckItem" + } + ] + }, + "dynamicsRanks": { + "type": "array", + "items": { + "$ref": "#/definitions/response.DynamicsRank" + } + }, + "endFineness": { + "description": "缁撴潫绾ゅ害", + "type": "number" + }, + "lineId": { + "description": "琛宨d", + "type": "string" + }, + "rankA": { + "description": "閲庣氦", + "type": "number" + }, + "rankB": { + "description": "澶ч噹", + "type": "number" + }, + "rankC": { + "description": "鐗归噹", + "type": "number" + }, + "startFineness": { + "description": "寮�濮嬬氦搴�", + "type": "number" + } + } + }, "util.Response": { "type": "object", "properties": { -- Gitblit v1.8.0