1 Star 0 Fork 0

Ma.wenda/codegen

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
codegen-api.json 18.33 KB
一键复制 编辑 原始数据 按行查看 历史
mawenda@kxsz.net 提交于 2024-06-04 17:58 . 项目初始化
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
{
"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"
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wenda_repository/codegen.git
git@gitee.com:wenda_repository/codegen.git
wenda_repository
codegen
codegen
master

搜索帮助