新版订单消耗系统

ExportController.php 589B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shensong
  5. * Date: 2021/12/23
  6. * Time: 17:45
  7. */
  8. namespace App\Http\Controllers\Api;
  9. use App\Services\OrderService;
  10. use Illuminate\Http\Request;
  11. class ExportController extends Controller
  12. {
  13. public function index(Request $request)
  14. {
  15. $page = $request->input('page', 1);
  16. $pageSize = $request->input('page_size', 20);
  17. $type = $request->input('type', null);
  18. list($res, $count) = OrderService::exportIndex($type, $page, $pageSize);
  19. return self::returnPageValue($res, $count, $pageSize, $page);
  20. }
  21. }