feat: 产品相关接口
This commit is contained in:
@@ -109,6 +109,30 @@ Route::group('v1', function () {
|
||||
Route::delete('delete/:id', 'ArticleTrash/delete');
|
||||
});
|
||||
});
|
||||
|
||||
// 产品模块
|
||||
Route::group('product', function () {
|
||||
// 产品分页列表
|
||||
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.');
|
||||
|
||||
Route::miss(function() {
|
||||
|
||||
Reference in New Issue
Block a user