🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>获取登录用户的赠送物物品 ~~~[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": "错误信息" } ~~~