|
@@ -980,8 +980,8 @@ photo | png/jpeg | 必须 | 图片
|
980
|
980
|
}
|
981
|
981
|
```
|
982
|
982
|
|
983
|
|
-### 分页获取订单评论
|
984
|
|
-- `GET /${order_type}/${order_id}/comments`
|
|
983
|
+### 获取某服务/产品评论
|
|
984
|
+- `GET /${order_type}/comments`
|
985
|
985
|
- `${order_type} 取值: product_order、maternity_matron_orders、housekeeper_orders`
|
986
|
986
|
- 参数: 无
|
987
|
987
|
- 响应:
|
|
@@ -1014,6 +1014,28 @@ photo | png/jpeg | 必须 | 图片
|
1014
|
1014
|
```
|
1015
|
1015
|
|
1016
|
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
|
+
|
1017
|
1039
|
### 修改订单状态
|
1018
|
1040
|
- `POST /${order_type}/status`
|
1019
|
1041
|
- 参数:
|
|
@@ -1069,7 +1091,7 @@ location | string | 可选 | 显示位置,top或bottom
|
1069
|
1091
|
"message": "信息不能为空!"
|
1070
|
1092
|
}
|
1071
|
1093
|
```
|
1072
|
|
-### 分页查询分类
|
|
1094
|
+### 分页查询分类服务
|
1073
|
1095
|
- `GET /classifies`
|
1074
|
1096
|
- 参数: 无
|
1075
|
1097
|
- 响应:
|
|
@@ -1118,6 +1140,69 @@ location | string | 可选 | 显示位置,top或bottom
|
1118
|
1140
|
}
|
1119
|
1141
|
```
|
1120
|
1142
|
|
|
1143
|
+### 查询分类服务首页
|
|
1144
|
+- `GET /classify/home`
|
|
1145
|
+- 参数: 无
|
|
1146
|
+- 响应:
|
|
1147
|
+
|
|
1148
|
+```
|
|
1149
|
+{
|
|
1150
|
+ "top": [
|
|
1151
|
+ {
|
|
1152
|
+ "id": 2,
|
|
1153
|
+ "server": "钟点/家庭保洁服务",
|
|
1154
|
+ "content": "钟点/家庭保洁服务的详情富文本",
|
|
1155
|
+ "photo": "https://wechat.sotype.com/storage/16359f72-b44a-11e8-96f8-529269fb1459.jpg"
|
|
1156
|
+ },
|
|
1157
|
+ {
|
|
1158
|
+ "id": 3,
|
|
1159
|
+ "server": "母婴产品",
|
|
1160
|
+ "content": "母婴产品的详情富文本",
|
|
1161
|
+ "photo": "https://wechat.sotype.com/storage/16359f72-b44a-11e8-96f8-529269fb1459.jpg"
|
|
1162
|
+ },
|
|
1163
|
+ {
|
|
1164
|
+ "id": 4,
|
|
1165
|
+ "server": "催乳及产后康复",
|
|
1166
|
+ "content": "催乳及产后康复的详情富文本",
|
|
1167
|
+ "photo": "https://wechat.sotype.com/storage/16359f72-b44a-11e8-96f8-529269fb1459.jpg"
|
|
1168
|
+ }
|
|
1169
|
+ ],
|
|
1170
|
+ "introduce": "<html>你好</html>",
|
|
1171
|
+ "bottom": {
|
|
1172
|
+ "id": 6,
|
|
1173
|
+ "server": "月嫂",
|
|
1174
|
+ "content": "月嫂的详情富文本",
|
|
1175
|
+ "photo": "https://wechat.sotype.com/storage/16359f72-b44a-11e8-96f8-529269fb1459.jpg"
|
|
1176
|
+ }
|
|
1177
|
+}
|
|
1178
|
+```
|
|
1179
|
+
|
|
1180
|
+### 修改/保存分类服务首页
|
|
1181
|
+- `POST /classify/home`
|
|
1182
|
+- 参数:
|
|
1183
|
+
|
|
1184
|
+参数 | 类型 | 可选 | 备注
|
|
1185
|
+----------- | ------ | ------------------ | --------
|
|
1186
|
+top1 | integer | 必须 | 分类服务id
|
|
1187
|
+top2 | integer | 必须 | 分类服务id
|
|
1188
|
+top3 | integer | 必须 | 分类服务id
|
|
1189
|
+bottom | integer | 必须 | 分类服务id
|
|
1190
|
+content | text | 必须 | 企业介绍
|
|
1191
|
+
|
|
1192
|
+- 响应:
|
|
1193
|
+
|
|
1194
|
+```
|
|
1195
|
+{
|
|
1196
|
+ "status": 0,
|
|
1197
|
+ "message": "保存成功"
|
|
1198
|
+}
|
|
1199
|
+```
|
|
1200
|
+```
|
|
1201
|
+{
|
|
1202
|
+ "status": -1,
|
|
1203
|
+ "message": "信息不能为空!"
|
|
1204
|
+}
|
|
1205
|
+```
|
1121
|
1206
|
|
1122
|
1207
|
## 产品接口
|
1123
|
1208
|
### 创建/修改产品
|
|
@@ -1256,6 +1341,60 @@ status | integer | 必须 | 状态:0.上架, 1.下架
|
1256
|
1341
|
```
|
1257
|
1342
|
|
1258
|
1343
|
|
|
1344
|
+### 查询产品首页
|
|
1345
|
+- `GET /product/home`
|
|
1346
|
+- 参数: 无
|
|
1347
|
+- 响应:
|
|
1348
|
+
|
|
1349
|
+```
|
|
1350
|
+{
|
|
1351
|
+ "data": [
|
|
1352
|
+ {
|
|
1353
|
+ "id": 2,
|
|
1354
|
+ "name": "奶瓶",
|
|
1355
|
+ "photo": "https://wechat.sotype.com/storage/gOtuHM3GvKva6x68N340DJuN6cX1oIfaAhWi8yoq.jpeg"
|
|
1356
|
+ },
|
|
1357
|
+ {
|
|
1358
|
+ "id": null,
|
|
1359
|
+ "name": null,
|
|
1360
|
+ "photo": null
|
|
1361
|
+ },
|
|
1362
|
+ {
|
|
1363
|
+ "id": null,
|
|
1364
|
+ "name": null,
|
|
1365
|
+ "photo": null
|
|
1366
|
+ }
|
|
1367
|
+ ],
|
|
1368
|
+ "status": 0
|
|
1369
|
+}
|
|
1370
|
+```
|
|
1371
|
+
|
|
1372
|
+### 修改/保存产品首页
|
|
1373
|
+- `POST /product/home`
|
|
1374
|
+- 参数:
|
|
1375
|
+
|
|
1376
|
+参数 | 类型 | 可选 | 备注
|
|
1377
|
+----------- | ------ | ------------------ | --------
|
|
1378
|
+top1 | integer | 必须 | 产品id
|
|
1379
|
+top2 | integer | 必须 | 产品id
|
|
1380
|
+top3 | integer | 必须 | 产品id
|
|
1381
|
+
|
|
1382
|
+- 响应:
|
|
1383
|
+
|
|
1384
|
+```
|
|
1385
|
+{
|
|
1386
|
+ "status": 0,
|
|
1387
|
+ "message": "保存成功"
|
|
1388
|
+}
|
|
1389
|
+```
|
|
1390
|
+```
|
|
1391
|
+{
|
|
1392
|
+ "status": -1,
|
|
1393
|
+ "message": "信息不能为空!"
|
|
1394
|
+}
|
|
1395
|
+```
|
|
1396
|
+
|
|
1397
|
+
|
1259
|
1398
|
## 保姆订单接口
|
1260
|
1399
|
### 创建/修改订单
|
1261
|
1400
|
- `POST /housekeeper_order/store`
|
|
@@ -1285,7 +1424,8 @@ status | integer | 可选,默认0 | 订单状态:0.待处理
|
1285
|
1424
|
"status": 0,
|
1286
|
1425
|
"message": "保存成功"
|
1287
|
1426
|
}
|
1288
|
|
-
|
|
1427
|
+```
|
|
1428
|
+```
|
1289
|
1429
|
{
|
1290
|
1430
|
"status": -1,
|
1291
|
1431
|
"message": "信息不能为空!"
|
|
@@ -1668,3 +1808,11 @@ status | integer | 可选,默认0 | 订单状态:0.待处
|
1668
|
1808
|
]
|
1669
|
1809
|
}
|
1670
|
1810
|
```
|
|
1811
|
+
|
|
1812
|
+### 自定义打赏金额接口
|
|
1813
|
+- `POST /reward/price`
|
|
1814
|
+- 参数:
|
|
1815
|
+
|
|
1816
|
+参数 | 类型 | 可选 | 备注
|
|
1817
|
+----------- | ------ | ------------------ | --------
|
|
1818
|
+price | double | 必须 | 打赏金额,单位元
|