clwy-app
  1. 首页
clwy-app
  • 前台
    • 首页
      • 查询列表
        GET
    • 分类
      • 查询分类列表
    • 课程
      • 查询课程列表
      • 查询课程详情
    • 章节
      • 查询章节详情
    • 文章
      • 查询文章列表
      • 查询文章详情
    • 搜索
      • 搜索
    • 系统信息
      • 查询系统信息
    • 认证
      • 注册
      • 登录
    • 用户
      • 查询当前登录用户详情
      • 更新用户信息
      • 更新账户信息
      • 注销账户
    • 点赞
      • 查询用户点赞的课程
      • 点赞、取消赞
    • 上传
      • 上传图片
  1. 首页

查询列表

开发中
GET
/

请求参数

无

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:3000/'

返回响应

🟢200成功
application/json
Body
status
boolean 
必需
message
string 
必需
data
object 
必需
recommendedCourses
array [object {13}] 
必需
likesCourses
array [object {13}] 
必需
introductoryCourses
array [object {13}] 
必需
示例
{
    "status": true,
    "message": "查询首页数据成功。",
    "data": {
        "recommendedCourses": [
            {
                "id": 10,
                "createdAt": "2025-04-22 20:08:13",
                "updatedAt": "2025-04-22 20:08:13",
                "name": "React Native + Expo 项目实战",
                "image": "http://localhost:3000/uploads/images/1745294879753-767038072.png",
                "recommended": true,
                "introductory": false,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 3,
                "userId": 1,
                "category": {
                    "id": 3,
                    "name": "移动端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 8,
                "createdAt": "2025-04-22 20:06:14",
                "updatedAt": "2025-04-22 20:06:14",
                "name": "CSS 入门",
                "image": "http://localhost:3000/uploads/images/1745294760685-708444151.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 1,
                "userId": 1,
                "category": {
                    "id": 1,
                    "name": "前端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 4,
                "createdAt": "2025-04-22 20:01:19",
                "updatedAt": "2025-04-22 20:04:41",
                "name": "Workerman + Laravel + Vue.js 实战聊天室",
                "image": "http://localhost:3000/uploads/images/1745294416780-81608528.jpeg",
                "recommended": true,
                "introductory": false,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 2,
                "createdAt": "2025-04-22 18:35:13",
                "updatedAt": "2025-05-26 14:54:42",
                "name": "Node.js 项目实践",
                "image": "http://localhost:3000/uploads/images/1745289257308-482473119.png",
                "recommended": true,
                "introductory": true,
                "likesCount": 1,
                "chaptersCount": 10,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 1,
                "createdAt": "2025-04-22 18:26:45",
                "updatedAt": "2025-05-26 16:52:06",
                "name": "超简单的 Laravel 新手入门课程",
                "image": "http://localhost:3000/uploads/images/1745288773354-15314852.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 2,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            }
        ],
        "likesCourses": [
            {
                "id": 1,
                "createdAt": "2025-04-22 18:26:45",
                "updatedAt": "2025-05-26 16:52:06",
                "name": "超简单的 Laravel 新手入门课程",
                "image": "http://localhost:3000/uploads/images/1745288773354-15314852.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 2,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 2,
                "createdAt": "2025-04-22 18:35:13",
                "updatedAt": "2025-05-26 14:54:42",
                "name": "Node.js 项目实践",
                "image": "http://localhost:3000/uploads/images/1745289257308-482473119.png",
                "recommended": true,
                "introductory": true,
                "likesCount": 1,
                "chaptersCount": 10,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 10,
                "createdAt": "2025-04-22 20:08:13",
                "updatedAt": "2025-04-22 20:08:13",
                "name": "React Native + Expo 项目实战",
                "image": "http://localhost:3000/uploads/images/1745294879753-767038072.png",
                "recommended": true,
                "introductory": false,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 3,
                "userId": 1,
                "category": {
                    "id": 3,
                    "name": "移动端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 9,
                "createdAt": "2025-04-22 20:06:58",
                "updatedAt": "2025-04-22 20:06:58",
                "name": "Node.js 入门 - 使用 Express + Sequelize 实作 API",
                "image": "http://localhost:3000/uploads/images/1745294815786-766619312.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 8,
                "createdAt": "2025-04-22 20:06:14",
                "updatedAt": "2025-04-22 20:06:14",
                "name": "CSS 入门",
                "image": "http://localhost:3000/uploads/images/1745294760685-708444151.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 1,
                "userId": 1,
                "category": {
                    "id": 1,
                    "name": "前端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 7,
                "createdAt": "2025-04-22 20:05:39",
                "updatedAt": "2025-04-22 20:05:39",
                "name": "HTML 入门",
                "image": "http://localhost:3000/uploads/images/1745294725066-584737782.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 1,
                "userId": 1,
                "category": {
                    "id": 1,
                    "name": "前端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 6,
                "createdAt": "2025-04-22 20:04:14",
                "updatedAt": "2025-04-22 20:04:24",
                "name": "Laravel 技巧库",
                "image": "http://localhost:3000/uploads/images/1745294590884-399536674.jpeg",
                "recommended": false,
                "introductory": false,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 5,
                "createdAt": "2025-04-22 20:03:00",
                "updatedAt": "2025-04-22 20:09:50",
                "name": "简单要死的 Git(GitHub)入门教程",
                "image": "http://localhost:3000/uploads/images/1745294567270-983647120.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 2,
                "categoryId": 6,
                "userId": 1,
                "category": {
                    "id": 6,
                    "name": "公共"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 4,
                "createdAt": "2025-04-22 20:01:19",
                "updatedAt": "2025-04-22 20:04:41",
                "name": "Workerman + Laravel + Vue.js 实战聊天室",
                "image": "http://localhost:3000/uploads/images/1745294416780-81608528.jpeg",
                "recommended": true,
                "introductory": false,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 3,
                "createdAt": "2025-04-22 19:34:27",
                "updatedAt": "2025-04-22 19:34:27",
                "name": "小白玩转 macOS",
                "image": "http://localhost:3000/uploads/images/1745292819821-598236752.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 6,
                "userId": 1,
                "category": {
                    "id": 6,
                    "name": "公共"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            }
        ],
        "introductoryCourses": [
            {
                "id": 9,
                "createdAt": "2025-04-22 20:06:58",
                "updatedAt": "2025-04-22 20:06:58",
                "name": "Node.js 入门 - 使用 Express + Sequelize 实作 API",
                "image": "http://localhost:3000/uploads/images/1745294815786-766619312.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 8,
                "createdAt": "2025-04-22 20:06:14",
                "updatedAt": "2025-04-22 20:06:14",
                "name": "CSS 入门",
                "image": "http://localhost:3000/uploads/images/1745294760685-708444151.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 1,
                "userId": 1,
                "category": {
                    "id": 1,
                    "name": "前端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 7,
                "createdAt": "2025-04-22 20:05:39",
                "updatedAt": "2025-04-22 20:05:39",
                "name": "HTML 入门",
                "image": "http://localhost:3000/uploads/images/1745294725066-584737782.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 1,
                "userId": 1,
                "category": {
                    "id": 1,
                    "name": "前端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 5,
                "createdAt": "2025-04-22 20:03:00",
                "updatedAt": "2025-04-22 20:09:50",
                "name": "简单要死的 Git(GitHub)入门教程",
                "image": "http://localhost:3000/uploads/images/1745294567270-983647120.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 2,
                "categoryId": 6,
                "userId": 1,
                "category": {
                    "id": 6,
                    "name": "公共"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 3,
                "createdAt": "2025-04-22 19:34:27",
                "updatedAt": "2025-04-22 19:34:27",
                "name": "小白玩转 macOS",
                "image": "http://localhost:3000/uploads/images/1745292819821-598236752.jpeg",
                "recommended": false,
                "introductory": true,
                "likesCount": 0,
                "chaptersCount": 0,
                "categoryId": 6,
                "userId": 1,
                "category": {
                    "id": 6,
                    "name": "公共"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 2,
                "createdAt": "2025-04-22 18:35:13",
                "updatedAt": "2025-05-26 14:54:42",
                "name": "Node.js 项目实践",
                "image": "http://localhost:3000/uploads/images/1745289257308-482473119.png",
                "recommended": true,
                "introductory": true,
                "likesCount": 1,
                "chaptersCount": 10,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            },
            {
                "id": 1,
                "createdAt": "2025-04-22 18:26:45",
                "updatedAt": "2025-05-26 16:52:06",
                "name": "超简单的 Laravel 新手入门课程",
                "image": "http://localhost:3000/uploads/images/1745288773354-15314852.jpeg",
                "recommended": true,
                "introductory": true,
                "likesCount": 2,
                "chaptersCount": 0,
                "categoryId": 2,
                "userId": 1,
                "category": {
                    "id": 2,
                    "name": "后端开发"
                },
                "user": {
                    "id": 1,
                    "username": "admin",
                    "nickname": "管理员",
                    "avatar": "http://localhost:3000/uploads/images/1748252997568-133107233.png",
                    "company": "长乐未央公司"
                }
            }
        ]
    }
}
下一页
查询分类列表
Built with