>獲取登錄用戶的贈送物物品
~~~[api]
get:/index.php/giving/Apigiving/member_get_give
string:model= #贈送的模塊名,課程(curriculum),文章(helper),會員 (member)等
string:table= #所在的數據表,會員組(member_group,課程(curriculum_info)
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
<<<
success
{
"err": 0,
"count": 1,
"data": [
{
"id": 10,
"addtime": 123456789,
"usetime": 12345678910,
"sign": 'skdfjskdfsdflal',
"give_info": {
"id": 10,
"model": "curriculum",
"title": "初級會員組",
"price": 100,
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"give_userInfo": {
"id": 10,
"name": "小怪獸0",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"use_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/giving/Apigiving/member_get_give_code
string:give_sign= 1#贈送商品的標識
<<<
success
{
"err": 0,
"data": {
"code": "X-X-X-X",
"addtime": 123456789,
"usetime": 12345678910,
"issue": 0,
"give_info": {
"id": 10,
"model": "curriculum",
"title": "初級會員組",
"price": 100,
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"give_userInfo": {
"id": 10,
"name": "小怪獸0",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"use_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/giving/Apigiving/member_get_receive
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
<<<
success
{
"err": 0,
"data": [
{
"code": "x-x-x-x",
"overtime": 123456789,
"usetime": 12345678910,
"give_info": {
"title": "初級會員組",
"price": 100,
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"give_userInfo": {
"id": 10,
"name": "小怪獸0",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"use_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/giving/Apigiving/member_submit_code
*string:code=xxxxx #兌換碼字符串
<<<
success
{
"err": 0,
"data":
{
"title": "初級會員組",
"price": 100,
"describe": "描述",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~