文档
测试

海洋课堂分类

GET
https://oucschool.hqshop.club/api1.0/haiyangketangfenlei.php

接口描述

海洋课堂(点击首页海洋课堂后需要的数据)

请求参数

参数名
类型
描述
必填
total_id
int
总分类ID,可为空,为空时获取推荐的分类
可选

响应参数

参数名
类型
描述
必填
state
int
1为成功,0为失败
必填
message
string
无信息为成功,失败则返回相应文本
必填
categories
array
分类
必填
total_id
string
分类ID
必填
total_name
string
分类名字
必填
current
array
当前分类的海洋课堂
必填
indus_id
string
下属分类ID
必填
indus_name
string
下属分类名字
必填
imgpath
string
图片
必填

说明 / 示例

{ "state": "1", "message": "", "categories": [ { "total_id": "0", "total_name": "热门推荐" }, { "total_id": "1", "total_name": "海洋类" } ], "current": [ { "indus_id": "137", "indus_name": "学问海鲜", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20200418/-1-200418161400029556.png" }, { "indus_id": "145", "indus_name": "走进鱼类世界", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20200418/-1-200418161406012220.png" } ] }