{
  "openapi": "3.0.1",
  "tags": [
    {
      "name": "ehsd采购产品配件表"
    }
  ],
  "paths": {
    "/ehsdPurchaseProductMountings/page": {
      "post": {
        "summary": "分页",
        "tags": [
          "ehsd采购产品配件表"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pageNum",
                  "pageSize"
                ],
                "title": null,
                "properties": {
                  "pageNum": {
                    "type": "integer",
                    "required": null,
                    "title": "页数",
                    "properties": null,
                    "items": null
                  },
                  "pageSize": {
                    "type": "integer",
                    "required": null,
                    "title": "每页大小",
                    "properties": null,
                    "items": null
                  }
                },
                "items": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "success",
                    "msg",
                    "data"
                  ],
                  "title": null,
                  "properties": {
                    "code": {
                      "type": "Integer",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "success": {
                      "type": "boolean",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "msg": {
                      "type": "string",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "rows",
                        "total"
                      ],
                      "title": null,
                      "properties": {
                        "records": {
                          "type": "array",
                          "required": null,
                          "title": "分页数据",
                          "properties": null,
                          "items": {
                            "type": "object",
                            "required": null,
                            "title": null,
                            "properties": {
                              "id": {
                                "type": "integer",
                                "required": null,
                                "title": "合同产品ID",
                                "properties": null,
                                "items": null
                              },
                              "purchaseProductId": {
                                "type": "integer",
                                "required": null,
                                "title": "采购单ID",
                                "properties": null,
                                "items": null
                              },
                              "productId": {
                                "type": "integer",
                                "required": null,
                                "title": "商品ID",
                                "properties": null,
                                "items": null
                              },
                              "productName": {
                                "type": "string",
                                "required": null,
                                "title": "商品名称",
                                "properties": null,
                                "items": null
                              },
                              "productModel": {
                                "type": "string",
                                "required": null,
                                "title": "商品型号",
                                "properties": null,
                                "items": null
                              },
                              "quantity": {
                                "type": "number",
                                "required": null,
                                "title": "商品数量",
                                "properties": null,
                                "items": null
                              },
                              "price": {
                                "type": "number",
                                "required": null,
                                "title": "商品单价",
                                "properties": null,
                                "items": null
                              },
                              "amount": {
                                "type": "number",
                                "required": null,
                                "title": "商品金额",
                                "properties": null,
                                "items": null
                              },
                              "remark": {
                                "type": "string",
                                "required": null,
                                "title": "备注",
                                "properties": null,
                                "items": null
                              },
                              "json": {
                                "type": "string",
                                "required": null,
                                "title": "尔弘时代扩展JSON",
                                "properties": null,
                                "items": null
                              },
                              "createTime": {
                                "type": "string",
                                "required": null,
                                "title": "创建时间",
                                "properties": null,
                                "items": null
                              },
                              "updateTime": {
                                "type": "string",
                                "required": null,
                                "title": "修改时间",
                                "properties": null,
                                "items": null
                              }
                            },
                            "items": null
                          }
                        },
                        "total": {
                          "type": "rows",
                          "required": null,
                          "title": "总条数",
                          "properties": null,
                          "items": null
                        }
                      },
                      "items": null
                    }
                  },
                  "items": null
                }
              }
            }
          }
        }
      }
    },
    "/ehsdPurchaseProductMountings/detail": {
      "post": {
        "summary": "明细",
        "tags": [
          "ehsd采购产品配件表"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id"
                ],
                "title": null,
                "properties": {
                  "id": {
                    "type": "integer",
                    "required": null,
                    "title": "ehsd采购产品配件表id",
                    "properties": null,
                    "items": null
                  }
                },
                "items": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "success",
                    "msg",
                    "data"
                  ],
                  "title": null,
                  "properties": {
                    "code": {
                      "type": "Integer",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "success": {
                      "type": "boolean",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "msg": {
                      "type": "string",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "data": {
                      "type": "object",
                      "required": null,
                      "title": null,
                      "properties": {
                        "id": {
                          "type": "integer",
                          "required": null,
                          "title": "合同产品ID",
                          "properties": null,
                          "items": null
                        },
                        "purchaseProductId": {
                          "type": "integer",
                          "required": null,
                          "title": "采购单ID",
                          "properties": null,
                          "items": null
                        },
                        "productId": {
                          "type": "integer",
                          "required": null,
                          "title": "商品ID",
                          "properties": null,
                          "items": null
                        },
                        "productName": {
                          "type": "string",
                          "required": null,
                          "title": "商品名称",
                          "properties": null,
                          "items": null
                        },
                        "productModel": {
                          "type": "string",
                          "required": null,
                          "title": "商品型号",
                          "properties": null,
                          "items": null
                        },
                        "quantity": {
                          "type": "number",
                          "required": null,
                          "title": "商品数量",
                          "properties": null,
                          "items": null
                        },
                        "price": {
                          "type": "number",
                          "required": null,
                          "title": "商品单价",
                          "properties": null,
                          "items": null
                        },
                        "amount": {
                          "type": "number",
                          "required": null,
                          "title": "商品金额",
                          "properties": null,
                          "items": null
                        },
                        "remark": {
                          "type": "string",
                          "required": null,
                          "title": "备注",
                          "properties": null,
                          "items": null
                        },
                        "json": {
                          "type": "string",
                          "required": null,
                          "title": "尔弘时代扩展JSON",
                          "properties": null,
                          "items": null
                        },
                        "createTime": {
                          "type": "string",
                          "required": null,
                          "title": "创建时间",
                          "properties": null,
                          "items": null
                        },
                        "updateTime": {
                          "type": "string",
                          "required": null,
                          "title": "修改时间",
                          "properties": null,
                          "items": null
                        }
                      },
                      "items": null
                    }
                  },
                  "items": null
                }
              }
            }
          }
        }
      }
    },
    "/ehsdPurchaseProductMountings/add": {
      "post": {
        "summary": "新增",
        "tags": [
          "ehsd采购产品配件表"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": null,
                "title": null,
                "properties": {
                  "purchaseProductId": {
                    "type": "integer",
                    "required": null,
                    "title": "采购单ID",
                    "properties": null,
                    "items": null
                  },
                  "productId": {
                    "type": "integer",
                    "required": null,
                    "title": "商品ID",
                    "properties": null,
                    "items": null
                  },
                  "productName": {
                    "type": "string",
                    "required": null,
                    "title": "商品名称",
                    "properties": null,
                    "items": null
                  },
                  "productModel": {
                    "type": "string",
                    "required": null,
                    "title": "商品型号",
                    "properties": null,
                    "items": null
                  },
                  "quantity": {
                    "type": "number",
                    "required": null,
                    "title": "商品数量",
                    "properties": null,
                    "items": null
                  },
                  "price": {
                    "type": "number",
                    "required": null,
                    "title": "商品单价",
                    "properties": null,
                    "items": null
                  },
                  "amount": {
                    "type": "number",
                    "required": null,
                    "title": "商品金额",
                    "properties": null,
                    "items": null
                  },
                  "remark": {
                    "type": "string",
                    "required": null,
                    "title": "备注",
                    "properties": null,
                    "items": null
                  },
                  "json": {
                    "type": "string",
                    "required": null,
                    "title": "尔弘时代扩展JSON",
                    "properties": null,
                    "items": null
                  }
                },
                "items": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "success",
                    "msg",
                    "data"
                  ],
                  "title": null,
                  "properties": {
                    "code": {
                      "type": "Integer",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "success": {
                      "type": "boolean",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "msg": {
                      "type": "string",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "data": {
                      "type": null,
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    }
                  },
                  "items": null
                }
              }
            }
          }
        }
      }
    },
    "/ehsdPurchaseProductMountings/edit": {
      "post": {
        "summary": "编辑",
        "tags": [
          "ehsd采购产品配件表"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": null,
                "title": null,
                "properties": {
                  "id": {
                    "type": "integer",
                    "required": null,
                    "title": "合同产品ID",
                    "properties": null,
                    "items": null
                  },
                  "purchaseProductId": {
                    "type": "integer",
                    "required": null,
                    "title": "采购单ID",
                    "properties": null,
                    "items": null
                  },
                  "productId": {
                    "type": "integer",
                    "required": null,
                    "title": "商品ID",
                    "properties": null,
                    "items": null
                  },
                  "productName": {
                    "type": "string",
                    "required": null,
                    "title": "商品名称",
                    "properties": null,
                    "items": null
                  },
                  "productModel": {
                    "type": "string",
                    "required": null,
                    "title": "商品型号",
                    "properties": null,
                    "items": null
                  },
                  "quantity": {
                    "type": "number",
                    "required": null,
                    "title": "商品数量",
                    "properties": null,
                    "items": null
                  },
                  "price": {
                    "type": "number",
                    "required": null,
                    "title": "商品单价",
                    "properties": null,
                    "items": null
                  },
                  "amount": {
                    "type": "number",
                    "required": null,
                    "title": "商品金额",
                    "properties": null,
                    "items": null
                  },
                  "remark": {
                    "type": "string",
                    "required": null,
                    "title": "备注",
                    "properties": null,
                    "items": null
                  },
                  "json": {
                    "type": "string",
                    "required": null,
                    "title": "尔弘时代扩展JSON",
                    "properties": null,
                    "items": null
                  }
                },
                "items": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "success",
                    "msg",
                    "data"
                  ],
                  "title": null,
                  "properties": {
                    "code": {
                      "type": "Integer",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "success": {
                      "type": "boolean",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "msg": {
                      "type": "string",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "data": {
                      "type": null,
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    }
                  },
                  "items": null
                }
              }
            }
          }
        }
      }
    },
    "/ehsdPurchaseProductMountings/delete": {
      "post": {
        "summary": "删除",
        "tags": [
          "ehsd采购产品配件表"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id"
                ],
                "title": null,
                "properties": {
                  "id": {
                    "type": "integer",
                    "required": null,
                    "title": "ehsd采购产品配件表id",
                    "properties": null,
                    "items": null
                  }
                },
                "items": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "success",
                    "msg",
                    "data"
                  ],
                  "title": null,
                  "properties": {
                    "code": {
                      "type": "Integer",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "success": {
                      "type": "boolean",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "msg": {
                      "type": "string",
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    },
                    "data": {
                      "type": null,
                      "required": null,
                      "title": null,
                      "properties": null,
                      "items": null
                    }
                  },
                  "items": null
                }
              }
            }
          }
        }
      }
    }
  }
}