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 | 343 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 340 insertions(+), 3 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 0b5baf6..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": {
@@ -469,6 +628,13 @@
"parameters": [
{
"type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
+ },
+ {
+ "type": "string",
"name": "keyWord",
"in": "query"
},
@@ -588,6 +754,13 @@
"schema": {
"$ref": "#/definitions/models.WorkshopManage"
}
+ },
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
}
],
"responses": {
@@ -610,7 +783,7 @@
3
],
"x-enum-comments": {
- "AllCar": "鍏ㄨ溅",
+ "AllCar": "鍏ㄨ溅缁撴潫",
"LeftHalfCar": "宸﹀崐杞�",
"RightHalfCar": "鍙冲崐杞�"
},
@@ -714,6 +887,135 @@
}
}
},
+ "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"
+ }
+ }
+ },
"models.FinenessItem": {
"type": "object",
"properties": {
@@ -788,6 +1090,10 @@
"description": "缂栧彿",
"type": "string"
},
+ "position": {
+ "description": "鏈�鍚庝竴涓溅鍙�",
+ "type": "integer"
+ },
"spec": {
"description": "瑙勬牸",
"type": "string"
@@ -807,7 +1113,20 @@
},
"workshopGroup": {
"description": "杞︾粍",
- "type": "string"
+ "type": "integer"
+ }
+ }
+ },
+ "models.FinenessRoundingItem": {
+ "type": "object",
+ "properties": {
+ "fineness": {
+ "description": "绾ゅ害",
+ "type": "number"
+ },
+ "quantity": {
+ "description": "鏁伴噺",
+ "type": "integer"
}
}
},
@@ -937,6 +1256,10 @@
"description": "缂栧彿",
"type": "string"
},
+ "position": {
+ "description": "鏈�鍚庝竴涓溅鍙�",
+ "type": "integer"
+ },
"spec": {
"description": "瑙勬牸",
"type": "string"
@@ -955,7 +1278,7 @@
},
"workshopGroup": {
"description": "杞︾粍",
- "type": "string"
+ "type": "integer"
}
}
},
@@ -1096,6 +1419,20 @@
}
}
},
+ "response.FinenessCheckInfo": {
+ "type": "object",
+ "properties": {
+ "info": {
+ "$ref": "#/definitions/models.FinenessCheck"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.FinenessCheckItem"
+ }
+ }
+ }
+ },
"response.RankStandard": {
"type": "object",
"properties": {
--
Gitblit v1.8.0