From e99cc5acf40323379cf538bc5f08228a42aa2bee Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 09 四月 2024 17:52:26 +0800
Subject: [PATCH] 产量登记表2
---
docs/docs.go | 560 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 558 insertions(+), 2 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 9dd3fd8..303074d 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.FinenessCheck"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "绾ゅ害妫�楠�"
+ ],
+ "summary": "绾ゅ害妫�楠屼慨鏀�",
+ "parameters": [
+ {
+ "description": "瀛楀吀淇℃伅",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/models.FinenessCheck"
+ }
+ }
+ ],
+ "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/response.FinenessCheckInfo"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "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": [
@@ -433,6 +626,13 @@
],
"summary": "鑾峰彇杞﹂棿绠$悊鍒楄〃",
"parameters": [
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
+ },
{
"type": "string",
"name": "keyWord",
@@ -506,6 +706,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 +754,13 @@
"schema": {
"$ref": "#/definitions/models.WorkshopManage"
}
+ },
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
}
],
"responses": {
@@ -546,7 +783,7 @@
3
],
"x-enum-comments": {
- "AllCar": "鍏ㄨ溅",
+ "AllCar": "鍏ㄨ溅缁撴潫",
"LeftHalfCar": "宸﹀崐杞�",
"RightHalfCar": "鍙冲崐杞�"
},
@@ -554,6 +791,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": {
@@ -620,6 +881,135 @@
"remark": {
"description": "澶囨敞",
"type": "string"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ }
+ },
+ "models.FinenessCheck": {
+ "type": "object",
+ "properties": {
+ "averageFineness": {
+ "description": "骞冲潎绾ゅ害",
+ "type": "number"
+ },
+ "cleanliness": {
+ "description": "娓呮磥搴�",
+ "type": "number"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "deletedAt": {
+ "$ref": "#/definitions/gorm.DeletedAt"
+ },
+ "deviation": {
+ "description": "鍋忓樊",
+ "type": "number"
+ },
+ "finenessGrade": {
+ "description": "绾ゅ害绛夌骇",
+ "type": "string"
+ },
+ "finenessRegister": {
+ "description": "绾ゅ害鐧昏",
+ "allOf": [
+ {
+ "$ref": "#/definitions/models.FinenessRegister"
+ }
+ ]
+ },
+ "finenessRegisterID": {
+ "description": "绾ゅ害鐧昏琛↖D",
+ "type": "integer"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "inspector": {
+ "description": "妫�楠屽憳",
+ "type": "string"
+ },
+ "marketProcessOrderNumber": {
+ "description": "搴勫彛宸ヨ壓鍗曠紪鍙�",
+ "type": "string"
+ },
+ "measureFineness": {
+ "description": "鍏噺绾ゅ害",
+ "type": "number"
+ },
+ "purity": {
+ "description": "娲佸噣搴�",
+ "type": "number"
+ },
+ "totalDeviation": {
+ "description": "鎬诲樊",
+ "type": "number"
+ },
+ "twiceChange": {
+ "description": "浜屽害鍙樺寲",
+ "type": "number"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ }
+ },
+ "models.FinenessCheckItem": {
+ "type": "object",
+ "properties": {
+ "cleanliness": {
+ "description": "娓呮磥搴�",
+ "type": "number"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "deletedAt": {
+ "$ref": "#/definitions/gorm.DeletedAt"
+ },
+ "deviation": {
+ "description": "鍋忓樊",
+ "type": "number"
+ },
+ "finenessGrade": {
+ "description": "绾ゅ害绛夌骇",
+ "type": "string"
+ },
+ "finenessRegisterID": {
+ "description": "绾ゅ害鐧昏琛↖D",
+ "type": "integer"
+ },
+ "finenessRoundingItems": {
+ "description": "绾ゅ害鍒楄〃",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.FinenessRoundingItem"
+ }
+ },
+ "id": {
+ "type": "integer"
+ },
+ "position": {
+ "description": "FinenessCheckID uint ` + "`" + `gorm:\"not null;comment:绾ゅ害妫�楠岃〃ID\" json:\"finenessCheckID\"` + "`" + ` //绾ゅ害妫�楠岃〃ID",
+ "type": "integer"
+ },
+ "purity": {
+ "description": "娲佸噣搴�",
+ "type": "number"
+ },
+ "remark": {
+ "description": "澶囨敞",
+ "type": "string"
+ },
+ "totalDeviation": {
+ "description": "鎬诲樊",
+ "type": "number"
+ },
+ "twiceChange": {
+ "description": "浜屽害鍙樺寲",
+ "type": "number"
},
"updatedAt": {
"type": "string"
@@ -700,6 +1090,10 @@
"description": "缂栧彿",
"type": "string"
},
+ "position": {
+ "description": "鏈�鍚庝竴涓溅鍙�",
+ "type": "integer"
+ },
"spec": {
"description": "瑙勬牸",
"type": "string"
@@ -719,7 +1113,20 @@
},
"workshopGroup": {
"description": "杞︾粍",
- "type": "string"
+ "type": "integer"
+ }
+ }
+ },
+ "models.FinenessRoundingItem": {
+ "type": "object",
+ "properties": {
+ "fineness": {
+ "description": "绾ゅ害",
+ "type": "number"
+ },
+ "quantity": {
+ "description": "鏁伴噺",
+ "type": "integer"
}
}
},
@@ -849,6 +1256,10 @@
"description": "缂栧彿",
"type": "string"
},
+ "position": {
+ "description": "鏈�鍚庝竴涓溅鍙�",
+ "type": "integer"
+ },
"spec": {
"description": "瑙勬牸",
"type": "string"
@@ -867,7 +1278,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 +1317,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 +1402,80 @@
}
}
},
+ "response.DynamicsRank": {
+ "type": "object",
+ "properties": {
+ "rankName": {
+ "description": "绛夌骇鍚嶇О",
+ "type": "string"
+ },
+ "rankProp": {
+ "description": "鍓嶇紑key",
+ "type": "string"
+ },
+ "rankValue": {
+ "description": "绛夌骇鍊�",
+ "type": "number"
+ }
+ }
+ },
+ "response.FinenessCheckInfo": {
+ "type": "object",
+ "properties": {
+ "info": {
+ "$ref": "#/definitions/models.FinenessCheck"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.FinenessCheckItem"
+ }
+ }
+ }
+ },
+ "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