作者 何书鹏

包裹接口

... ... @@ -20,7 +20,61 @@ class OrderExpress extends Base
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=order_id, type=inter, required=true, description="订单ID")
*
* @ApiReturn()
* @ApiReturn({
"code": 1,
"msg": "包裹列表",
"time": "1609395352",
"data": [{
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}]
})
*/
public function index()
{
... ... @@ -39,7 +93,61 @@ class OrderExpress extends Base
* @ApiParams (name=id, type=inter, required=true, description="包裹ID")
* @ApiParams (name=order_id, type=inter, required=true, description="订单ID")
*
* @ApiReturn()
* @ApiReturn({
"code": 1,
"msg": "包裹详情",
"time": "1609395352",
"data": {
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}
})
*/
public function detail()
{
... ...
... ... @@ -3247,7 +3247,61 @@
<div class="tab-pane" id="sample41">
<div class="row">
<div class="col-md-12">
<pre id="sample_response41"></pre>
<pre id="sample_response41">{
"code": 1,
"msg": "包裹列表",
"time": "1609395352",
"data": [{
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}]
}</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -3395,7 +3449,61 @@
<div class="tab-pane" id="sample42">
<div class="row">
<div class="col-md-12">
<pre id="sample_response42"></pre>
<pre id="sample_response42">{
"code": 1,
"msg": "包裹详情",
"time": "1609395352",
"data": {
"id": 4, //包裹ID
"user_id": 2,
"order_id": 42, //订单ID
"express_name": "顺丰速运", //物流公司
"express_code": "SF", //物流公司编号
"express_no": "123456", //物流单号
"createtime": 1609395121,
"log": [],
"item": [{ //订单商品
"id": 46, //订单商品ID
"user_id": 2,
"order_id": 42,
"goods_id": 2, //商品ID
"goods_type": "normal",
"goods_sku_price_id": 2,
"activity_id": 0,
"activity_type": null,
"item_goods_sku_price_id": 0,
"goods_sku_text": null,
"goods_title": "测试商品2", //商品名称
"goods_image": "https://yixiaoxian.qiniu.broing.cn/uploads/20201222/FrL-L9PaG1w26iB0ah64UAFBiuqN.png", //商品图片
"goods_original_price": "1000.00", //原价
"discount_fee": "0.00", //折扣价
"goods_price": "0.02", //现价
"goods_num": 1, //购买数量
"dispatch_status": 1, //发货状态:0=未发货,1=已发货,2=已收货
"dispatch_fee": "8.00", //发货费用
"dispatch_type": "express", //发货方式:express=物流
"dispatch_id": 1, //发货模板ID
"store_id": 0,
"aftersale_status": 0,
"comment_status": 0,
"refund_status": 0,
"refund_fee": null,
"refund_msg": null,
"express_name": "顺丰速运", //快递公司
"express_code": "SF", //快递公司编号
"express_no": "123456", //快递单号
"ext": "[]",
"status_code": "noget",
"status_name": "待收货",
"status_desc": "等待买家收货",
"btns": [
"get",
"aftersale"
],
"ext_arr": []
}]
}
}</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -9804,7 +9912,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-12-31 11:54:19 </div>
Generated on 2020-12-31 14:28:56 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">My Website</a>
</div>
... ...