소스 검색

refactor(core): 移除MacroPageMiddleware并重构分页逻辑

- 删除所有控制器中的MacroPageMiddleware中间件引用
- 移除MacroPageMiddleware类定义
- 在Core\Request中新增pageAndLimit方法实现分页参数获取
- 统一分页参数验证规则:页码>=1,每页数量1-200
- 更新路由配置移除MacroPageMiddleware中间件绑定
- 修改MakerBundle模板和测试用例适配新分页方式
runphp 3 달 전
부모
커밋
52362a56e0
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/Controller/LogController.php

+ 1 - 5
src/Controller/LogController.php

@@ -7,17 +7,13 @@ namespace SixShop\Balpay\Controller;
 use SixShop\Balpay\Entity\ExtensionBalpayLogEntity;
 use SixShop\Balpay\Enum\BalpayLogTypeEnum;
 use SixShop\Core\Request;
-use SixShop\System\Middleware\MacroPageMiddleware;
+
 use think\Response;
 use function SixShop\Core\page_response;
 use function SixShop\Core\success_response;
 
 class LogController
 {
-    protected array $middleware = [
-        MacroPageMiddleware::class
-    ];
-
     public function index(Request $request, ExtensionBalpayLogEntity $entity): Response
     {
         $data = $request->get([