🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 信息 ~~~[api] post:/sendelecoupon/info *int:id=默认值1#ID <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "nums": 445, "user_id": 1000, "create_date": 1543026681, "coupon_id": 1, "state": 1, "shop_ids": "0", "tag_ids": "0", "level_ids": "0", "send_num": 445, "shopList": "全部", "tagList": "全部", "user_name": "老板" } } <<< error ~~~ ## 列表 ~~~[api] post:/sendelecoupon/getlist *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ { "id": 1, "nums": 445, "user_id": 1000, "create_date": 1543026681, "coupon_id": 1, "state": 1, "shop_ids": "0", "tag_ids": "0", "level_ids": "0", "send_num": 445, "coupon_title": "测试电子券测试电子券测试" } ] } <<< error ~~~ ## 添加 ~~~[api] post:/sendelecoupon/add *string:shop_ids= 1,2,3 #门店ID串,全选传 0 *string:tag_ids= 1,2,3 #标签ID串,全选传 0 *string:level_ids= 1,2,3 #会员等级ID串,全选传 0 *int:coupon_id=1#电子券ID *int:is_all_send=0# 是否微信通知,0-否,1-是 <<< success { "code":0, "info":"成功", "data": { "shop_ids":"0", "tag_ids":"0", "level_ids":"0", "coupon_id":"1", "nums":460, "user_id":1000, "create_date":1543040536, "id":"4" } } <<< error ~~~ ## 获取发送人数 ~~~[api] post:/sendelecoupon/getnum *string:shop_ids= 1,2,3 #门店ID串,全选传 0 *string:tag_ids= 1,2,3 #标签ID串,全选传 0 *string:level_ids= 1,2,3 #会员等级ID串,全选传 0 <<< success { "code": 0, "info": "成功", "data":{ "num": 445, "shopList": "全部", "tagList": "全部", "levelList": "全部" } } <<< error ~~~ ## 获取优惠券列表 ~~~[api] post:/sendelecoupon/couponlist *string:level_ids= 1,2,3 #会员等级ID串,全选传 0 *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ {"id": 5, "title": "测试电子券测试电子券测试", "type": 1, "deduction": "10.00"…}, {"id": 4, "title": "测试电子券测试电子券测试", "type": 1, "deduction": "10.00"…}, {"id": 2, "title": "22222222", "type": 1, "deduction": "10.00"…} ] } <<< error ~~~