QALogController.php 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace app\modules\admin\controllers\q_and_a;
  3. use app\modules\admin\controllers\BaseController;
  4. use app\modules\admin\models\q_and_a\QALogForm;
  5. class QALogController extends BaseController
  6. {
  7. /**
  8. * 列表
  9. */
  10. public function actionUserList()
  11. {
  12. $param = get_params();
  13. $form = new QALogForm();
  14. $form->attributes = $param;
  15. $form->store_id = get_store_id();
  16. return $this->asJson($form->search());
  17. }
  18. public function actionQList()
  19. {
  20. $param = get_params();
  21. $form = new QALogForm();
  22. $form->attributes = $param;
  23. $form->store_id = get_store_id();
  24. return $this->asJson($form->search_q());
  25. }
  26. public function actionAdLogList()
  27. {
  28. $param = get_params();
  29. $form = new QALogForm();
  30. $form->attributes = $param;
  31. $form->store_id = get_store_id();
  32. return $this->asJson($form->search_ad_log());
  33. }
  34. }