| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/jobType": { |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.JobType" |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddJobType" |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/jobType/{id}": { |
| | | "/api-wms/v1/warehouse/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateJobType" |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | "definitions": { |
| | | "constvar.BaseJobType": { |
| | | "constvar.BaseOperationType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | |
| | | 3 |
| | | ], |
| | | "x-enum-comments": { |
| | | "BaseJobTypeIncoming": "收货", |
| | | "BaseJobTypeInternal": "内部调拨", |
| | | "BaseJobTypeOutgoing": "交货" |
| | | "BaseOperationTypeIncoming": "收货", |
| | | "BaseOperationTypeInternal": "内部调拨", |
| | | "BaseOperationTypeOutgoing": "交货" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "BaseJobTypeIncoming", |
| | | "BaseJobTypeOutgoing", |
| | | "BaseJobTypeInternal" |
| | | "BaseOperationTypeIncoming", |
| | | "BaseOperationTypeOutgoing", |
| | | "BaseOperationTypeInternal" |
| | | ] |
| | | }, |
| | | "constvar.ReservationMethod": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "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" |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "returnJobType": { |
| | | "returnOperationType": { |
| | | "description": "退货类型名称", |
| | | "type": "string" |
| | | }, |
| | | "returnJobTypeID": { |
| | | "returnOperationTypeID": { |
| | | "description": "退货类型ID", |
| | | "type": "integer" |
| | | }, |
| | |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "models.Location": { |
| | | "type": "object", |
| | | "properties": { |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "位置名称", |
| | | "type": "string" |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AddJobType": { |
| | | "request.AddOperationType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "ReservationDaysBeforePriority": { |
| | | "description": "在优先级的前几天", |
| | | "type": "integer" |
| | | }, |
| | | "baseJobType": { |
| | | "baseOperationType": { |
| | | "description": "基础作业类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BaseJobType" |
| | | "$ref": "#/definitions/constvar.BaseOperationType" |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "returnJobTypeID": { |
| | | "returnOperationTypeID": { |
| | | "description": "退货类型ID", |
| | | "type": "integer" |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateJobType": { |
| | | "request.UpdateOperationType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "ReservationDaysBeforePriority": { |
| | | "description": "在优先级的前几天", |
| | | "type": "integer" |
| | | }, |
| | | "baseJobType": { |
| | | "baseOperationType": { |
| | | "description": "基础作业类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.BaseJobType" |
| | | "$ref": "#/definitions/constvar.BaseOperationType" |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "returnJobTypeID": { |
| | | "returnOperationTypeID": { |
| | | "description": "退货类型ID", |
| | | "type": "integer" |
| | | }, |