zhansan
2023-09-18 217cfcc50de83f507b814fe46aafbc5de2dd6dec
docs/docs.go
@@ -294,7 +294,37 @@
                }
            }
        },
        "/api-wms/v1/warehouse/jobType": {
        "/api-wms/v1/operation/operation": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "添加入库/出库",
                "parameters": [
                    {
                        "description": "入库/出库信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddOperation"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/warehouse/operationType": {
            "get": {
                "produces": [
                    "application/json"
@@ -336,7 +366,7 @@
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.JobType"
                                                "$ref": "#/definitions/models.OperationType"
                                            }
                                        }
                                    }
@@ -361,7 +391,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddJobType"
                            "$ref": "#/definitions/request.AddOperationType"
                        }
                    }
                ],
@@ -375,7 +405,7 @@
                }
            }
        },
        "/api-wms/v1/warehouse/jobType/{id}": {
        "/api-wms/v1/warehouse/operationType/{id}": {
            "put": {
                "produces": [
                    "application/json"
@@ -391,7 +421,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateJobType"
                            "$ref": "#/definitions/request.UpdateOperationType"
                        }
                    },
                    {
@@ -584,7 +614,7 @@
        }
    },
    "definitions": {
        "constvar.BaseJobType": {
        "constvar.BaseOperationType": {
            "type": "integer",
            "enum": [
                1,
@@ -592,14 +622,65 @@
                3
            ],
            "x-enum-comments": {
                "BaseJobTypeIncoming": "收货",
                "BaseJobTypeInternal": "内部调拨",
                "BaseJobTypeOutgoing": "交货"
                "BaseOperationTypeIncoming": "收货",
                "BaseOperationTypeInternal": "内部调拨",
                "BaseOperationTypeOutgoing": "交货"
            },
            "x-enum-varnames": [
                "BaseJobTypeIncoming",
                "BaseJobTypeOutgoing",
                "BaseJobTypeInternal"
                "BaseOperationTypeIncoming",
                "BaseOperationTypeOutgoing",
                "BaseOperationTypeInternal"
            ]
        },
        "constvar.LocationType": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4,
                5,
                6,
                7
            ],
            "x-enum-comments": {
                "LocationTypeCustomer": "客户位置",
                "LocationTypeInternal": "内部位置",
                "LocationTypeInventoryLoss": "库存损失",
                "LocationTypeProduction": "生产",
                "LocationTypeTransit": "中转位置",
                "LocationTypeVendor": "供应商位置",
                "LocationTypeView": "视图"
            },
            "x-enum-varnames": [
                "LocationTypeVendor",
                "LocationTypeView",
                "LocationTypeInternal",
                "LocationTypeCustomer",
                "LocationTypeInventoryLoss",
                "LocationTypeProduction",
                "LocationTypeTransit"
            ]
        },
        "constvar.OperationStatus": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4
            ],
            "x-enum-comments": {
                "OperationStatus_Draft": "草稿",
                "OperationStatus_Finish": "完成",
                "OperationStatus_Ready": "就绪",
                "OperationStatus_Waiting": "正在等待"
            },
            "x-enum-varnames": [
                "OperationStatus_Draft",
                "OperationStatus_Waiting",
                "OperationStatus_Ready",
                "OperationStatus_Finish"
            ]
        },
        "constvar.ReservationMethod": {
@@ -694,18 +775,76 @@
                }
            }
        },
        "models.JobType": {
        "models.Location": {
            "type": "object",
            "properties": {
                "company": {
                    "description": "公司",
                    "allOf": [
                        {
                            "$ref": "#/definitions/models.Company"
                        }
                    ]
                },
                "companyId": {
                    "description": "公司id",
                    "type": "integer"
                },
                "countFrequency": {
                    "description": "盘点频率(天)",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "isReturnLocation": {
                    "description": "是否退货位置",
                    "type": "boolean"
                },
                "isScrapLocation": {
                    "description": "是否报废位置",
                    "type": "boolean"
                },
                "name": {
                    "description": "位置名称",
                    "type": "string"
                },
                "parentId": {
                    "description": "上级id",
                    "type": "integer"
                },
                "replenishLocation": {
                    "description": "是否补充位置",
                    "type": "boolean"
                },
                "type": {
                    "description": "位置类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.LocationType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
        "models.OperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -779,11 +918,11 @@
                        }
                    ]
                },
                "returnJobType": {
                "returnOperationType": {
                    "description": "退货类型名称",
                    "type": "string"
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },
@@ -805,24 +944,6 @@
                "warehouseId": {
                    "description": "仓库id",
                    "type": "integer"
                }
            }
        },
        "models.Location": {
            "type": "object",
            "properties": {
                "createTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "description": "位置名称",
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -915,18 +1036,63 @@
                }
            }
        },
        "request.AddJobType": {
        "request.AddOperation": {
            "type": "object",
            "properties": {
                "details": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.OperationDetails"
                    }
                },
                "fromLocationId": {
                    "description": "源位置id",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "number": {
                    "description": "单号",
                    "type": "string"
                },
                "operationDate": {
                    "$ref": "#/definitions/util.JSONTime"
                },
                "operationTypeId": {
                    "description": "作业类型id",
                    "type": "integer"
                },
                "sourceNumber": {
                    "description": "源单号",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.OperationStatus"
                        }
                    ]
                },
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                }
            }
        },
        "request.AddOperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -973,7 +1139,7 @@
                        }
                    ]
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },
@@ -1024,6 +1190,27 @@
                }
            }
        },
        "request.OperationDetails": {
            "type": "object",
            "properties": {
                "finishQuantity": {
                    "description": "完成数量",
                    "type": "number"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                },
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "quantity": {
                    "description": "数量",
                    "type": "number"
                }
            }
        },
        "request.UpdateCompany": {
            "type": "object",
            "properties": {
@@ -1060,18 +1247,18 @@
                }
            }
        },
        "request.UpdateJobType": {
        "request.UpdateOperationType": {
            "type": "object",
            "properties": {
                "ReservationDaysBeforePriority": {
                    "description": "在优先级的前几天",
                    "type": "integer"
                },
                "baseJobType": {
                "baseOperationType": {
                    "description": "基础作业类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.BaseJobType"
                            "$ref": "#/definitions/constvar.BaseOperationType"
                        }
                    ]
                },
@@ -1118,7 +1305,7 @@
                        }
                    ]
                },
                "returnJobTypeID": {
                "returnOperationTypeID": {
                    "description": "退货类型ID",
                    "type": "integer"
                },
@@ -1172,6 +1359,14 @@
                }
            }
        },
        "util.JSONTime": {
            "type": "object",
            "properties": {
                "time.Time": {
                    "type": "string"
                }
            }
        },
        "util.Response": {
            "type": "object",
            "properties": {
@@ -1218,8 +1413,6 @@
   Description:      "",
   InfoInstanceName: "swagger",
   SwaggerTemplate:  docTemplate,
   LeftDelim:        "{{",
   RightDelim:       "}}",
}
func init() {