# 获取数据库列表 ## 接口地址 ``` GET /database/list ``` ## 请求参数 无 ## 返回参数 | 参数 | 类型 | 说明 | |------|------|------| | list | array | 数据库列表 | ### list[] 详情 | 参数 | 类型 | 说明 | |------|------|------| | id | string | 数据库ID | | name | string | 数据库名称 | | description | string | 描述 | | db_type | string | 数据库类型 | | host | string | 主机 | | port | int | 端口 | | database | string | 数据库名 | | table_count | int | 子表数量 | | created_at | string | 创建时间 | ## 返回示例 ```json { "list": [ { "id": "xxx-xxx", "name": "学生数据库", "description": "用于存储学生信息", "db_type": "mysql", "host": "localhost", "port": 3306, "database": "students", "table_count": 5, "created_at": "2026-03-06T15:00:00Z" } ] } ```