代码拉取完成,页面将自动刷新
{
"openapi": "3.0.1",
"info": {
"title": "Ma.wenda",
"description": "",
"version": "1.0.0"
},
"tags": [
{
"name": "codegen"
},
{
"name": "codegen/数据源管理"
},
{
"name": "codegen/代码生成"
}
],
"paths": {
"/datasource/page": {
"get": {
"summary": "分页查询",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [
{
"name": "current",
"in": "query",
"description": "",
"required": true,
"example": "1",
"schema": {
"type": "integer"
}
},
{
"name": "size",
"in": "query",
"description": "",
"required": false,
"example": "20",
"schema": {
"type": "integer"
}
},
{
"name": "name",
"in": "query",
"description": "",
"required": false,
"example": "gen",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"current": {
"type": "integer"
},
"size": {
"type": "integer"
},
"list": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"total",
"current",
"size",
"list"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"total",
"current",
"size",
"list"
]
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-179124278-run"
}
},
"/api/codegen/codegen/page": {
"get": {
"summary": "表元数据分页查询",
"x-apifox-folder": "codegen/代码生成",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/代码生成"
],
"parameters": [
{
"name": "current",
"in": "query",
"description": "",
"required": false,
"example": "1",
"schema": {
"type": "string"
}
},
{
"name": "size",
"in": "query",
"description": "",
"required": false,
"example": "20",
"schema": {
"type": "string"
}
},
{
"name": "dataSourceId",
"in": "query",
"description": "",
"required": false,
"example": "1",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "null"
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-179513055-run"
}
},
"/datasource/save": {
"post": {
"summary": "添加",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
},
"example": {
"name": "codegen",
"url": "@tcp(127.0.0.1:3306)/codegen?charset=utf8mb4&parseTime=true&loc=Local",
"username": "root",
"password": "root"
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "null"
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-179519416-run"
}
},
"/datasource/list": {
"get": {
"summary": "数据列表",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [
{
"name": "name",
"in": "query",
"description": "",
"required": false,
"example": "gen",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180545633-run"
}
},
"/datasource/detail": {
"get": {
"summary": "详情",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [
{
"name": "id",
"in": "query",
"description": "",
"required": false,
"example": "1",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"username": {
"type": "string"
},
"password": {
"type": "string"
},
"delFlag": {
"type": "string"
},
"createTime": {
"type": "string"
},
"createBy": {
"type": "string"
},
"updateTime": {
"type": "string"
},
"updateBy": {
"type": "string"
}
},
"required": [
"id",
"name",
"url",
"username",
"password",
"delFlag",
"createTime",
"createBy",
"updateTime",
"updateBy"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"id",
"name",
"url",
"username",
"password",
"delFlag",
"createTime",
"createBy",
"updateTime",
"updateBy"
]
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180550956-run"
}
},
"/datasource/update": {
"post": {
"summary": "修改",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
},
"example": {
"id": 1,
"name": "codegen",
"url": "@tcp(127.0.0.1:3306)/codegen?charset=utf8mb4&parseTime=true&loc=Local",
"username": "root",
"password": "root"
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "boolean"
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180564638-run"
}
},
"/datasource/delete": {
"post": {
"summary": "根据ID删除",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [
{
"name": "id",
"in": "query",
"description": "",
"required": false,
"example": "1",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "boolean"
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180571107-run"
}
},
"/datasource/batchDelete": {
"post": {
"summary": "批量删除",
"x-apifox-folder": "codegen/数据源管理",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/数据源管理"
],
"parameters": [
{
"name": "ids",
"in": "query",
"description": "",
"required": false,
"example": "1,2",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"msg": {
"type": "string"
},
"data": {
"type": "boolean"
}
},
"required": [
"code",
"msg",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"code",
"msg",
"data"
]
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180571143-run"
}
},
"/api/codegen/codegen/generator": {
"post": {
"summary": "代码生成",
"x-apifox-folder": "codegen/代码生成",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [
"codegen/代码生成"
],
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
},
"example": {
"dataSourceId": "1",
"tableName": "gen_datasource_conf",
"projectName": "codegen"
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
}
}
}
}
},
"x-run-in-apifox": "https://apifox.com/web/project/2979081/apis/api-180801612-run"
}
}
},
"components": {
"schemas": {}
},
"servers": [
{
"url": "http://localhost:8060/api/codegen",
"description": "codegen-local"
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。