Example #1
0
 public function seachByName()
 {
     $this->checkAccessToken();
     $this->params['name'] = F::request('name', '');
     $this->params['page'] = F::request('page', 1);
     $this->params['num'] = F::request('num', 20);
     $this->returnData = $this->params['name'] ? $this->groupModel->seachGroupListByName($this->params['name'], $this->params['page'], $this->params['num']) : $this->groupModel->getAcctionGroupList($GLOBALS['userId'], $this->params['page'], $this->params['num']);
     F::rest()->show_result($this->returnData);
 }