container->get(UserRequest::class); $request->scene('putUserAvatar')->validateResolved(); $UserService = new UserService(); $data = $UserService->putUserAvatar(); return $this->response->json($data); } /** * 修改用户名 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function putUserName(): ResponseInterface { $request = $this->container->get(UserRequest::class); $request->scene('putUserName')->validateResolved(); $UserService = new UserService(); $data = $UserService->putUserName(); return $this->response->json($data); } /** * 退出登陆 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function putLoginout(): ResponseInterface { $UserService = new UserService(); $data = $UserService->putLoginout(); 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); } /** * 获取弹窗数据 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function getUserPopup(): ResponseInterface { $request = $this->container->get(UserRequest::class); $request->scene('getUserPopup')->validateResolved(); $UserService = new UserService(); $data = $UserService->getUserPopup(); return $this->response->json($data); } /** * 上报用户地址 * @return ResponseInterface */ public function postLocation(): ResponseInterface { $UserService = new UserService(); $data = $UserService->postLocation(); return $this->response->json($data); } }