public function actionIndex()
 {
     $params = $this->getQuery();
     if (empty($params['storeId'])) {
         throw new BadRequestHttpException(Yii::t('common', 'parameters_missing'));
     }
     $accountId = $this->getAccountId();
     $params['storeId'] = new \MongoId($params['storeId']);
     return StoreGoods::search($params, $accountId);
 }