zhangqian
2024-06-26 2d911d76bffda47005f8a30eb8f3719316bf43c9
docs/docs.go
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
@@ -156,6 +155,286 @@
                    "附件管理"
                ],
                "summary": "上传附件",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attribute/attribute": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性值和对象"
                ],
                "summary": "添加属性值和对象",
                "parameters": [
                    {
                        "description": "属性值和对象信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AttributeList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            },
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性"
                ],
                "summary": "添加属性",
                "parameters": [
                    {
                        "description": "属性信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddAttribute"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attribute/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性"
                ],
                "summary": "删除属性",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "属性id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attribute/primary/{id}": {
            "get": {
                "tags": [
                    "属性值和对象"
                ],
                "summary": "查询属性值和对象 通过主键ID查询",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attribute/updateAttribute/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性"
                ],
                "summary": "编辑属性",
                "parameters": [
                    {
                        "description": "属性信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateAttribute"
                        }
                    },
                    {
                        "type": "string",
                        "description": "属性id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attributeValue/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性值和对象"
                ],
                "summary": "添加属性值和对象",
                "parameters": [
                    {
                        "description": "属性值和对象信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddAttributeValue"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attributeValue/delete/{id}": {
            "delete": {
                "tags": [
                    "属性值和对象"
                ],
                "summary": "删除属性值和对象",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attributeValue/list": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性值和对象"
                ],
                "summary": "查询属性值和对象 分页条件筛选Value like '%v%' 模糊查询",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attributeValue/primary/{id}": {
            "get": {
                "tags": [
                    "属性值和对象"
                ],
                "summary": "查询属性值和对象 通过主键ID查询",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/attributeValue/update": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "属性值和对象"
                ],
                "summary": "更新属性值和对象",
                "parameters": [
                    {
                        "description": "属性值和对象信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateAttributeValue"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
@@ -614,6 +893,58 @@
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.LocationForms"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/forms/downloadMonthStats": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报表"
                ],
                "summary": "下载月度统计库存报表",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetMonthStats"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.MonthStats"
                                            }
                                        }
                                    }
@@ -1809,6 +2140,7 @@
                "parameters": [
                    {
                        "type": "string",
                        "description": "关键字搜索",
                        "name": "keyword",
                        "in": "query"
                    },
@@ -1822,6 +2154,12 @@
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "仓库id",
                        "name": "warehouseId",
                        "in": "query"
                    }
                ],
@@ -2052,12 +2390,40 @@
                "tags": [
                    "产品"
                ],
                "summary": "删除产品",
                "summary": "通过产品/商品/物料 ID删除产品",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/deleteProductByBarCode/{barCode}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "通过产品/商品/物料 条形码删除产品",
                "parameters": [
                    {
                        "type": "string",
                        "description": "barCode",
                        "name": "barCode",
                        "in": "path",
                        "required": true
                    }
@@ -2221,12 +2587,66 @@
                "tags": [
                    "产品"
                ],
                "summary": "获取产品详情",
                "summary": "通过产品/商品/物料 ID获取产品详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/models.Material"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/getProductDetailsByBarCode/{barCode}": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "通过产品/商品/物料 条形码 获取产品详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "barCode",
                        "name": "barCode",
                        "in": "path",
                        "required": true
                    }
@@ -2359,6 +2779,44 @@
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/inputProduct": {
            "post": {
                "consumes": [
                    "multipart/form-data"
                ],
                "produces": [
                    "application/xlsx"
                ],
                "tags": [
                    "物料管理"
                ],
                "summary": "导入物料",
                "parameters": [
                    {
                        "type": "file",
                        "description": "file",
                        "name": "file",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
@@ -3101,6 +3559,21 @@
                "CostingMethodAverageCost"
            ]
        },
        "constvar.FileTemplateCategory": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-comments": {
                "FileTemplateCategory_Output": "出库",
                "FileTemplateCategory_Selfmade": "入库-自制"
            },
            "x-enum-varnames": [
                "FileTemplateCategory_Selfmade",
                "FileTemplateCategory_Output"
            ]
        },
        "constvar.FileType": {
            "type": "string",
            "enum": [
@@ -3393,6 +3866,18 @@
                "ReservationNever"
            ]
        },
        "gorm.DeletedAt": {
            "type": "object",
            "properties": {
                "time": {
                    "type": "string"
                },
                "valid": {
                    "description": "Valid is true if Time is not NULL",
                    "type": "boolean"
                }
            }
        },
        "inventory_order.WorkerInfo": {
            "type": "object",
            "properties": {
@@ -3421,6 +3906,46 @@
                },
                "id": {
                    "type": "integer"
                }
            }
        },
        "models.Attribute": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "dataType": {
                    "description": "值类型(1字符串 2 int 3 下拉框 )",
                    "type": "integer"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "entityType": {
                    "description": "给谁用的 1 物料(产品)",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "属性名称",
                    "type": "string"
                },
                "selectValues": {
                    "description": "dateType=3时用",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "updatedAt": {
                    "type": "string"
                },
                "value": {
                    "description": "从AttributeValue取到的value",
                    "type": "string"
                }
            }
        },
