jiangshuai
2023-11-13 f16252d8b4736a0212b14a2bfb0eeee411d0cc76
docs/docs.go
@@ -150,6 +150,22 @@
                }
            }
        },
        "/api-wms/v1/attachment/uploadFiles": {
            "post": {
                "tags": [
                    "附件管理"
                ],
                "summary": "上传附件",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/company/company": {
            "get": {
                "produces": [
@@ -543,10 +559,44 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetProductList"
                            "$ref": "#/definitions/request.GetLocationList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.Location"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/location/getLocationTreeList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "位置"
                ],
                "summary": "获取位置列表树",
                "responses": {
                    "200": {
                        "description": "成功",
@@ -913,6 +963,40 @@
                }
            }
        },
        "/api-wms/v1/operation/getLogisticCompanyList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "获取物流公司列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.LogisticCompany"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/list": {
            "post": {
                "produces": [
@@ -1056,6 +1140,32 @@
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operationType/listTransfer": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "业务类型"
                ],
                "summary": "调拨类型列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.ResponseList"
                        }
                    }
                }
@@ -1744,6 +1854,187 @@
                }
            }
        },
        "/api-wms/v1/reorderRule/addReorderRule": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "重订货规则"
                ],
                "summary": "添加重订货规则",
                "parameters": [
                    {
                        "description": "重订货规则",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.ReorderRule"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/reorderRule/getAmountAndPrediction": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "重订货规则"
                ],
                "summary": "获取在库与预测数量",
                "parameters": [
                    {
                        "description": "重订货规则",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetAmountAndPrediction"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": true
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/reorderRule/getReorderRuleList": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "重订货规则"
                ],
                "summary": "获取重订货规则列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetReorderRuleList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.ReorderRule"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/reorderRule/orderAgain": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "重订货规则"
                ],
                "summary": "再订一次",
                "parameters": [
                    {
                        "description": "重订货规则",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.ReorderRule"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/reorderRule/updateReorderRule": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "重订货规则"
                ],
                "summary": "更新重订货规则",
                "parameters": [
                    {
                        "description": "重订货规则",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.ReorderRule"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/warehouse/getWarehouseDetails/{id}": {
            "get": {
                "produces": [
@@ -1967,6 +2258,24 @@
                "CostingMethodAverageCost"
            ]
        },
        "constvar.FileType": {
            "type": "string",
            "enum": [
                "file",
                "picture",
                "thumbnail"
            ],
            "x-enum-comments": {
                "FileType_File": "文件",
                "FileType_Picture": "图片",
                "FileType_Thumbnail": "缩略图"
            },
            "x-enum-varnames": [
                "FileType_File",
                "FileType_Picture",
                "FileType_Thumbnail"
            ]
        },
        "constvar.ForceRemovalStrategy": {
            "type": "integer",
            "enum": [
@@ -2146,6 +2455,21 @@
                "ReservationMethodByDate"
            ]
        },
        "constvar.RuleType": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-comments": {
                "RuleType_Product": "产品上架规则",
                "RuleType_ProductCategory": "产品类别上架规则"
            },
            "x-enum-varnames": [
                "RuleType_Product",
                "RuleType_ProductCategory"
            ]
        },
        "constvar.WhetherType": {
            "type": "integer",
            "enum": [
@@ -2163,6 +2487,26 @@
                "WhetherTypeAlways",
                "ReservationNever"
            ]
        },
        "models.Attachment": {
            "type": "object",
            "properties": {
                "FileUrl": {
                    "type": "string"
                },
                "ext": {
                    "type": "string"
                },
                "fileName": {
                    "type": "string"
                },
                "fileType": {
                    "$ref": "#/definitions/constvar.FileType"
                },
                "id": {
                    "type": "integer"
                }
            }
        },
        "models.Company": {
            "type": "object",
@@ -2223,6 +2567,12 @@
        "models.Location": {
            "type": "object",
            "properties": {
                "children": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.Location"
                    }
                },
                "companyId": {
                    "description": "公司id",
                    "type": "integer"
@@ -2294,12 +2644,51 @@
                }
            }
        },
        "models.LogisticCompany": {
            "type": "object",
            "properties": {
                "contact": {
                    "description": "联系人",
                    "type": "string"
                },
                "contact_phone": {
                    "description": "联系电话",
                    "type": "string"
                },
                "hidden": {
                    "description": "隐藏",
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "monthly_account": {
                    "description": "月结账号",
                    "type": "string"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "models.Material": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "数量",
                    "type": "number"
                },
                "attachmentIDs": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "attachmentList": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.Attachment"
                    }
                },
                "barcode": {
                    "description": "条码",
@@ -2536,6 +2925,16 @@
                "id": {
                    "type": "integer"
                },
                "logisticCompany": {
                    "$ref": "#/definitions/models.LogisticCompany"
                },
                "logisticCompanyId": {
                    "type": "string"
                },
                "logisticWeight": {
                    "description": "物流重量",
                    "type": "number"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
@@ -2577,6 +2976,14 @@
                },
                "updateTime": {
                    "type": "string"
                },
                "waybillNumber": {
                    "description": "运单号",
                    "type": "string"
                },
                "weight": {
                    "description": "重量",
                    "type": "number"
                }
            }
        },
@@ -2658,6 +3065,62 @@
                },
                "routeName": {
                    "description": "公司",
                    "type": "string"
                }
            }
        },
        "models.ReorderRule": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "在库数量",
                    "type": "number"
                },
                "createTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "location": {
                    "$ref": "#/definitions/models.Location"
                },
                "locationId": {
                    "description": "位置id",
                    "type": "integer"
                },
                "maxInventory": {
                    "description": "最大库存",
                    "type": "number"
                },
                "minInventory": {
                    "description": "最小库存",
                    "type": "number"
                },
                "orderNumber": {
                    "description": "订购数量",
                    "type": "number"
                },
                "prediction": {
                    "description": "预测数量",
                    "type": "number"
                },
                "product": {
                    "$ref": "#/definitions/models.Material"
                },
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "route": {
                    "description": "路线",
                    "type": "string"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
@@ -2810,6 +3273,14 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "ruleType": {
                    "description": "上架规则类型 1:产品类型;2:产品类别类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RuleType"
                        }
                    ]
                }
            }
        },
