zhangqian
2023-08-29 0d86d93cff554f54f83927d4f8bf03ed8c847883
docs/docs.go
@@ -4629,7 +4629,7 @@
                "summary": "创建采购单",
                "parameters": [
                    {
                        "description": "采购单用户名, 采购单手机号码",
                        "description": "采购单,采购单产品",
                        "name": "data",
                        "in": "body",
                        "required": true,
@@ -8425,8 +8425,16 @@
                    "description": "创建时间",
                    "type": "string"
                },
                "creator": {
                    "description": "制单人",
                    "type": "string"
                },
                "deliveryDate": {
                    "description": "交付日期",
                    "type": "string"
                },
                "handledBy": {
                    "description": "经办人",
                    "type": "string"
                },
                "id": {
@@ -8441,6 +8449,10 @@
                    "description": "采购编号",
                    "type": "string"
                },
                "orderType": {
                    "description": "单据类型",
                    "type": "string"
                },
                "phone": {
                    "description": "联系人电话",
                    "type": "string"
@@ -8451,6 +8463,10 @@
                "purchaseTypeId": {
                    "description": "采购类型id",
                    "type": "integer"
                },
                "quantity": {
                    "description": "采购数量",
                    "type": "number"
                },
                "remark": {
                    "description": "备注",
@@ -8474,6 +8490,10 @@
                "supplierId": {
                    "description": "供应商id",
                    "type": "integer"
                },
                "warehouse": {
                    "description": "收货仓库",
                    "type": "string"
                }
            }
        },
@@ -8496,6 +8516,9 @@
                    "description": "采购单价",
                    "type": "number"
                },
                "product": {
                    "$ref": "#/definitions/test.Product"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
@@ -8517,6 +8540,10 @@
        "purchase.PurchaseType": {
            "type": "object",
            "properties": {
                "created_at": {
                    "description": "创建时间",
                    "type": "string"
                },
                "id": {
                    "description": "主键ID",
                    "type": "integer"
@@ -9093,13 +9120,65 @@
                }
            }
        },
        "response.PurchaseProducts": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "采购数量",
                    "type": "number"
                },
                "deliveryTime": {
                    "type": "integer"
                },
                "modelNumber": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "price": {
                    "description": "采购单价",
                    "type": "number"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                },
                "productType": {
                    "type": "string"
                },
                "purchaseId": {
                    "description": "采购id",
                    "type": "integer"
                },
                "purchasePrice": {
                    "type": "number"
                },
                "shippingDuration": {
                    "type": "integer"
                },
                "specifications": {
                    "type": "string"
                },
                "total": {
                    "description": "采购总价",
                    "type": "number"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
        "response.PurchaseResponse": {
            "type": "object",
            "properties": {
                "productList": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/purchase.PurchaseProducts"
                        "$ref": "#/definitions/response.PurchaseProducts"
                    }
                },
                "purchase": {