liujiandao
2024-03-18 a2302df7ce372249b617e483d83a75f3312fbac2
docs/docs.go
@@ -16,6 +16,112 @@
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/code/getAutoCode": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "编码"
                ],
                "summary": "获取自动编码",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/code.CodeStandard"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/code/getCodeList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "编码"
                ],
                "summary": "获取编码列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "codeStandID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "name",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "type",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/code.CodeStandard"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/con/createContract": {
            "post": {
                "security": [
@@ -128,61 +234,6 @@
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/con/downloadContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "下载Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"下载成功\"}",
                        "schema": {
                            "type": "string"
                        }
@@ -328,61 +379,6 @@
                }
            }
        },
        "/con/previewContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "预览Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/con/updateContract": {
            "put": {
                "security": [
@@ -414,6 +410,61 @@
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/downloadContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "下载Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"下载成功\"}",
                        "schema": {
                            "type": "string"
                        }
@@ -1151,7 +1202,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/test.Product"
                            "$ref": "#/definitions/srm_model_common_request.GetById"
                        }
                    }
                ],
@@ -1222,89 +1273,9 @@
                "summary": "用id查询Product",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "deliveryTime",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "maximumStock",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "minimumStock",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "modelNumber",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "name",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "number",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "productType",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "name": "purchasePrice",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "remark",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "shippingDuration",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "specifications",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "supplierName",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
@@ -1338,7 +1309,7 @@
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "name": "categoryName",
                        "in": "query"
                    },
                    {
@@ -1348,29 +1319,8 @@
                    },
                    {
                        "type": "string",
                        "name": "endCreatedAt",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "关键字",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "maximumStock",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "minimumStock",
                        "in": "query"
                    },
                    {
@@ -1401,18 +1351,8 @@
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "productType",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "name": "purchasePrice",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "remark",
                        "in": "query"
                    },
                    {
@@ -1427,7 +1367,7 @@
                    },
                    {
                        "type": "string",
                        "name": "startCreatedAt",
                        "name": "supplier",
                        "in": "query"
                    },
                    {
@@ -1448,11 +1388,6 @@
                    {
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
@@ -1486,7 +1421,7 @@
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "name": "categoryName",
                        "in": "query"
                    },
                    {
@@ -1496,29 +1431,8 @@
                    },
                    {
                        "type": "string",
                        "name": "endCreatedAt",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "关键字",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "maximumStock",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "minimumStock",
                        "in": "query"
                    },
                    {
@@ -1549,18 +1463,8 @@
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "productType",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "name": "purchasePrice",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "remark",
                        "in": "query"
                    },
                    {
@@ -1575,7 +1479,7 @@
                    },
                    {
                        "type": "string",
                        "name": "startCreatedAt",
                        "name": "supplier",
                        "in": "query"
                    },
                    {
@@ -1596,11 +1500,6 @@
                    {
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
@@ -1638,7 +1537,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/test.Product"
                            "$ref": "#/definitions/test.SupplierMaterial"
                        }
                    }
                ],