@@ -2849,6 +3320,13 @@
                "id": {
                    "type": "integer"
                },
                "logisticCompanyId": {
                    "type": "string"
                },
                "logisticWeight": {
                    "description": "物流重量",
                    "type": "number"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
@@ -2880,6 +3358,14 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "waybillNumber": {
                    "description": "运单号",
                    "type": "string"
                },
                "weight": {
                    "description": "重量",
                    "type": "number"
                }
            }
        },
@@ -3029,6 +3515,17 @@
                }
            }
        },
        "request.GetAmountAndPrediction": {
            "type": "object",
            "properties": {
                "locationId": {
                    "type": "integer"
                },
                "productId": {
                    "type": "string"
                }
            }
        },
        "request.GetInventoryForms": {
            "type": "object",
            "properties": {
@@ -3060,6 +3557,14 @@
        "request.GetInventoryHistory": {
            "type": "object",
            "properties": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
                "keyWord": {
                    "description": "搜索条件",
                    "type": "string"
@@ -3108,6 +3613,29 @@
                }
            }
        },
        "request.GetLocationList": {
            "type": "object",
            "properties": {
                "jointName": {
                    "description": "拼接名称",
                    "type": "string"
                },
                "keyWord": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "type": {
                    "type": "integer"
                }
            }
        },
        "request.GetProductList": {
            "type": "object",
            "properties": {
@@ -3124,6 +3652,32 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetReorderRuleList": {
            "type": "object",
            "properties": {
                "keyWord": {
                    "type": "string"
                },
                "locationId": {
                    "type": "integer"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "productId": {
                    "type": "string"
                },
                "type": {
                    "description": "类型:bh=补货",
                    "type": "string"
                }
            }
        },
@@ -3354,6 +3908,14 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "ruleType": {
                    "description": "上架规则类型 1:产品类型;2:产品类别类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RuleType"
                        }
                    ]
                }
            }
        },
@@ -3378,6 +3940,10 @@
                },
                "operationId": {
                    "description": "出入库id",
                    "type": "integer"
                },
                "productCategoryId": {
                    "description": "产品种类id",
                    "type": "integer"
                },
                "productId": {
@@ -3430,6 +3996,13 @@
                "id": {
                    "type": "integer"
                },
                "logisticCompanyId": {
                    "type": "string"
                },
                "logisticWeight": {
                    "description": "物流重量",
                    "type": "number"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
@@ -3461,6 +4034,14 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "waybillNumber": {
                    "description": "运单号",
                    "type": "string"
                },
                "weight": {
                    "description": "重量",
                    "type": "number"
                }
            }
        },
@@ -3591,6 +4172,14 @@
                "amount": {
                    "description": "数量",
                    "type": "number"
                },
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
                "contactedName": {
                    "description": "完成者",
@@ -3724,6 +4313,8 @@
   Description:      "",
   InfoInstanceName: "swagger",
   SwaggerTemplate:  docTemplate,
   LeftDelim:        "{{",
   RightDelim:       "}}",
}
func init() {