From 84da3e2f497a53d1356ee131e41c3ac84ba652f9 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 08 三月 2024 15:14:56 +0800
Subject: [PATCH] 获取生丝定级标准

---
 docs/docs.go |  602 +++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 503 insertions(+), 99 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index fc40334..9dd3fd8 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,6 +16,204 @@
     "host": "{{.Host}}",
     "basePath": "{{.BasePath}}",
     "paths": {
+        "/api-jl/v1/fineness/register": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绾ゅ害鐧昏"
+                ],
+                "summary": "绾ゅ害鐧昏鍒楄〃",
+                "parameters": [
+                    {
+                        "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/register/{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/system/deletePriceStandard/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯"
+                ],
+                "summary": "鍒犻櫎鐢熶笣瀹氫环鏍囧噯",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/system/deleteWorkshopManage/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "绯荤粺璁剧疆/杞﹂棿绠$悊"
+                ],
+                "summary": "鍒犻櫎杞﹂棿绠$悊",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api-jl/v1/system/dict": {
             "get": {
                 "produces": [
@@ -172,16 +370,21 @@
                 }
             }
         },
-        "/api-s/v1/organize/department": {
+        "/api-jl/v1/system/getPriceStandardList": {
             "get": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯"
                 ],
-                "summary": "鏌ヨ閮ㄩ棬淇℃伅鍒楄〃",
+                "summary": "鑾峰彇鐢熶笣瀹氫环鏍囧噯",
                 "parameters": [
+                    {
+                        "type": "string",
+                        "name": "keyWord",
+                        "in": "query"
+                    },
                     {
                         "type": "integer",
                         "description": "椤电爜",
@@ -209,7 +412,7 @@
                                         "data": {
                                             "type": "array",
                                             "items": {
-                                                "$ref": "#/definitions/models.Department"
+                                                "$ref": "#/definitions/models.RawSilkPriceStandard"
                                             }
                                         }
                                     }
@@ -218,23 +421,78 @@
                         }
                     }
                 }
-            },
+            }
+        },
+        "/api-jl/v1/system/getWorkshopManageList": {
+            "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.WorkshopManage"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/system/savePriceStandard": {
             "post": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯"
                 ],
-                "summary": "娣诲姞閮ㄩ棬淇℃伅",
+                "summary": "淇濆瓨鐢熶笣瀹氫环鏍囧噯",
                 "parameters": [
                     {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
+                        "description": "鍙傛暟",
                         "name": "object",
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.AddDepartment"
+                            "$ref": "#/definitions/models.RawSilkPriceStandard"
                         }
                     }
                 ],
@@ -248,51 +506,23 @@
                 }
             }
         },
-        "/api-s/v1/organize/department/{id}": {
-            "put": {
+        "/api-jl/v1/system/saveWorkshopManage": {
+            "post": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "閮ㄩ棬淇℃伅"
+                    "绯荤粺璁剧疆/杞﹂棿绠$悊"
                 ],
-                "summary": "缂栬緫閮ㄩ棬淇℃伅",
+                "summary": "淇濆瓨杞﹂棿绠$悊",
                 "parameters": [
                     {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
+                        "description": "鍙傛暟",
                         "name": "object",
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.UpdateDepartment"
-                        }
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            },
-            "delete": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "閮ㄩ棬淇℃伅"
-                ],
-                "summary": "缂栬緫閮ㄩ棬淇℃伅",
-                "parameters": [
-                    {
-                        "description": "閮ㄩ棬淇℃伅淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.UpdateDepartment"
+                            "$ref": "#/definitions/models.WorkshopManage"
                         }
                     }
                 ],
@@ -308,6 +538,24 @@
         }
     },
     "definitions": {
+        "constvar.CarFlag": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3
+            ],
+            "x-enum-comments": {
+                "AllCar": "鍏ㄨ溅",
+                "LeftHalfCar": "宸﹀崐杞�",
+                "RightHalfCar": "鍙冲崐杞�"
+            },
+            "x-enum-varnames": [
+                "LeftHalfCar",
+                "RightHalfCar",
+                "AllCar"
+            ]
+        },
         "constvar.DictType": {
             "type": "integer",
             "enum": [
@@ -338,44 +586,6 @@
                 "valid": {
                     "description": "Valid is true if Time is not NULL",
                     "type": "boolean"
-                }
-            }
-        },
-        "models.Department": {
-            "type": "object",
-            "properties": {
-                "children": {
-                    "type": "array",
-                    "items": {
-                        "$ref": "#/definitions/models.Department"
-                    }
-                },
-                "head": {
-                    "description": "閮ㄩ棬璐熻矗浜�",
-                    "type": "string"
-                },
-                "id": {
-                    "type": "integer"
-                },
-                "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
-                    "type": "string"
-                },
-                "number": {
-                    "description": "閮ㄩ棬缂栧彿",
-                    "type": "string"
-                },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID",
-                    "type": "integer"
-                },
-                "remark": {
-                    "description": "澶囨敞",
-                    "type": "string"
-                },
-                "sort": {
-                    "description": "鎺掑簭",
-                    "type": "integer"
                 }
             }
         },
@@ -416,23 +626,166 @@
                 }
             }
         },
