Code generation module
This commit is contained in:
1 parent
e149589990
commit
65dbf587f9
13 files changed
+497
-62
No files matched your search
+55
-18
@@ -1,6 +1,6 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2020-03-17 14:25:08.714368 +0800 CST m=+0.081722206
|
||||
// 2020-03-19 00:24:21.426215 +0800 CST m=+0.087420189
|
||||
|
||||
package docs
|
||||
|
||||
@@ -436,9 +436,9 @@ var doc = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"字典数据"
|
||||
"配置"
|
||||
],
|
||||
"summary": "添加字典数据",
|
||||
"summary": "添加配置",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "data",
|
||||
@@ -447,7 +447,7 @@ var doc = `{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/models.DictType"
|
||||
"$ref": "#/definitions/models.Config"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1570,7 +1570,7 @@ var doc = `{
|
||||
],
|
||||
"description": "获取JSON",
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "获取Role数据",
|
||||
"parameters": [
|
||||
@@ -1596,7 +1596,7 @@ var doc = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "修改用户角色",
|
||||
"parameters": [
|
||||
@@ -1626,7 +1626,7 @@ var doc = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "创建角色",
|
||||
"parameters": [
|
||||
@@ -1655,7 +1655,7 @@ var doc = `{
|
||||
"delete": {
|
||||
"description": "删除数据",
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "删除用户角色",
|
||||
"parameters": [
|
||||
@@ -1684,28 +1684,28 @@ var doc = `{
|
||||
"": []
|
||||
}
|
||||
],
|
||||
"description": "获取JSON",
|
||||
"description": "Get JSON",
|
||||
"tags": [
|
||||
"配置"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "配置列表数据",
|
||||
"summary": "角色列表数据",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configKey",
|
||||
"name": "configKey",
|
||||
"description": "roleName",
|
||||
"name": "roleName",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configName",
|
||||
"name": "configName",
|
||||
"description": "status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configType",
|
||||
"name": "configType",
|
||||
"description": "roleKey",
|
||||
"name": "roleKey",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -1996,6 +1996,43 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/tables/page": {
|
||||
"get": {
|
||||
"description": "数据库表分页列表 / database table page list",
|
||||
"tags": [
|
||||
"工具 / Tools"
|
||||
],
|
||||
"summary": "分页列表数据 / page list data",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "tableName / 数据表名称",
|
||||
"name": "tableName",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "pageSize / 页条数",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "pageIndex / 页码",
|
||||
"name": "pageIndex",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"code\": 200, \"data\": [...]}",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/user/profile": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -2955,7 +2992,7 @@ var SwaggerInfo = swaggerInfo{
|
||||
BasePath: "",
|
||||
Schemes: []string{},
|
||||
Title: "go-admin API",
|
||||
Description: "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加微信号: zwj891129 进入技术交流微信群 请备注,谢谢!",
|
||||
Description: "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加qq群: 74520518 进入技术交流群 请备注,谢谢!",
|
||||
}
|
||||
|
||||
type s struct{}
|
||||
|
||||
+54
-17
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加微信号: zwj891129 进入技术交流微信群 请备注,谢谢!",
|
||||
"description": "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加qq群: 74520518 进入技术交流群 请备注,谢谢!",
|
||||
"title": "go-admin API",
|
||||
"contact": {},
|
||||
"license": {
|
||||
@@ -418,9 +418,9 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"字典数据"
|
||||
"配置"
|
||||
],
|
||||
"summary": "添加字典数据",
|
||||
"summary": "添加配置",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "data",
|
||||
@@ -429,7 +429,7 @@
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/models.DictType"
|
||||
"$ref": "#/definitions/models.Config"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1552,7 +1552,7 @@
|
||||
],
|
||||
"description": "获取JSON",
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "获取Role数据",
|
||||
"parameters": [
|
||||
@@ -1578,7 +1578,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "修改用户角色",
|
||||
"parameters": [
|
||||
@@ -1608,7 +1608,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "创建角色",
|
||||
"parameters": [
|
||||
@@ -1637,7 +1637,7 @@
|
||||
"delete": {
|
||||
"description": "删除数据",
|
||||
"tags": [
|
||||
"角色"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "删除用户角色",
|
||||
"parameters": [
|
||||
@@ -1666,28 +1666,28 @@
|
||||
"": []
|
||||
}
|
||||
],
|
||||
"description": "获取JSON",
|
||||
"description": "Get JSON",
|
||||
"tags": [
|
||||
"配置"
|
||||
"角色/Role"
|
||||
],
|
||||
"summary": "配置列表数据",
|
||||
"summary": "角色列表数据",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configKey",
|
||||
"name": "configKey",
|
||||
"description": "roleName",
|
||||
"name": "roleName",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configName",
|
||||
"name": "configName",
|
||||
"description": "status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "configType",
|
||||
"name": "configType",
|
||||
"description": "roleKey",
|
||||
"name": "roleKey",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -1978,6 +1978,43 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/tables/page": {
|
||||
"get": {
|
||||
"description": "数据库表分页列表 / database table page list",
|
||||
"tags": [
|
||||
"工具 / Tools"
|
||||
],
|
||||
"summary": "分页列表数据 / page list data",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "tableName / 数据表名称",
|
||||
"name": "tableName",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "pageSize / 页条数",
|
||||
"name": "pageSize",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "pageIndex / 页码",
|
||||
"name": "pageIndex",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{\"code\": 200, \"data\": [...]}",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/user/profile": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
||||
+41
-17
@@ -488,7 +488,7 @@ info:
|
||||
contact: {}
|
||||
description: |-
|
||||
基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档
|
||||
添加微信号: zwj891129 进入技术交流微信群 请备注,谢谢!
|
||||
添加qq群: 74520518 进入技术交流群 请备注,谢谢!
|
||||
license:
|
||||
name: MIT
|
||||
url: https://github.com/wenjianzhang/go-admin/blob/master/LICENSE.md
|
||||
@@ -732,7 +732,7 @@ paths:
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.DictType'
|
||||
$ref: '#/definitions/models.Config'
|
||||
type: object
|
||||
responses:
|
||||
"200":
|
||||
@@ -741,9 +741,9 @@ paths:
|
||||
type: string
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: 添加字典数据
|
||||
summary: 添加配置
|
||||
tags:
|
||||
- 字典数据
|
||||
- 配置
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -1475,7 +1475,7 @@ paths:
|
||||
- Bearer: []
|
||||
summary: 获取Role数据
|
||||
tags:
|
||||
- 角色
|
||||
- 角色/Role
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -1495,7 +1495,7 @@ paths:
|
||||
type: string
|
||||
summary: 创建角色
|
||||
tags:
|
||||
- 角色
|
||||
- 角色/Role
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -1515,7 +1515,7 @@ paths:
|
||||
type: string
|
||||
summary: 修改用户角色
|
||||
tags:
|
||||
- 角色
|
||||
- 角色/Role
|
||||
/api/v1/role/{roleId}:
|
||||
delete:
|
||||
description: 删除数据
|
||||
@@ -1532,22 +1532,22 @@ paths:
|
||||
type: string
|
||||
summary: 删除用户角色
|
||||
tags:
|
||||
- 角色
|
||||
- 角色/Role
|
||||
/api/v1/rolelist:
|
||||
get:
|
||||
description: 获取JSON
|
||||
description: Get JSON
|
||||
parameters:
|
||||
- description: configKey
|
||||
- description: roleName
|
||||
in: query
|
||||
name: configKey
|
||||
name: roleName
|
||||
type: string
|
||||
- description: configName
|
||||
- description: status
|
||||
in: query
|
||||
name: configName
|
||||
name: status
|
||||
type: string
|
||||
- description: configType
|
||||
- description: roleKey
|
||||
in: query
|
||||
name: configType
|
||||
name: roleKey
|
||||
type: string
|
||||
- description: 页条数
|
||||
in: query
|
||||
@@ -1564,9 +1564,9 @@ paths:
|
||||
$ref: '#/definitions/models.Response'
|
||||
security:
|
||||
- "": []
|
||||
summary: 配置列表数据
|
||||
summary: 角色列表数据
|
||||
tags:
|
||||
- 配置
|
||||
- 角色/Role
|
||||
/api/v1/rolemenu:
|
||||
get:
|
||||
description: 获取JSON
|
||||
@@ -1736,6 +1736,30 @@ paths:
|
||||
summary: 修改用户数据
|
||||
tags:
|
||||
- 用户
|
||||
/api/v1/tables/page:
|
||||
get:
|
||||
description: 数据库表分页列表 / database table page list
|
||||
parameters:
|
||||
- description: tableName / 数据表名称
|
||||
in: query
|
||||
name: tableName
|
||||
type: string
|
||||
- description: pageSize / 页条数
|
||||
in: query
|
||||
name: pageSize
|
||||
type: integer
|
||||
- description: pageIndex / 页码
|
||||
in: query
|
||||
name: pageIndex
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: '{"code": 200, "data": [...]}'
|
||||
schema:
|
||||
$ref: '#/definitions/models.Response'
|
||||
summary: 分页列表数据 / page list data
|
||||
tags:
|
||||
- 工具 / Tools
|
||||
/api/v1/user/profile:
|
||||
get:
|
||||
description: 获取JSON
|
||||
|
||||
Reference in new issue
Block a user