示例#1
0
 public function getById(Request $request, Application $app, $user_id)
 {
     $model = new User($app['neo']);
     $user = $model->getById($user_id);
     if ($user) {
         return $this->sendJson($user, 200);
     } else {
         return $this->sendJson(['success' => false], 404);
     }
 }