💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 列表 ~~~[api] post:/memberelecoupon/list *int:page= 1#页码数 *int:limit= 12#每页显示个数 *int:level_id= 1#会员等级id <<< success { "code": 0, "info": "成功", "data":[ { "id": 2, "coupon_id": 2, "num": 1, "level_id": 1, "coupon_title": "22222222", "type": 1, "deduction": "10.00" }, {"id": 1, "coupon_id": 1, "num": 1, "level_id": 1, "coupon_title": "测试电子券测试电子券测试测试电子券测试电子券测试",…} ] } <<< error ~~~ ## 添加 ~~~[api] post:/memberelecoupon/add *array:coupon_id= array#电子券ID数组 *int:level_id= 1#会员等级id <<< success { "code": 0, "info": "成功", "data":{ "name": "权益7", "num": "6", "term_validity": "2018-11-11", "type": "2", "mlevel_id": "1", "create_date": "2018-10-26 10:00:47", "id": "6" } } <<< error ~~~ ## 编辑 ~~~[api] post:/memberelecoupon/edit *string:json= id,num 键值对数组转成的json#id,num 键值对数组转成的json <<< success { "code": 0, "info": "成功", "data":{ "name": "权益7", "num": "6", "term_validity": "2018-11-11", "type": "2", "mlevel_id": "1", "create_date": "2018-10-26 10:00:47", "id": "6" } } <<< error ~~~ ## 删除 ~~~[api] post:/memberelecoupon/del *int:id= 1#会员等级电子券ID <<< success { "code": 0, "info": "成功", "data": 1 } <<< error ~~~ ## 获取适用等级电子券列表 ~~~[api] post:/memberelecoupon/couponlist *int:page= 1#页码数 *int:limit= 12#每页显示个数 *int:level_id= 1#会员等级id <<< success { "code": 0, "info": "成功", "data":[ {"id": 5, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 4, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 2, "type": 1, "title": "22222222", "num": 20, "inventory": 0,…} ] } <<< error ~~~