OrderController.php 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Modules\Admin\Controllers\Admin;
  3. use App\Base\BaseController;
  4. use Faker\Provider\Image;
  5. class OrderController extends BaseController
  6. {
  7. public function paginate()
  8. {
  9. $data = $this->valid([
  10. "userinfo" => "",
  11. "status" => "",
  12. "page_size" => "",
  13. ]);
  14. return $this->ok([
  15. "total" => 1,
  16. "page_total" => 1,
  17. "list" => [
  18. [
  19. "id" => 1,
  20. "no" => "23456723",
  21. "goods_name" => "商品名称",
  22. "goods_sn" => "商品型号",
  23. "user_id" => 123,
  24. "email" => "user@example.com",
  25. "created_at" => "2023-05-05 15:44:14",
  26. ],
  27. ],
  28. ]);
  29. }
  30. public function del()
  31. {
  32. $data = $this->valid([
  33. "id" => "required",
  34. ]);
  35. return $this->ok();
  36. }
  37. }