liujiandao
2023-09-20 726662cd89d0fe6b24461c850495db8c37a3e8f1
docs/docs.go
@@ -426,6 +426,150 @@
                }
            }
        },
        "/api-wms/v1/operationType/operationType": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "查询作业类型列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.OperationType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "添加作业类型",
                "parameters": [
                    {
                        "description": "作业类型信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddOperationType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operationType/operationType/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "编辑作业类型",
                "parameters": [
                    {
                        "description": "作业类型信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateOperationType"
                        }
                    },
                    {
                        "type": "string",
                        "description": "作业类型id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            },
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "删除作业类型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "作业类型id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/product/addProduct": {
            "post": {
                "produces": [
@@ -760,150 +904,6 @@
                        "schema": {
                            "$ref": "#/definitions/models.ProductCategory"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/warehouse/operationType": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "查询作业类型列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.OperationType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "添加作业类型",
                "parameters": [
                    {
                        "description": "作业类型信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddOperationType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/warehouse/operationType/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "编辑作业类型",
                "parameters": [
                    {
                        "description": "作业类型信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateOperationType"
                        }
                    },
                    {
                        "type": "string",
                        "description": "作业类型id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            },
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                ],
                "summary": "删除作业类型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "作业类型id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
@@ -1741,6 +1741,10 @@
                    "description": "是否启用,传true就行",
                    "type": "boolean"
                },
                "address": {
                    "description": "地址",
                    "type": "string"
                },
                "buyToResupply": {
                    "description": "是否购买补给,已购买产品能够发送到此仓库",
                    "type": "boolean"
@@ -1763,9 +1767,17 @@
                "id": {
                    "type": "integer"
                },
                "inboundTransportation": {
                    "description": "入向运输",
                    "type": "integer"
                },
                "name": {
                    "description": "仓库名称",
                    "type": "string"
                },
                "outboundTransportation": {
                    "description": "出库运输",
                    "type": "integer"
                },
                "partnerId": {
                    "description": "合作伙伴id",
@@ -1974,6 +1986,10 @@
                    "description": "是否启用,传true就行",
                    "type": "boolean"
                },
                "address": {
                    "description": "地址",
                    "type": "string"
                },
                "buyToResupply": {
                    "description": "购买补给,已购买产品能够发送到此仓库",
                    "type": "boolean"
@@ -1984,9 +2000,17 @@
                    "maxLength": 5,
                    "minLength": 1
                },
                "inboundTransportation": {
                    "description": "入向运输",
                    "type": "integer"
                },
                "name": {
                    "description": "仓库名称",
                    "type": "string"
                },
                "outboundTransportation": {
                    "description": "出库运输",
                    "type": "integer"
                },
                "partnerId": {
                    "description": "合作伙伴id",
@@ -2228,6 +2252,10 @@
                    "description": "是否启用,传true就行",
                    "type": "boolean"
                },
                "address": {
                    "description": "地址",
                    "type": "string"
                },
                "buyToResupply": {
                    "description": "购买补给,已购买产品能够发送到此仓库",
                    "type": "boolean"
@@ -2241,10 +2269,18 @@
                "id": {
                    "type": "integer"
                },
                "inboundTransportation": {
                    "description": "入向运输",
                    "type": "integer"
                },
                "name": {
                    "description": "仓库名称",
                    "type": "string"
                },
                "outboundTransportation": {
                    "description": "出库运输",
                    "type": "integer"
                },
                "partnerId": {
                    "description": "合作伙伴id",
                    "type": "integer"