企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## 添加订单 ~~~[api] post:/order/add *int:member_id=1#会员 *int:score=1000#使用积分 *goods# 提交json 格式 '-1-退货 0-赠送,1-售出':[{"goods_id": 1,"price": 100,"state": 0, "count": 2,"coupon_list":[{"coupon_id":1,"num":2},{"coupon_id":2,"num":1}]},{"goods_id": 2,"price": 101,"state": 1, "count": 1,"coupon_list":[{"coupon_id":3,"num":3},{"coupon_id":4,"num":4}]}] *int:ora_id=1 #订单满送电子券表ID,没有传0 *string:order_coupon_list=[{"coupon_id":1,"num":2},{"coupon_id":1,"num":2}] # 订单满送电子券json 字符串 没有传空[{"coupon_id":1,"num":2},{"coupon_id":1,"num":2}] *array:use_coupon_list=[1,2,3] #订单使用了会员电子券ID数组 没有用传0 *int:balance=1000#使用帐户余额 string:remark=订单备注 # 订单备注 <<< success { "code": 0, "info": "成功", "data":{ "id": 1 } } <<< error ~~~ ## 撤销订单前验证是否使用 非自己制的券 ~~~[api] post:/order/cancelago *int:id=1# <<< success <<< error ~~~ ## 撤销订单 ~~~[api] post:/order/cancel *int:id=1# <<< success <<< error ~~~ ## 列表 ~~~[api] post:/order/list *int:page=1#页码 *int:limit=10#每页显示个数 int:member_id=1000# string:begin=2018-11-01# string:end=2018-11-03# <<< success <<< error ~~~ ## 订单 ~~~[api] post:/order/get *int:id=1# <<< success <<< error ~~~ ## 销售下单获取会员现金券列表 ~~~[api] post:/order/elecouponlist *int:page=1#页码 *int:limit=10#每页显示个数 *int:member_id=10#会员ID <<< success <<< error ~~~ ## 通过金额获取订单满送电子券列表 ~~~[api] post:/order/getorderelecoupon *int:page=1#页码 *int:limit=10#每页显示个数 *int:amount=10#金额 <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "amount": 100, "coupon_list":[ {"id": 7, "ora_id": 1, "coupon_id": 1, "user_id": 1000, "create_date": 1543038141,…}, {"id": 2, "ora_id": 1, "coupon_id": 5, "user_id": 1000, "create_date": 1542870826,…} ] } } <<< error ~~~ ## 再次打印订单 ~~~[api] post:/order/reprint *string:id=默认值#说明文字 <<< success ture成功 false 失败 <<< error ~~~ ## 同步到小算盘 ~~~[api] post:/order/synchro *id:id=默认值#ID <<< success ~~~