@@ -3662,8 +4187,19 @@
                        "$ref": "#/definitions/models.Attachment"
                    }
                },
                "attributes": {
                    "description": "动态属性",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.Attribute"
                    }
                },
                "autoIncr": {
                    "type": "integer"
                },
                "barCode": {
                    "description": "创建人",
                    "type": "string"
                },
                "barcode": {
                    "description": "条码",
@@ -3708,6 +4244,10 @@
                "cost": {
                    "description": "成本",
                    "type": "number"
                },
                "createBy": {
                    "description": "创建人",
                    "type": "string"
                },
                "currencyName": {
                    "description": "币种名称",
@@ -4097,6 +4637,9 @@
                        }
                    ]
                },
                "checkedBy": {
                    "type": "string"
                },
                "comment": {
                    "type": "string"
                },
@@ -4110,6 +4653,9 @@
                    "type": "integer"
                },
                "contacterName": {
                    "type": "string"
                },
                "createBy": {
                    "type": "string"
                },
                "createTime": {
@@ -4129,6 +4675,10 @@
                },
                "id": {
                    "type": "integer"
                },
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "location": {
                    "description": "源位置",
@@ -4191,6 +4741,9 @@
                "receiverPhone": {
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salesDetailsNumber": {
                    "type": "string"
                },
@@ -4247,6 +4800,10 @@
                "auxiliaryUnit": {
                    "type": "string"
                },
                "cost": {
                    "description": "成本单价",
                    "type": "number"
                },
                "createTime": {
                    "type": "string"
                },
@@ -4265,6 +4822,10 @@
                "id": {
                    "type": "integer"
                },
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "operationId": {
                    "description": "操作id",
                    "type": "integer"
@@ -4280,6 +4841,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocation": {
                    "description": "目标位置",
@@ -4439,6 +5007,7 @@
                    "type": "number"
                },
                "floating": {
                    "description": "是否浮动利率",
                    "type": "boolean"
                },
                "unit": {
@@ -4477,6 +5046,12 @@
                },
                "createTime": {
                    "type": "string"
                },
                "fileTemplateCategoryIn": {
                    "$ref": "#/definitions/constvar.FileTemplateCategory"
                },
                "fileTemplateCategoryOut": {
                    "$ref": "#/definitions/constvar.FileTemplateCategory"
                },
                "id": {
                    "type": "integer"
@@ -4520,6 +5095,43 @@
                },
                "warehouseLocation": {
                    "description": "库存位置",
                    "type": "string"
                }
            }
        },
        "request.AddAttribute": {
            "type": "object",
            "properties": {
                "dataType": {
                    "description": "值类型(1字符串 2 int 3 下拉框 )",
                    "type": "integer"
                },
                "entityType": {
                    "description": "给谁用的 1 物料(产品)",
                    "type": "integer"
                },
                "name": {
                    "description": "属性名称",
                    "type": "string"
                },
                "selectValues": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "request.AddAttributeValue": {
            "type": "object",
            "properties": {
                "attributeId": {
                    "type": "integer"
                },
                "entityId": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
@@ -4853,6 +5465,25 @@
                }
            }
        },
        "request.AttributeList": {
            "type": "object",
            "properties": {
                "entityType": {
                    "type": "integer"
                },
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.DoMonthStats": {
            "type": "object",
            "properties": {
@@ -5124,12 +5755,24 @@
                "condition": {
                    "type": "string"
                },
                "keyword": {
                    "description": "关键字搜索",
                    "type": "string"
                },
                "locationId": {
                    "description": "位置ID",
                    "type": "integer"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "warehouseId": {
                    "description": "仓库ID",
                    "type": "integer"
                }
            }
@@ -5153,6 +5796,10 @@
                    "description": "辅助单位",
                    "type": "string"
                },
                "cost": {
                    "description": "成本单价",
                    "type": "number"
                },
                "fromLocationId": {
                    "description": "Unit        string          ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:单位\"` + "`" + `                    //单位\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `",
                    "type": "integer"
@@ -5160,6 +5807,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocationId": {
                    "description": "目标位置id",
@@ -5279,6 +5933,49 @@
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateAttribute": {
            "type": "object",
            "properties": {
                "dataType": {
                    "description": "值类型(1字符串 2 int 3 下拉框 )",
                    "type": "integer"
                },
                "entityType": {
                    "description": "给谁用的 1 物料(产品)",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "属性名称",
                    "type": "string"
                },
                "selectValues": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "request.UpdateAttributeValue": {
            "type": "object",
            "properties": {
                "attributeId": {
                    "type": "integer"
                },
                "entityId": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "value": {
                    "type": "string"
                }
            }
@@ -5622,9 +6319,23 @@
                    "description": "在库数量",
                    "type": "number"
                },
                "amountMoreUnits": {
                    "description": "在库数量多单位",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "availableNumber": {
                    "description": "可用库存",
                    "type": "number"
                },
                "availableNumberMoreUnits": {
                    "description": "可用库存多单位",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "cost": {
                    "description": "成本",
@@ -5634,9 +6345,23 @@
                    "description": "入库",
                    "type": "number"
                },
                "inMoreUnits": {
                    "description": "入库多单位",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "out": {
                    "description": "出库",
                    "type": "number"
                },
                "outMoreUnits": {
                    "description": "出库多单位",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "produceId": {
                    "description": "产品id",
@@ -5667,6 +6392,13 @@
                    "description": "数量",
                    "type": "number"
                },
                "amountMoreUnits": {
                    "description": "在库数量多单位",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.UnitItems"
                    }
                },
                "locationId": {
                    "description": "位置id",
                    "type": "integer"