From 20acdf9648c20c4b1e0b03af98bd0010bab66f7b Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期二, 05 九月 2023 10:31:50 +0800 Subject: [PATCH] fix --- docs/docs.go | 2716 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 2,684 insertions(+), 32 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 835bc27..bd498d8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1780,6 +1780,411 @@ } } }, + "/con/createContract": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "multipart/form-data" + ], + "tags": [ + "Contract" + ], + "summary": "鍒涘缓Contract", + "parameters": [ + { + "type": "file", + "description": "涓婁紶鏂囦欢", + "name": "file", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "鏂囦欢鍚嶇О", + "name": "name", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContract": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒犻櫎Contract", + "parameters": [ + { + "description": "鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContractByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鎵归噺鍒犻櫎Contract", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/downloadContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "涓嬭浇Contract", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"涓嬭浇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/findContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鐢╥d鏌ヨContract", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/getContractList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒嗛〉鑾峰彇Contract鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/previewContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "棰勮Contract", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/updateContract": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鏇存柊Contract", + "parameters": [ + { + "description": "鏇存柊Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/customer/customer": { "get": { "security": [ @@ -1798,6 +2203,11 @@ ], "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, { "type": "string", "description": "瀹㈡埛鍚�", @@ -1826,6 +2236,11 @@ "type": "integer", "description": "绠$悊ID", "name": "sysUserId", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -2550,6 +2965,11 @@ "summary": "鐢╥d鏌ヨIndustry", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -2558,6 +2978,11 @@ { "type": "string", "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -2589,6 +3014,11 @@ ], "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -2627,6 +3057,11 @@ "type": "string", "name": "startCreatedAt", "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" } ], "responses": { @@ -2663,7 +3098,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Industry" + "$ref": "#/definitions/request.IndustryList" } } ], @@ -2788,6 +3223,394 @@ } } ] + } + } + } + } + }, + "/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": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "nickname", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "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": "created_at", + "in": "query" + }, + { + "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": "updated_at", + "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": "created_at", + "in": "query" + }, + { + "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": "updated_at", + "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" } } } @@ -3253,6 +4076,1019 @@ } } }, + "/p/createProduct": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒涘缓Product", + "parameters": [ + { + "description": "鍒涘缓Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.ProductCreate" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProduct": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒犻櫎Product", + "parameters": [ + { + "description": "鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProductByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鎵归噺鍒犻櫎Product", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/findProduct": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鐢╥d鏌ヨProduct", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "string", + "name": "productType", + "in": "query" + }, + { + "type": "number", + "name": "purchasePrice", + "in": "query" + }, + { + "type": "string", + "name": "remark", + "in": "query" + }, + { + "type": "integer", + "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/getProductList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "productType", + "in": "query" + }, + { + "type": "number", + "name": "purchasePrice", + "in": "query" + }, + { + "type": "string", + "name": "remark", + "in": "query" + }, + { + "type": "integer", + "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "supplierNumber", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/getProductListFromGrpc": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "modelNumber", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "productType", + "in": "query" + }, + { + "type": "number", + "name": "purchasePrice", + "in": "query" + }, + { + "type": "string", + "name": "remark", + "in": "query" + }, + { + "type": "integer", + "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "supplierNumber", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/updateProduct": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鏇存柊Product", + "parameters": [ + { + "description": "鏇存柊Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/purchase/purchase": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鏇存柊閲囪喘鍗曚俊鎭�", + "parameters": [ + { + "description": "閲囪喘鍗旾D, 閲囪喘鍗曚俊鎭�", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.UpdatePurchase" + } + } + ], + "responses": { + "200": { + "description": "鏇存柊閲囪喘鍗曚俊鎭�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒涘缓閲囪喘鍗�", + "parameters": [ + { + "description": "閲囪喘鍗�,閲囪喘鍗曚骇鍝�", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.AddPurchase" + } + } + ], + "responses": { + "200": { + "description": "鍒涘缓閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchase/{id}": { + "get": { + "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": { + "data": { + "$ref": "#/definitions/response.PurchaseResponse" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + }, + "delete": { + "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" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�", + "parameters": [ + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "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/qualityInspectList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "QualityInspect" + ], + "summary": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�", + "parameters": [ + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "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" + } + } + } + ] + } + } + } + } + }, "/s/changeSupplierStatus": { "post": { "security": [ @@ -3445,6 +5281,11 @@ }, { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "detailAddress", "in": "query" }, @@ -3454,8 +5295,8 @@ "in": "query" }, { - "type": "string", - "name": "file", + "type": "integer", + "name": "fileId", "in": "query" }, { @@ -3485,8 +5326,8 @@ "in": "query" }, { - "type": "integer", - "name": "responsiblePersonId", + "type": "string", + "name": "responsiblePersonName", "in": "query" }, { @@ -3497,6 +5338,11 @@ { "type": "string", "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -3555,6 +5401,11 @@ }, { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "detailAddress", "in": "query" }, @@ -3569,8 +5420,8 @@ "in": "query" }, { - "type": "string", - "name": "file", + "type": "integer", + "name": "fileId", "in": "query" }, { @@ -3618,8 +5469,8 @@ "in": "query" }, { - "type": "integer", - "name": "responsiblePersonId", + "type": "string", + "name": "responsiblePersonName", "in": "query" }, { @@ -3635,6 +5486,11 @@ { "type": "string", "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -3824,6 +5680,11 @@ "summary": "鐢╥d鏌ヨSupplierType", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -3832,6 +5693,11 @@ { "type": "string", "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -3863,6 +5729,11 @@ ], "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -3901,6 +5772,11 @@ "type": "string", "name": "startCreatedAt", "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" } ], "responses": { @@ -3937,7 +5813,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.SupplierType" + "$ref": "#/definitions/request.SupplierTypeList" } } ], @@ -4071,6 +5947,11 @@ "parameters": [ { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "鎻忚堪", "name": "desc", "in": "query" @@ -4097,6 +5978,11 @@ "type": "string", "description": "瀛楀吀鍚嶏紙鑻憋級", "name": "type", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -4146,6 +6032,11 @@ "parameters": [ { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "鎻忚堪", "name": "desc", "in": "query" @@ -4190,6 +6081,11 @@ "type": "string", "description": "瀛楀吀鍚嶏紙鑻憋級", "name": "type", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -4387,6 +6283,11 @@ "summary": "鐢╥d鏌ヨSysDictionaryDetail", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -4414,6 +6315,11 @@ "type": "integer", "description": "鍏宠仈鏍囪", "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -4468,6 +6374,11 @@ "summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -4513,6 +6424,11 @@ "type": "integer", "description": "鍏宠仈鏍囪", "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -4779,6 +6695,11 @@ }, { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "閿欒淇℃伅", "name": "error_message", "in": "query" @@ -4823,6 +6744,11 @@ "type": "integer", "description": "璇锋眰鐘舵��", "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -4890,6 +6816,11 @@ }, { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "閿欒淇℃伅", "name": "error_message", "in": "query" @@ -4952,6 +6883,11 @@ "type": "integer", "description": "璇锋眰鐘舵��", "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -6188,7 +8124,7 @@ } }, "email": { - "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email" + "$ref": "#/definitions/srm_config.Email" }, "excel": { "$ref": "#/definitions/config.Excel" @@ -6381,6 +8317,14 @@ "description": "鐜鍊�", "type": "string" }, + "grpc-admin-url": { + "description": "grpc鏈嶅姟鍦板潃", + "type": "string" + }, + "grpc-url": { + "description": "grpc鏈嶅姟鍦板潃", + "type": "string" + }, "iplimit-count": { "type": "integer" }, @@ -6494,6 +8438,9 @@ "example.ExaCustomer": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "customerName": { "description": "瀹㈡埛鍚�", "type": "string" @@ -6521,6 +8468,9 @@ "sysUserId": { "description": "绠$悊ID", "type": "integer" + }, + "updated_at": { + "type": "string" } } }, @@ -6529,6 +8479,9 @@ "properties": { "chunkTotal": { "type": "integer" + }, + "created_at": { + "type": "string" }, "exaFileChunk": { "type": "array", @@ -6551,12 +8504,18 @@ }, "isFinish": { "type": "boolean" + }, + "updated_at": { + "type": "string" } } }, "example.ExaFileChunk": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "exaFileID": { "type": "integer" }, @@ -6569,12 +8528,18 @@ "id": { "description": "涓婚敭ID", "type": "integer" + }, + "updated_at": { + "type": "string" } } }, "example.ExaFileUploadAndDownload": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -6591,42 +8556,408 @@ "description": "鏂囦欢鏍囩", "type": "string" }, + "updated_at": { + "type": "string" + }, "url": { "description": "鏂囦欢鍦板潃", "type": "string" } } }, - "github_com_flipped-aurora_gin-vue-admin_server_config.Email": { + "purchase.OrderStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OrderStatusCompleted": "宸插畬鎴�", + "OrderStatusConfirmed": "宸蹭笅鍗�", + "OrderStatusReceived": "宸插埌璐�", + "OrderStatusStored": "宸插叆搴�" + }, + "x-enum-varnames": [ + "OrderStatusConfirmed", + "OrderStatusReceived", + "OrderStatusStored", + "OrderStatusCompleted" + ] + }, + "purchase.PriceAdjustmentType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "PriceAdjustmentTypeAdd": "澧炲姞", + "PriceAdjustmentTypeSub": "鍑忓皯" + }, + "x-enum-varnames": [ + "PriceAdjustmentTypeAdd", + "PriceAdjustmentTypeSub" + ] + }, + "purchase.Purchase": { "type": "object", "properties": { - "from": { - "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", + "contact": { + "description": "鑱旂郴浜�", "type": "string" }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", + "created_at": { "type": "string" }, - "is-ssl": { - "description": "鏄惁SSL 鏄惁寮�鍚疭SL", - "type": "boolean" - }, - "nickname": { - "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", + "creator": { + "description": "鍒跺崟浜�", "type": "string" }, - "port": { - "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", + "deliveryDate": { + "description": "浜や粯鏃ユ湡", + "type": "string" + }, + "handledBy": { + "description": "缁忓姙浜�", + "type": "string" + }, + "id": { + "description": "涓婚敭ID", "type": "integer" }, - "secret": { - "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", + "invoiceAmount": { + "description": "宸叉敹绁ㄩ噾棰�", + "type": "number" + }, + "name": { + "description": "閲囪喘鍚嶇О", "type": "string" }, - "to": { - "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", + "number": { + "description": "閲囪喘缂栧彿", "type": "string" + }, + "orderSource": { + "description": "鍗曟嵁鏉ユ簮", + "type": "string" + }, + "orderType": { + "description": "鍗曟嵁绫诲瀷", + "type": "string" + }, + "paidAmount": { + "description": "宸蹭粯閲戦", + "type": "number" + }, + "phone": { + "description": "鑱旂郴浜虹數璇�", + "type": "string" + }, + "priceAdjustment": { + "description": "浠锋牸璋冩暣鍊�", + "type": "number" + }, + "priceAdjustmentType": { + "description": "浠锋牸璋冩暣绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.PriceAdjustmentType" + } + ] + }, + "principal": { + "description": "閲囪喘璐熻矗浜�", + "type": "string" + }, + "purchaseType": { + "$ref": "#/definitions/purchase.PurchaseType" + }, + "purchaseTypeId": { + "description": "閲囪喘绫诲瀷id", + "type": "integer" + }, + "quantity": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "realTotalPrice": { + "description": "鏈�缁堜环鏍�", + "type": "number" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "shouldPayAmount": { + "description": "搴斾粯閲戦", + "type": "number" + }, + "signingDate": { + "description": "绛剧害鏃ユ湡", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { + "description": "渚涘簲鍟唅d", + "type": "integer" + }, + "totalPrice": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "unInvoiceAmount": { + "description": "鏈敹绁ㄩ噾棰�", + "type": "number" + }, + "updated_at": { + "type": "string" + }, + "warehouse": { + "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "wholeDiscount": { + "description": "鏁村崟鎶樻墸鍊�", + "type": "number" + }, + "wholeDiscountType": { + "description": "鏁村崟鎶樻墸绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.WholeDiscountType" + } + ] + } + } + }, + "purchase.PurchaseProducts": { + "type": "object", + "properties": { + "amount": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "created_at": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "price": { + "description": "閲囪喘鍗曚环", + "type": "number" + }, + "productId": { + "description": "浜у搧id", + "type": "integer" + }, + "purchaseId": { + "description": "閲囪喘id", + "type": "integer" + }, + "remark": { + "description": "鎻忚堪", + "type": "string" + }, + "total": { + "description": "閲囪喘鎬讳环", + "type": "number" + }, + "updated_at": { + "type": "string" + } + } + }, + "purchase.PurchaseType": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + }, + "updated_at": { + "type": "string" + } + } + }, + "purchase.WholeDiscountType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "WholeDiscountTypeDiscount": "鐩存帴闄嶄环", + "WholeDiscountTypePercent": "鐧惧垎姣旈檷浠�" + }, + "x-enum-varnames": [ + "WholeDiscountTypePercent", + "WholeDiscountTypeDiscount" + ] + }, + "purchaserequest.AddPurchase": { + "type": "object", + "properties": { + "productList": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProducts" + } + }, + "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" + }, + "priceAdjustment": { + "description": "浠锋牸璋冩暣鍊�", + "type": "number" + }, + "priceAdjustmentType": { + "description": "浠锋牸璋冩暣绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.PriceAdjustmentType" + } + ] + }, + "purchaseTypeId": { + "description": "閲囪喘绫诲瀷id", + "type": "integer" + }, + "quantity": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "realTotalPrice": { + "description": "鏈�缁堜环鏍�", + "type": "number" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "signingDate": { + "description": "绛剧害鏃ユ湡", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplierId": { + "description": "渚涘簲鍟唅d", + "type": "integer" + }, + "totalPrice": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "wholeDiscount": { + "description": "鏁村崟鎶樻墸鍊�", + "type": "number" + }, + "wholeDiscountType": { + "description": "鏁村崟鎶樻墸绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.WholeDiscountType" + } + ] + } + } + }, + "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" } } }, @@ -6718,6 +9049,17 @@ } } }, + "request.IndustryList": { + "type": "object", + "properties": { + "industries": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Industry" + } + } + } + }, "request.InitDB": { "type": "object", "required": [ @@ -6792,6 +9134,17 @@ } } }, + "request.ProductCreate": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Product" + } + } + } + }, "request.Register": { "type": "object", "properties": { @@ -6853,6 +9206,9 @@ "description": "api缁�", "type": "string" }, + "created_at": { + "type": "string" + }, "desc": { "description": "鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true", "type": "boolean" @@ -6887,6 +9243,9 @@ }, "path": { "description": "api璺緞", + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -6923,6 +9282,17 @@ }, "status": { "type": "integer" + } + } + }, + "request.SupplierTypeList": { + "type": "object", + "properties": { + "supplierTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/test.SupplierType" + } } } }, @@ -7049,6 +9419,72 @@ } } }, + "response.PurchaseProducts": { + "type": "object", + "properties": { + "amount": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "deliveryTime": { + "type": "integer" + }, + "modelNumber": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "price": { + "description": "閲囪喘鍗曚环", + "type": "number" + }, + "productId": { + "description": "浜у搧id", + "type": "integer" + }, + "productType": { + "type": "string" + }, + "purchaseId": { + "description": "閲囪喘id", + "type": "integer" + }, + "purchasePrice": { + "type": "number" + }, + "shippingDuration": { + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "total": { + "description": "閲囪喘鎬讳环", + "type": "number" + }, + "unit": { + "type": "string" + } + } + }, + "response.PurchaseResponse": { + "type": "object", + "properties": { + "productList": { + "type": "array", + "items": { + "$ref": "#/definitions/response.PurchaseProducts" + } + }, + "purchase": { + "$ref": "#/definitions/purchase.Purchase" + } + } + }, "response.Response": { "type": "object", "properties": { @@ -7171,6 +9607,39 @@ "properties": { "user": { "$ref": "#/definitions/system.SysUser" + } + } + }, + "srm_config.Email": { + "type": "object", + "properties": { + "from": { + "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", + "type": "string" + }, + "host": { + "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", + "type": "string" + }, + "is-ssl": { + "description": "鏄惁SSL 鏄惁寮�鍚疭SL", + "type": "boolean" + }, + "nickname": { + "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", + "type": "string" + }, + "port": { + "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", + "type": "integer" + }, + "secret": { + "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", + "type": "string" + }, + "to": { + "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", + "type": "string" } } }, @@ -7323,6 +9792,9 @@ "description": "api缁�", "type": "string" }, + "created_at": { + "type": "string" + }, "description": { "description": "api涓枃鎻忚堪", "type": "string" @@ -7337,6 +9809,9 @@ }, "path": { "description": "api璺緞", + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -7394,6 +9869,9 @@ "system.SysAutoCode": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "desc": { "type": "string" }, @@ -7405,6 +9883,9 @@ "type": "string" }, "packageName": { + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -7426,6 +9907,9 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", + "type": "string" + }, + "created_at": { "type": "string" }, "hidden": { @@ -7471,12 +9955,18 @@ "sort": { "description": "鎺掑簭鏍囪", "type": "integer" + }, + "updated_at": { + "type": "string" } } }, "system.SysBaseMenuBtn": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "desc": { "type": "string" }, @@ -7489,12 +9979,18 @@ }, "sysBaseMenuID": { "type": "integer" + }, + "updated_at": { + "type": "string" } } }, "system.SysBaseMenuParameter": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -7510,6 +10006,9 @@ "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query", "type": "string" }, + "updated_at": { + "type": "string" + }, "value": { "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�", "type": "string" @@ -7519,6 +10018,9 @@ "system.SysDictionary": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "desc": { "description": "鎻忚堪", "type": "string" @@ -7544,12 +10046,18 @@ "type": { "description": "瀛楀吀鍚嶏紙鑻憋級", "type": "string" + }, + "updated_at": { + "type": "string" } } }, "system.SysDictionaryDetail": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -7569,6 +10077,9 @@ "sysDictionaryID": { "description": "鍏宠仈鏍囪", "type": "integer" + }, + "updated_at": { + "type": "string" }, "value": { "description": "瀛楀吀鍊�", @@ -7599,6 +10110,9 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", + "type": "string" + }, + "created_at": { "type": "string" }, "hidden": { @@ -7647,6 +10161,9 @@ "sort": { "description": "鎺掑簭鏍囪", "type": "integer" + }, + "updated_at": { + "type": "string" } } }, @@ -7659,6 +10176,9 @@ }, "body": { "description": "璇锋眰Body", + "type": "string" + }, + "created_at": { "type": "string" }, "error_message": { @@ -7693,6 +10213,9 @@ "description": "璇锋眰鐘舵��", "type": "integer" }, + "updated_at": { + "type": "string" + }, "user": { "$ref": "#/definitions/system.SysUser" }, @@ -7726,6 +10249,9 @@ "description": "鍩虹棰滆壊", "type": "string" }, + "created_at": { + "type": "string" + }, "email": { "description": "鐢ㄦ埛閭", "type": "string" @@ -7754,6 +10280,9 @@ "description": "鐢ㄦ埛渚ц竟涓婚", "type": "string" }, + "updated_at": { + "type": "string" + }, "userName": { "description": "鐢ㄦ埛鐧诲綍鍚�", "type": "string" @@ -7772,14 +10301,122 @@ } } }, + "test.Contract": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "supplierID": { + "type": "integer" + }, + "updated_at": { + "type": "string" + } + } + }, "test.Industry": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" }, "name": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + } + }, + "test.Member": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "nickname": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "uuid": { + "type": "string" + } + } + }, + "test.Product": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "deliveryTime": { + "type": "integer" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "maximumStock": { + "type": "integer" + }, + "minimumStock": { + "type": "integer" + }, + "modelNumber": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "purchasePrice": { + "type": "number" + }, + "remark": { + "type": "string" + }, + "shippingDuration": { + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { + "type": "integer" + }, + "unit": { + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -7799,14 +10436,20 @@ "contact": { "type": "string" }, + "contract": { + "$ref": "#/definitions/test.Contract" + }, + "created_at": { + "type": "string" + }, "detailAddress": { "type": "string" }, "email": { "type": "string" }, - "file": { - "type": "string" + "fileId": { + "type": "integer" }, "id": { "description": "涓婚敭ID", @@ -7824,13 +10467,16 @@ "phone": { "type": "string" }, - "responsiblePersonId": { - "type": "integer" + "responsiblePersonName": { + "type": "string" }, "status": { "type": "integer" }, "supplierType": { + "type": "string" + }, + "updated_at": { "type": "string" }, "url": { @@ -7841,12 +10487,18 @@ "test.SupplierType": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" }, "name": { "type": "string" + }, + "updated_at": { + "type": "string" } } } -- Gitblit v1.8.0