Exemplo n.º 1
0
 /**
  * 
  * @return array
  */
 public function private_lists()
 {
     if ($this->get_method() != 'GET') {
         $this->send_response(405, NULL, '请求的方法不存在');
     }
     $pagesize = (int) $this->input->get('pagesize', 20);
     $uptime = (int) $this->input->get('uptime', 0);
     $downtime = (int) $this->input->get('downtime', 0);
     $trustworthiness = (int) $this->input->get('trustworthiness', '');
     $weight = (int) $this->input->get('weight', 0);
     $lists = $this->model->private_lists($uptime, $downtime, $trustworthiness, $pagesize, $this->user_id, $weight);
     $this->send_response(200, $lists);
 }