|
@@ -9,19 +9,33 @@ use hg\apidoc\annotation\Method;
|
|
|
use hg\apidoc\annotation\Param;
|
|
|
use hg\apidoc\annotation\Returned;
|
|
|
|
|
|
-
|
|
|
+/**
|
|
|
+ * 用户收货地址
|
|
|
+ * Class User
|
|
|
+ * @package app\data\controller\api
|
|
|
+ */
|
|
|
class User extends Auth
|
|
|
{
|
|
|
protected $noNeedLogin=[];
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @Title("地址列表")
|
|
|
+ */
|
|
|
public function address_list(){
|
|
|
$user= $this->getUser();
|
|
|
$list = DataUserAddress::mk()->where('uuid',$user['id'])->where('deleted',1)->paginate();
|
|
|
$this->success('我的地址列表',$list);
|
|
|
}
|
|
|
/**
|
|
|
+ * @Title ("添加收货地址")
|
|
|
+ * @param ("type",desc("默认 1"))
|
|
|
+ * @param ("name",desc("收货名称"))
|
|
|
+ * @param ("phone",desc("手机号"))
|
|
|
+ * @param ("province",desc("省份 传文字"))
|
|
|
+ * @param ("city",desc("城市"))
|
|
|
+ * @param ("area",desc("区县"))
|
|
|
+ * @param ("address",desc("详细的地址"))
|
|
|
* @return void
|
|
|
- * 添加快递地址
|
|
|
+ *
|
|
|
*/
|
|
|
public function add_address(){
|
|
|
$user = $this->getUser();
|
|
@@ -55,6 +69,14 @@ class User extends Auth
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @Title ("编辑收货地址")
|
|
|
+ * @param ("type",desc("默认 1"))
|
|
|
+ * @param ("name",desc("收货名称"))
|
|
|
+ * @param ("phone",desc("手机号"))
|
|
|
+ * @param ("province",desc("省份 传文字"))
|
|
|
+ * @param ("city",desc("城市"))
|
|
|
+ * @param ("area",desc("区县"))
|
|
|
+ * @param ("address",desc("详细的地址"))
|
|
|
* @return void
|
|
|
* 编辑用户地址
|
|
|
*/
|
|
@@ -90,8 +112,10 @@ class User extends Auth
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @Title (“删除啊收货地址”)
|
|
|
+ * @param ("id",desc("地址的id"))
|
|
|
* @return void
|
|
|
- * 删除快递地址
|
|
|
+ *
|
|
|
*/
|
|
|
public function del_address(){
|
|
|
$user = $this->getUser();
|