From 861a89be3807fb8b9b1e8863adc165cc78bb7700 Mon Sep 17 00:00:00 2001 From: wanjianli <1061428287@qq.com> Date: 星期一, 18 九月 2023 19:55:55 +0800 Subject: [PATCH] 出入库一部分代码 --- docs/swagger.yaml | 138 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 138 insertions(+), 0 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index eb93df2..7f4c9c9 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -13,6 +13,49 @@ - BaseOperationTypeIncoming - BaseOperationTypeOutgoing - BaseOperationTypeInternal + constvar.LocationType: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + type: integer + x-enum-comments: + LocationTypeCustomer: 瀹㈡埛浣嶇疆 + LocationTypeInternal: 鍐呴儴浣嶇疆 + LocationTypeInventoryLoss: 搴撳瓨鎹熷け + LocationTypeProduction: 鐢熶骇 + LocationTypeTransit: 涓浆浣嶇疆 + LocationTypeVendor: 渚涘簲鍟嗕綅缃� + LocationTypeView: 瑙嗗浘 + x-enum-varnames: + - LocationTypeVendor + - LocationTypeView + - LocationTypeInternal + - LocationTypeCustomer + - LocationTypeInventoryLoss + - LocationTypeProduction + - LocationTypeTransit + constvar.OperationStatus: + enum: + - 1 + - 2 + - 3 + - 4 + type: integer + x-enum-comments: + OperationStatus_Draft: 鑽夌 + OperationStatus_Finish: 瀹屾垚 + OperationStatus_Ready: 灏辩华 + OperationStatus_Waiting: 姝e湪绛夊緟 + x-enum-varnames: + - OperationStatus_Draft + - OperationStatus_Waiting + - OperationStatus_Ready + - OperationStatus_Finish constvar.ReservationMethod: enum: - 1 @@ -82,13 +125,39 @@ type: object models.Location: properties: + company: + allOf: + - $ref: '#/definitions/models.Company' + description: 鍏徃 + 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: + allOf: + - $ref: '#/definitions/constvar.LocationType' + description: 浣嶇疆绫诲瀷 updateTime: type: string type: object @@ -225,6 +294,36 @@ description: 澶囨敞 type: string type: object + request.AddOperation: + properties: + details: + items: + $ref: '#/definitions/request.OperationDetails' + type: array + fromLocationId: + description: 婧愪綅缃甶d + type: integer + id: + type: integer + number: + description: 鍗曞彿 + type: string + operationDate: + $ref: '#/definitions/util.JSONTime' + operationTypeId: + description: 浣滀笟绫诲瀷id + type: integer + sourceNumber: + description: 婧愬崟鍙� + type: string + status: + allOf: + - $ref: '#/definitions/constvar.OperationStatus' + description: 鐘舵�� + toLocationId: + description: 鐩爣浣嶇疆id + type: integer + type: object request.AddOperationType: properties: ReservationDaysBeforePriority: @@ -298,6 +397,21 @@ type: array required: - code + type: object + request.OperationDetails: + properties: + finishQuantity: + description: 瀹屾垚鏁伴噺 + type: number + productId: + description: 浜у搧id + type: integer + productName: + description: 浜у搧鍚嶇О + type: string + quantity: + description: 鏁伴噺 + type: number type: object request.UpdateCompany: properties: @@ -399,6 +513,11 @@ type: array required: - code + type: object + util.JSONTime: + properties: + time.Time: + type: string type: object util.Response: properties: @@ -598,6 +717,25 @@ summary: 缂栬緫鍏徃 tags: - 鍏徃 + /api-wms/v1/operation/operation: + post: + parameters: + - description: 鍏ュ簱/鍑哄簱淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddOperation' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 娣诲姞鍏ュ簱/鍑哄簱 + tags: + - 鍏ュ簱/鍑哄簱 /api-wms/v1/warehouse/operationType: get: parameters: -- Gitblit v1.8.0