From cd6940f07750c1e2cd3a5c0eeafa6cc0309ef2f6 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 29 八月 2023 14:35:26 +0800 Subject: [PATCH] 新增和查询采购类型 --- docs/docs.go | 768 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 757 insertions(+), 11 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 7a8ba8b..5c82abd 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -3140,6 +3140,364 @@ } } }, + "/m/createMember": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鍒涘缓Member", + "parameters": [ + { + "description": "鍒涘缓Member", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Member" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/deleteMember": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鍒犻櫎Member", + "parameters": [ + { + "description": "鍒犻櫎Member", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Member" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/deleteMemberByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鎵归噺鍒犻櫎Member", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Member", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/findMember": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鐢╥d鏌ヨMember", + "parameters": [ + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "nickname", + "in": "query" + }, + { + "type": "string", + "name": "userName", + "in": "query" + }, + { + "type": "string", + "name": "uuid", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/getMemberList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鍒嗛〉鑾峰彇Member鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "name": "nickname", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "userName", + "in": "query" + }, + { + "type": "string", + "name": "uuid", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/getMemberListFromGrpc": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鍒嗛〉鑾峰彇Member鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "name": "nickname", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "userName", + "in": "query" + }, + { + "type": "string", + "name": "uuid", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/m/updateMember": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Member" + ], + "summary": "鏇存柊Member", + "parameters": [ + { + "description": "鏇存柊Member", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Member" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/menu/addBaseMenu": { "post": { "security": [ @@ -3624,7 +3982,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Product" + "$ref": "#/definitions/request.ProductCreate" } } ], @@ -3755,6 +4113,11 @@ }, { "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", "name": "name", "in": "query" }, @@ -3781,6 +4144,16 @@ { "type": "integer", "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", "in": "query" }, { @@ -3851,6 +4224,11 @@ }, { "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", "name": "name", "in": "query" }, @@ -3893,7 +4271,17 @@ }, { "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", "in": "query" }, { @@ -3964,6 +4352,11 @@ }, { "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", "name": "name", "in": "query" }, @@ -4006,7 +4399,17 @@ }, { "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", "in": "query" }, { @@ -4087,7 +4490,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/purchaserequest.AddPurchase" + "$ref": "#/definitions/purchaserequest.UpdatePurchase" } } ], @@ -4274,7 +4677,7 @@ "tags": [ "Purchase" ], - "summary": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�", + "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�", "parameters": [ { "type": "string", @@ -4297,7 +4700,7 @@ ], "responses": { "200": { - "description": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", "schema": { "allOf": [ { @@ -4309,6 +4712,152 @@ "data": { "$ref": "#/definitions/response.PageResult" }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseType": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒涘缓閲囪喘绫诲瀷", + "parameters": [ + { + "description": "閲囪喘绫诲瀷list", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/purchaserequest.PurchaseType" + } + } + } + ], + "responses": { + "200": { + "description": "鍒涘缓閲囪喘绫诲瀷", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseTypeList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "responses": { + "200": { + "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseType" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/submit/{id}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鎻愪氦閲囪喘鍗�", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎻愪氦閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { "msg": { "type": "string" } @@ -4552,8 +5101,8 @@ "in": "query" }, { - "type": "integer", - "name": "responsiblePersonId", + "type": "string", + "name": "responsiblePersonName", "in": "query" }, { @@ -4685,8 +5234,8 @@ "in": "query" }, { - "type": "integer", - "name": "responsiblePersonId", + "type": "string", + "name": "responsiblePersonName", "in": "query" }, { @@ -7448,6 +7997,14 @@ "description": "鐜鍊�", "type": "string" }, + "grpc-admin-url": { + "description": "grpc鏈嶅姟鍦板潃", + "type": "string" + }, + "grpc-url": { + "description": "grpc鏈嶅姟鍦板潃", + "type": "string" + }, "iplimit-count": { "type": "integer" }, @@ -7664,6 +8221,27 @@ } } }, + "purchase.OrderStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OrderStatusCompleted": "宸插畬鎴�", + "OrderStatusConfirmed": "宸蹭笅鍗�", + "OrderStatusReceived": "宸插埌璐�", + "OrderStatusStored": "宸插叆搴�" + }, + "x-enum-varnames": [ + "OrderStatusConfirmed", + "OrderStatusReceived", + "OrderStatusStored", + "OrderStatusCompleted" + ] + }, "purchase.Purchase": { "type": "object", "properties": { @@ -7683,9 +8261,16 @@ "description": "閲囪喘鍚嶇О", "type": "string" }, + "number": { + "description": "閲囪喘缂栧彿", + "type": "string" + }, "phone": { "description": "鑱旂郴浜虹數璇�", "type": "string" + }, + "purchaseType": { + "$ref": "#/definitions/purchase.PurchaseType" }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", @@ -7698,6 +8283,17 @@ "signingDate": { "description": "绛剧害鏃ユ湡", "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" }, "supplierId": { "description": "渚涘簲鍟唅d", @@ -7738,6 +8334,27 @@ } } }, + "purchase.PurchaseType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + } + } + }, "purchaserequest.AddPurchase": { "type": "object", "properties": { @@ -7748,7 +8365,95 @@ } }, "purchase": { - "$ref": "#/definitions/purchase.Purchase" + "$ref": "#/definitions/purchaserequest.Purchase" + } + } + }, + "purchaserequest.Purchase": { + "type": "object", + "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": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplierId": { + "description": "渚涘簲鍟唅d", + "type": "integer" + } + } + }, + "purchaserequest.PurchaseType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + } + } + }, + "purchaserequest.UpdatePurchase": { + "type": "object", + "properties": { + "productList": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProducts" + } + }, + "purchase": { + "$ref": "#/definitions/purchaserequest.Purchase" } } }, @@ -7922,6 +8627,17 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + } + } + }, + "request.ProductCreate": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Product" + } } } }, @@ -8996,6 +9712,24 @@ } } }, + "test.Member": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "nickname": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "uuid": { + "type": "string" + } + } + }, "test.Product": { "type": "object", "properties": { @@ -9011,6 +9745,9 @@ }, "minimumStock": { "type": "integer" + }, + "modelNumber": { + "type": "string" }, "name": { "type": "string" @@ -9028,6 +9765,15 @@ "type": "string" }, "shippingDuration": { + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { "type": "integer" }, "unit": { @@ -9075,8 +9821,8 @@ "phone": { "type": "string" }, - "responsiblePersonId": { - "type": "integer" + "responsiblePersonName": { + "type": "string" }, "status": { "type": "integer" -- Gitblit v1.8.0