feat: 添加导出接口路由
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 2s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 2s
This commit is contained in:
@@ -68,7 +68,7 @@ class ProductCategoryRecommend
|
||||
$data = $this->getProductCategoryRecommendData();
|
||||
|
||||
// 导出
|
||||
return xlsx_writer($data, $schema, '产品列表' . date('YmdHis'));
|
||||
return xlsx_writer($data, $schema, '产品推荐列表' . date('YmdHis'));
|
||||
}
|
||||
// 获取要导出的推荐记录数据
|
||||
private function getProductCategoryRecommendData()
|
||||
|
||||
@@ -317,6 +317,9 @@ Route::group('v1', function () {
|
||||
// 推荐数据分页列表
|
||||
Route::get('index', 'ProductCategoryRecommend/index');
|
||||
|
||||
// 推荐数据导出
|
||||
Route::get('export', 'ProductCategoryRecommend/export');
|
||||
|
||||
// 推荐数据详情
|
||||
Route::get('read/:id', 'ProductCategoryRecommend/read');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user