From 5fae73c7c9c3be7aad94af4a3e235889f407d02c Mon Sep 17 00:00:00 2001 From: tian <“184391138@qq.com”> Date: Sun, 25 Feb 2024 21:26:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/docs/docs.go | 1392 ++++++++++++++++++++++++++++--------- server/docs/swagger.json | 1394 +++++++++++++++++++++++++++++--------- server/docs/swagger.yaml | 512 +++++++++++++- 3 files changed, 2674 insertions(+), 624 deletions(-) diff --git a/server/docs/docs.go b/server/docs/docs.go index f5d0842..52eff42 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -2428,18 +2428,570 @@ const docTemplate = `{ } } }, + "/goodsShow/createGoodsShow": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "创建商品", + "parameters": [ + { + "description": "创建商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/deleteGoodsShow": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "删除商品", + "parameters": [ + { + "description": "删除商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/deleteGoodsShowByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "批量删除商品", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/findGoodsShow": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "用id查询商品", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "简介", + "name": "briefIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "商品副图", + "name": "goodsAssistantPic", + "in": "query" + }, + { + "type": "string", + "description": "商品主图", + "name": "goodsMainPic", + "in": "query" + }, + { + "type": "integer", + "description": "语言类型 1中文 2英文", + "name": "langType", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "主介绍", + "name": "mainIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "商品名称", + "name": "name", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "副介绍,逗号拼接", + "name": "secondIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "副介绍标题", + "name": "secondIntroductionTitle", + "in": "query" + }, + { + "type": "integer", + "description": "类型", + "name": "type", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/getGoodsShowList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "分页获取商品列表", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "langType", + "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" + }, + { + "type": "integer", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/updateGoodsShow": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "更新商品", + "parameters": [ + { + "description": "更新商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ "application/json" ], "tags": [ - "CheckDB" + "CheckDB" + ], + "summary": "初始化用户数据库", + "responses": { + "200": { + "description": "初始化用户数据库", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/init/initdb": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "InitDB" + ], + "summary": "初始化用户数据库", + "parameters": [ + { + "description": "初始化数据库参数", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.InitDB" + } + } + ], + "responses": { + "200": { + "description": "初始化用户数据库", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/jwt/jsonInBlacklist": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Jwt" + ], + "summary": "jwt加入黑名单", + "responses": { + "200": { + "description": "jwt加入黑名单", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/addBaseMenu": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Menu" + ], + "summary": "新增菜单", + "parameters": [ + { + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysBaseMenu" + } + } + ], + "responses": { + "200": { + "description": "新增菜单", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/addMenuAuthority": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "AuthorityMenu" + ], + "summary": "增加menu和角色关联关系", + "parameters": [ + { + "description": "角色ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddMenuAuthorityInfo" + } + } + ], + "responses": { + "200": { + "description": "增加menu和角色关联关系", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/deleteBaseMenu": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Menu" + ], + "summary": "删除菜单", + "parameters": [ + { + "description": "菜单id", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetById" + } + } ], - "summary": "初始化用户数据库", "responses": { "200": { - "description": "初始化用户数据库", + "description": "删除菜单", "schema": { "allOf": [ { @@ -2448,10 +3000,6 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, "msg": { "type": "string" } @@ -2463,29 +3011,37 @@ const docTemplate = `{ } } }, - "/init/initdb": { + "/menu/getBaseMenuById": { "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "InitDB" + "Menu" ], - "summary": "初始化用户数据库", + "summary": "根据id获取菜单", "parameters": [ { - "description": "初始化数据库参数", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.InitDB" + "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { - "description": "初始化用户数据库", + "description": "根据id获取菜单,返回包括系统菜单列表", "schema": { "allOf": [ { @@ -2495,6 +3051,9 @@ const docTemplate = `{ "type": "object", "properties": { "data": { + "$ref": "#/definitions/response.SysBaseMenuResponse" + }, + "msg": { "type": "string" } } @@ -2505,26 +3064,34 @@ const docTemplate = `{ } } }, - "/jwt/jsonInBlacklist": { + "/menu/getBaseMenuTree": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Jwt" + "AuthorityMenu" + ], + "summary": "获取用户动态路由", + "parameters": [ + { + "description": "空", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.Empty" + } + } ], - "summary": "jwt加入黑名单", "responses": { "200": { - "description": "jwt加入黑名单", + "description": "获取用户动态路由,返回包括系统菜单列表", "schema": { "allOf": [ { @@ -2533,6 +3100,9 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.SysBaseMenusResponse" + }, "msg": { "type": "string" } @@ -2544,37 +3114,34 @@ const docTemplate = `{ } } }, - "/menu/addBaseMenu": { + "/menu/getMenu": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" + "AuthorityMenu" ], - "summary": "新增菜单", + "summary": "获取用户动态路由", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysBaseMenu" + "$ref": "#/definitions/request.Empty" } } ], "responses": { "200": { - "description": "新增菜单", + "description": "获取用户动态路由,返回包括系统菜单详情列表", "schema": { "allOf": [ { @@ -2583,6 +3150,9 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.SysMenusResponse" + }, "msg": { "type": "string" } @@ -2594,7 +3164,7 @@ const docTemplate = `{ } } }, - "/menu/addMenuAuthority": { + "/menu/getMenuAuthority": { "post": { "security": [ { @@ -2610,7 +3180,7 @@ const docTemplate = `{ "tags": [ "AuthorityMenu" ], - "summary": "增加menu和角色关联关系", + "summary": "获取指定角色menu", "parameters": [ { "description": "角色ID", @@ -2618,13 +3188,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddMenuAuthorityInfo" + "$ref": "#/definitions/request.GetAuthorityId" } } ], "responses": { "200": { - "description": "增加menu和角色关联关系", + "description": "获取指定角色menu", "schema": { "allOf": [ { @@ -2633,6 +3203,10 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, "msg": { "type": "string" } @@ -2644,7 +3218,7 @@ const docTemplate = `{ } } }, - "/menu/deleteBaseMenu": { + "/menu/getMenuList": { "post": { "security": [ { @@ -2660,21 +3234,21 @@ const docTemplate = `{ "tags": [ "Menu" ], - "summary": "删除菜单", + "summary": "分页获取基础menu列表", "parameters": [ { - "description": "菜单id", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { - "description": "删除菜单", + "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -2683,6 +3257,9 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, "msg": { "type": "string" } @@ -2694,7 +3271,7 @@ const docTemplate = `{ } } }, - "/menu/getBaseMenuById": { + "/menu/updateBaseMenu": { "post": { "security": [ { @@ -2710,21 +3287,21 @@ const docTemplate = `{ "tags": [ "Menu" ], - "summary": "根据id获取菜单", + "summary": "更新菜单", "parameters": [ { - "description": "菜单id", + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/system.SysBaseMenu" } } ], "responses": { "200": { - "description": "根据id获取菜单,返回包括系统菜单列表", + "description": "更新菜单", "schema": { "allOf": [ { @@ -2733,9 +3310,6 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenuResponse" - }, "msg": { "type": "string" } @@ -2747,34 +3321,37 @@ const docTemplate = `{ } } }, - "/menu/getBaseMenuTree": { + "/sysDictionary/createSysDictionary": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "SysDictionary" ], - "summary": "获取用户动态路由", + "summary": "创建SysDictionary", "parameters": [ { - "description": "空", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.Empty" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "获取用户动态路由,返回包括系统菜单列表", + "description": "创建SysDictionary", "schema": { "allOf": [ { @@ -2783,9 +3360,6 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenusResponse" - }, "msg": { "type": "string" } @@ -2797,34 +3371,120 @@ const docTemplate = `{ } } }, - "/menu/getMenu": { - "post": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "SysDictionary" ], - "summary": "获取用户动态路由", + "summary": "删除SysDictionary", "parameters": [ { - "description": "空", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.Empty" + "$ref": "#/definitions/system.SysDictionary" + } + } + ], + "responses": { + "200": { + "description": "删除SysDictionary", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] } } + } + } + }, + "/sysDictionary/findSysDictionary": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionary" + ], + "summary": "用id查询SysDictionary", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "描述", + "name": "desc", + "in": "query" + }, + { + "type": "string", + "description": "字典名(中)", + "name": "name", + "in": "query" + }, + { + "type": "boolean", + "description": "状态", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "字典名(英)", + "name": "type", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } ], "responses": { "200": { - "description": "获取用户动态路由,返回包括系统菜单详情列表", + "description": "用id查询SysDictionary", "schema": { "allOf": [ { @@ -2834,7 +3494,8 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.SysMenusResponse" + "type": "object", + "additionalProperties": true }, "msg": { "type": "string" @@ -2847,8 +3508,8 @@ const docTemplate = `{ } } }, - "/menu/getMenuAuthority": { - "post": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2861,23 +3522,12 @@ const docTemplate = `{ "application/json" ], "tags": [ - "AuthorityMenu" - ], - "summary": "获取指定角色menu", - "parameters": [ - { - "description": "角色ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetAuthorityId" - } - } + "SysDictionary" ], + "summary": "分页获取SysDictionary列表", "responses": { "200": { - "description": "获取指定角色menu", + "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -2887,8 +3537,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" @@ -2901,8 +3550,8 @@ const docTemplate = `{ } } }, - "/menu/getMenuList": { - "post": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -2915,23 +3564,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "Menu" + "SysDictionary" ], - "summary": "分页获取基础menu列表", + "summary": "更新SysDictionary", "parameters": [ { - "description": "页码, 每页大小", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量", + "description": "更新SysDictionary", "schema": { "allOf": [ { @@ -2940,9 +3589,6 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, "msg": { "type": "string" } @@ -2954,7 +3600,7 @@ const docTemplate = `{ } } }, - "/menu/updateBaseMenu": { + "/sysDictionaryDetail/createSysDictionaryDetail": { "post": { "security": [ { @@ -2968,23 +3614,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "Menu" + "SysDictionaryDetail" ], - "summary": "更新菜单", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysBaseMenu" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "更新菜单", + "description": "创建SysDictionaryDetail", "schema": { "allOf": [ { @@ -3004,8 +3650,8 @@ const docTemplate = `{ } } }, - "/sysDictionary/createSysDictionary": { - "post": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -3018,23 +3664,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "创建SysDictionary", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "SysDictionary模型", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionary" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "创建SysDictionary", + "description": "删除SysDictionaryDetail", "schema": { "allOf": [ { @@ -3054,8 +3700,8 @@ const docTemplate = `{ } } }, - "/sysDictionary/deleteSysDictionary": { - "delete": { + "/sysDictionaryDetail/findSysDictionaryDetail": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -3068,23 +3714,68 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "删除SysDictionary", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "description": "SysDictionary模型", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionary" - } + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "扩展值", + "name": "extend", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", + "in": "query" + }, + { + "type": "boolean", + "description": "启用状态", + "name": "status", + "in": "query" + }, + { + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "字典值", + "name": "value", + "in": "query" } ], "responses": { "200": { - "description": "删除SysDictionary", + "description": "用id查询SysDictionaryDetail", "schema": { "allOf": [ { @@ -3093,6 +3784,10 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, "msg": { "type": "string" } @@ -3104,7 +3799,7 @@ const docTemplate = `{ } } }, - "/sysDictionary/findSysDictionary": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { "get": { "security": [ { @@ -3118,9 +3813,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "用id查询SysDictionary", + "summary": "分页获取SysDictionaryDetail列表", "parameters": [ { "type": "integer", @@ -3136,26 +3831,50 @@ const docTemplate = `{ }, { "type": "string", - "description": "描述", - "name": "desc", + "description": "扩展值", + "name": "extend", "in": "query" }, { "type": "string", - "description": "字典名(中)", - "name": "name", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", "in": "query" }, { "type": "boolean", - "description": "状态", + "description": "启用状态", "name": "status", "in": "query" }, { - "type": "string", - "description": "字典名(英)", - "name": "type", + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", "in": "query" }, { @@ -3163,11 +3882,17 @@ const docTemplate = `{ "description": "更新时间", "name": "updatedAt", "in": "query" + }, + { + "type": "integer", + "description": "字典值", + "name": "value", + "in": "query" } ], "responses": { "200": { - "description": "用id查询SysDictionary", + "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -3177,8 +3902,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" @@ -3191,8 +3915,8 @@ const docTemplate = `{ } } }, - "/sysDictionary/getSysDictionaryList": { - "get": { + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -3205,12 +3929,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } ], - "summary": "分页获取SysDictionary列表", "responses": { "200": { - "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", + "description": "更新SysDictionaryDetail", "schema": { "allOf": [ { @@ -3219,9 +3954,6 @@ const docTemplate = `{ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, "msg": { "type": "string" } @@ -3233,8 +3965,8 @@ const docTemplate = `{ } } }, - "/sysDictionary/updateSysDictionary": { - "put": { + "/sysExportTemplate/createSysExportTemplate": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -3247,44 +3979,32 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionary" + "SysExportTemplate" ], - "summary": "更新SysDictionary", + "summary": "创建导出模板", "parameters": [ { - "description": "SysDictionary模型", + "description": "创建导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionary" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "更新SysDictionary", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/createSysDictionaryDetail": { - "post": { + "/sysExportTemplate/deleteSysExportTemplate": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -3297,43 +4017,31 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "创建SysDictionaryDetail", + "summary": "删除导出模板", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "删除导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "创建SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "/sysExportTemplate/deleteSysExportTemplateByIds": { "delete": { "security": [ { @@ -3347,43 +4055,31 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "删除SysDictionaryDetail", + "summary": "批量删除导出模板", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "批量删除导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { - "description": "删除SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/findSysDictionaryDetail": { + "/sysExportTemplate/exportExcel": { "get": { "security": [ { @@ -3397,9 +4093,29 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "用id查询SysDictionaryDetail", + "summary": "导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/findSysExportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "用id查询导出模板", "parameters": [ { "type": "integer", @@ -3415,32 +4131,26 @@ const docTemplate = `{ }, { "type": "string", - "description": "扩展值", - "name": "extend", + "description": "模板名称", + "name": "name", "in": "query" }, { "type": "string", - "description": "展示值", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "排序标记", - "name": "sort", + "description": "表名称", + "name": "tableName", "in": "query" }, { - "type": "boolean", - "description": "启用状态", - "name": "status", + "type": "string", + "description": "模板标识", + "name": "templateID", "in": "query" }, { - "type": "integer", - "description": "关联标记", - "name": "sysDictionaryID", + "type": "string", + "description": "模板信息", + "name": "templateInfo", "in": "query" }, { @@ -3448,41 +4158,19 @@ const docTemplate = `{ "description": "更新时间", "name": "updatedAt", "in": "query" - }, - { - "type": "integer", - "description": "字典值", - "name": "value", - "in": "query" } ], "responses": { "200": { - "description": "用id查询SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { + "/sysExportTemplate/getSysExportTemplateList": { "get": { "security": [ { @@ -3496,9 +4184,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "分页获取导出模板列表", "parameters": [ { "type": "integer", @@ -3514,8 +4202,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "扩展值", - "name": "extend", + "name": "endCreatedAt", "in": "query" }, { @@ -3526,8 +4213,8 @@ const docTemplate = `{ }, { "type": "string", - "description": "展示值", - "name": "label", + "description": "模板名称", + "name": "name", "in": "query" }, { @@ -3543,62 +4230,66 @@ const docTemplate = `{ "in": "query" }, { - "type": "integer", - "description": "排序标记", - "name": "sort", + "type": "string", + "name": "startCreatedAt", "in": "query" }, { - "type": "boolean", - "description": "启用状态", - "name": "status", + "type": "string", + "description": "表名称", + "name": "tableName", "in": "query" }, { - "type": "integer", - "description": "关联标记", - "name": "sysDictionaryID", + "type": "string", + "description": "模板标识", + "name": "templateID", "in": "query" }, { "type": "string", - "description": "更新时间", - "name": "updatedAt", + "description": "模板信息", + "name": "templateInfo", "in": "query" }, { - "type": "integer", - "description": "字典值", - "name": "value", + "type": "string", + "description": "更新时间", + "name": "updatedAt", "in": "query" } ], "responses": { "200": { - "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { + "/sysExportTemplate/importExcel": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysImportTemplate" + ], + "summary": "导入表格", + "responses": {} + } + }, + "/sysExportTemplate/updateSysExportTemplate": { "put": { "security": [ { @@ -3612,37 +4303,25 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "更新SysDictionaryDetail", + "summary": "更新导出模板", "parameters": [ { - "description": "更新SysDictionaryDetail", + "description": "更新导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "更新SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } @@ -4944,6 +5623,10 @@ const docTemplate = `{ "config.Mongo": { "type": "object", "properties": { + "auth-source": { + "description": "验证数据库", + "type": "string" + }, "coll": { "description": "collection name", "type": "string" @@ -5311,7 +5994,7 @@ const docTemplate = `{ } }, "email": { - "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email" + "$ref": "#/definitions/pychr_config.Email" }, "excel": { "$ref": "#/definitions/config.Excel" @@ -5517,10 +6200,6 @@ const docTemplate = `{ "router-prefix": { "type": "string" }, - "use-mongo": { - "description": "使用redis", - "type": "boolean" - }, "use-multipoint": { "description": "多点登录拦截", "type": "boolean" @@ -5733,7 +6412,65 @@ const docTemplate = `{ } } }, - "github_com_flipped-aurora_gin-vue-admin_server_config.Email": { + "goods.GoodsShow": { + "type": "object", + "required": [ + "langType", + "name", + "type" + ], + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "briefIntroduction": { + "description": "简介", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "goodsAssistantPic": { + "description": "商品副图", + "type": "string" + }, + "goodsMainPic": { + "description": "商品主图", + "type": "string" + }, + "langType": { + "description": "语言类型 1中文 2英文", + "type": "integer" + }, + "mainIntroduction": { + "description": "主介绍", + "type": "string" + }, + "name": { + "description": "商品名称", + "type": "string" + }, + "secondIntroduction": { + "description": "副介绍,逗号拼接", + "type": "string" + }, + "secondIntroductionTitle": { + "description": "副介绍标题", + "type": "string" + }, + "type": { + "description": "类型", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, + "pychr_config.Email": { "type": "object", "properties": { "from": { @@ -6340,7 +7077,8 @@ const docTemplate = `{ "$ref": "#/definitions/system.Field" } }, - "hasTimer": { + "gvaModel": { + "description": "是否使用gva默认Model", "type": "boolean" }, "humpPackageName": { @@ -6354,6 +7092,9 @@ const docTemplate = `{ "description": "文件名称", "type": "string" }, + "primaryField": { + "$ref": "#/definitions/system.Field" + }, "structName": { "description": "Struct名称", "type": "string" @@ -6411,6 +7152,10 @@ const docTemplate = `{ "description": "Field数据类型", "type": "string" }, + "primaryKey": { + "description": "是否主键", + "type": "boolean" + }, "require": { "description": "是否必填", "type": "boolean" @@ -6769,6 +7514,39 @@ const docTemplate = `{ } } }, + "system.SysExportTemplate": { + "type": "object", + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "name": { + "description": "模板名称", + "type": "string" + }, + "tableName": { + "description": "表名称", + "type": "string" + }, + "templateID": { + "description": "模板标识", + "type": "string" + }, + "templateInfo": { + "description": "模板信息", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, "system.SysMenu": { "type": "object", "properties": { @@ -7001,12 +7779,12 @@ const docTemplate = `{ // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ - Version: "v2.6.0", + Version: "v0.0.1", Host: "", BasePath: "", Schemes: []string{}, - Title: "Gin-Vue-Admin Swagger API接口文档", - Description: "使用gin+vue进行极速开发的全栈开发基础平台", + Title: "API接口文档", + Description: "gin接口文档", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/server/docs/swagger.json b/server/docs/swagger.json index 37d75b7..878927e 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -1,10 +1,10 @@ { "swagger": "2.0", "info": { - "description": "使用gin+vue进行极速开发的全栈开发基础平台", - "title": "Gin-Vue-Admin Swagger API接口文档", + "description": "gin接口文档", + "title": "API接口文档", "contact": {}, - "version": "v2.6.0" + "version": "v0.0.1" }, "paths": { "/api/createApi": { @@ -2420,18 +2420,570 @@ } } }, + "/goodsShow/createGoodsShow": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "创建商品", + "parameters": [ + { + "description": "创建商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/deleteGoodsShow": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "删除商品", + "parameters": [ + { + "description": "删除商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/deleteGoodsShowByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "批量删除商品", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/findGoodsShow": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "用id查询商品", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "简介", + "name": "briefIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "商品副图", + "name": "goodsAssistantPic", + "in": "query" + }, + { + "type": "string", + "description": "商品主图", + "name": "goodsMainPic", + "in": "query" + }, + { + "type": "integer", + "description": "语言类型 1中文 2英文", + "name": "langType", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "主介绍", + "name": "mainIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "商品名称", + "name": "name", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "副介绍,逗号拼接", + "name": "secondIntroduction", + "in": "query" + }, + { + "type": "string", + "description": "副介绍标题", + "name": "secondIntroductionTitle", + "in": "query" + }, + { + "type": "integer", + "description": "类型", + "name": "type", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/getGoodsShowList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "分页获取商品列表", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "langType", + "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" + }, + { + "type": "integer", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/goodsShow/updateGoodsShow": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "GoodsShow" + ], + "summary": "更新商品", + "parameters": [ + { + "description": "更新商品", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/goods.GoodsShow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ "application/json" ], "tags": [ - "CheckDB" + "CheckDB" + ], + "summary": "初始化用户数据库", + "responses": { + "200": { + "description": "初始化用户数据库", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/init/initdb": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "InitDB" + ], + "summary": "初始化用户数据库", + "parameters": [ + { + "description": "初始化数据库参数", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.InitDB" + } + } + ], + "responses": { + "200": { + "description": "初始化用户数据库", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/jwt/jsonInBlacklist": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Jwt" + ], + "summary": "jwt加入黑名单", + "responses": { + "200": { + "description": "jwt加入黑名单", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/addBaseMenu": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Menu" + ], + "summary": "新增菜单", + "parameters": [ + { + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysBaseMenu" + } + } + ], + "responses": { + "200": { + "description": "新增菜单", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/addMenuAuthority": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "AuthorityMenu" + ], + "summary": "增加menu和角色关联关系", + "parameters": [ + { + "description": "角色ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddMenuAuthorityInfo" + } + } + ], + "responses": { + "200": { + "description": "增加menu和角色关联关系", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/menu/deleteBaseMenu": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Menu" + ], + "summary": "删除菜单", + "parameters": [ + { + "description": "菜单id", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetById" + } + } ], - "summary": "初始化用户数据库", "responses": { "200": { - "description": "初始化用户数据库", + "description": "删除菜单", "schema": { "allOf": [ { @@ -2440,10 +2992,6 @@ { "type": "object", "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, "msg": { "type": "string" } @@ -2455,29 +3003,37 @@ } } }, - "/init/initdb": { + "/menu/getBaseMenuById": { "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "InitDB" + "Menu" ], - "summary": "初始化用户数据库", + "summary": "根据id获取菜单", "parameters": [ { - "description": "初始化数据库参数", + "description": "菜单id", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.InitDB" + "$ref": "#/definitions/request.GetById" } } ], "responses": { "200": { - "description": "初始化用户数据库", + "description": "根据id获取菜单,返回包括系统菜单列表", "schema": { "allOf": [ { @@ -2487,6 +3043,9 @@ "type": "object", "properties": { "data": { + "$ref": "#/definitions/response.SysBaseMenuResponse" + }, + "msg": { "type": "string" } } @@ -2497,26 +3056,34 @@ } } }, - "/jwt/jsonInBlacklist": { + "/menu/getBaseMenuTree": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Jwt" + "AuthorityMenu" + ], + "summary": "获取用户动态路由", + "parameters": [ + { + "description": "空", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.Empty" + } + } ], - "summary": "jwt加入黑名单", "responses": { "200": { - "description": "jwt加入黑名单", + "description": "获取用户动态路由,返回包括系统菜单列表", "schema": { "allOf": [ { @@ -2525,6 +3092,9 @@ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.SysBaseMenusResponse" + }, "msg": { "type": "string" } @@ -2536,37 +3106,34 @@ } } }, - "/menu/addBaseMenu": { + "/menu/getMenu": { "post": { "security": [ { "ApiKeyAuth": [] } ], - "consumes": [ - "application/json" - ], "produces": [ "application/json" ], "tags": [ - "Menu" + "AuthorityMenu" ], - "summary": "新增菜单", + "summary": "获取用户动态路由", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "空", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysBaseMenu" + "$ref": "#/definitions/request.Empty" } } ], "responses": { "200": { - "description": "新增菜单", + "description": "获取用户动态路由,返回包括系统菜单详情列表", "schema": { "allOf": [ { @@ -2575,6 +3142,9 @@ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.SysMenusResponse" + }, "msg": { "type": "string" } @@ -2586,7 +3156,7 @@ } } }, - "/menu/addMenuAuthority": { + "/menu/getMenuAuthority": { "post": { "security": [ { @@ -2602,7 +3172,7 @@ "tags": [ "AuthorityMenu" ], - "summary": "增加menu和角色关联关系", + "summary": "获取指定角色menu", "parameters": [ { "description": "角色ID", @@ -2610,13 +3180,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddMenuAuthorityInfo" + "$ref": "#/definitions/request.GetAuthorityId" } } ], "responses": { "200": { - "description": "增加menu和角色关联关系", + "description": "获取指定角色menu", "schema": { "allOf": [ { @@ -2625,6 +3195,10 @@ { "type": "object", "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, "msg": { "type": "string" } @@ -2636,7 +3210,7 @@ } } }, - "/menu/deleteBaseMenu": { + "/menu/getMenuList": { "post": { "security": [ { @@ -2652,21 +3226,21 @@ "tags": [ "Menu" ], - "summary": "删除菜单", + "summary": "分页获取基础menu列表", "parameters": [ { - "description": "菜单id", + "description": "页码, 每页大小", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/request.PageInfo" } } ], "responses": { "200": { - "description": "删除菜单", + "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -2675,6 +3249,9 @@ { "type": "object", "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, "msg": { "type": "string" } @@ -2686,7 +3263,7 @@ } } }, - "/menu/getBaseMenuById": { + "/menu/updateBaseMenu": { "post": { "security": [ { @@ -2702,21 +3279,21 @@ "tags": [ "Menu" ], - "summary": "根据id获取菜单", + "summary": "更新菜单", "parameters": [ { - "description": "菜单id", + "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/system.SysBaseMenu" } } ], "responses": { "200": { - "description": "根据id获取菜单,返回包括系统菜单列表", + "description": "更新菜单", "schema": { "allOf": [ { @@ -2725,9 +3302,6 @@ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenuResponse" - }, "msg": { "type": "string" } @@ -2739,34 +3313,37 @@ } } }, - "/menu/getBaseMenuTree": { + "/sysDictionary/createSysDictionary": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "SysDictionary" ], - "summary": "获取用户动态路由", + "summary": "创建SysDictionary", "parameters": [ { - "description": "空", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.Empty" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "获取用户动态路由,返回包括系统菜单列表", + "description": "创建SysDictionary", "schema": { "allOf": [ { @@ -2775,9 +3352,6 @@ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenusResponse" - }, "msg": { "type": "string" } @@ -2789,34 +3363,120 @@ } } }, - "/menu/getMenu": { - "post": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "AuthorityMenu" + "SysDictionary" ], - "summary": "获取用户动态路由", + "summary": "删除SysDictionary", "parameters": [ { - "description": "空", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.Empty" + "$ref": "#/definitions/system.SysDictionary" + } + } + ], + "responses": { + "200": { + "description": "删除SysDictionary", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] } } + } + } + }, + "/sysDictionary/findSysDictionary": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionary" + ], + "summary": "用id查询SysDictionary", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "描述", + "name": "desc", + "in": "query" + }, + { + "type": "string", + "description": "字典名(中)", + "name": "name", + "in": "query" + }, + { + "type": "boolean", + "description": "状态", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "字典名(英)", + "name": "type", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } ], "responses": { "200": { - "description": "获取用户动态路由,返回包括系统菜单详情列表", + "description": "用id查询SysDictionary", "schema": { "allOf": [ { @@ -2826,7 +3486,8 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.SysMenusResponse" + "type": "object", + "additionalProperties": true }, "msg": { "type": "string" @@ -2839,8 +3500,8 @@ } } }, - "/menu/getMenuAuthority": { - "post": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -2853,23 +3514,12 @@ "application/json" ], "tags": [ - "AuthorityMenu" - ], - "summary": "获取指定角色menu", - "parameters": [ - { - "description": "角色ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetAuthorityId" - } - } + "SysDictionary" ], + "summary": "分页获取SysDictionary列表", "responses": { "200": { - "description": "获取指定角色menu", + "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -2879,8 +3529,7 @@ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" @@ -2893,8 +3542,8 @@ } } }, - "/menu/getMenuList": { - "post": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -2907,23 +3556,23 @@ "application/json" ], "tags": [ - "Menu" + "SysDictionary" ], - "summary": "分页获取基础menu列表", + "summary": "更新SysDictionary", "parameters": [ { - "description": "页码, 每页大小", + "description": "SysDictionary模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/system.SysDictionary" } } ], "responses": { "200": { - "description": "分页获取基础menu列表,返回包括列表,总数,页码,每页数量", + "description": "更新SysDictionary", "schema": { "allOf": [ { @@ -2932,9 +3581,6 @@ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, "msg": { "type": "string" } @@ -2946,7 +3592,7 @@ } } }, - "/menu/updateBaseMenu": { + "/sysDictionaryDetail/createSysDictionaryDetail": { "post": { "security": [ { @@ -2960,23 +3606,23 @@ "application/json" ], "tags": [ - "Menu" + "SysDictionaryDetail" ], - "summary": "更新菜单", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysBaseMenu" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "更新菜单", + "description": "创建SysDictionaryDetail", "schema": { "allOf": [ { @@ -2996,8 +3642,8 @@ } } }, - "/sysDictionary/createSysDictionary": { - "post": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -3010,23 +3656,23 @@ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "创建SysDictionary", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "SysDictionary模型", + "description": "SysDictionaryDetail模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionary" + "$ref": "#/definitions/system.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "创建SysDictionary", + "description": "删除SysDictionaryDetail", "schema": { "allOf": [ { @@ -3046,8 +3692,8 @@ } } }, - "/sysDictionary/deleteSysDictionary": { - "delete": { + "/sysDictionaryDetail/findSysDictionaryDetail": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -3060,23 +3706,68 @@ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "删除SysDictionary", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "description": "SysDictionary模型", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionary" - } + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "扩展值", + "name": "extend", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", + "in": "query" + }, + { + "type": "boolean", + "description": "启用状态", + "name": "status", + "in": "query" + }, + { + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "字典值", + "name": "value", + "in": "query" } ], "responses": { "200": { - "description": "删除SysDictionary", + "description": "用id查询SysDictionaryDetail", "schema": { "allOf": [ { @@ -3085,6 +3776,10 @@ { "type": "object", "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, "msg": { "type": "string" } @@ -3096,7 +3791,7 @@ } } }, - "/sysDictionary/findSysDictionary": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { "get": { "security": [ { @@ -3110,9 +3805,9 @@ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" ], - "summary": "用id查询SysDictionary", + "summary": "分页获取SysDictionaryDetail列表", "parameters": [ { "type": "integer", @@ -3128,26 +3823,50 @@ }, { "type": "string", - "description": "描述", - "name": "desc", + "description": "扩展值", + "name": "extend", "in": "query" }, { "type": "string", - "description": "字典名(中)", - "name": "name", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", "in": "query" }, { "type": "boolean", - "description": "状态", + "description": "启用状态", "name": "status", "in": "query" }, { - "type": "string", - "description": "字典名(英)", - "name": "type", + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", "in": "query" }, { @@ -3155,11 +3874,17 @@ "description": "更新时间", "name": "updatedAt", "in": "query" + }, + { + "type": "integer", + "description": "字典值", + "name": "value", + "in": "query" } ], "responses": { "200": { - "description": "用id查询SysDictionary", + "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { @@ -3169,8 +3894,7 @@ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" @@ -3183,8 +3907,8 @@ } } }, - "/sysDictionary/getSysDictionaryList": { - "get": { + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -3197,12 +3921,23 @@ "application/json" ], "tags": [ - "SysDictionary" + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } ], - "summary": "分页获取SysDictionary列表", "responses": { "200": { - "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", + "description": "更新SysDictionaryDetail", "schema": { "allOf": [ { @@ -3211,9 +3946,6 @@ { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, "msg": { "type": "string" } @@ -3225,8 +3957,8 @@ } } }, - "/sysDictionary/updateSysDictionary": { - "put": { + "/sysExportTemplate/createSysExportTemplate": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -3239,44 +3971,32 @@ "application/json" ], "tags": [ - "SysDictionary" + "SysExportTemplate" ], - "summary": "更新SysDictionary", + "summary": "创建导出模板", "parameters": [ { - "description": "SysDictionary模型", + "description": "创建导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionary" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "更新SysDictionary", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/createSysDictionaryDetail": { - "post": { + "/sysExportTemplate/deleteSysExportTemplate": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -3289,43 +4009,31 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "创建SysDictionaryDetail", + "summary": "删除导出模板", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "删除导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "创建SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "/sysExportTemplate/deleteSysExportTemplateByIds": { "delete": { "security": [ { @@ -3339,43 +4047,31 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "删除SysDictionaryDetail", + "summary": "批量删除导出模板", "parameters": [ { - "description": "SysDictionaryDetail模型", + "description": "批量删除导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { - "description": "删除SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/findSysDictionaryDetail": { + "/sysExportTemplate/exportExcel": { "get": { "security": [ { @@ -3389,9 +4085,29 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "用id查询SysDictionaryDetail", + "summary": "导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/findSysExportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "用id查询导出模板", "parameters": [ { "type": "integer", @@ -3407,32 +4123,26 @@ }, { "type": "string", - "description": "扩展值", - "name": "extend", + "description": "模板名称", + "name": "name", "in": "query" }, { "type": "string", - "description": "展示值", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "排序标记", - "name": "sort", + "description": "表名称", + "name": "tableName", "in": "query" }, { - "type": "boolean", - "description": "启用状态", - "name": "status", + "type": "string", + "description": "模板标识", + "name": "templateID", "in": "query" }, { - "type": "integer", - "description": "关联标记", - "name": "sysDictionaryID", + "type": "string", + "description": "模板信息", + "name": "templateInfo", "in": "query" }, { @@ -3440,41 +4150,19 @@ "description": "更新时间", "name": "updatedAt", "in": "query" - }, - { - "type": "integer", - "description": "字典值", - "name": "value", - "in": "query" } ], "responses": { "200": { - "description": "用id查询SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { + "/sysExportTemplate/getSysExportTemplateList": { "get": { "security": [ { @@ -3488,9 +4176,9 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "分页获取导出模板列表", "parameters": [ { "type": "integer", @@ -3506,8 +4194,7 @@ }, { "type": "string", - "description": "扩展值", - "name": "extend", + "name": "endCreatedAt", "in": "query" }, { @@ -3518,8 +4205,8 @@ }, { "type": "string", - "description": "展示值", - "name": "label", + "description": "模板名称", + "name": "name", "in": "query" }, { @@ -3535,62 +4222,66 @@ "in": "query" }, { - "type": "integer", - "description": "排序标记", - "name": "sort", + "type": "string", + "name": "startCreatedAt", "in": "query" }, { - "type": "boolean", - "description": "启用状态", - "name": "status", + "type": "string", + "description": "表名称", + "name": "tableName", "in": "query" }, { - "type": "integer", - "description": "关联标记", - "name": "sysDictionaryID", + "type": "string", + "description": "模板标识", + "name": "templateID", "in": "query" }, { "type": "string", - "description": "更新时间", - "name": "updatedAt", + "description": "模板信息", + "name": "templateInfo", "in": "query" }, { - "type": "integer", - "description": "字典值", - "name": "value", + "type": "string", + "description": "更新时间", + "name": "updatedAt", "in": "query" } ], "responses": { "200": { - "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { + "/sysExportTemplate/importExcel": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysImportTemplate" + ], + "summary": "导入表格", + "responses": {} + } + }, + "/sysExportTemplate/updateSysExportTemplate": { "put": { "security": [ { @@ -3604,37 +4295,25 @@ "application/json" ], "tags": [ - "SysDictionaryDetail" + "SysExportTemplate" ], - "summary": "更新SysDictionaryDetail", + "summary": "更新导出模板", "parameters": [ { - "description": "更新SysDictionaryDetail", + "description": "更新导出模板", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" + "$ref": "#/definitions/system.SysExportTemplate" } } ], "responses": { "200": { - "description": "更新SysDictionaryDetail", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] + "type": "string" } } } @@ -4936,6 +5615,10 @@ "config.Mongo": { "type": "object", "properties": { + "auth-source": { + "description": "验证数据库", + "type": "string" + }, "coll": { "description": "collection name", "type": "string" @@ -5303,7 +5986,7 @@ } }, "email": { - "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email" + "$ref": "#/definitions/pychr_config.Email" }, "excel": { "$ref": "#/definitions/config.Excel" @@ -5509,10 +6192,6 @@ "router-prefix": { "type": "string" }, - "use-mongo": { - "description": "使用redis", - "type": "boolean" - }, "use-multipoint": { "description": "多点登录拦截", "type": "boolean" @@ -5725,7 +6404,65 @@ } } }, - "github_com_flipped-aurora_gin-vue-admin_server_config.Email": { + "goods.GoodsShow": { + "type": "object", + "required": [ + "langType", + "name", + "type" + ], + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "briefIntroduction": { + "description": "简介", + "type": "string" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "goodsAssistantPic": { + "description": "商品副图", + "type": "string" + }, + "goodsMainPic": { + "description": "商品主图", + "type": "string" + }, + "langType": { + "description": "语言类型 1中文 2英文", + "type": "integer" + }, + "mainIntroduction": { + "description": "主介绍", + "type": "string" + }, + "name": { + "description": "商品名称", + "type": "string" + }, + "secondIntroduction": { + "description": "副介绍,逗号拼接", + "type": "string" + }, + "secondIntroductionTitle": { + "description": "副介绍标题", + "type": "string" + }, + "type": { + "description": "类型", + "type": "integer" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, + "pychr_config.Email": { "type": "object", "properties": { "from": { @@ -6332,7 +7069,8 @@ "$ref": "#/definitions/system.Field" } }, - "hasTimer": { + "gvaModel": { + "description": "是否使用gva默认Model", "type": "boolean" }, "humpPackageName": { @@ -6346,6 +7084,9 @@ "description": "文件名称", "type": "string" }, + "primaryField": { + "$ref": "#/definitions/system.Field" + }, "structName": { "description": "Struct名称", "type": "string" @@ -6403,6 +7144,10 @@ "description": "Field数据类型", "type": "string" }, + "primaryKey": { + "description": "是否主键", + "type": "boolean" + }, "require": { "description": "是否必填", "type": "boolean" @@ -6761,6 +7506,39 @@ } } }, + "system.SysExportTemplate": { + "type": "object", + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "name": { + "description": "模板名称", + "type": "string" + }, + "tableName": { + "description": "表名称", + "type": "string" + }, + "templateID": { + "description": "模板标识", + "type": "string" + }, + "templateInfo": { + "description": "模板信息", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + } + } + }, "system.SysMenu": { "type": "object", "properties": { @@ -6989,4 +7767,4 @@ "in": "header" } } -} +} \ No newline at end of file diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index cdc43de..95350b3 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -150,6 +150,9 @@ definitions: type: object config.Mongo: properties: + auth-source: + description: 验证数据库 + type: string coll: description: collection name type: string @@ -412,7 +415,7 @@ definitions: $ref: '#/definitions/config.SpecializedDB' type: array email: - $ref: '#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email' + $ref: '#/definitions/pychr_config.Email' excel: $ref: '#/definitions/config.Excel' hua-wei-obs: @@ -554,9 +557,6 @@ definitions: type: string router-prefix: type: string - use-mongo: - description: 使用redis - type: boolean use-multipoint: description: 多点登录拦截 type: boolean @@ -705,7 +705,50 @@ definitions: description: 文件地址 type: string type: object - github_com_flipped-aurora_gin-vue-admin_server_config.Email: + goods.GoodsShow: + properties: + ID: + description: 主键ID + type: integer + briefIntroduction: + description: 简介 + type: string + createdAt: + description: 创建时间 + type: string + goodsAssistantPic: + description: 商品副图 + type: string + goodsMainPic: + description: 商品主图 + type: string + langType: + description: 语言类型 1中文 2英文 + type: integer + mainIntroduction: + description: 主介绍 + type: string + name: + description: 商品名称 + type: string + secondIntroduction: + description: 副介绍,逗号拼接 + type: string + secondIntroductionTitle: + description: 副介绍标题 + type: string + type: + description: 类型 + type: integer + updatedAt: + description: 更新时间 + type: string + required: + - langType + - name + - type + type: object + pychr_config.Email: properties: from: description: 发件人 你自己要发邮件的邮箱 @@ -1120,7 +1163,8 @@ definitions: items: $ref: '#/definitions/system.Field' type: array - hasTimer: + gvaModel: + description: 是否使用gva默认Model type: boolean humpPackageName: description: go文件名称 @@ -1130,6 +1174,8 @@ definitions: packageName: description: 文件名称 type: string + primaryField: + $ref: '#/definitions/system.Field' structName: description: Struct名称 type: string @@ -1172,6 +1218,9 @@ definitions: fieldType: description: Field数据类型 type: string + primaryKey: + description: 是否主键 + type: boolean require: description: 是否必填 type: boolean @@ -1425,6 +1474,30 @@ definitions: description: 字典值 type: integer type: object + system.SysExportTemplate: + properties: + ID: + description: 主键ID + type: integer + createdAt: + description: 创建时间 + type: string + name: + description: 模板名称 + type: string + tableName: + description: 表名称 + type: string + templateID: + description: 模板标识 + type: string + templateInfo: + description: 模板信息 + type: string + updatedAt: + description: 更新时间 + type: string + type: object system.SysMenu: properties: ID: @@ -1583,9 +1656,9 @@ definitions: type: object info: contact: {} - description: 使用gin+vue进行极速开发的全栈开发基础平台 - title: Gin-Vue-Admin Swagger API接口文档 - version: v2.6.0 + description: gin接口文档 + title: API接口文档 + version: v0.0.1 paths: /api/createApi: post: @@ -2955,6 +3028,203 @@ paths: summary: 上传文件示例 tags: - ExaFileUploadAndDownload + /goodsShow/createGoodsShow: + post: + consumes: + - application/json + parameters: + - description: 创建商品 + in: body + name: data + required: true + schema: + $ref: '#/definitions/goods.GoodsShow' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建商品 + tags: + - GoodsShow + /goodsShow/deleteGoodsShow: + delete: + consumes: + - application/json + parameters: + - description: 删除商品 + in: body + name: data + required: true + schema: + $ref: '#/definitions/goods.GoodsShow' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除商品 + tags: + - GoodsShow + /goodsShow/deleteGoodsShowByIds: + delete: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"批量删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 批量删除商品 + tags: + - GoodsShow + /goodsShow/findGoodsShow: + get: + consumes: + - application/json + parameters: + - description: 主键ID + in: query + name: ID + type: integer + - description: 简介 + in: query + name: briefIntroduction + type: string + - description: 创建时间 + in: query + name: createdAt + type: string + - description: 商品副图 + in: query + name: goodsAssistantPic + type: string + - description: 商品主图 + in: query + name: goodsMainPic + type: string + - description: 语言类型 1中文 2英文 + in: query + name: langType + required: true + type: integer + - description: 主介绍 + in: query + name: mainIntroduction + type: string + - description: 商品名称 + in: query + name: name + required: true + type: string + - description: 副介绍,逗号拼接 + in: query + name: secondIntroduction + type: string + - description: 副介绍标题 + in: query + name: secondIntroductionTitle + type: string + - description: 类型 + in: query + name: type + required: true + type: integer + - description: 更新时间 + in: query + name: updatedAt + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询商品 + tags: + - GoodsShow + /goodsShow/getGoodsShowList: + get: + consumes: + - application/json + parameters: + - in: query + name: endCreatedAt + type: string + - description: 关键字 + in: query + name: keyword + type: string + - in: query + name: langType + type: integer + - 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 + - in: query + name: type + type: integer + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取商品列表 + tags: + - GoodsShow + /goodsShow/updateGoodsShow: + put: + consumes: + - application/json + parameters: + - description: 更新商品 + in: body + name: data + required: true + schema: + $ref: '#/definitions/goods.GoodsShow' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新商品 + tags: + - GoodsShow /init/checkdb: post: produces: @@ -3656,6 +3926,230 @@ paths: summary: 更新SysDictionaryDetail tags: - SysDictionaryDetail + /sysExportTemplate/createSysExportTemplate: + post: + consumes: + - application/json + parameters: + - description: 创建导出模板 + in: body + name: data + required: true + schema: + $ref: '#/definitions/system.SysExportTemplate' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建导出模板 + tags: + - SysExportTemplate + /sysExportTemplate/deleteSysExportTemplate: + delete: + consumes: + - application/json + parameters: + - description: 删除导出模板 + in: body + name: data + required: true + schema: + $ref: '#/definitions/system.SysExportTemplate' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除导出模板 + tags: + - SysExportTemplate + /sysExportTemplate/deleteSysExportTemplateByIds: + delete: + consumes: + - application/json + parameters: + - description: 批量删除导出模板 + 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: 批量删除导出模板 + tags: + - SysExportTemplate + /sysExportTemplate/exportExcel: + get: + consumes: + - application/json + produces: + - application/json + responses: {} + security: + - ApiKeyAuth: [] + summary: 导出表格模板 + tags: + - SysExportTemplate + /sysExportTemplate/findSysExportTemplate: + get: + consumes: + - application/json + parameters: + - description: 主键ID + in: query + name: ID + type: integer + - description: 创建时间 + in: query + name: createdAt + type: string + - description: 模板名称 + in: query + name: name + type: string + - description: 表名称 + in: query + name: tableName + type: string + - description: 模板标识 + in: query + name: templateID + type: string + - description: 模板信息 + in: query + name: templateInfo + type: string + - description: 更新时间 + in: query + name: updatedAt + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询导出模板 + tags: + - SysExportTemplate + /sysExportTemplate/getSysExportTemplateList: + get: + consumes: + - application/json + parameters: + - description: 主键ID + in: query + name: ID + type: integer + - description: 创建时间 + in: query + name: createdAt + type: string + - in: query + name: endCreatedAt + type: string + - description: 关键字 + in: query + name: keyword + type: string + - description: 模板名称 + 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 + - description: 表名称 + in: query + name: tableName + type: string + - description: 模板标识 + in: query + name: templateID + type: string + - description: 模板信息 + in: query + name: templateInfo + type: string + - description: 更新时间 + in: query + name: updatedAt + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取导出模板列表 + tags: + - SysExportTemplate + /sysExportTemplate/importExcel: + post: + consumes: + - application/json + produces: + - application/json + responses: {} + security: + - ApiKeyAuth: [] + summary: 导入表格 + tags: + - SysImportTemplate + /sysExportTemplate/updateSysExportTemplate: + put: + consumes: + - application/json + parameters: + - description: 更新导出模板 + in: body + name: data + required: true + schema: + $ref: '#/definitions/system.SysExportTemplate' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新导出模板 + tags: + - SysExportTemplate /sysOperationRecord/createSysOperationRecord: post: consumes: