コード例 #1
0
 public function actionListByTag()
 {
     $tagName = $this->getQuery('tagName');
     $orderBy = $this->getQuery('orderBy', 'createdAt');
     $accountId = $this->getAccountId();
     $result = ['items' => [], 'memberCount' => 0];
     $result['items'] = HelpDesk::getByAccountAndTags($tagName, $accountId, $orderBy);
     $result['memberCount'] = Member::getMemberCountByTags($tagName, $accountId);
     return $result;
 }