@@ -1647,6 +1546,145 @@
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/previewContract": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Contract"
                ],
                "summary": "预览Contract",
                "parameters": [
                    {
                        "type": "string",
                        "name": "created_at",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "fileName",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "supplierID",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "updated_at",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/purchase/getOperationInfo/{id}": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取操作信息",
                "responses": {
                    "200": {
                        "description": "获取操作信息",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.OperationInfo"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/purchase/getWarehouseInfo": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Purchase"
                ],
                "summary": "获取仓库列表",
                "responses": {
                    "200": {
                        "description": "获取采购类型列表",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -1882,6 +1920,12 @@
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "供应商id",
                        "name": "supplierId",
                        "in": "query"
                    }
                ],
                "responses": {
@@ -2041,6 +2085,12 @@
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "供应商id",
                        "name": "supplierId",
                        "in": "query"
                    }
                ],
@@ -2328,7 +2378,8 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "type": "string",
                        "example": "0",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
@@ -2377,6 +2428,42 @@
                        "type": "string",
                        "name": "url",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/s/getSupplierByNumber/{number}": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Supplier"
                ],
                "summary": "用编码查询Supplier",
                "parameters": [
                    {
                        "type": "string",
                        "description": "供应商编码",
                        "name": "number",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
@@ -2453,7 +2540,8 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "type": "string",
                        "example": "0",
                        "description": "主键ID",
                        "name": "id",
                        "in": "query"
@@ -3019,6 +3107,69 @@
        }
    },
    "definitions": {
        "code.CodeAuto": {
            "type": "object",
            "properties": {
                "AutoLength": {
                    "type": "integer"
                },
                "Desc": {
                    "type": "string"
                },
                "PrefixMethod": {
                    "type": "integer"
                },
                "PrefixValue": {
                    "type": "string"
                },
                "SuffixMethod": {
                    "type": "integer"
                }
            }
        },
        "code.CodeRule": {
            "type": "object",
            "properties": {
                "Desc": {
                    "type": "string"
                },
                "Length": {
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                }
            }
        },
        "code.CodeStandard": {
            "type": "object",
            "properties": {
                "AutoRule": {
                    "$ref": "#/definitions/code.CodeAuto"
                },
                "ID": {
                    "type": "string"
                },
                "List": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/code.CodeRule"
                    }
                },
                "Method": {
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                },
                "Status": {
                    "type": "string"
                },
                "Type": {
                    "type": "string"
                }
            }
        },
        "config.CORS": {
            "type": "object",
            "properties": {
@@ -3582,7 +3733,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "invoiceAmount": {
                    "description": "已收票金额",
@@ -3625,7 +3777,7 @@
                    ]
                },
                "principal": {
                    "description": "采购负责人",
                    "description": "仓库负责人",
                    "type": "string"
                },
                "purchaseType": {
@@ -3633,7 +3785,8 @@
                },
                "purchaseTypeId": {
                    "description": "采购类型id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "quantity": {
                    "description": "采购数量",
@@ -3655,6 +3808,10 @@
                    "description": "签约日期",
                    "type": "string"
                },
                "sourceOrder": {
                    "description": "来源单据",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
@@ -3668,7 +3825,8 @@
                },
                "supplierId": {
                    "description": "供应商id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "totalPrice": {
                    "description": "价税合计",
@@ -3683,6 +3841,10 @@
                },
                "warehouse": {
                    "description": "收货仓库",
                    "type": "string"
                },
                "warehouseAddress": {
                    "description": "收货仓库地址",
                    "type": "string"
                },
                "wholeDiscount": {
@@ -3746,7 +3908,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购类型",
@@ -3780,6 +3943,34 @@
                "WholeDiscountTypeDiscount"
            ]
        },
        "purchase_wms.SrmGetWarehouseInfoResponse": {
            "type": "object",
            "properties": {
                "info": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/purchase_wms.SrmWarehouseInfo"
                    }
                }
            }
        },
        "purchase_wms.SrmWarehouseInfo": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "仓库地址",
                    "type": "string"
                },
                "name": {
                    "description": "仓库名",
                    "type": "string"
                },
                "principal": {
                    "description": "仓库负责人",
                    "type": "string"
                }
            }
        },
        "purchaserequest.AddPurchase": {
            "type": "object",
            "properties": {
@@ -3807,7 +3998,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购名称",
@@ -3815,6 +4007,10 @@
                },
                "number": {
                    "description": "采购编号",
                    "type": "string"
                },
                "orderSource": {
                    "description": "单据来源",
                    "type": "string"
                },
                "phone": {
@@ -3833,9 +4029,14 @@
                        }
                    ]
                },
                "principal": {
                    "description": "仓库负责人",
                    "type": "string"
                },
                "purchaseTypeId": {
                    "description": "采购类型id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "quantity": {
                    "description": "采购数量",
@@ -3853,6 +4054,10 @@
                    "description": "签约日期",
                    "type": "string"
                },
                "sourceOrder": {
                    "description": "来源单据",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
@@ -3863,11 +4068,20 @@
                },
                "supplierId": {
                    "description": "供应商id",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "totalPrice": {
                    "description": "价税合计",
                    "type": "number"
                },
                "warehouse": {
                    "description": "收货仓库",
                    "type": "string"
                },
                "warehouseAddress": {
                    "description": "收货仓库地址",
                    "type": "string"
                },
                "wholeDiscount": {
                    "description": "整单折扣值",
@@ -3888,7 +4102,8 @@
            "properties": {
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "name": {
                    "description": "采购类型",
@@ -3940,13 +4155,57 @@
                }
            }
        },
        "request.Product": {
            "type": "object",
            "properties": {
                "categoryName": {
                    "type": "string"
                },
                "deliveryTime": {
                    "type": "integer"
                },
                "modelNumber": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "purchasePrice": {
                    "type": "number"
                },
                "shippingDuration": {
                    "type": "integer"
                },
                "specifications": {
                    "type": "string"
                },
                "supplier": {
                    "type": "string"
                },
                "supplierId": {
                    "type": "integer"
                },
                "supplierName": {
                    "type": "string"
                },
                "supplierNumber": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
        "request.ProductCreate": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/test.Product"
                        "$ref": "#/definitions/request.Product"
                    }
                }
            }
