文档
测试

我的收藏

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

请求参数

参数名
类型
描述
必填
openid
string
小程序openid
必填
type
int
1为海洋讲堂, 2为科普图书, 3为科普知识(可为空,为空时默认type为1)
可选

响应参数

参数名
类型
描述
必填
state
int
1为成功,0为失败
必填
message
string
无信息为成功,失败则返回相应文本
必填
my_favorite
array
我的收藏列表
必填
id
string
必填
favorite_id
string
收藏ID
必填
addtime
string
收藏时间
必填
name
string
收藏名字
必填
imgpath
string
收藏图片
必填
cid
string
收藏分类ID(type为3科普知识时无此项)
必填

说明 / 示例

{ "state": "1", "message": "", "my_favorite": [ { "id": "1", "favorite_id": "341", "addtime": "2020-04-22 22:02:50", "name": "1.1导读:海鲜营养是健康美容的宝库。", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20191125/-1-191125091722092075.jpg", "cid": "138" } ] }