🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 信息 ~~~[api] post:/orderamount/info *int:id=默认值1#ID <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "amount": 100, "user_id": 1000, "create_date": 1542866918, "couList":[ {"id": 2, "ora_id": 1, "coupon_id": 5, "user_id": 1000, "create_date": 1542870826,…} ] } } <<< error ~~~ ## 列表 ~~~[api] post:/orderamount/getlist *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ {"id": 1, "amount": 100, "user_id": 1000, "create_date": 1542866918} ] } <<< error ~~~ ## 添加 ~~~[api] post:/orderamount/add *int:amount=100#金额 string:json=[{"coupon_id":1,"num":10},{"coupon_id":,"num":5}]#json字符串---订单电子券表ID和对应数量 <<< success { "code": 0, "info": "成功", "data":{ "amount": "200", "user_id": 1000, "create_date": 1542872382, "id": "2" } } <<< error ~~~ ## 编辑 ~~~[api] post:/orderamount/edit *int:id=默认值1#ID *int:amount=100#金额 string:json=[{"id":1,"num":10},{"id":,"num":5}]#json字符串---订单电子券表ID和对应数量 <<< success { "code": 0, "info": "成功", "data":{ "id": "1", "amount": "100" } } <<< error ~~~