From 63558d60419edd772f8f8c8b413326d4550783f0 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 07 三月 2024 14:53:26 +0800 Subject: [PATCH] 获取wms仓库和操作记录信息 --- docs/swagger.yaml | 244 +++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 225 insertions(+), 19 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 4a26eb6..75effca 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,4 +1,45 @@ definitions: + code.CodeAuto: + properties: + AutoLength: + type: integer + Desc: + type: string + PrefixMethod: + type: integer + PrefixValue: + type: string + SuffixMethod: + type: integer + type: object + code.CodeRule: + properties: + Desc: + type: string + Length: + type: integer + Name: + type: string + type: object + code.CodeStandard: + properties: + AutoRule: + $ref: '#/definitions/code.CodeAuto' + ID: + type: string + List: + items: + $ref: '#/definitions/code.CodeRule' + type: array + Method: + type: integer + Name: + type: string + Status: + type: string + Type: + type: string + type: object config.CORS: properties: mode: @@ -401,7 +442,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string invoiceAmount: description: 宸叉敹绁ㄩ噾棰� type: number @@ -431,13 +473,14 @@ - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 浠锋牸璋冩暣绫诲瀷 principal: - description: 閲囪喘璐熻矗浜� + description: 浠撳簱璐熻矗浜� type: string purchaseType: $ref: '#/definitions/purchase.PurchaseType' purchaseTypeId: description: 閲囪喘绫诲瀷id - type: integer + example: "0" + type: string quantity: description: 閲囪喘鏁伴噺 type: number @@ -453,6 +496,9 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + sourceOrder: + description: 鏉ユ簮鍗曟嵁 + type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' @@ -461,7 +507,8 @@ $ref: '#/definitions/test.Supplier' supplierId: description: 渚涘簲鍟唅d - type: integer + example: "0" + type: string totalPrice: description: 浠风◣鍚堣 type: number @@ -472,6 +519,9 @@ type: string warehouse: description: 鏀惰揣浠撳簱 + type: string + warehouseAddress: + description: 鏀惰揣浠撳簱鍦板潃 type: string wholeDiscount: description: 鏁村崟鎶樻墸鍊� @@ -515,7 +565,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘绫诲瀷 type: string @@ -539,6 +590,25 @@ x-enum-varnames: - WholeDiscountTypePercent - WholeDiscountTypeDiscount + purchase_wms.SrmGetWarehouseInfoResponse: + properties: + info: + items: + $ref: '#/definitions/purchase_wms.SrmWarehouseInfo' + type: array + type: object + purchase_wms.SrmWarehouseInfo: + properties: + address: + description: 浠撳簱鍦板潃 + type: string + name: + description: 浠撳簱鍚� + type: string + principal: + description: 浠撳簱璐熻矗浜� + type: string + type: object purchaserequest.AddPurchase: properties: productList: @@ -558,7 +628,8 @@ type: string id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘鍚嶇О type: string @@ -578,9 +649,13 @@ allOf: - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 浠锋牸璋冩暣绫诲瀷 + principal: + description: 浠撳簱璐熻矗浜� + type: string purchaseTypeId: description: 閲囪喘绫诲瀷id - type: integer + example: "0" + type: string quantity: description: 閲囪喘鏁伴噺 type: number @@ -593,16 +668,26 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + sourceOrder: + description: 鏉ユ簮鍗曟嵁 + type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' description: 鐘舵�� supplierId: description: 渚涘簲鍟唅d - type: integer + example: "0" + type: string totalPrice: description: 浠风◣鍚堣 type: number + warehouse: + description: 鏀惰揣浠撳簱 + type: string + warehouseAddress: + description: 鏀惰揣浠撳簱鍦板潃 + type: string wholeDiscount: description: 鏁村崟鎶樻墸鍊� type: number @@ -615,7 +700,8 @@ properties: id: description: 涓婚敭ID - type: integer + example: "0" + type: string name: description: 閲囪喘绫诲瀷 type: string @@ -634,12 +720,6 @@ type: array purchase: $ref: '#/definitions/purchaserequest.Purchase' - type: object - request.GetById: - properties: - id: - description: 涓婚敭ID - type: integer type: object request.IdsReq: properties: @@ -741,6 +821,9 @@ type: integer purchasePrice: type: number + remark: + description: 鎻忚堪 + type: string shippingDuration: type: integer specifications: @@ -767,6 +850,12 @@ data: {} msg: type: string + type: object + srm_model_common_request.GetById: + properties: + id: + description: 涓婚敭ID + type: integer type: object system.System: properties: @@ -837,7 +926,8 @@ type: integer id: description: 涓婚敭ID - type: integer + example: "0" + type: string industry: type: string name: @@ -914,6 +1004,68 @@ title: Swagger Example API version: 0.0.1 paths: + /code/getAutoCode: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/code.CodeStandard' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + additionalProperties: true + type: object + type: object + summary: 鑾峰彇鑷姩缂栫爜 + tags: + - 缂栫爜 + /code/getCodeList: + get: + parameters: + - in: query + name: codeStandID + type: string + - in: query + name: name + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: type + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/code.CodeStandard' + type: array + type: object + summary: 鑾峰彇缂栫爜鍒楄〃 + tags: + - 缂栫爜 /con/createContract: post: consumes: @@ -1566,7 +1718,7 @@ name: data required: true schema: - $ref: '#/definitions/request.GetById' + $ref: '#/definitions/srm_model_common_request.GetById' produces: - application/json responses: @@ -1815,6 +1967,58 @@ summary: 棰勮Contract tags: - Contract + /purchase/getOperationInfo/{id}: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 鑾峰彇閲囪喘绫诲瀷鍒楄〃 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase_wms.SrmGetWarehouseInfoResponse' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇鎿嶄綔淇℃伅 + tags: + - Purchase + /purchase/getWarehouseInfo: + get: + consumes: + - application/json + parameters: + - description: 閲囪喘鍗旾D + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: 鑾峰彇閲囪喘绫诲瀷鍒楄〃 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase_wms.SrmGetWarehouseInfoResponse' + type: array + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇浠撳簱鍒楄〃 + tags: + - Purchase /purchase/purchase: post: consumes: @@ -2209,9 +2413,10 @@ name: fileId type: integer - description: 涓婚敭ID + example: "0" in: query name: id - type: integer + type: string - in: query name: industry type: string @@ -2306,9 +2511,10 @@ name: fileId type: integer - description: 涓婚敭ID + example: "0" in: query name: id - type: integer + type: string - in: query name: industry type: string -- Gitblit v1.8.0