Browse Source
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
# Conflicts: # config/routes.phpmaster
4 changed files with 114 additions and 39 deletions
-
76app/Controller/v3/OnlineOrderController.php
-
6app/Controller/v3/ShopCartController.php
-
67app/Controller/v3/UserDeliveryAddressController.php
-
4config/routes.php
@ -0,0 +1,67 @@ |
|||||
|
<?php |
||||
|
|
||||
|
|
||||
|
namespace App\Controller\v3; |
||||
|
|
||||
|
use App\Controller\BaseController; |
||||
|
|
||||
|
class UserDeliveryAddressController extends BaseController |
||||
|
{ |
||||
|
public function update() |
||||
|
{ |
||||
|
return $this->success(true); |
||||
|
} |
||||
|
|
||||
|
public function get() |
||||
|
{ |
||||
|
return $this->success( |
||||
|
[ |
||||
|
'id' => 1, |
||||
|
'name' => '李小龙', |
||||
|
'sex' => '1', |
||||
|
'tel' => '15677455632', |
||||
|
'address' => '南宁市青秀区金湖北路59号地王国际商会中心', |
||||
|
'detailed_address' => 'A栋805', |
||||
|
'tag' => '同事家' |
||||
|
] |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
public function delete() |
||||
|
{ |
||||
|
return $this->success(true); |
||||
|
} |
||||
|
|
||||
|
public function getList() |
||||
|
{ |
||||
|
return $this->success([ |
||||
|
[ |
||||
|
'id' => 1, |
||||
|
'name' => '李小龙', |
||||
|
'sex' => '1', |
||||
|
'tel' => '15677455632', |
||||
|
'address' => '南宁市青秀区金湖北路59号地王国际商会中心', |
||||
|
'detailed_address' => 'A栋805', |
||||
|
'tag' => '同事家' |
||||
|
], |
||||
|
[ |
||||
|
'id' => 2, |
||||
|
'name' => '李连杰', |
||||
|
'sex' => '1', |
||||
|
'tel' => '15677455632', |
||||
|
'address' => '南宁市青秀区金湖北路59号地王国际商会中心', |
||||
|
'detailed_address' => 'A栋805', |
||||
|
'tag' => '同事家' |
||||
|
], |
||||
|
[ |
||||
|
'id' => 3, |
||||
|
'name' => '郭富城', |
||||
|
'sex' => '1', |
||||
|
'tel' => '15677455632', |
||||
|
'address' => '南宁市青秀区金湖北路59号地王国际商会中心', |
||||
|
'detailed_address' => 'A栋805', |
||||
|
'tag' => '同事家' |
||||
|
] |
||||
|
]); |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue