|
@@ -60,7 +60,7 @@ photo | png/jpeg | 必须 | 图片
|
60
|
60
|
- 参数:
|
61
|
61
|
参数 | 类型 | 可选 | 备注
|
62
|
62
|
----------- | ------ | ------ | --------
|
63
|
|
-title | string | 必须 | 订单评论标题
|
|
63
|
+title | string | 可选 | 订单评论标题
|
64
|
64
|
content | text | 必须 | 评论内容
|
65
|
65
|
|
66
|
66
|
- 响应:
|
|
@@ -77,38 +77,6 @@ content | text | 必须 | 评论内容
|
77
|
77
|
}
|
78
|
78
|
```
|
79
|
79
|
|
80
|
|
-### 分页获取订单评论
|
81
|
|
-- `GET /api/${order_type}/${order_id}/comments`
|
82
|
|
-- 参数: 无
|
83
|
|
-- 响应:
|
84
|
|
-
|
85
|
|
-```
|
86
|
|
-{
|
87
|
|
- "total": 50,
|
88
|
|
- "per_page": 15,
|
89
|
|
- "current_page": 1,
|
90
|
|
- "last_page": 4,
|
91
|
|
- "first_page_url": "http://laravel.app?page=1",
|
92
|
|
- "last_page_url": "http://laravel.app?page=4",
|
93
|
|
- "next_page_url": "http://laravel.app?page=2",
|
94
|
|
- "prev_page_url": null,
|
95
|
|
- "path": "http://laravel.app",
|
96
|
|
- "from": 1,
|
97
|
|
- "to": 15,
|
98
|
|
- "data":[{
|
99
|
|
- "id": 123456,
|
100
|
|
- "wechat_id": "wechat_id",
|
101
|
|
- "title": "测试标题",
|
102
|
|
- "content": "测试内容",
|
103
|
|
- "show": 0, // 预留字段, 0可视, 1隐藏
|
104
|
|
- "created_at": "2018-02-16 11:10:56",
|
105
|
|
- "updated_at": "2018-02-16 12:00:51"
|
106
|
|
- },
|
107
|
|
- ...
|
108
|
|
- ]
|
109
|
|
-}
|
110
|
|
-```
|
111
|
|
-
|
112
|
80
|
### 我的订单
|
113
|
81
|
- `GET /api/my/orders`
|
114
|
82
|
- 参数:
|
|
@@ -980,61 +948,6 @@ photo | png/jpeg | 必须 | 图片
|
980
|
948
|
}
|
981
|
949
|
```
|
982
|
950
|
|
983
|
|
-### 获取某服务/产品评论
|
984
|
|
-- `GET /${order_type}/comments`
|
985
|
|
- - `${order_type} 取值: product_order、maternity_matron_orders、housekeeper_orders`
|
986
|
|
-- 参数: 无
|
987
|
|
-- 响应:
|
988
|
|
-
|
989
|
|
-```
|
990
|
|
-{
|
991
|
|
- "total": 50,
|
992
|
|
- "per_page": 15,
|
993
|
|
- "current_page": 1,
|
994
|
|
- "last_page": 4,
|
995
|
|
- "first_page_url": "http://laravel.app?page=1",
|
996
|
|
- "last_page_url": "http://laravel.app?page=4",
|
997
|
|
- "next_page_url": "http://laravel.app?page=2",
|
998
|
|
- "prev_page_url": null,
|
999
|
|
- "path": "http://laravel.app",
|
1000
|
|
- "from": 1,
|
1001
|
|
- "to": 15,
|
1002
|
|
- "data":[{
|
1003
|
|
- "id": 123456,
|
1004
|
|
- "wechat_id": "wechat_id",
|
1005
|
|
- "title": "测试标题",
|
1006
|
|
- "content": "测试内容",
|
1007
|
|
- "show": 0, // 预留字段, 0可视, 1隐藏
|
1008
|
|
- "created_at": "2018-02-16 11:10:56",
|
1009
|
|
- "updated_at": "2018-02-16 12:00:51"
|
1010
|
|
- },
|
1011
|
|
- ...
|
1012
|
|
- ]
|
1013
|
|
-}
|
1014
|
|
-```
|
1015
|
|
-
|
1016
|
|
-
|
1017
|
|
-### 获取具体某订单评论
|
1018
|
|
-- `GET /${order_type}/${order_id}/comments`
|
1019
|
|
- - `${order_type} 取值: product_order、maternity_matron_orders、housekeeper_orders`
|
1020
|
|
-- 参数: 无
|
1021
|
|
-- 响应:
|
1022
|
|
-
|
1023
|
|
-```
|
1024
|
|
-{
|
1025
|
|
- "status": 0,
|
1026
|
|
- "data":{
|
1027
|
|
- "id": 123456,
|
1028
|
|
- "wechat_id": "wechat_id",
|
1029
|
|
- "title": "测试标题",
|
1030
|
|
- "content": "测试内容",
|
1031
|
|
- "show": 0, // 预留字段, 0可视, 1隐藏
|
1032
|
|
- "created_at": "2018-02-16 11:10:56",
|
1033
|
|
- "updated_at": "2018-02-16 12:00:51"
|
1034
|
|
- }
|
1035
|
|
-}
|
1036
|
|
-```
|
1037
|
|
-
|
1038
|
951
|
### 修改订单金额
|
1039
|
952
|
- `POST /${order_type}/price`
|
1040
|
953
|
- 参数:
|
|
@@ -1362,6 +1275,8 @@ address | string | 必须 | 服务地址
|
1362
|
1275
|
contact | string | 必须 | 联系人
|
1363
|
1276
|
phone | string | 必须 | 联系电话
|
1364
|
1277
|
price | double | 可选 | 订单价格
|
|
1278
|
+comment_id | integer | 可选 | 评论id
|
|
1279
|
+comment | string | 可选 | 评论内容
|
1365
|
1280
|
status | integer | 可选,默认0 | 订单状态:0.待处理 1.待支付 2.已支付 3.关闭 -1.支付失败
|
1366
|
1281
|
|
1367
|
1282
|
- 响应:
|
|
@@ -1420,6 +1335,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处理
|
1420
|
1335
|
"contact": "联系人",
|
1421
|
1336
|
"phone": "13800138000",
|
1422
|
1337
|
"price": 12.3,
|
|
1338
|
+ "comment_id": 1,
|
|
1339
|
+ "comment": 不错"",
|
1423
|
1340
|
"photo": "https://.....png", //图片位置
|
1424
|
1341
|
"status": 0, // 0.待处理 1.商家受理 2.待支付 3.已支付
|
1425
|
1342
|
"created_at": "2018-02-16 11:10:56",
|
|
@@ -1459,6 +1376,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处理
|
1459
|
1376
|
"contact": "联系人",
|
1460
|
1377
|
"phone": "13800138000",
|
1461
|
1378
|
"price": 12.3,
|
|
1379
|
+ "comment_id": 1,
|
|
1380
|
+ "comment": 不错"",
|
1462
|
1381
|
"photo": "https://.....png", //图片位置
|
1463
|
1382
|
"status": 0, // 0.待处理 1.商家受理 2.待支付 3.已支付
|
1464
|
1383
|
"created_at": "2018-02-16 11:10:56",
|
|
@@ -1503,6 +1422,8 @@ classify | integer | 必须 | 分类id
|
1503
|
1422
|
"contact": "联系人",
|
1504
|
1423
|
"phone": "13800138000",
|
1505
|
1424
|
"price": 12.3,
|
|
1425
|
+ "comment_id": 1,
|
|
1426
|
+ "comment": 不错"",
|
1506
|
1427
|
"photo": "https://.....png", //图片位置
|
1507
|
1428
|
"status": 0, // 0.待处理 1.商家受理 2.待支付 3.已支付
|
1508
|
1429
|
"created_at": "2018-02-16 11:10:56",
|
|
@@ -1530,6 +1451,8 @@ address | string | 必须 | 服务地址
|
1530
|
1451
|
contact | string | 必须 | 联系人
|
1531
|
1452
|
phone | string | 必须 | 联系电话
|
1532
|
1453
|
price | double | 可选 | 订单价格
|
|
1454
|
+comment_id | integer | 可选 | 评论id
|
|
1455
|
+comment | string | 可选 | 评论内容
|
1533
|
1456
|
photo | string | 可选 | 订单显示图片
|
1534
|
1457
|
status | integer | 可选,默认0 | 订单状态:0.待处理 1.商家受理 2.待支付 3.已支付
|
1535
|
1458
|
|
|
@@ -1623,6 +1546,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处
|
1623
|
1546
|
"contact": "联系人",
|
1624
|
1547
|
"phone": "13800138000",
|
1625
|
1548
|
"price": 12.3,
|
|
1549
|
+ "comment_id": 1,
|
|
1550
|
+ "comment": 不错"",
|
1626
|
1551
|
"status": 0, // 订单状态:0.待处理 1.商家受理 2.待支付 3.已支付
|
1627
|
1552
|
"photo": "https://.....png", //图片位置
|
1628
|
1553
|
"created_at": "2018-02-16 11:10:56",
|
|
@@ -1650,6 +1575,8 @@ contact | string | 必须 | 联系人
|
1650
|
1575
|
phone | string | 必须 | 联系电话
|
1651
|
1576
|
photo | string | 可选 | 订单显示图片
|
1652
|
1577
|
price | double | 可选 | 订单价格
|
|
1578
|
+comment_id | integer | 可选 | 评论id
|
|
1579
|
+comment | string | 可选 | 评论内容
|
1653
|
1580
|
status | integer | 可选,默认0 | 订单状态:0.待处理 1.商家受理 2.待支付 3.已支付
|
1654
|
1581
|
|
1655
|
1582
|
- 响应:
|
|
@@ -1707,6 +1634,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处
|
1707
|
1634
|
"adress": "地址",
|
1708
|
1635
|
"contact": "联系人",
|
1709
|
1636
|
"phone": "13800138000",
|
|
1637
|
+ "comment_id": 1,
|
|
1638
|
+ "comment": 不错"",
|
1710
|
1639
|
"photo": "https://.....png", //图片位置
|
1711
|
1640
|
"status": 0, // 0.待处理 1.商家受理 2.待支付 3.已支付
|
1712
|
1641
|
"created_at": "2018-02-16 11:10:56",
|
|
@@ -1746,6 +1675,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处
|
1746
|
1675
|
"adress": "地址",
|
1747
|
1676
|
"contact": "联系人",
|
1748
|
1677
|
"phone": "13800138000",
|
|
1678
|
+ "comment_id": 1,
|
|
1679
|
+ "comment": 不错"",
|
1749
|
1680
|
"photo": "https://.....png", //图片位置
|
1750
|
1681
|
"status": 0, // 0.待处理 1.商家受理 2.待支付 3.已支付
|
1751
|
1682
|
"created_at": "2018-02-16 11:10:56",
|