zhangqian
2023-09-12 a79e0aae5d8c107982709e4e75d41be52f5db8cd
docs/swagger.json
@@ -282,7 +282,7 @@
                }
            }
        },
        "/api-wms/v1/warehouse/jobType": {
        "/api-wms/v1/warehouse/operationType": {
            "get": {
                "produces": [
                    "application/json"
@@ -324,7 +324,7 @@
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.JobType"
                                                "$ref": "#/definitions/models.OperationType"
                                            }
                                        }
                                    }
@@ -349,7 +349,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddJobType"
                            "$ref": "#/definitions/request.AddOperationType"
                        }
                    }
                ],
@@ -363,7 +363,7 @@
                }
            }
        },
        "/api-wms/v1/warehouse/jobType/{id}": {
        "/api-wms/v1/warehouse/operationType/{id}": {
            "put": {
                "produces": [
                    "application/json"
@@ -379,7 +379,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateJobType"
                            "$ref": "#/definitions/request.UpdateOperationType"
                        }
                    },
                    {
@@ -572,7 +572,7 @@
        }
    },
    "definitions": {
        "constvar.BaseJobType": {
        "constvar.BaseOperationType": {
            "type": "integer",
            "enum": [
                1,
@@ -580,14 +580,14 @@
                3
            ],
            "x-enum-comments": {
                "BaseJobTypeIncoming": "收货",
                "BaseJobTypeInternal": "内部调拨",
                "BaseJobTypeOutgoing": "交货"
                "BaseOperationTypeIncoming": "收货",
                "BaseOperationTypeInternal": "内部调拨",
                "BaseOperationTypeOutgoing": "交货"
            },
            "x-enum-varnames": [
                "BaseJobTypeIncoming",
                "BaseJobTypeOutgoing",
                "BaseJobTypeInternal"
                "BaseOperationTypeIncoming",
                "BaseOperationTypeOutgoing",
                "BaseOperationTypeInternal"
            ]
        },
        "constvar.ReservationMethod": {
@@ -682,18 +682,36 @@
                }
            }
        },
        "models.JobType": {
        "models.Location": {
            "type": "object",
            "properties": {
                "createTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "位置名称",
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
        "models.OperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -767,11 +785,11 @@
                        }
                    ]
                },
                "returnJobType": {
                "returnOperationType": {
                    "description": "退货类型名称",
                    "type": "string"
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },
@@ -793,24 +811,6 @@
                "warehouseId": {
                    "description": "仓库id",
                    "type": "integer"
                }
            }
        },
        "models.Location": {
            "type": "object",
            "properties": {
                "createTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "位置名称",
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -903,18 +903,18 @@
                }
            }
        },
        "request.AddJobType": {
        "request.AddOperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -961,7 +961,7 @@
                        }
                    ]
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },
@@ -1048,18 +1048,18 @@
                }
            }
        },
        "request.UpdateJobType": {
        "request.UpdateOperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -1106,7 +1106,7 @@
                        }
                    ]
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },