refactor: 路由调整
This commit is contained in:
@@ -112,6 +112,39 @@ Route::group('v1', function () {
|
|||||||
|
|
||||||
// 产品模块
|
// 产品模块
|
||||||
Route::group('product', function () {
|
Route::group('product', function () {
|
||||||
|
// 产品分页列表
|
||||||
|
Route::get('index', 'Product/index');
|
||||||
|
|
||||||
|
// 产品详情
|
||||||
|
Route::get('read/:id', 'Product/read');
|
||||||
|
|
||||||
|
// 产品更新
|
||||||
|
Route::put('update/:id', 'Product/update');
|
||||||
|
|
||||||
|
// 上/下架操作
|
||||||
|
Route::get('updown_shelves/:id', 'Product/updownShelves');
|
||||||
|
|
||||||
|
// 产品删除
|
||||||
|
Route::delete('delete/:id', 'Product/delete');
|
||||||
|
|
||||||
|
// 产品属性管理
|
||||||
|
Route::group('attr', function () {
|
||||||
|
// 属性列表
|
||||||
|
Route::get('index', 'ProductAttr/index');
|
||||||
|
|
||||||
|
// 属性详情
|
||||||
|
Route::get('read/:id', 'ProductAttr/read');
|
||||||
|
|
||||||
|
// 属性新增
|
||||||
|
Route::post('save', 'ProductAttr/save');
|
||||||
|
|
||||||
|
// 属性更新
|
||||||
|
Route::put('update/:id', 'ProductAttr/update');
|
||||||
|
|
||||||
|
// 属性删除
|
||||||
|
Route::delete('delete/:id', 'ProductAttr/delete');
|
||||||
|
});
|
||||||
|
|
||||||
// 产品分类
|
// 产品分类
|
||||||
Route::group('category', function () {
|
Route::group('category', function () {
|
||||||
// 分类列表
|
// 分类列表
|
||||||
@@ -135,45 +168,6 @@ Route::group('v1', function () {
|
|||||||
// 分类删除
|
// 分类删除
|
||||||
Route::delete('delete/:id', 'ProductCategory/delete');
|
Route::delete('delete/:id', 'ProductCategory/delete');
|
||||||
});
|
});
|
||||||
|
|
||||||
// 产品属性
|
|
||||||
Route::group('attr', function () {
|
|
||||||
// 属性列表
|
|
||||||
Route::get('index', 'ProductAttr/index');
|
|
||||||
|
|
||||||
// 属性详情
|
|
||||||
Route::get('read/:id', 'ProductAttr/read');
|
|
||||||
|
|
||||||
// 属性新增
|
|
||||||
Route::post('save', 'ProductAttr/save');
|
|
||||||
|
|
||||||
// 属性更新
|
|
||||||
Route::put('update/:id', 'ProductAttr/update');
|
|
||||||
|
|
||||||
// 属性删除
|
|
||||||
Route::delete('delete/:id', 'ProductAttr/delete');
|
|
||||||
});
|
|
||||||
|
|
||||||
// 产品分页列表
|
|
||||||
Route::get('index', 'Product/index');
|
|
||||||
|
|
||||||
// 产品详情
|
|
||||||
Route::get('read/:id', 'Product/read');
|
|
||||||
|
|
||||||
// 产品新增
|
|
||||||
Route::post('save', 'Product/save');
|
|
||||||
|
|
||||||
// 产品更新
|
|
||||||
Route::put('update/:id', 'Product/update');
|
|
||||||
|
|
||||||
// 上/下架操作
|
|
||||||
Route::get('updown_shelves/:id', 'Product/updownShelves');
|
|
||||||
|
|
||||||
// 产品删除
|
|
||||||
Route::delete('delete/:id', 'Product/delete');
|
|
||||||
|
|
||||||
// 产品导出
|
|
||||||
Route::get('export', 'Product/export');
|
|
||||||
});
|
});
|
||||||
})->prefix('v1.');
|
})->prefix('v1.');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user