From 25c573d55986e02cf5f70cc3868e2b94a4be98e2 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 25 八月 2023 19:35:57 +0800 Subject: [PATCH] change package name --- docs/docs.go | 1877 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 1,632 insertions(+), 245 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index b119fe1..f7ba6c5 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -911,7 +911,7 @@ } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" @@ -919,19 +919,21 @@ "tags": [ "AutoCode" ], - "summary": "瀹夎鎻掍欢", + "summary": "鍒涘缓鎻掍欢妯℃澘", "parameters": [ { - "type": "file", - "description": "this is a test file", - "name": "plug", - "in": "formData", - "required": true + "description": "鍒涘缓鎻掍欢妯℃澘", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysAutoCode" + } } ], "responses": { "200": { - "description": "瀹夎鎻掍欢鎴愬姛", + "description": "鍒涘缓鎻掍欢妯℃澘鎴愬姛", "schema": { "allOf": [ { @@ -941,10 +943,8 @@ "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object" - } + "type": "object", + "additionalProperties": true }, "msg": { "type": "string" @@ -1378,6 +1378,60 @@ } } }, + "/autoCode/installPlugin": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "AutoCode" + ], + "summary": "瀹夎鎻掍欢", + "parameters": [ + { + "type": "file", + "description": "this is a test file", + "name": "plug", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "瀹夎鎻掍欢鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, "/autoCode/preview": { "post": { "security": [ @@ -1409,6 +1463,60 @@ "responses": { "200": { "description": "棰勮鍒涘缓鍚庣殑浠g爜", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/autoCode/pubPlug": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "AutoCode" + ], + "summary": "鎵撳寘鎻掍欢", + "parameters": [ + { + "description": "鎵撳寘鎻掍欢", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysAutoCode" + } + } + ], + "responses": { + "200": { + "description": "鎵撳寘鎻掍欢鎴愬姛", "schema": { "allOf": [ { @@ -1672,6 +1780,353 @@ } } }, + "/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/findContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鐢╥d鏌ヨContract", + "parameters": [ + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "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": "endCreatedAt", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "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" + } + ], + "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": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "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": [ @@ -1690,12 +2145,6 @@ ], "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", "parameters": [ - { - "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, { "type": "string", "description": "瀹㈡埛鍚�", @@ -1724,12 +2173,6 @@ "type": "integer", "description": "绠$悊ID", "name": "sysUserId", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" } ], @@ -2321,6 +2764,266 @@ } } }, + "/i/createIndustry": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒涘缓Industry", + "parameters": [ + { + "description": "鍒涘缓Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/deleteIndustry": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒犻櫎Industry", + "parameters": [ + { + "description": "鍒犻櫎Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/deleteIndustryByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鎵归噺鍒犻櫎Industry", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/findIndustry": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鐢╥d鏌ヨIndustry", + "parameters": [ + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/getIndustryList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", + "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": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/updateIndustry": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鏇存柊Industry", + "parameters": [ + { + "description": "鏇存柊Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IndustryList" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ @@ -2897,6 +3600,704 @@ } } }, + "/s/changeSupplierStatus": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "淇敼Supplier鐘舵��", + "parameters": [ + { + "description": "淇敼Supplier鐘舵��", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SupplierStatus" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"淇敼鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/createSupplier": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒涘缓Supplier", + "parameters": [ + { + "description": "鍒涘缓Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/deleteSupplier": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒犻櫎Supplier", + "parameters": [ + { + "description": "鍒犻櫎Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/deleteSupplierByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鎵归噺鍒犻櫎Supplier", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/findSupplier": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鐢╥d鏌ヨSupplier", + "parameters": [ + { + "type": "string", + "name": "account", + "in": "query" + }, + { + "type": "string", + "name": "accountName", + "in": "query" + }, + { + "type": "string", + "name": "bank", + "in": "query" + }, + { + "type": "string", + "name": "contact", + "in": "query" + }, + { + "type": "string", + "name": "detailAddress", + "in": "query" + }, + { + "type": "string", + "name": "email", + "in": "query" + }, + { + "type": "integer", + "name": "fileId", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "industry", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "string", + "name": "phone", + "in": "query" + }, + { + "type": "integer", + "name": "responsiblePersonId", + "in": "query" + }, + { + "type": "integer", + "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "url", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/getSupplierList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒嗛〉鑾峰彇Supplier鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "account", + "in": "query" + }, + { + "type": "string", + "name": "accountName", + "in": "query" + }, + { + "type": "string", + "name": "bank", + "in": "query" + }, + { + "type": "string", + "name": "contact", + "in": "query" + }, + { + "type": "string", + "name": "detailAddress", + "in": "query" + }, + { + "type": "string", + "name": "email", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "fileId", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "industry", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "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": "phone", + "in": "query" + }, + { + "type": "integer", + "name": "responsiblePersonId", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "url", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/updateSupplier": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鏇存柊Supplier", + "parameters": [ + { + "description": "鏇存柊Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/createSupplierType": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒涘缓SupplierType", + "parameters": [ + { + "description": "鍒涘缓SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/deleteSupplierType": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒犻櫎SupplierType", + "parameters": [ + { + "description": "鍒犻櫎SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/deleteSupplierTypeByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鎵归噺鍒犻櫎SupplierType", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/findSupplierType": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鐢╥d鏌ヨSupplierType", + "parameters": [ + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/getSupplierTypeList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", + "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": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/updateSupplierType": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鏇存柊SupplierType", + "parameters": [ + { + "description": "鏇存柊SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SupplierTypeList" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/sysDictionary/createSysDictionary": { "post": { "security": [ @@ -3017,12 +4418,6 @@ "parameters": [ { "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", "description": "鎻忚堪", "name": "desc", "in": "query" @@ -3049,12 +4444,6 @@ "type": "string", "description": "瀛楀吀鍚嶏紙鑻憋級", "name": "type", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" } ], @@ -3104,12 +4493,6 @@ "parameters": [ { "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", "description": "鎻忚堪", "name": "desc", "in": "query" @@ -3154,12 +4537,6 @@ "type": "string", "description": "瀛楀吀鍚嶏紙鑻憋級", "name": "type", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" } ], @@ -3357,12 +4734,6 @@ "summary": "鐢╥d鏌ヨSysDictionaryDetail", "parameters": [ { - "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -3390,12 +4761,6 @@ "type": "integer", "description": "鍏宠仈鏍囪", "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" }, { @@ -3450,12 +4815,6 @@ "summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃", "parameters": [ { - "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -3501,12 +4860,6 @@ "type": "integer", "description": "鍏宠仈鏍囪", "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" }, { @@ -3773,12 +5126,6 @@ }, { "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", "description": "閿欒淇℃伅", "name": "error_message", "in": "query" @@ -3823,12 +5170,6 @@ "type": "integer", "description": "璇锋眰鐘舵��", "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" }, { @@ -3896,12 +5237,6 @@ }, { "type": "string", - "description": "鍒涘缓鏃堕棿", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", "description": "閿欒淇℃伅", "name": "error_message", "in": "query" @@ -3964,12 +5299,6 @@ "type": "integer", "description": "璇锋眰鐘舵��", "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "鏇存柊鏃堕棿", - "name": "updatedAt", "in": "query" }, { @@ -4938,15 +6267,12 @@ "type": "string" }, "path": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", "type": "string" }, "port": { - "description": ":绔彛", "type": "string" }, "prefix": { - "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥", "type": "string" }, "singular": { @@ -4954,7 +6280,7 @@ "type": "boolean" }, "username": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "description": "鏁版嵁搴撳瘑鐮�", "type": "string" } } @@ -4996,15 +6322,12 @@ "type": "string" }, "path": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", "type": "string" }, "port": { - "description": ":绔彛", "type": "string" }, "prefix": { - "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥", "type": "string" }, "singular": { @@ -5012,7 +6335,7 @@ "type": "boolean" }, "username": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "description": "鏁版嵁搴撳瘑鐮�", "type": "string" } } @@ -5054,15 +6377,12 @@ "type": "string" }, "path": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", "type": "string" }, "port": { - "description": ":绔彛", "type": "string" }, "prefix": { - "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥", "type": "string" }, "singular": { @@ -5070,7 +6390,7 @@ "type": "boolean" }, "username": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "description": "鏁版嵁搴撳瘑鐮�", "type": "string" } } @@ -5112,15 +6432,12 @@ "type": "string" }, "path": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", "type": "string" }, "port": { - "description": ":绔彛", "type": "string" }, "prefix": { - "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥", "type": "string" }, "singular": { @@ -5128,7 +6445,7 @@ "type": "boolean" }, "username": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "description": "鏁版嵁搴撳瘑鐮�", "type": "string" } } @@ -5260,6 +6577,9 @@ "redis": { "$ref": "#/definitions/config.Redis" }, + "sqlite": { + "$ref": "#/definitions/config.Sqlite" + }, "system": { "$ref": "#/definitions/config.System" }, @@ -5317,15 +6637,12 @@ "type": "string" }, "path": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", "type": "string" }, "port": { - "description": ":绔彛", "type": "string" }, "prefix": { - "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥", "type": "string" }, "singular": { @@ -5336,7 +6653,62 @@ "type": "string" }, "username": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "description": "鏁版嵁搴撳瘑鐮�", + "type": "string" + } + } + }, + "config.Sqlite": { + "type": "object", + "properties": { + "config": { + "description": "楂樼骇閰嶇疆", + "type": "string" + }, + "db-name": { + "description": "鏁版嵁搴撳悕", + "type": "string" + }, + "engine": { + "description": "鏁版嵁搴撳紩鎿庯紝榛樿InnoDB", + "type": "string", + "default": "InnoDB" + }, + "log-mode": { + "description": "鏄惁寮�鍚疓orm鍏ㄥ眬鏃ュ織", + "type": "string" + }, + "log-zap": { + "description": "鏄惁閫氳繃zap鍐欏叆鏃ュ織鏂囦欢", + "type": "boolean" + }, + "max-idle-conns": { + "description": "绌洪棽涓殑鏈�澶ц繛鎺ユ暟", + "type": "integer" + }, + "max-open-conns": { + "description": "鎵撳紑鍒版暟鎹簱鐨勬渶澶ц繛鎺ユ暟", + "type": "integer" + }, + "password": { + "description": "鏁版嵁搴撳瘑鐮�", + "type": "string" + }, + "path": { + "type": "string" + }, + "port": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "singular": { + "description": "鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�", + "type": "boolean" + }, + "username": { + "description": "鏁版嵁搴撳瘑鐮�", "type": "string" } } @@ -5469,10 +6841,6 @@ "example.ExaCustomer": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "customerName": { "description": "瀹㈡埛鍚�", "type": "string" @@ -5500,10 +6868,6 @@ "sysUserId": { "description": "绠$悊ID", "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, @@ -5512,10 +6876,6 @@ "properties": { "chunkTotal": { "type": "integer" - }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" }, "exaFileChunk": { "type": "array", @@ -5538,20 +6898,12 @@ }, "isFinish": { "type": "boolean" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, "example.ExaFileChunk": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "exaFileID": { "type": "integer" }, @@ -5564,20 +6916,12 @@ "id": { "description": "涓婚敭ID", "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, "example.ExaFileUploadAndDownload": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -5594,10 +6938,6 @@ "description": "鏂囦欢鏍囩", "type": "string" }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" - }, "url": { "description": "鏂囦欢鍦板潃", "type": "string" @@ -5608,31 +6948,31 @@ "type": "object", "properties": { "from": { - "description": "鏀朵欢浜�", + "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", "type": "string" }, "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧�", + "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", "type": "string" }, "is-ssl": { - "description": "鏄惁SSL", + "description": "鏄惁SSL 鏄惁寮�鍚疭SL", "type": "boolean" }, "nickname": { - "description": "鏄电О", + "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", "type": "string" }, "port": { - "description": "绔彛", + "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", "type": "integer" }, "secret": { - "description": "瀵嗛挜", + "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", "type": "string" }, "to": { - "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧", + "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", "type": "string" } } @@ -5725,15 +7065,29 @@ } } }, + "request.IndustryList": { + "type": "object", + "properties": { + "industries": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Industry" + } + } + } + }, "request.InitDB": { "type": "object", "required": [ - "dbName", - "userName" + "dbName" ], "properties": { "dbName": { "description": "鏁版嵁搴撳悕", + "type": "string" + }, + "dbPath": { + "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�", "type": "string" }, "dbType": { @@ -5857,10 +7211,6 @@ "description": "api缁�", "type": "string" }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "desc": { "description": "鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true", "type": "boolean" @@ -5896,10 +7246,6 @@ "path": { "description": "api璺緞", "type": "string" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, @@ -5924,6 +7270,28 @@ }, "id": { "type": "integer" + } + } + }, + "request.SupplierStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "status": { + "type": "integer" + } + } + }, + "request.SupplierTypeList": { + "type": "object", + "properties": { + "supplierTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/test.SupplierType" + } } } }, @@ -6324,10 +7692,6 @@ "description": "api缁�", "type": "string" }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "description": { "description": "api涓枃鎻忚堪", "type": "string" @@ -6342,10 +7706,6 @@ }, "path": { "description": "api璺緞", - "type": "string" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", "type": "string" } } @@ -6403,10 +7763,6 @@ "system.SysAutoCode": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "desc": { "type": "string" }, @@ -6418,10 +7774,6 @@ "type": "string" }, "packageName": { - "type": "string" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", "type": "string" } } @@ -6443,10 +7795,6 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", - "type": "string" - }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", "type": "string" }, "hidden": { @@ -6492,20 +7840,12 @@ "sort": { "description": "鎺掑簭鏍囪", "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, "system.SysBaseMenuBtn": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "desc": { "type": "string" }, @@ -6518,20 +7858,12 @@ }, "sysBaseMenuID": { "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, "system.SysBaseMenuParameter": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -6547,10 +7879,6 @@ "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query", "type": "string" }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" - }, "value": { "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�", "type": "string" @@ -6560,10 +7888,6 @@ "system.SysDictionary": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "desc": { "description": "鎻忚堪", "type": "string" @@ -6589,20 +7913,12 @@ "type": { "description": "瀛楀吀鍚嶏紙鑻憋級", "type": "string" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, "system.SysDictionaryDetail": { "type": "object", "properties": { - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -6622,10 +7938,6 @@ "sysDictionaryID": { "description": "鍏宠仈鏍囪", "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" }, "value": { "description": "瀛楀吀鍊�", @@ -6656,10 +7968,6 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", - "type": "string" - }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", "type": "string" }, "hidden": { @@ -6708,10 +8016,6 @@ "sort": { "description": "鎺掑簭鏍囪", "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" } } }, @@ -6724,10 +8028,6 @@ }, "body": { "description": "璇锋眰Body", - "type": "string" - }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", "type": "string" }, "error_message": { @@ -6762,10 +8062,6 @@ "description": "璇锋眰鐘舵��", "type": "integer" }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" - }, "user": { "$ref": "#/definitions/system.SysUser" }, @@ -6799,10 +8095,6 @@ "description": "鍩虹棰滆壊", "type": "string" }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, "email": { "description": "鐢ㄦ埛閭", "type": "string" @@ -6831,10 +8123,6 @@ "description": "鐢ㄦ埛渚ц竟涓婚", "type": "string" }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" - }, "userName": { "description": "鐢ㄦ埛鐧诲綍鍚�", "type": "string" @@ -6852,6 +8140,105 @@ "$ref": "#/definitions/config.Server" } } + }, + "test.Contract": { + "type": "object", + "properties": { + "fileContent": { + "type": "array", + "items": { + "type": "integer" + } + }, + "fileName": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "supplierID": { + "type": "integer" + } + } + }, + "test.Industry": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "test.Supplier": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "accountName": { + "type": "string" + }, + "bank": { + "type": "string" + }, + "contact": { + "type": "string" + }, + "detailAddress": { + "type": "string" + }, + "email": { + "type": "string" + }, + "fileId": { + "type": "integer" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "industry": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "responsiblePersonId": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "supplierType": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "test.SupplierType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "type": "string" + } + } } }, "securityDefinitions": { -- Gitblit v1.8.0