# cloud-classrooom-api-server **Repository Path**: duans/cloud-classrooom-api-server ## Basic Information - **Project Name**: cloud-classrooom-api-server - **Description**: Br云课堂微信小程序数据接口服务器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-22 - **Last Updated**: 2022-06-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信云课堂接口文档 - 接口域名: `http://wx-cloud-classroom.duans.top/` ## 首页 ### 宫格导航 - 接口地址: `/apis/index.php?c=category&a=lists` - 请求方式: `GET` - 参数 - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 轮播图列表 - 接口地址: `/apis/index.php?c=slider&a=lists` - 请求方式: `GET` - 参数: 无 - 返回数据: `json` ```json { "errcode": 0, "msg": "success", "data": { "list": [{ "id": "1", "page": "index", "status": "1", "img": "http:\/\/wx.cloud-classroom.com\/uploads\/slides\/01.jpg", "url": "#" }, { "id": "2", "page": "index", "status": "1", "img": "http:\/\/wx.cloud-classroom.com\/uploads\/slides\/02.jpg", "url": "#" }, { "id": "3", "page": "index", "status": "1", "img": "http:\/\/wx.cloud-classroom.com\/uploads\/slides\/03.jpg", "url": "#" }, { "id": "4", "page": "index", "status": "1", "img": "http:\/\/wx.cloud-classroom.com\/uploads\/slides\/04.jpg", "url": "#" }], "total": "4" } } ``` ### 课程推荐 - 接口地址: `/apis/index.php?c=course&a=recommend` - 请求方式: `GET` - 参数: 无 - 返回数据: `json` ```json ``` ## 课程模块 ### 课程分类 - 接口地址: `/apis/index.php?c=category&a=lists` - 请求方式: `GET` - 参数 - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 课程列表 - 接口地址: `/apis/index.php?c=course&a=lists&cid=:cid` - 请求方式: `GET` - 参数 - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 课程详情 - 接口地址: `/apis/index.php?c=course&a=detail&id=:id` - 请求方式: `GET` - 参数: - id: 课程id - 返回数据: `json` ```json ``` ### 获取课程播放地址 - 接口地址: `/apis/index.php?c=course&a=getPlayUrl&originUrl=:originUrl` - 请求方式: `GET` - 参数: - originUrl: 课程播放源地址 - 返回数据: `json` ```json ``` ### 课程搜索 - 接口地址: `/apis/index.php?c=course&a=search&keywords=:keywords` - 请求方式: `GET` - 参数: - keywords: 搜索关键词 - 返回数据: `json` ```json ``` ## 评论模块 ### 课程评论 - 接口地址: `/apis/index.php?c=comment&a=lists&course_id=:id` - 请求方式: `GET` - 参数: - course_id: 课程id - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 我的评论 - 接口地址: `/apis/index.php?c=comment&a=my_comments` - 请求方式: `GET` - 请求头: `Openid` - 参数: - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 发布评论 - 接口地址: `/apis/index.php?c=comment&a=add` - 请求方式: `POST` - 请求头: `Openid` - 参数: - course_id: 课程id - nickname: 昵称 - content: 评论内容 - 返回数据: `json` ```json ``` ### 删除评论 - 接口地址: `/apis/index.php?c=comment&a=del&id=:id` - 请求方式: `GET` - 请求头: `Openid` - 参数: - id: 评论id - 返回数据: `json` ```json ``` ## 收藏模块 ### 我的收藏 - 接口地址: `/apis/index.php?c=collect&a=lists` - 请求方式: `GET` - 请求头: `Openid` - 参数: - page: 页码 - page_num: 每页显示数据条数 - 返回数据: `json` ```json ``` ### 添加收藏 - 接口地址: `/apis/index.php?c=collect&a=add` - 请求方式: `POST` - 请求头: `Openid` - 参数: - course_id: 课程id - 返回数据: `json` ```json ``` ### 删除收藏 - 接口地址: `/apis/index.php?c=collect&a=del&id=:id` - 请求方式: `GET` - 请求头: Openid - 参数: - id: 收藏id - 返回数据: json ```json ``` ## 文件上传 ### 图片上传 - 接口地址: `/apis/index.php?c=upload&a=img` - 请求方式: `POST` - 参数: - img: 图片数据 - 返回数据: json ```json ```