zhangqian
2024-06-21 9c7551a7a752c07db11b0fd23bfba8da1ad062e0
fix 404
5个文件已修改
1073 ■■■■■ 已修改文件
controllers/attribute.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 401 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 401 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
router/router.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/attribute.go
@@ -146,9 +146,9 @@
// @Tags      属性值和对象
// @Summary   添加属性值和对象
// @Produce   application/json
// @Param     object  body  request.GetAttributeList true  "属性值和对象信息"
// @Param     object  body  request.AttributeList true  "属性值和对象信息"
// @Success   200 {object} util.Response "成功"
// @Router    /api-wms/v1/attribute/list [post]
// @Router    /api-wms/v1/attribute/attribute [post]
func (slf AttributeController) ListAttribute(c *gin.Context) {
    var params request.AttributeList
    if err := c.ShouldBind(&params); err != nil {
docs/docs.go
@@ -166,6 +166,251 @@
                }
            }
        },
        "/api-wms/v1/attribute/attribute": {
            "post": {
                "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"
                        }
                    }
                }
            }
        },
        "/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": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/code/getAutoCode": {
            "post": {
                "produces": [
@@ -2423,6 +2668,25 @@
                }
            }
        },
        "/api-wms/v1/product/inputProduct": {
            "post": {
                "produces": [
                    "application/xlsx"
                ],
                "tags": [
                    "物料管理"
                ],
                "summary": "导入物料",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/listDisuse": {
            "post": {
                "produces": [
@@ -3827,6 +4091,10 @@
                    "description": "成本",
                    "type": "number"
                },
                "createBy": {
                    "description": "创建人",
                    "type": "string"
                },
                "currencyName": {
                    "description": "币种名称",
                    "type": "string"
@@ -4215,9 +4483,6 @@
                        }
                    ]
                },
                "checkedAt": {
                    "type": "string"
                },
                "checkedBy": {
                    "type": "string"
                },
@@ -4256,6 +4521,10 @@
                },
                "id": {
                    "type": "integer"
                },
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "location": {
                    "description": "源位置",
@@ -4374,6 +4643,10 @@
                "auxiliaryUnit": {
                    "type": "string"
                },
                "cost": {
                    "description": "成本单价",
                    "type": "number"
                },
                "createTime": {
                    "type": "string"
                },
@@ -4392,8 +4665,9 @@
                "id": {
                    "type": "integer"
                },
                "note": {
                    "type": "string"
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "operationId": {
                    "description": "操作id",
@@ -4410,6 +4684,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocation": {
                    "description": "目标位置",
@@ -4651,6 +4932,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"
                }
            }
@@ -4984,6 +5302,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": {
@@ -5296,6 +5633,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"
@@ -5303,6 +5644,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocationId": {
                    "description": "目标位置id",
@@ -5426,6 +5774,49 @@
                }
            }
        },
        "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"
                }
            }
        },
        "request.UpdateCompany": {
            "type": "object",
            "properties": {
docs/swagger.json
@@ -154,6 +154,251 @@
                }
            }
        },
        "/api-wms/v1/attribute/attribute": {
            "post": {
                "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"
                        }
                    }
                }
            }
        },
        "/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": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/code/getAutoCode": {
            "post": {
                "produces": [
@@ -2411,6 +2656,25 @@
                }
            }
        },
        "/api-wms/v1/product/inputProduct": {
            "post": {
                "produces": [
                    "application/xlsx"
                ],
                "tags": [
                    "物料管理"
                ],
                "summary": "导入物料",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/listDisuse": {
            "post": {
                "produces": [
@@ -3815,6 +4079,10 @@
                    "description": "成本",
                    "type": "number"
                },
                "createBy": {
                    "description": "创建人",
                    "type": "string"
                },
                "currencyName": {
                    "description": "币种名称",
                    "type": "string"
@@ -4203,9 +4471,6 @@
                        }
                    ]
                },
                "checkedAt": {
                    "type": "string"
                },
                "checkedBy": {
                    "type": "string"
                },
@@ -4244,6 +4509,10 @@
                },
                "id": {
                    "type": "integer"
                },
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "location": {
                    "description": "源位置",
@@ -4362,6 +4631,10 @@
                "auxiliaryUnit": {
                    "type": "string"
                },
                "cost": {
                    "description": "成本单价",
                    "type": "number"
                },
                "createTime": {
                    "type": "string"
                },
@@ -4380,8 +4653,9 @@
                "id": {
                    "type": "integer"
                },
                "note": {
                    "type": "string"
                "isInternalOutput": {
                    "description": "是否调拨产生的出库",
                    "type": "boolean"
                },
                "operationId": {
                    "description": "操作id",
@@ -4398,6 +4672,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocation": {
                    "description": "目标位置",
@@ -4639,6 +4920,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"
                }
            }
@@ -4972,6 +5290,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": {
@@ -5284,6 +5621,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"
@@ -5291,6 +5632,13 @@
                "productId": {
                    "description": "产品id",
                    "type": "string"
                },
                "remark": {
                    "type": "string"
                },
                "salePrice": {
                    "description": "销售单价",
                    "type": "number"
                },
                "toLocationId": {
                    "description": "目标位置id",
@@ -5414,6 +5762,49 @@
                }
            }
        },
        "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"
                }
            }
        },
        "request.UpdateCompany": {
            "type": "object",
            "properties": {
docs/swagger.yaml
@@ -572,6 +572,9 @@
      cost:
        description: 成本
        type: number
      createBy:
        description: 创建人
        type: string
      currencyName:
        description: 币种名称
        type: string
@@ -850,8 +853,6 @@
        allOf:
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      checkedAt:
        type: string
      checkedBy:
        type: string
      comment:
@@ -878,6 +879,9 @@
        type: array
      id:
        type: integer
      isInternalOutput:
        description: 是否调拨产生的出库
        type: boolean
      location:
        allOf:
        - $ref: '#/definitions/models.Location'
@@ -959,6 +963,9 @@
        type: number
      auxiliaryUnit:
        type: string
      cost:
        description: 成本单价
        type: number
      createTime:
        type: string
      fromLocation:
@@ -970,8 +977,9 @@
        type: integer
      id:
        type: integer
      note:
        type: string
      isInternalOutput:
        description: 是否调拨产生的出库
        type: boolean
      operationId:
        description: 操作id
        type: integer
@@ -982,6 +990,11 @@
      productId:
        description: 产品id
        type: string
      remark:
        type: string
      salePrice:
        description: 销售单价
        type: number
      toLocation:
        allOf:
        - $ref: '#/definitions/models.Location'
@@ -1145,6 +1158,31 @@
        type: string
      warehouseLocation:
        description: 库存位置
        type: string
    type: object
  request.AddAttribute:
    properties:
      dataType:
        description: 值类型(1字符串 2 int 3 下拉框 )
        type: integer
      entityType:
        description: 给谁用的 1 物料(产品)
        type: integer
      name:
        description: 属性名称
        type: string
      selectValues:
        items:
          type: string
        type: array
    type: object
  request.AddAttributeValue:
    properties:
      attributeId:
        type: integer
      entityId:
        type: string
      value:
        type: string
    type: object
  request.AddCompany:
@@ -1376,6 +1414,19 @@
    required:
    - code
    type: object
  request.AttributeList:
    properties:
      entityType:
        type: integer
      keyword:
        type: string
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
    type: object
  request.DoMonthStats:
    properties:
      token:
@@ -1593,6 +1644,9 @@
      auxiliaryUnit:
        description: 辅助单位
        type: string
      cost:
        description: 成本单价
        type: number
      fromLocationId:
        description: |-
          Unit        string          `json:"unit" gorm:"type:varchar(31);comment:单位"`                    //单位
@@ -1601,6 +1655,11 @@
      productId:
        description: 产品id
        type: string
      remark:
        type: string
      salePrice:
        description: 销售单价
        type: number
      toLocationId:
        description: 目标位置id
        type: integer
@@ -1682,6 +1741,35 @@
      isDefault:
        type: boolean
      name:
        type: string
    type: object
  request.UpdateAttribute:
    properties:
      dataType:
        description: 值类型(1字符串 2 int 3 下拉框 )
        type: integer
      entityType:
        description: 给谁用的 1 物料(产品)
        type: integer
      id:
        type: integer
      name:
        description: 属性名称
        type: string
      selectValues:
        items:
          type: string
        type: array
    type: object
  request.UpdateAttributeValue:
    properties:
      attributeId:
        type: integer
      entityId:
        type: string
      id:
        type: integer
      value:
        type: string
    type: object
  request.UpdateCompany:
@@ -2128,6 +2216,163 @@
      summary: 上传附件
      tags:
      - 附件管理
  /api-wms/v1/attribute/attribute:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AttributeList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attribute/delete/{id}:
    delete:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 属性id
        in: path
        name: id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 删除属性
      tags:
      - 属性
  /api-wms/v1/attribute/primary/{id}:
    get:
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 通过主键ID查询
      tags:
      - 属性值和对象
  /api-wms/v1/attribute/updateAttribute/{id}:
    put:
      parameters:
      - description: 属性信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAttribute'
      - description: 属性id
        in: path
        name: id
        required: true
        type: string
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 编辑属性
      tags:
      - 属性
  /api-wms/v1/attributeValue/add:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddAttributeValue'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/delete/{id}:
    delete:
      parameters:
      - description: id
        in: path
        name: id
        required: true
        type: string
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 删除属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/list:
    post:
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 分页条件筛选Value like '%v%' 模糊查询
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/primary/{id}:
    get:
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 通过主键ID查询
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/update:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAttributeValue'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 更新属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/code/getAutoCode:
    post:
      parameters:
@@ -3506,6 +3751,18 @@
      summary: 获取登录用户信息
      tags:
      - 产品
  /api-wms/v1/product/inputProduct:
    post:
      produces:
      - application/xlsx
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 导入物料
      tags:
      - 物料管理
  /api-wms/v1/product/listDisuse:
    post:
      parameters:
router/router.go
@@ -73,7 +73,7 @@
        attributeAPI.POST("attribute", attributeController.Add)               // 添加属性
        attributeAPI.PUT("updateAttribute/:id", attributeController.Update)   // 修改属性
        attributeAPI.DELETE("delete/:id", attributeController.Delete)         // 删除属性
        attributeAPI.POST("list", attributeController.ListAttribute)          // 获取属性
        attributeAPI.POST("attribute", attributeController.ListAttribute)     // 获取属性
        attributeAPI.GET("primary/:id", attributeController.PrimaryAttribute) //删除
        //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 获取属性
    }