@@ -3970,6 +4229,70 @@
                    "items": {
                        "$ref": "#/definitions/test.SupplierType"
                    }
                }
            }
        },
        "response.OperationInfo": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "采购数",
                    "type": "number"
                },
                "modelNumber": {
                    "description": "型号",
                    "type": "string"
                },
                "name": {
                    "description": "产品名称",
                    "type": "string"
                },
                "number": {
                    "description": "产品编码",
                    "type": "string"
                },
                "operationNumber": {
                    "description": "入库单号",
                    "type": "string"
                },
                "overAmount": {
                    "description": "入库数",
                    "type": "integer"
                },
                "overTime": {
                    "description": "入库时间",
                    "type": "string"
                },
                "principal": {
                    "description": "负责人",
                    "type": "string"
                },
                "purchasePrice": {
                    "description": "单价",
                    "type": "number"
                },
                "sendAmount": {
                    "description": "发货数",
                    "type": "integer"
                },
                "specifications": {
                    "description": "规格",
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "total": {
                    "description": "总价",
                    "type": "number"
                },
                "unit": {
                    "description": "单位",
                    "type": "string"
                },
                "warehouseName": {
                    "description": "仓库名",
                    "type": "string"
                }
            }
        },
@@ -4025,6 +4348,10 @@
                "purchasePrice": {
                    "type": "number"
                },
                "remark": {
                    "description": "描述",
                    "type": "string"
                },
                "shippingDuration": {
                    "type": "integer"
                },
@@ -4063,6 +4390,15 @@
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "srm_model_common_request.GetById": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                }
            }
        },
@@ -4137,66 +4473,6 @@
                }
            }
        },
        "test.Product": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "deliveryTime": {
                    "type": "integer"
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                },
                "maximumStock": {
                    "type": "integer"
                },
                "minimumStock": {
                    "type": "integer"
                },
                "modelNumber": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "productType": {
                    "type": "string"
                },
                "purchasePrice": {
                    "type": "number"
                },
                "remark": {
                    "type": "string"
                },
                "shippingDuration": {
                    "type": "integer"
                },
                "specifications": {
                    "type": "string"
                },
                "supplier": {
                    "$ref": "#/definitions/test.Supplier"
                },
                "supplierId": {
                    "type": "integer"
                },
                "supplierName": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "test.Supplier": {
            "type": "object",
            "properties": {
@@ -4229,7 +4505,8 @@
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                    "type": "string",
                    "example": "0"
                },
                "industry": {
                    "type": "string"
@@ -4260,6 +4537,63 @@
                }
            }
        },
        "test.SupplierMaterial": {
            "type": "object",
            "properties": {
                "categoryName": {
                    "description": "产品类别名称",
                    "type": "string"
                },
                "created_at": {
                    "type": "string"
                },
                "deliveryTime": {
                    "description": "供货时长",
                    "type": "integer"
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
                },
                "maximumStock": {
                    "type": "integer"
                },
                "minimumStock": {
                    "type": "integer"
                },
                "modelNumber": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "purchasePrice": {
                    "type": "number"
                },
                "shippingDuration": {
                    "description": "物流时长",
                    "type": "integer"
                },
                "specifications": {
                    "type": "string"
                },
                "supplier": {
                    "$ref": "#/definitions/test.Supplier"
                },
                "supplierId": {
                    "type": "integer"
                },
                "unit": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "test.SupplierType": {
            "type": "object",
            "properties": {