im.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. global $app;
  3. helper::import($app->getModulePath('', 'im') . 'model.php');
  4. class extimModel extends imModel
  5. {
  6. public function getExtensionList($userID)
  7. {
  8. return $this->loadExtension('xuanxuan')->getExtensionList($userID);
  9. }
  10. public function editUser($user = null)
  11. {
  12. return $this->loadExtension('xuanxuan')->editUser($user);
  13. }
  14. public function getServer($backend = 'xxb')
  15. {
  16. return $this->loadExtension('xuanxuan')->getServer($backend);
  17. }
  18. public function uploadFile($fileName, $path, $size, $time, $userID, $users, $chat)
  19. {
  20. return $this->loadExtension('xuanxuan')->uploadFile($fileName, $path, $size, $time, $userID, $users, $chat);
  21. }
  22. public function chatAddAction($chatId = '', $action = '', $actorId = '', $result = '', $comment = '')
  23. {
  24. return $this->loadExtension('xuanxuan')->chatAddAction($chatId, $action, $actorId, $result, $comment);
  25. }
  26. public function userAddAction($user, $actionType, $result, $comment = '', $common = false)
  27. {
  28. return $this->loadExtension('xuanxuan')->userAddAction($user, $actionType, $result, $comment, $common);
  29. }
  30. public function messageGetNotifyList()
  31. {
  32. return $this->loadExtension('xuanxuan')->messageGetNotifyList();
  33. }
  34. public function getAiChatLatestContext($moduleId, $userId)
  35. {
  36. return $this->loadExtension('xuanxuan')->getAiChatLatestContext($moduleId, $userId);
  37. }
  38. //**//
  39. }