MessageController.php 583 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace addons\StarChain\backend\controllers;
  3. use addons\StarChain\common\services\MessageService;
  4. /**
  5. * 消息
  6. */
  7. class MessageController extends BaseController
  8. {
  9. /**
  10. * 消息列表
  11. *
  12. * @return string
  13. */
  14. public function actionIndex()
  15. {
  16. if ($this->request->isAjax) {
  17. $params = $this->request->get();
  18. $service = new MessageService(['mall_id' => $this->mall_id]);
  19. return $this->success('ok', $service->getMessageList($params));
  20. }
  21. return $this->render($this->action->id);
  22. }
  23. }