From db425e3e5022111c8b776fa18f453ed04623deb2 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期六, 23 九月 2023 15:19:27 +0800 Subject: [PATCH] 1.报废新增、修改、列表、验证 --- docs/swagger.yaml | 132 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 132 insertions(+), 0 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ff5c7d4..f0f0d6e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -77,6 +77,7 @@ - 5 - 6 - 7 + - 8 type: integer x-enum-comments: LocationTypeCustomer: 瀹㈡埛浣嶇疆 @@ -94,6 +95,7 @@ - LocationTypeInventoryLoss - LocationTypeProduction - LocationTypeTransit + - LocationTypeDisuse constvar.MaterialMode: enum: - 鍘熸潗鏂� @@ -679,6 +681,23 @@ description: 澶囨敞 type: string type: object + request.AddDisuse: + properties: + amount: + type: number + fromLocationId: + type: integer + productId: + type: string + productName: + type: string + sourceNumber: + type: string + toLocationId: + type: integer + unit: + type: string + type: object request.AddOperation: properties: comment: @@ -870,6 +889,19 @@ sourceNumber: type: string type: object + request.QueryDisuseList: + properties: + number: + type: string + page: + description: 椤电爜 + type: integer + pageSize: + description: 姣忛〉澶у皬 + type: integer + sourceNumber: + type: string + type: object request.QueryOperationList: properties: page: @@ -904,6 +936,31 @@ type: integer remark: description: 澶囨敞 + type: string + type: object + request.UpdateDisuse: + properties: + amount: + type: number + fromLocationId: + type: integer + id: + type: integer + number: + type: string + operationDate: + type: string + productId: + type: string + productName: + type: string + sourceNumber: + type: string + status: + $ref: '#/definitions/constvar.OperationStatus' + toLocationId: + type: integer + unit: type: string type: object request.UpdateOperation: @@ -1507,6 +1564,25 @@ summary: 缂栬緫浣滀笟绫诲瀷 tags: - 涓氬姟绫诲瀷 + /api-wms/v1/product/addDisuse: + post: + parameters: + - description: 鍏ュ簱/鍑哄簱淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddDisuse' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 娣诲姞鎶ュ簾淇℃伅 + tags: + - 浜у搧 /api-wms/v1/product/addProduct: post: parameters: @@ -1581,6 +1657,24 @@ summary: 鍒犻櫎浜у搧绫诲瀷 tags: - 浜у搧绫诲瀷 + /api-wms/v1/product/finishDisuse/{id}: + put: + parameters: + - description: id + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 楠岃瘉鎶ュ簾 + tags: + - 浜у搧 /api-wms/v1/product/getProductCategoryDetails/{id}: get: parameters: @@ -1679,6 +1773,25 @@ summary: 鑾峰彇浜у搧鍒楄〃 tags: - 浜у搧 + /api-wms/v1/product/listDisuse: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.QueryDisuseList' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鎶ュ簾鍒楄〃 + tags: + - 浜у搧 /api-wms/v1/product/listOperaton: post: parameters: @@ -1705,6 +1818,25 @@ summary: 浜у搧鍘嗗彶鍑哄叆搴撲俊鎭� tags: - 浜у搧 + /api-wms/v1/product/updateDisuse: + post: + parameters: + - description: 鍏ュ簱/鍑哄簱淇℃伅 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateDisuse' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 淇敼鎶ュ簾淇℃伅 + tags: + - 浜у搧 /api-wms/v1/product/updateProduct: post: parameters: -- Gitblit v1.8.0