💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 可用电子券列表 ~~~[api] post:/orderelecoupon/couponlist *int:ora_id=1 #订单满减ID *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ {"id": 9, "type": 2, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 8, "type": 2, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 7, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 6, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 4, "type": 1, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…}, {"id": 3, "type": 1, "title": "修改title", "num": 20, "inventory": 0,…}, {"id": 2, "type": 1, "title": "22222222", "num": 20, "inventory": 0,…}, {"id": 1, "type": 2, "title": "测试电子券测试电子券测试", "num": 20, "inventory": 0,…} ] } <<< error ~~~ ## 列表 ~~~[api] post:/orderelecoupon/getlist *int:ora_id=1 #订单满减ID *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ { "id": 2, "ora_id": 1, "coupon_id": 5, "user_id": 1000, "create_date": 1542870826, "num": 5, "coupon_title": "测试电子券测试电子券测试", "type": 1, "deduction": "10.00" } ] } <<< error ~~~ ## 添加 ~~~[api] post:/orderelecoupon/add *int:ora_id=1 #订单满减ID *array:coupon_ids= array#电子券ID数组 <<< success { "code": 0, "info": "成功", "data": true } <<< error ~~~ ## 删除 ~~~[api] post:/orderelecoupon/del *int:id=默认值1#ID <<< success { "code": 0, "info": "成功", "data": 1 } <<< error ~~~