From cd6940f07750c1e2cd3a5c0eeafa6cc0309ef2f6 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 29 八月 2023 14:35:26 +0800 Subject: [PATCH] 新增和查询采购类型 --- docs/swagger.yaml | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 161 insertions(+), 2 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index a58da37..2855cf4 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -665,6 +665,23 @@ description: 鏂囦欢鍦板潃 type: string type: object + purchase.OrderStatus: + enum: + - 1 + - 2 + - 3 + - 4 + type: integer + x-enum-comments: + OrderStatusCompleted: 宸插畬鎴� + OrderStatusConfirmed: 宸蹭笅鍗� + OrderStatusReceived: 宸插埌璐� + OrderStatusStored: 宸插叆搴� + x-enum-varnames: + - OrderStatusConfirmed + - OrderStatusReceived + - OrderStatusStored + - OrderStatusCompleted purchase.Purchase: properties: contact: @@ -679,9 +696,14 @@ name: description: 閲囪喘鍚嶇О type: string + number: + description: 閲囪喘缂栧彿 + type: string phone: description: 鑱旂郴浜虹數璇� type: string + purchaseType: + $ref: '#/definitions/purchase.PurchaseType' purchaseTypeId: description: 閲囪喘绫诲瀷id type: integer @@ -691,6 +713,12 @@ signingDate: description: 绛剧害鏃ユ湡 type: string + status: + allOf: + - $ref: '#/definitions/purchase.OrderStatus' + description: 鐘舵�� + supplier: + $ref: '#/definitions/test.Supplier' supplierId: description: 渚涘簲鍟唅d type: integer @@ -719,6 +747,21 @@ description: 閲囪喘鎬讳环 type: number type: object + purchase.PurchaseType: + properties: + id: + description: 涓婚敭ID + type: integer + name: + description: 閲囪喘绫诲瀷 + type: string + pin: + description: 鏄惁缃《 + type: boolean + sort: + description: 鎺掑簭 + type: integer + type: object purchaserequest.AddPurchase: properties: productList: @@ -726,7 +769,68 @@ $ref: '#/definitions/purchase.PurchaseProducts' type: array purchase: - $ref: '#/definitions/purchase.Purchase' + $ref: '#/definitions/purchaserequest.Purchase' + type: object + purchaserequest.Purchase: + properties: + contact: + description: 鑱旂郴浜� + type: string + deliveryDate: + description: 浜や粯鏃ユ湡 + type: string + id: + description: 涓婚敭ID + type: integer + name: + description: 閲囪喘鍚嶇О + type: string + number: + description: 閲囪喘缂栧彿 + type: string + phone: + description: 鑱旂郴浜虹數璇� + type: string + purchaseTypeId: + description: 閲囪喘绫诲瀷id + type: integer + remark: + description: 澶囨敞 + type: string + signingDate: + description: 绛剧害鏃ユ湡 + type: string + status: + allOf: + - $ref: '#/definitions/purchase.OrderStatus' + description: 鐘舵�� + supplierId: + description: 渚涘簲鍟唅d + type: integer + type: object + purchaserequest.PurchaseType: + properties: + id: + description: 涓婚敭ID + type: integer + name: + description: 閲囪喘绫诲瀷 + type: string + pin: + description: 鏄惁缃《 + type: boolean + sort: + description: 鎺掑簭 + type: integer + type: object + purchaserequest.UpdatePurchase: + properties: + productList: + items: + $ref: '#/definitions/purchase.PurchaseProducts' + type: array + purchase: + $ref: '#/definitions/purchaserequest.Purchase' type: object request.AddMenuAuthorityInfo: properties: @@ -4308,7 +4412,7 @@ name: data required: true schema: - $ref: '#/definitions/purchaserequest.AddPurchase' + $ref: '#/definitions/purchaserequest.UpdatePurchase' produces: - application/json responses: @@ -4417,6 +4521,61 @@ summary: 鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛� tags: - Purchase + /purchase/purchaseType: + post: + consumes: + - application/json + parameters: + - description: 閲囪喘绫诲瀷list + in: body + name: data + required: true + schema: + items: + $ref: '#/definitions/purchaserequest.PurchaseType' + type: array + produces: + - application/json + responses: + "200": + description: 鍒涘缓閲囪喘绫诲瀷 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 鍒涘缓閲囪喘绫诲瀷 + tags: + - Purchase + /purchase/purchaseTypeList: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 鑾峰彇閲囪喘绫诲瀷鍒楄〃 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/purchase.PurchaseType' + type: array + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 鑾峰彇閲囪喘绫诲瀷鍒楄〃 + tags: + - Purchase /purchase/submit/{id}: post: consumes: -- Gitblit v1.8.0