-        "request.AddDepartment": {
+        "models.FinenessItem": {
             "type": "object",
             "properties": {
+                "createdAt": {
+                    "type": "string"
+                },
+                "deletedAt": {
+                    "$ref": "#/definitions/gorm.DeletedAt"
+                },
+                "fineness": {
+                    "description": "绾ゅ害",
+                    "type": "number"
+                },
+                "finenessRegisterID": {
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "position": {
+                    "description": "杞﹀彿",
+                    "type": "integer"
+                },
+                "quantity": {
+                    "description": "鏁伴噺",
+                    "type": "number"
+                },
+                "sum": {
+                    "description": "绾ゅ害鍚堣",
+                    "type": "number"
+                },
+                "updatedAt": {
+                    "type": "string"
+                }
+            }
+        },
+        "models.FinenessRegister": {
+            "type": "object",
+            "properties": {
+                "circle": {
+                    "description": "鍥炴暟",
+                    "type": "integer"
+                },
+                "createdAt": {
+                    "type": "string"
+                },
+                "deletedAt": {
+                    "$ref": "#/definitions/gorm.DeletedAt"
+                },
+                "finenessList": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/models.FinenessItem"
+                    }
+                },
+                "finishDate": {
+                    "description": "钀戒笣鏃堕棿",
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "market": {
+                    "description": "搴勫彛",
+                    "type": "string"
+                },
                 "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
+                    "description": "杞﹂棿",
                     "type": "string"
                 },
                 "number": {
-                    "description": "閮ㄩ棬缂栧彿",
+                    "description": "缂栧彿",
                     "type": "string"
                 },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0",
+                "spec": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "sumFineness": {
+                    "type": "number"
+                },
+                "sumQuantity": {
+                    "type": "number"
+                },
+                "totalCircle": {
+                    "description": "鎬诲洖鏁�",
                     "type": "integer"
                 },
-                "remark": {
-                    "description": "澶囨敞",
+                "updatedAt": {
+                    "type": "string"
+                },
+                "workshopGroup": {
+                    "description": "杞︾粍",
+                    "type": "string"
+                }
+            }
+        },
+        "models.RawSilkPriceStandard": {
+            "type": "object",
+            "properties": {
+                "createdAt": {
+                    "type": "string"
+                },
+                "deletedAt": {
+                    "$ref": "#/definitions/gorm.DeletedAt"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "marketNumber": {
+                    "type": "string"
+                },
+                "notes": {
+                    "type": "string"
+                },
+                "payStandard": {
+                    "type": "number"
+                },
+                "rawSilkGradeNumber": {
+                    "type": "string"
+                },
+                "unit": {
+                    "type": "string"
+                },
+                "updatedAt": {
+                    "type": "string"
+                }
+            }
+        },
+        "models.WorkshopManage": {
+            "type": "object",
+            "properties": {
+                "carFlag": {
+                    "$ref": "#/definitions/constvar.CarFlag"
+                },
+                "createdAt": {
+                    "type": "string"
+                },
+                "deletedAt": {
+                    "$ref": "#/definitions/gorm.DeletedAt"
+                },
+                "endCarNumber": {
+                    "type": "integer"
+                },
+                "groupNumber": {
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "notes": {
+                    "type": "string"
+                },
+                "startCarNumber": {
+                    "type": "integer"
+                },
+                "updatedAt": {
+                    "type": "string"
+                },
+                "workshopNumber": {
                     "type": "string"
                 }
             }
@@ -462,27 +815,80 @@
                 }
             }
         },
-        "request.UpdateDepartment": {
+        "request.AddFinenessRegister": {
             "type": "object",
             "properties": {
-                "id": {
+                "circle": {
+                    "description": "鍥炴暟",
                     "type": "integer"
                 },
+                "finenessList": {
+                    "description": "绾ゅ害鏁扮粍",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.FinenessItem"
+                    }
+                },
+                "finishDate": {
+                    "description": "钀戒笣鏃堕棿",
+                    "type": "string"
+                },
+                "id": {
+                    "description": "id 娣诲姞鏃朵紶0",
+                    "type": "integer"
+                },
+                "market": {
+                    "description": "搴勫彛",
+                    "type": "string"
+                },
                 "name": {
-                    "description": "閮ㄩ棬鍚嶇О",
+                    "description": "杞﹂棿",
                     "type": "string"
                 },
                 "number": {
-                    "description": "閮ㄩ棬缂栧彿",
+                    "description": "缂栧彿",
                     "type": "string"
                 },
-                "parentId": {
-                    "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0",
+                "spec": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "sumFineness": {
+                    "description": "鍚堣绾ゅ害",
+                    "type": "number"
+                },
+                "sumQuantity": {
+                    "description": "鍚堣鏁伴噺",
+                    "type": "number"
+                },
+                "totalCircle": {
+                    "description": "鎬诲洖鏁�",
                     "type": "integer"
                 },
-                "remark": {
-                    "description": "澶囨敞",
+                "workshopGroup": {
+                    "description": "杞︾粍",
                     "type": "string"
+                }
+            }
+        },
+        "request.FinenessItem": {
+            "type": "object",
+            "properties": {
+                "fineness": {
+                    "description": "绾ゅ害",
+                    "type": "number"
+                },
+                "position": {
+                    "description": "杞﹀彿",
+                    "type": "integer"
+                },
+                "quantity": {
+                    "description": "鏁伴噺",
+                    "type": "number"
+                },
+                "sum": {
+                    "description": "鍚堣",
+                    "type": "number"
                 }
             }
         },
@@ -542,9 +948,7 @@
                 "pageSize": {
                     "type": "integer"
                 },
-                "total": {
-                    "type": "integer"
-                }
+                "total": {}
             }
         }
     }

--
Gitblit v1.8.0