From ad36440e187ed56da78f2085ba87e5e5a9bb9971 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 24 八月 2023 17:54:24 +0800
Subject: [PATCH] add
---
router/test/supplier_type.go | 3
config.yaml | 2
docs/swagger.yaml | 645 ++++++++++----
docs/docs.go | 984 ++++++++++++++++-----
docs/swagger.json | 1043 ++++++++++++++++------
initialize/gorm.go | 2
6 files changed, 1,941 insertions(+), 738 deletions(-)
diff --git a/config.yaml b/config.yaml
index 0392f65..2502612 100644
--- a/config.yaml
+++ b/config.yaml
@@ -177,7 +177,7 @@
db-type: mysql
oss-type: local
router-prefix: ""
- addr: 8888
+ addr: 8889
iplimit-count: 15000
iplimit-time: 3600
use-multipoint: false
diff --git a/docs/docs.go b/docs/docs.go
index b119fe1..74b8cfe 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": [
{
@@ -1692,12 +1800,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "瀹㈡埛鍚�",
"name": "customerName",
"in": "query"
@@ -1724,12 +1826,6 @@
"type": "integer",
"description": "绠$悊ID",
"name": "sysUserId",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -2321,6 +2417,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/test.Industry"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"/init/checkdb": {
"post": {
"produces": [
@@ -2897,6 +3253,266 @@
}
}
},
+ "/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/test.SupplierType"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"/sysDictionary/createSysDictionary": {
"post": {
"security": [
@@ -3017,12 +3633,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "鎻忚堪",
"name": "desc",
"in": "query"
@@ -3049,12 +3659,6 @@
"type": "string",
"description": "瀛楀吀鍚嶏紙鑻憋級",
"name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -3104,12 +3708,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "鎻忚堪",
"name": "desc",
"in": "query"
@@ -3154,12 +3752,6 @@
"type": "string",
"description": "瀛楀吀鍚嶏紙鑻憋級",
"name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -3357,12 +3949,6 @@
"summary": "鐢╥d鏌ヨSysDictionaryDetail",
"parameters": [
{
- "type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
"type": "integer",
"description": "涓婚敭ID",
"name": "id",
@@ -3390,12 +3976,6 @@
"type": "integer",
"description": "鍏宠仈鏍囪",
"name": "sysDictionaryID",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3450,12 +4030,6 @@
"summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃",
"parameters": [
{
- "type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
"type": "integer",
"description": "涓婚敭ID",
"name": "id",
@@ -3501,12 +4075,6 @@
"type": "integer",
"description": "鍏宠仈鏍囪",
"name": "sysDictionaryID",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3773,12 +4341,6 @@
},
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "閿欒淇℃伅",
"name": "error_message",
"in": "query"
@@ -3823,12 +4385,6 @@
"type": "integer",
"description": "璇锋眰鐘舵��",
"name": "status",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3896,12 +4452,6 @@
},
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "閿欒淇℃伅",
"name": "error_message",
"in": "query"
@@ -3964,12 +4514,6 @@
"type": "integer",
"description": "璇锋眰鐘舵��",
"name": "status",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -4938,15 +5482,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -4954,7 +5495,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -4996,15 +5537,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5012,7 +5550,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -5054,15 +5592,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5070,7 +5605,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -5112,15 +5647,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5128,7 +5660,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -5260,6 +5792,9 @@
"redis": {
"$ref": "#/definitions/config.Redis"
},
+ "sqlite": {
+ "$ref": "#/definitions/config.Sqlite"
+ },
"system": {
"$ref": "#/definitions/config.System"
},
@@ -5317,15 +5852,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5336,7 +5868,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 +6056,6 @@
"example.ExaCustomer": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"customerName": {
"description": "瀹㈡埛鍚�",
"type": "string"
@@ -5500,10 +6083,6 @@
"sysUserId": {
"description": "绠$悊ID",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
@@ -5512,10 +6091,6 @@
"properties": {
"chunkTotal": {
"type": "integer"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
},
"exaFileChunk": {
"type": "array",
@@ -5538,20 +6113,12 @@
},
"isFinish": {
"type": "boolean"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"example.ExaFileChunk": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"exaFileID": {
"type": "integer"
},
@@ -5564,20 +6131,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 +6153,6 @@
"description": "鏂囦欢鏍囩",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"url": {
"description": "鏂囦欢鍦板潃",
"type": "string"
@@ -5608,31 +6163,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"
}
}
@@ -5728,12 +6283,15 @@
"request.InitDB": {
"type": "object",
"required": [
- "dbName",
- "userName"
+ "dbName"
],
"properties": {
"dbName": {
"description": "鏁版嵁搴撳悕",
+ "type": "string"
+ },
+ "dbPath": {
+ "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�",
"type": "string"
},
"dbType": {
@@ -5857,10 +6415,6 @@
"description": "api缁�",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"description": "鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true",
"type": "boolean"
@@ -5895,10 +6449,6 @@
},
"path": {
"description": "api璺緞",
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6324,10 +6874,6 @@
"description": "api缁�",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"description": {
"description": "api涓枃鎻忚堪",
"type": "string"
@@ -6342,10 +6888,6 @@
},
"path": {
"description": "api璺緞",
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6403,10 +6945,6 @@
"system.SysAutoCode": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"type": "string"
},
@@ -6418,10 +6956,6 @@
"type": "string"
},
"packageName": {
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6443,10 +6977,6 @@
},
"component": {
"description": "瀵瑰簲鍓嶇鏂囦欢璺緞",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"hidden": {
@@ -6492,20 +7022,12 @@
"sort": {
"description": "鎺掑簭鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"system.SysBaseMenuBtn": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"type": "string"
},
@@ -6518,20 +7040,12 @@
},
"sysBaseMenuID": {
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"system.SysBaseMenuParameter": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"id": {
"description": "涓婚敭ID",
"type": "integer"
@@ -6547,10 +7061,6 @@
"description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"value": {
"description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�",
"type": "string"
@@ -6560,10 +7070,6 @@
"system.SysDictionary": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"description": "鎻忚堪",
"type": "string"
@@ -6589,20 +7095,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 +7120,6 @@
"sysDictionaryID": {
"description": "鍏宠仈鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
},
"value": {
"description": "瀛楀吀鍊�",
@@ -6656,10 +7150,6 @@
},
"component": {
"description": "瀵瑰簲鍓嶇鏂囦欢璺緞",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"hidden": {
@@ -6708,10 +7198,6 @@
"sort": {
"description": "鎺掑簭鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
@@ -6724,10 +7210,6 @@
},
"body": {
"description": "璇锋眰Body",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"error_message": {
@@ -6762,10 +7244,6 @@
"description": "璇锋眰鐘舵��",
"type": "integer"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"user": {
"$ref": "#/definitions/system.SysUser"
},
@@ -6799,10 +7277,6 @@
"description": "鍩虹棰滆壊",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"email": {
"description": "鐢ㄦ埛閭",
"type": "string"
@@ -6831,10 +7305,6 @@
"description": "鐢ㄦ埛渚ц竟涓婚",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"userName": {
"description": "鐢ㄦ埛鐧诲綍鍚�",
"type": "string"
@@ -6852,6 +7322,30 @@
"$ref": "#/definitions/config.Server"
}
}
+ },
+ "test.Industry": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "涓婚敭ID",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "test.SupplierType": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "涓婚敭ID",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
}
},
"securityDefinitions": {
diff --git a/docs/swagger.json b/docs/swagger.json
index 3e5cb93..988ca16 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -902,7 +902,7 @@
}
],
"consumes": [
- "multipart/form-data"
+ "application/json"
],
"produces": [
"application/json"
@@ -910,19 +910,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": [
{
@@ -932,10 +934,8 @@
"type": "object",
"properties": {
"data": {
- "type": "array",
- "items": {
- "type": "object"
- }
+ "type": "object",
+ "additionalProperties": true
},
"msg": {
"type": "string"
@@ -1369,6 +1369,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": [
@@ -1400,6 +1454,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": [
{
@@ -1683,12 +1791,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "瀹㈡埛鍚�",
"name": "customerName",
"in": "query"
@@ -1715,12 +1817,6 @@
"type": "integer",
"description": "绠$悊ID",
"name": "sysUserId",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -2312,6 +2408,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/test.Industry"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"/init/checkdb": {
"post": {
"produces": [
@@ -2888,6 +3244,266 @@
}
}
},
+ "/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/test.SupplierType"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}",
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
"/sysDictionary/createSysDictionary": {
"post": {
"security": [
@@ -3008,12 +3624,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "鎻忚堪",
"name": "desc",
"in": "query"
@@ -3040,12 +3650,6 @@
"type": "string",
"description": "瀛楀吀鍚嶏紙鑻憋級",
"name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -3095,12 +3699,6 @@
"parameters": [
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "鎻忚堪",
"name": "desc",
"in": "query"
@@ -3145,12 +3743,6 @@
"type": "string",
"description": "瀛楀吀鍚嶏紙鑻憋級",
"name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
}
],
@@ -3348,12 +3940,6 @@
"summary": "鐢╥d鏌ヨSysDictionaryDetail",
"parameters": [
{
- "type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
"type": "integer",
"description": "涓婚敭ID",
"name": "id",
@@ -3381,12 +3967,6 @@
"type": "integer",
"description": "鍏宠仈鏍囪",
"name": "sysDictionaryID",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3441,12 +4021,6 @@
"summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃",
"parameters": [
{
- "type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
"type": "integer",
"description": "涓婚敭ID",
"name": "id",
@@ -3492,12 +4066,6 @@
"type": "integer",
"description": "鍏宠仈鏍囪",
"name": "sysDictionaryID",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3764,12 +4332,6 @@
},
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "閿欒淇℃伅",
"name": "error_message",
"in": "query"
@@ -3814,12 +4376,6 @@
"type": "integer",
"description": "璇锋眰鐘舵��",
"name": "status",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -3887,12 +4443,6 @@
},
{
"type": "string",
- "description": "鍒涘缓鏃堕棿",
- "name": "createdAt",
- "in": "query"
- },
- {
- "type": "string",
"description": "閿欒淇℃伅",
"name": "error_message",
"in": "query"
@@ -3955,12 +4505,6 @@
"type": "integer",
"description": "璇锋眰鐘舵��",
"name": "status",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鏇存柊鏃堕棿",
- "name": "updatedAt",
"in": "query"
},
{
@@ -4929,15 +5473,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -4945,7 +5486,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -4987,15 +5528,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5003,7 +5541,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -5045,15 +5583,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5061,7 +5596,7 @@
"type": "boolean"
},
"username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
+ "description": "鏁版嵁搴撳瘑鐮�",
"type": "string"
}
}
@@ -5103,15 +5638,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5119,65 +5651,7 @@
"type": "boolean"
},
"username": {
- "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": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
- "type": "string"
- },
- "port": {
- "description": ":绔彛",
- "type": "string"
- },
- "prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
- "type": "string"
- },
- "singular": {
- "description": "鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�",
- "type": "boolean"
- },
- "username": {
- "description": "鏁版嵁搴撶敤鎴峰悕",
"type": "string"
}
}
@@ -5303,14 +5777,14 @@
"pgsql": {
"$ref": "#/definitions/config.Pgsql"
},
- "sqlite": {
- "$ref": "#/definitions/config.Sqlite"
- },
"qiniu": {
"$ref": "#/definitions/config.Qiniu"
},
"redis": {
"$ref": "#/definitions/config.Redis"
+ },
+ "sqlite": {
+ "$ref": "#/definitions/config.Sqlite"
},
"system": {
"$ref": "#/definitions/config.System"
@@ -5369,15 +5843,12 @@
"type": "string"
},
"path": {
- "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛",
"type": "string"
},
"port": {
- "description": ":绔彛",
"type": "string"
},
"prefix": {
- "description": "鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥",
"type": "string"
},
"singular": {
@@ -5388,7 +5859,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"
}
}
@@ -5521,10 +6047,6 @@
"example.ExaCustomer": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"customerName": {
"description": "瀹㈡埛鍚�",
"type": "string"
@@ -5552,10 +6074,6 @@
"sysUserId": {
"description": "绠$悊ID",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
@@ -5564,10 +6082,6 @@
"properties": {
"chunkTotal": {
"type": "integer"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
},
"exaFileChunk": {
"type": "array",
@@ -5590,20 +6104,12 @@
},
"isFinish": {
"type": "boolean"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"example.ExaFileChunk": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"exaFileID": {
"type": "integer"
},
@@ -5616,20 +6122,12 @@
"id": {
"description": "涓婚敭ID",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"example.ExaFileUploadAndDownload": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"id": {
"description": "涓婚敭ID",
"type": "integer"
@@ -5646,10 +6144,6 @@
"description": "鏂囦欢鏍囩",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"url": {
"description": "鏂囦欢鍦板潃",
"type": "string"
@@ -5660,31 +6154,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"
}
}
@@ -5780,12 +6274,15 @@
"request.InitDB": {
"type": "object",
"required": [
- "dbName",
- "userName"
+ "dbName"
],
"properties": {
"dbName": {
"description": "鏁版嵁搴撳悕",
+ "type": "string"
+ },
+ "dbPath": {
+ "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�",
"type": "string"
},
"dbType": {
@@ -5909,10 +6406,6 @@
"description": "api缁�",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"description": "鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true",
"type": "boolean"
@@ -5947,10 +6440,6 @@
},
"path": {
"description": "api璺緞",
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6376,10 +6865,6 @@
"description": "api缁�",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"description": {
"description": "api涓枃鎻忚堪",
"type": "string"
@@ -6394,10 +6879,6 @@
},
"path": {
"description": "api璺緞",
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6455,10 +6936,6 @@
"system.SysAutoCode": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"type": "string"
},
@@ -6470,10 +6947,6 @@
"type": "string"
},
"packageName": {
- "type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
"type": "string"
}
}
@@ -6495,10 +6968,6 @@
},
"component": {
"description": "瀵瑰簲鍓嶇鏂囦欢璺緞",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"hidden": {
@@ -6544,20 +7013,12 @@
"sort": {
"description": "鎺掑簭鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"system.SysBaseMenuBtn": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"type": "string"
},
@@ -6570,20 +7031,12 @@
},
"sysBaseMenuID": {
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"system.SysBaseMenuParameter": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"id": {
"description": "涓婚敭ID",
"type": "integer"
@@ -6599,10 +7052,6 @@
"description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"value": {
"description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�",
"type": "string"
@@ -6612,10 +7061,6 @@
"system.SysDictionary": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"desc": {
"description": "鎻忚堪",
"type": "string"
@@ -6641,20 +7086,12 @@
"type": {
"description": "瀛楀吀鍚嶏紙鑻憋級",
"type": "string"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
"system.SysDictionaryDetail": {
"type": "object",
"properties": {
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"id": {
"description": "涓婚敭ID",
"type": "integer"
@@ -6674,10 +7111,6 @@
"sysDictionaryID": {
"description": "鍏宠仈鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
},
"value": {
"description": "瀛楀吀鍊�",
@@ -6708,10 +7141,6 @@
},
"component": {
"description": "瀵瑰簲鍓嶇鏂囦欢璺緞",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"hidden": {
@@ -6760,10 +7189,6 @@
"sort": {
"description": "鎺掑簭鏍囪",
"type": "integer"
- },
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
}
}
},
@@ -6776,10 +7201,6 @@
},
"body": {
"description": "璇锋眰Body",
- "type": "string"
- },
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
"type": "string"
},
"error_message": {
@@ -6814,10 +7235,6 @@
"description": "璇锋眰鐘舵��",
"type": "integer"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"user": {
"$ref": "#/definitions/system.SysUser"
},
@@ -6851,10 +7268,6 @@
"description": "鍩虹棰滆壊",
"type": "string"
},
- "createdAt": {
- "description": "鍒涘缓鏃堕棿",
- "type": "string"
- },
"email": {
"description": "鐢ㄦ埛閭",
"type": "string"
@@ -6883,10 +7296,6 @@
"description": "鐢ㄦ埛渚ц竟涓婚",
"type": "string"
},
- "updatedAt": {
- "description": "鏇存柊鏃堕棿",
- "type": "string"
- },
"userName": {
"description": "鐢ㄦ埛鐧诲綍鍚�",
"type": "string"
@@ -6904,6 +7313,30 @@
"$ref": "#/definitions/config.Server"
}
}
+ },
+ "test.Industry": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "涓婚敭ID",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "test.SupplierType": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "涓婚敭ID",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
}
},
"securityDefinitions": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 4f1a697..2b2722c 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -188,19 +188,16 @@
description: 鏁版嵁搴撳瘑鐮�
type: string
path:
- description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛
type: string
port:
- description: :绔彛
type: string
prefix:
- description: 鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥
type: string
singular:
description: 鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�
type: boolean
username:
- description: 鏁版嵁搴撶敤鎴峰悕
+ description: 鏁版嵁搴撳瘑鐮�
type: string
type: object
config.Mysql:
@@ -231,19 +228,16 @@
description: 鏁版嵁搴撳瘑鐮�
type: string
path:
- description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛
type: string
port:
- description: :绔彛
type: string
prefix:
- description: 鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥
type: string
singular:
description: 鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�
type: boolean
username:
- description: 鏁版嵁搴撶敤鎴峰悕
+ description: 鏁版嵁搴撳瘑鐮�
type: string
type: object
config.Oracle:
@@ -274,19 +268,16 @@
description: 鏁版嵁搴撳瘑鐮�
type: string
path:
- description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛
type: string
port:
- description: :绔彛
type: string
prefix:
- description: 鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥
type: string
singular:
description: 鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�
type: boolean
username:
- description: 鏁版嵁搴撶敤鎴峰悕
+ description: 鏁版嵁搴撳瘑鐮�
type: string
type: object
config.Pgsql:
@@ -317,19 +308,16 @@
description: 鏁版嵁搴撳瘑鐮�
type: string
path:
- description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛
type: string
port:
- description: :绔彛
type: string
prefix:
- description: 鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥
type: string
singular:
description: 鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�
type: boolean
username:
- description: 鏁版嵁搴撶敤鎴峰悕
+ description: 鏁版嵁搴撳瘑鐮�
type: string
type: object
config.Qiniu:
@@ -414,6 +402,8 @@
$ref: '#/definitions/config.Qiniu'
redis:
$ref: '#/definitions/config.Redis'
+ sqlite:
+ $ref: '#/definitions/config.Sqlite'
system:
$ref: '#/definitions/config.System'
tencent-cos:
@@ -455,13 +445,10 @@
description: 鏁版嵁搴撳瘑鐮�
type: string
path:
- description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛
type: string
port:
- description: :绔彛
type: string
prefix:
- description: 鍏ㄥ眬琛ㄥ墠缂�锛屽崟鐙畾涔塗ableName鍒欎笉鐢熸晥
type: string
singular:
description: 鏄惁寮�鍚叏灞�绂佺敤澶嶆暟锛宼rue琛ㄧず寮�鍚�
@@ -469,7 +456,47 @@
type:
type: string
username:
- description: 鏁版嵁搴撶敤鎴峰悕
+ description: 鏁版嵁搴撳瘑鐮�
+ type: string
+ type: object
+ config.Sqlite:
+ properties:
+ config:
+ description: 楂樼骇閰嶇疆
+ type: string
+ db-name:
+ description: 鏁版嵁搴撳悕
+ type: string
+ engine:
+ default: InnoDB
+ description: 鏁版嵁搴撳紩鎿庯紝榛樿InnoDB
+ type: string
+ 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
type: object
config.System:
@@ -562,9 +589,6 @@
type: object
example.ExaCustomer:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
customerName:
description: 瀹㈡埛鍚�
type: string
@@ -584,17 +608,11 @@
sysUserId:
description: 绠$悊ID
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
example.ExaFile:
properties:
chunkTotal:
type: integer
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
exaFileChunk:
items:
$ref: '#/definitions/example.ExaFileChunk'
@@ -610,15 +628,9 @@
type: integer
isFinish:
type: boolean
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
example.ExaFileChunk:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
exaFileID:
type: integer
fileChunkNumber:
@@ -628,15 +640,9 @@
id:
description: 涓婚敭ID
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
example.ExaFileUploadAndDownload:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
id:
description: 涓婚敭ID
type: integer
@@ -649,9 +655,6 @@
tag:
description: 鏂囦欢鏍囩
type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
url:
description: 鏂囦欢鍦板潃
type: string
@@ -659,25 +662,25 @@
github_com_flipped-aurora_gin-vue-admin_server_config.Email:
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
type: object
request.AddMenuAuthorityInfo:
@@ -744,6 +747,9 @@
dbName:
description: 鏁版嵁搴撳悕
type: string
+ dbPath:
+ description: sqlite鏁版嵁搴撴枃浠惰矾寰�
+ type: string
dbType:
description: 鏁版嵁搴撶被鍨�
type: string
@@ -761,7 +767,6 @@
type: string
required:
- dbName
- - userName
type: object
request.Login:
properties:
@@ -834,9 +839,6 @@
apiGroup:
description: api缁�
type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
desc:
description: 鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true
type: boolean
@@ -863,9 +865,6 @@
type: integer
path:
description: api璺緞
- type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
type: string
type: object
request.SetUserAuth:
@@ -1153,9 +1152,6 @@
apiGroup:
description: api缁�
type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
description:
description: api涓枃鎻忚堪
type: string
@@ -1167,9 +1163,6 @@
type: string
path:
description: api璺緞
- type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
type: string
type: object
system.SysAuthority:
@@ -1209,9 +1202,6 @@
type: object
system.SysAutoCode:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
desc:
type: string
id:
@@ -1220,9 +1210,6 @@
label:
type: string
packageName:
- type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
type: string
type: object
system.SysBaseMenu:
@@ -1237,9 +1224,6 @@
type: array
component:
description: 瀵瑰簲鍓嶇鏂囦欢璺緞
- type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
type: string
hidden:
description: 鏄惁鍦ㄥ垪琛ㄩ殣钘�
@@ -1271,15 +1255,9 @@
sort:
description: 鎺掑簭鏍囪
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
system.SysBaseMenuBtn:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
desc:
type: string
id:
@@ -1289,15 +1267,9 @@
type: string
sysBaseMenuID:
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
system.SysBaseMenuParameter:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
id:
description: 涓婚敭ID
type: integer
@@ -1309,18 +1281,12 @@
type:
description: 鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query
type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
value:
description: 鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�
type: string
type: object
system.SysDictionary:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
desc:
description: 鎻忚堪
type: string
@@ -1340,15 +1306,9 @@
type:
description: 瀛楀吀鍚嶏紙鑻憋級
type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
system.SysDictionaryDetail:
properties:
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
id:
description: 涓婚敭ID
type: integer
@@ -1364,9 +1324,6 @@
sysDictionaryID:
description: 鍏宠仈鏍囪
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
value:
description: 瀛楀吀鍊�
type: integer
@@ -1387,9 +1344,6 @@
type: array
component:
description: 瀵瑰簲鍓嶇鏂囦欢璺緞
- type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
type: string
hidden:
description: 鏄惁鍦ㄥ垪琛ㄩ殣钘�
@@ -1423,9 +1377,6 @@
sort:
description: 鎺掑簭鏍囪
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
type: object
system.SysOperationRecord:
properties:
@@ -1434,9 +1385,6 @@
type: string
body:
description: 璇锋眰Body
- type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
type: string
error_message:
description: 閿欒淇℃伅
@@ -1462,9 +1410,6 @@
status:
description: 璇锋眰鐘舵��
type: integer
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
user:
$ref: '#/definitions/system.SysUser'
user_id:
@@ -1488,9 +1433,6 @@
baseColor:
description: 鍩虹棰滆壊
type: string
- createdAt:
- description: 鍒涘缓鏃堕棿
- type: string
email:
description: 鐢ㄦ埛閭
type: string
@@ -1512,9 +1454,6 @@
sideMode:
description: 鐢ㄦ埛渚ц竟涓婚
type: string
- updatedAt:
- description: 鏇存柊鏃堕棿
- type: string
userName:
description: 鐢ㄦ埛鐧诲綍鍚�
type: string
@@ -1526,6 +1465,22 @@
properties:
config:
$ref: '#/definitions/config.Server'
+ type: object
+ test.Industry:
+ properties:
+ id:
+ description: 涓婚敭ID
+ type: integer
+ name:
+ type: string
+ type: object
+ test.SupplierType:
+ properties:
+ id:
+ description: 涓婚敭ID
+ type: integer
+ name:
+ type: string
type: object
info:
contact: {}
@@ -2034,32 +1989,32 @@
/autoCode/createPlug:
post:
consumes:
- - multipart/form-data
+ - application/json
parameters:
- - description: this is a test file
- in: formData
- name: plug
+ - description: 鍒涘缓鎻掍欢妯℃澘
+ in: body
+ name: data
required: true
- type: file
+ schema:
+ $ref: '#/definitions/system.SysAutoCode'
produces:
- application/json
responses:
"200":
- description: 瀹夎鎻掍欢鎴愬姛
+ description: 鍒涘缓鎻掍欢妯℃澘鎴愬姛
schema:
allOf:
- $ref: '#/definitions/response.Response'
- properties:
data:
- items:
- type: object
- type: array
+ additionalProperties: true
+ type: object
msg:
type: string
type: object
security:
- ApiKeyAuth: []
- summary: 瀹夎鎻掍欢
+ summary: 鍒涘缓鎻掍欢妯℃澘
tags:
- AutoCode
/autoCode/createTemp:
@@ -2301,6 +2256,37 @@
summary: 鑾峰彇褰撳墠鏁版嵁搴撴墍鏈夎〃
tags:
- AutoCode
+ /autoCode/installPlugin:
+ post:
+ consumes:
+ - multipart/form-data
+ parameters:
+ - description: this is a test file
+ in: formData
+ name: plug
+ required: true
+ type: file
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 瀹夎鎻掍欢鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/response.Response'
+ - properties:
+ data:
+ items:
+ type: object
+ type: array
+ msg:
+ type: string
+ type: object
+ security:
+ - ApiKeyAuth: []
+ summary: 瀹夎鎻掍欢
+ tags:
+ - AutoCode
/autoCode/preview:
post:
consumes:
@@ -2330,6 +2316,37 @@
security:
- ApiKeyAuth: []
summary: 棰勮鍒涘缓鍚庣殑浠g爜
+ tags:
+ - AutoCode
+ /autoCode/pubPlug:
+ get:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鎵撳寘鎻掍欢
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/system.SysAutoCode'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎵撳寘鎻掍欢鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/response.Response'
+ - properties:
+ data:
+ additionalProperties: true
+ type: object
+ msg:
+ type: string
+ type: object
+ security:
+ - ApiKeyAuth: []
+ summary: 鎵撳寘鎻掍欢
tags:
- AutoCode
/autoCode/rollback:
@@ -2499,10 +2516,6 @@
consumes:
- application/json
parameters:
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 瀹㈡埛鍚�
in: query
name: customerName
@@ -2523,10 +2536,6 @@
in: query
name: sysUserId
type: integer
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
- type: string
produces:
- application/json
responses:
@@ -2839,6 +2848,164 @@
summary: 涓婁紶鏂囦欢绀轰緥
tags:
- ExaFileUploadAndDownload
+ /i/createIndustry:
+ post:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鍒涘缓Industry
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.Industry'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒涘缓Industry
+ tags:
+ - Industry
+ /i/deleteIndustry:
+ delete:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鍒犻櫎Industry
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.Industry'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒犻櫎Industry
+ tags:
+ - Industry
+ /i/deleteIndustryByIds:
+ delete:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鎵归噺鍒犻櫎Industry
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/request.IdsReq'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鎵归噺鍒犻櫎Industry
+ tags:
+ - Industry
+ /i/findIndustry:
+ get:
+ consumes:
+ - application/json
+ parameters:
+ - description: 涓婚敭ID
+ in: query
+ name: id
+ type: integer
+ - in: query
+ name: name
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鐢╥d鏌ヨIndustry
+ tags:
+ - Industry
+ /i/getIndustryList:
+ get:
+ consumes:
+ - application/json
+ parameters:
+ - in: query
+ name: endCreatedAt
+ type: string
+ - description: 涓婚敭ID
+ in: query
+ name: id
+ type: integer
+ - description: 鍏抽敭瀛�
+ in: query
+ name: keyword
+ type: string
+ - in: query
+ name: name
+ type: string
+ - description: 椤电爜
+ in: query
+ name: page
+ type: integer
+ - description: 姣忛〉澶у皬
+ in: query
+ name: pageSize
+ type: integer
+ - in: query
+ name: startCreatedAt
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒嗛〉鑾峰彇Industry鍒楄〃
+ tags:
+ - Industry
+ /i/updateIndustry:
+ put:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鏇存柊Industry
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.Industry'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鏇存柊Industry
+ tags:
+ - Industry
/init/checkdb:
post:
produces:
@@ -3163,6 +3330,164 @@
summary: 鏇存柊鑿滃崟
tags:
- Menu
+ /st/createSupplierType:
+ post:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鍒涘缓SupplierType
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.SupplierType'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒涘缓SupplierType
+ tags:
+ - SupplierType
+ /st/deleteSupplierType:
+ delete:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鍒犻櫎SupplierType
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.SupplierType'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒犻櫎SupplierType
+ tags:
+ - SupplierType
+ /st/deleteSupplierTypeByIds:
+ delete:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鎵归噺鍒犻櫎SupplierType
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/request.IdsReq'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鎵归噺鍒犻櫎SupplierType
+ tags:
+ - SupplierType
+ /st/findSupplierType:
+ get:
+ consumes:
+ - application/json
+ parameters:
+ - description: 涓婚敭ID
+ in: query
+ name: id
+ type: integer
+ - in: query
+ name: name
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鐢╥d鏌ヨSupplierType
+ tags:
+ - SupplierType
+ /st/getSupplierTypeList:
+ get:
+ consumes:
+ - application/json
+ parameters:
+ - in: query
+ name: endCreatedAt
+ type: string
+ - description: 涓婚敭ID
+ in: query
+ name: id
+ type: integer
+ - description: 鍏抽敭瀛�
+ in: query
+ name: keyword
+ type: string
+ - in: query
+ name: name
+ type: string
+ - description: 椤电爜
+ in: query
+ name: page
+ type: integer
+ - description: 姣忛〉澶у皬
+ in: query
+ name: pageSize
+ type: integer
+ - in: query
+ name: startCreatedAt
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒嗛〉鑾峰彇SupplierType鍒楄〃
+ tags:
+ - SupplierType
+ /st/updateSupplierType:
+ put:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鏇存柊SupplierType
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/test.SupplierType'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}'
+ schema:
+ type: string
+ security:
+ - ApiKeyAuth: []
+ summary: 鏇存柊SupplierType
+ tags:
+ - SupplierType
/sysDictionary/createSysDictionary:
post:
consumes:
@@ -3224,10 +3549,6 @@
consumes:
- application/json
parameters:
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 鎻忚堪
in: query
name: desc
@@ -3247,10 +3568,6 @@
- description: 瀛楀吀鍚嶏紙鑻憋級
in: query
name: type
- type: string
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
type: string
produces:
- application/json
@@ -3277,10 +3594,6 @@
consumes:
- application/json
parameters:
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 鎻忚堪
in: query
name: desc
@@ -3312,10 +3625,6 @@
- description: 瀛楀吀鍚嶏紙鑻憋級
in: query
name: type
- type: string
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
type: string
produces:
- application/json
@@ -3425,10 +3734,6 @@
consumes:
- application/json
parameters:
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 涓婚敭ID
in: query
name: id
@@ -3449,10 +3754,6 @@
in: query
name: sysDictionaryID
type: integer
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
- type: string
- description: 瀛楀吀鍊�
in: query
name: value
@@ -3482,10 +3783,6 @@
consumes:
- application/json
parameters:
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 涓婚敭ID
in: query
name: id
@@ -3518,10 +3815,6 @@
in: query
name: sysDictionaryID
type: integer
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
- type: string
- description: 瀛楀吀鍊�
in: query
name: value
@@ -3670,10 +3963,6 @@
in: query
name: body
type: string
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
- type: string
- description: 閿欒淇℃伅
in: query
name: error_message
@@ -3706,10 +3995,6 @@
in: query
name: status
type: integer
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
- type: string
- description: 鐢ㄦ埛id
in: query
name: user_id
@@ -3746,10 +4031,6 @@
- description: 璇锋眰Body
in: query
name: body
- type: string
- - description: 鍒涘缓鏃堕棿
- in: query
- name: createdAt
type: string
- description: 閿欒淇℃伅
in: query
@@ -3795,10 +4076,6 @@
in: query
name: status
type: integer
- - description: 鏇存柊鏃堕棿
- in: query
- name: updatedAt
- type: string
- description: 鐢ㄦ埛id
in: query
name: user_id
diff --git a/initialize/gorm.go b/initialize/gorm.go
index 6c965c9..ce54d43 100644
--- a/initialize/gorm.go
+++ b/initialize/gorm.go
@@ -51,7 +51,7 @@
example.ExaFile{},
example.ExaCustomer{},
example.ExaFileChunk{},
- example.ExaFileUploadAndDownload{}, test.Industry{},
+ example.ExaFileUploadAndDownload{}, test.Industry{}, test.SupplierType{},
)
if err != nil {
global.GVA_LOG.Error("register table failed", zap.Error(err))
diff --git a/router/test/supplier_type.go b/router/test/supplier_type.go
index 7310ba6..7f0e4cd 100644
--- a/router/test/supplier_type.go
+++ b/router/test/supplier_type.go
@@ -2,7 +2,6 @@
import (
"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
)
@@ -11,7 +10,7 @@
// InitSupplierTypeRouter 鍒濆鍖� SupplierType 璺敱淇℃伅
func (s *SupplierTypeRouter) InitSupplierTypeRouter(Router *gin.RouterGroup) {
- stRouter := Router.Group("st").Use(middleware.OperationRecord())
+ stRouter := Router.Group("st")
stRouterWithoutRecord := Router.Group("st")
var stApi = v1.ApiGroupApp.TestApiGroup.SupplierTypeApi
{
--
Gitblit v1.8.0