新增药师微信登录

This commit is contained in:
2023-03-20 10:59:03 +08:00
parent 0e9f273c4f
commit 229f875a84
6 changed files with 225 additions and 9 deletions
+66
View File
@@ -87,6 +87,72 @@ class UserController extends AbstractController
return $this->response->json($data);
}
/**
* 获取用户收获地址列表
* @return ResponseInterface
*/
public function getUserAddress(): ResponseInterface
{
$UserService = new UserService();
$data = $UserService->getUserAddress();
return $this->response->json($data);
}
/**
* 获取用户收获地址详情
* @return ResponseInterface
*/
public function getUserAddressInfo(): ResponseInterface
{
$UserService = new UserService();
$data = $UserService->getUserAddressInfo();
return $this->response->json($data);
}
/**
* 添加用户收获地址列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addUserAddress(): ResponseInterface
{
$request = $this->container->get(UserRequest::class);
$request->scene('addUserAddress')->validateResolved();
$UserService = new UserService();
$data = $UserService->addUserAddress();
return $this->response->json($data);
}
/**
* 修改用户收获地址列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putUserAddress(): ResponseInterface
{
$request = $this->container->get(UserRequest::class);
$request->scene('putUserAddress')->validateResolved();
$UserService = new UserService();
$data = $UserService->putUserAddress();
return $this->response->json($data);
}
/**
* 删除用户收获地址列表
* @return ResponseInterface
*/
public function deleteUserAddress(): ResponseInterface
{
$UserService = new UserService();
$data = $UserService->deleteUserAddress();
return $this->response->json($data);
}
// 支付测试
public function testpay(){
// 发起支付