UserReportController.php 650 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace backend\modules\mall\controllers;
  3. use api\services\UserReportService;
  4. use backend\controllers\MallController;
  5. /**
  6. * 用户举报
  7. * @package backend\modules\mall\controllers
  8. */
  9. class UserReportController extends MallController
  10. {
  11. /**
  12. * 列表
  13. *
  14. * @return string
  15. */
  16. public function actionList()
  17. {
  18. if ($this->request->isAjax) {
  19. $params = $this->request->get();
  20. $service = new UserReportService(['mall_id' => $this->mall_id]);
  21. return $this->success('ok', $service->getPageList($params));
  22. }
  23. return $this->render($this->action->id);
  24. }
  25. }