CartController.php 665 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Modules\Mini\Controllers;
  3. use App\Base\BaseController;
  4. use Faker\Provider\Image;
  5. class CartController extends BaseController
  6. {
  7. public function index()
  8. {
  9. return $this->ok([
  10. "total" => 1,
  11. "page_total" => 1,
  12. "list" => [
  13. [
  14. "id" => 1,
  15. "goods_id" => 1,
  16. "thumb" => Image::imageUrl(),
  17. "goods_name" => 1,
  18. "sn" => "型号-xxxx",
  19. "count" => 1,
  20. ],
  21. ],
  22. ]);
  23. }
  24. public function del()
  25. {
  26. return $this->ok();
  27. }
  28. }