|
|
@@ -95,8 +95,8 @@ Route::group('api',function (){
|
|
|
|
|
|
// 商家
|
|
|
Route::group('store',function (){
|
|
|
- Route::get('nearby','api/:ver.Store/getNearbyCol'); // 附近的商户
|
|
|
- Route::get('/:id','api/:ver.Store/getStoreByID')->pattern(['id' => '\d+']); // 商户详情
|
|
|
+ Route::get('nearby','api/:ver.Stores/getNearbyCol'); // 附近的商户
|
|
|
+ Route::get('/:id','api/:ver.Stores/getStoreByID')->pattern(['id' => '\d+']); // 商户详情
|
|
|
});
|
|
|
|
|
|
// 商品
|
|
|
@@ -223,6 +223,14 @@ Route::group('api',function (){
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 店铺或摊点
|
|
|
+ Route::group('stores',function (){
|
|
|
+ // 摩的订单
|
|
|
+ Route::get('nearby', 'api/:ver.Stores/order'); // 我的服务单
|
|
|
+ Route::post('serve', 'api/:ver.Rescue/userServe'); // 购买服务
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
// 摩的
|
|
|
Route::group('taxi',function (){
|
|
|
// 摩的订单
|
|
|
@@ -576,16 +584,17 @@ Route::group('manage',function (){
|
|
|
Route::resource('rescue','admin/store.Rescue');
|
|
|
|
|
|
// 门店管理
|
|
|
- Route::group('store',function () {
|
|
|
+ Route::group('stores',function () {
|
|
|
|
|
|
// 批量操作
|
|
|
- Route::rule('plectron','admin/store.Store/plectron','PUT|DELETE');
|
|
|
+ Route::rule('plectron','admin/store.Stores/plectron','PUT|DELETE');
|
|
|
// 恢复商户
|
|
|
- Route::post('/:id/restore', 'admin/store.Store/restore');
|
|
|
+ Route::post('/:id/restore', 'admin/store.Stores/restore');
|
|
|
|
|
|
});
|
|
|
+
|
|
|
// 技能管理资源路由
|
|
|
- Route::resource('store','admin/store.Store');
|
|
|
+ Route::resource('store','admin/store.Stores');
|
|
|
|
|
|
// 接单管理
|
|
|
Route::group('mission',function () {
|