谷粒微课
  1. 课程模块
谷粒微课
  • 谷粒微课接口文档
  • 用户管理
    • 微信登录
      GET
    • 获取用户信息
      GET
  • 项目首页
    • 首页轮播图
      GET
    • 热门课程+名师大咖
      GET
  • 课程模块
    • 课程列表
      GET
    • 课程详情
      GET
    • 收藏课程
      POST
    • 取消收藏
      DELETE
    • 收藏列表
      GET
    • 阿里云视频播放授权
      GET
  • 评价模块
    • 评论列表
      GET
    • 发送评论
      POST
  • 名师大咖
    • 名师列表
      GET
    • 名师详情
      GET
  • 订单支付
    • 创建订单
      POST
    • 订单信息
      GET
    • 微信支付
      GET
    • 支付状态
      GET
    • 订单列表
      GET
  1. 课程模块

课程列表

GET
/api/edu/course/{page}/{limit}

请求参数

Path 参数
page
string 
当前页码
必需
示例值:
1
limit
string 
每页记录数
必需
示例值:
10

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://gmall-prod.atguigu.cn/skb/api/edu/course/1/10'

返回响应

🟢200成功
application/json
Body
success
boolean 
必需
code
integer 
必需
message
string 
必需
data
object 
必需
current
integer 
必需
total
integer 
必需
pages
integer 
必需
size
integer 
必需
hasPrevious
boolean 
必需
hasNext
boolean 
必需
items
array [object {14}] 
必需
示例
{
    "success": true,
    "code": 77,
    "message": "nulla",
    "data": {
        "current": 11,
        "total": 46,
        "pages": 75,
        "size": 94,
        "hasPrevious": false,
        "hasNext": true,
        "items": [
            {
                "id": "89",
                "teacherId": "78",
                "subjectId": "9",
                "subjectParentId": "92",
                "title": "极们层合际展目",
                "price": 54,
                "lessonNum": 84,
                "cover": "ea eu",
                "buyCount": 81,
                "viewCount": 64,
                "version": 70,
                "status": "magna irure et in voluptate",
                "gmtCreate": "adipisicing fugiat officia",
                "gmtModified": "ut"
            },
            {
                "id": "51",
                "teacherId": "33",
                "subjectId": "3",
                "subjectParentId": "52",
                "title": "情市变形上",
                "price": 20,
                "lessonNum": 68,
                "cover": "adipisicing labore nostrud irure",
                "buyCount": 34,
                "viewCount": 47,
                "version": 27,
                "status": "consequat",
                "gmtCreate": "consectetur reprehenderit do ut eiusmod",
                "gmtModified": "magna"
            },
            {
                "id": "39",
                "teacherId": "22",
                "subjectId": "5",
                "subjectParentId": "30",
                "title": "种那毛教",
                "price": 69,
                "lessonNum": 32,
                "cover": "mollit laboris Excepteur incididunt sit",
                "buyCount": 73,
                "viewCount": 49,
                "version": 49,
                "status": "dolor",
                "gmtCreate": "sed",
                "gmtModified": "nisi sint ut Lorem minim"
            },
            {
                "id": "50",
                "teacherId": "38",
                "subjectId": "42",
                "subjectParentId": "88",
                "title": "按把工阶安发导",
                "price": 79,
                "lessonNum": 18,
                "cover": "mollit Lorem",
                "buyCount": 83,
                "viewCount": 15,
                "version": 41,
                "status": "dolore reprehenderit in",
                "gmtCreate": "ullamco esse incididunt nulla in",
                "gmtModified": "ullamco et dolor"
            }
        ]
    }
}
修改于 2023-03-28 06:44:21
上一页
热门课程+名师大咖
下一页
课程详情
Built with