You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

  1. <?php
  2. namespace App\Controller\v3;
  3. use App\Controller\BaseController;
  4. class UserDeliveryAddressController extends BaseController
  5. {
  6. public function update()
  7. {
  8. return $this->success(true);
  9. }
  10. public function get()
  11. {
  12. return $this->success(
  13. [
  14. 'id' => 1,
  15. 'name' => '李小龙',
  16. 'sex' => '1',
  17. 'tel' => '15677455632',
  18. 'address' => '南宁市青秀区金湖北路59号地王国际商会中心',
  19. 'detailed_address' => 'A栋805',
  20. 'tag' => '同事家'
  21. ]
  22. );
  23. }
  24. public function delete()
  25. {
  26. return $this->success(true);
  27. }
  28. public function getList()
  29. {
  30. return $this->success([
  31. [
  32. 'id' => 1,
  33. 'name' => '李小龙',
  34. 'sex' => '1',
  35. 'tel' => '15677455632',
  36. 'address' => '南宁市青秀区金湖北路59号地王国际商会中心',
  37. 'detailed_address' => 'A栋805',
  38. 'tag' => '同事家'
  39. ],
  40. [
  41. 'id' => 2,
  42. 'name' => '李连杰',
  43. 'sex' => '1',
  44. 'tel' => '15677455632',
  45. 'address' => '南宁市青秀区金湖北路59号地王国际商会中心',
  46. 'detailed_address' => 'A栋805',
  47. 'tag' => '同事家'
  48. ],
  49. [
  50. 'id' => 3,
  51. 'name' => '郭富城',
  52. 'sex' => '1',
  53. 'tel' => '15677455632',
  54. 'address' => '南宁市青秀区金湖北路59号地王国际商会中心',
  55. 'detailed_address' => 'A栋805',
  56. 'tag' => '同事家'
  57. ]
  58. ]);
  59. }
  60. }