文档
测试

随便看看

GET
/app/wtCourse/getRandomView

请求参数

参数名
类型
描述
必填
classId
int
课程分类ID
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 0 成功 其他失败
必填
msg
String
响应信息
必填
obj
Array
返回数据
必填
课程列表
Array
课程列表
必填
id
int
课程id
必填
classId
int
分类id
必填
name
String
课程名称
必填
img
String
封面
必填
content
String
课程介绍
必填
duration
int
时长(秒)
必填
status
int
状态:0取消 1正常
必填
isFree
int
是否免费 0不免费 1免费
必填
cost
float
费用 免费为0
必填
frequency
int
购买次数
必填
addtime
String
添加时间
必填
isGiveGift
int
购买课程是否赠送礼品 0不送 1送
必填
activityRemark
String
赠送备注
必填
isRemHome
int
是否推荐到首页 0否 1是
必填
qqNumber
String
课程QQ群号 购买课程后才可看到
必填
description
String
详情页描述
必填
isGiveVip
int
购买课程是否赠送VIP 0 不赠送 1 赠送
必填
giveVipDays
int
赠送vip天数
必填
isVipFree
int
此课程VIP是否可免费看 0 不免费 1 免费看
必填
countBuyNum
int
购买人数
必填
buyCount
int
必填
collected
boolean
是否收藏
必填

说明 / 示例

## `返回示例 - 带注释` ```java { "code": 0, "msg": "请求成功", "obj": [{ "id": 118, "classId": 168, "name": "2021年下小学笔试通关班两科 ", "img": "http://cunchu.yudingketang.com//16222806108962609.jpg", "content": "网课视频+模拟考场+历年真题,电脑题库+手机题库,自动更新考前预测题,用过为止 共75节课时", "duration": "", "status": "1", "isFree": 0, "cost": 199, "frequency": 0, "addtime": "2021-04-03 17:27:39", "isGiveGift": 0, "activityRemark": "纸质版重点教材", "isRemHome": 1, "qqNumber": "32143326", "description": "<p><img style='width:100%;height:auto' style='width:100%;height:auto' style='width:100%;height:auto' style='width:100%;height:auto' class=\"wscnph\" src=\"http://cunchu.yudingketang.com/16227972209723457.jpg\" /></p>", "isGiveVip": 0, "giveVipDays": 0, "isVipFree": 0, "countBuyNum": 0, "buyCount": 0, "collected": false }] } ```