From 7edecfcf0f48ba6d6177486a57399a558c4c79e7 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 27 九月 2023 11:14:17 +0800
Subject: [PATCH] 1.二期一部分代码

---
 docs/docs.go |  301 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 292 insertions(+), 9 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 20caec6..b6dbbbf 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -467,6 +467,184 @@
                 }
             }
         },
+        "/api-wms/v1/locationProduct/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "涓婃灦瑙勫垯"
+                ],
+                "summary": "娣诲姞涓婃灦瑙勫垯",
+                "parameters": [
+                    {
+                        "description": "鏂板涓婃灦瑙勫垯",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddLocationProduct"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/locationProduct/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "涓婃灦瑙勫垯"
+                ],
+                "summary": "鍒犻櫎涓婃灦瑙勫垯",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/locationProduct/list": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "涓婃灦瑙勫垯"
+                ],
+                "summary": "涓婃灦瑙勫垯鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.PageInfo"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/locationProduct/update": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "涓婃灦瑙勫垯"
+                ],
+                "summary": "淇敼涓婃灦瑙勫垯",
+                "parameters": [
+                    {
+                        "description": "淇敼鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateLocationProduct"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/locationProductamount/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "搴撳瓨鐩樼偣"
+                ],
+                "summary": "娣诲姞搴撳瓨鐩樼偣淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍏ュ簱/鍑哄簱淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddLocationProductAmount"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/locationProductamount/list": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "搴撳瓨鐩樼偣"
+                ],
+                "summary": "搴撳瓨鐩樼偣鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.PageInfo"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api-wms/v1/operation/finish/{id}": {
             "put": {
                 "produces": [
@@ -1467,9 +1645,13 @@
             "enum": [
                 1,
                 2,
-                3
+                3,
+                4,
+                5
             ],
             "x-enum-comments": {
+                "BaseOperationTypeAdjust": "搴撳瓨鐩樼偣",
+                "BaseOperationTypeDisuse": "鎶ュ簾",
                 "BaseOperationTypeIncoming": "鏀惰揣",
                 "BaseOperationTypeInternal": "鍐呴儴璋冩嫧",
                 "BaseOperationTypeOutgoing": "浜よ揣"
@@ -1477,7 +1659,9 @@
             "x-enum-varnames": [
                 "BaseOperationTypeIncoming",
                 "BaseOperationTypeOutgoing",
-                "BaseOperationTypeInternal"
+                "BaseOperationTypeInternal",
+                "BaseOperationTypeDisuse",
+                "BaseOperationTypeAdjust"
             ]
         },
         "constvar.CostingMethod": {
@@ -1560,10 +1744,12 @@
                 5,
                 6,
                 7,
-                8
+                8,
+                9
             ],
             "x-enum-comments": {
                 "LocationTypeCustomer": "瀹㈡埛浣嶇疆",
+                "LocationTypeDisuse": "鎶ュ簾浣嶇疆",
                 "LocationTypeInternal": "鍐呴儴浣嶇疆",
                 "LocationTypeInventoryLoss": "搴撳瓨鎹熷け",
                 "LocationTypeProduction": "鐢熶骇",
@@ -1579,7 +1765,8 @@
                 "LocationTypeInventoryLoss",
                 "LocationTypeProduction",
                 "LocationTypeTransit",
-                "LocationTypeDisuse"
+                "LocationTypeDisuse",
+                "LocationTypeAdjust"
             ]
         },
         "constvar.MaterialMode": {
@@ -1798,7 +1985,7 @@
                 },
                 "parentId": {
                     "description": "涓婄骇id",
-                    "type": "string"
+                    "type": "integer"
                 },
                 "recentlyCount": {
                     "description": "鏈�杩戠洏鐐�",
@@ -2016,6 +2203,14 @@
         "models.Operation": {
             "type": "object",
             "properties": {
+                "baseOperationType": {
+                    "description": "鍩虹浣滀笟绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.BaseOperationType"
+                        }
+                    ]
+                },
                 "comment": {
                     "type": "string"
                 },
@@ -2311,6 +2506,50 @@
                 }
             }
         },
+        "request.AddLocationProduct": {
+            "type": "object",
+            "properties": {
+                "areaId": {
+                    "description": "鍖哄煙id",
+                    "type": "integer"
+                },
+                "locationId": {
+                    "description": "浣嶇疆id",
+                    "type": "integer"
+                },
+                "productCategoryId": {
+                    "description": "浜у搧绉嶇被id",
+                    "type": "integer"
+                },
+                "productId": {
+                    "description": "浜у搧id",
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddLocationProductAmount": {
+            "type": "object",
+            "properties": {
+                "adjustAmount": {
+                    "description": "宸��",
+                    "type": "number"
+                },
+                "decimal": {
+                    "description": "搴撳瓨鏁伴噺",
+                    "type": "number"
+                },
+                "difference_amount": {
+                    "description": "璁℃暟鏁伴噺",
+                    "type": "number"
+                },
+                "locationId": {
+                    "type": "integer"
+                },
+                "productId": {
+                    "type": "string"
+                }
+            }
+        },
         "request.AddOperation": {
             "type": "object",
             "properties": {
@@ -2583,6 +2822,19 @@
                 }
             }
         },
+        "request.PageInfo": {
+            "type": "object",
+            "properties": {
+                "page": {
+                    "description": "椤电爜",
+                    "type": "integer"
+                },
+                "pageSize": {
+                    "description": "姣忛〉澶у皬",
+                    "type": "integer"
+                }
+            }
+        },
         "request.QueryDisuseList": {
             "type": "object",
             "properties": {
@@ -2658,8 +2910,10 @@
             "type": "object",
             "properties": {
                 "amount": {
-                    "description": "ProductName    string                   ` + "`" + `json:\"productName\"` + "`" + `",
                     "type": "number"
+                },
+                "baseOperationType": {
+                    "$ref": "#/definitions/constvar.BaseOperationType"
                 },
                 "fromLocationId": {
                     "type": "integer"
@@ -2668,7 +2922,6 @@
                     "type": "integer"
                 },
                 "number": {
-                    "description": "Unit           string                   ` + "`" + `json:\"unit\"` + "`" + `",
                     "type": "string"
                 },
                 "operationDate": {
@@ -2688,9 +2941,41 @@
                 }
             }
         },
+        "request.UpdateLocationProduct": {
+            "type": "object",
+            "properties": {
+                "areaId": {
+                    "description": "鍖哄煙id",
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "locationId": {
+                    "description": "浣嶇疆id",
+                    "type": "integer"
+                },
+                "productCategoryId": {
+                    "description": "浜у搧绉嶇被id",
+                    "type": "integer"
+                },
+                "productId": {
+                    "description": "浜у搧id",
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateOperation": {
             "type": "object",
             "properties": {
+                "baseOperationType": {
+                    "description": "鍩虹浣滀笟绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.BaseOperationType"
+                        }
+                    ]
+                },
                 "comment": {
                     "description": "澶囨敞",
                     "type": "string"
@@ -2876,8 +3161,6 @@
 	Description:      "",
 	InfoInstanceName: "swagger",
 	SwaggerTemplate:  docTemplate,
-	LeftDelim:        "{{",
-	RightDelim:       "}}",
 }
 
 func init() {

--
Gitblit v1.8.0