UserController.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace App\Modules\Pc\Controllers;
  3. use App\Base\BaseController;
  4. use Faker\Provider\Image;
  5. class UserController extends BaseController
  6. {
  7. public function company()
  8. {
  9. return $this->ok();
  10. }
  11. public function fav()
  12. {
  13. return $this->ok([
  14. "total" => 1,
  15. "page_total" => 1,
  16. "list" => [
  17. [
  18. "id" => 1,
  19. "goods_id" => 1,
  20. "thumb" => Image::imageUrl(),
  21. "goods_name" => 1,
  22. ],
  23. ],
  24. ]);
  25. }
  26. public function favDel()
  27. {
  28. return $this->ok();
  29. }
  30. public function address()
  31. {
  32. return $this->ok([
  33. "total" => 1,
  34. "page_total" => 1,
  35. "list" => [
  36. [
  37. "id" => 1,
  38. "is_default" => 1,
  39. "name" => "收件人姓名",
  40. "address" => "余杭良睦路地铁鼎创中心**位置",
  41. "phone" => "15012341234",
  42. "location" => "浙江省杭州市余杭区",
  43. ],
  44. ],
  45. ]);
  46. }
  47. public function addressDel()
  48. {
  49. return $this->ok();
  50. }
  51. public function addressStore()
  52. {
  53. return $this->ok();
  54. }
  55. }