2 changed files with 71 additions and 0 deletions
@ -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