>收藏某个内容
~~~[api]
post:/index.php/collection/Apicollection/member_submit
*string:sign_name=curriculum#记录的内容标识
*int:sign_id=1#收藏内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id
<<<
success
{
"err": 0,
"data": {
"id": 10,
"sign": "product",
"sign_id": 10,
"sign_info": {
"sign": "产品",
"title": "产品名称",
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
},
"userinfo": {
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取收藏列表
~~~[api]
get:/index.php/collection/Apicollection/getList
*string:sign_name=curriculum#记录的内容标识
*int:sign_id=1#收藏内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id
int:pagesize=10#每页显示个数
int:page=1#显示页码数
string:sort= id #排序字段
string:sort_type= asc#排序类型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"collection_total_count": 10,
"count": 1,
"data": [
{
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取当前登录会员收藏列表
~~~[api]
get:/index.php/collection/Apicollection/member_getList
*string:sign_name=curriculum#记录的内容标识
*int:sign_id=1#收藏内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id
int:pagesize=10#每页显示个数
int:page=1#显示页码数
string:sort= id #排序字段
string:sort_type= asc#排序类型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"data": [
{
"id": 10,
"addtime": 12345678910,
"sign": "product",
"sign_id": 10,
"sign_info": {
"sign": "产品",
"title": "产品名称",
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
},
"userinfo": {
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~