AiAssistantApi.php 772 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Api;
  3. use App\Services\UserService;
  4. /**
  5. * **冻结的转发壳,不要往里写逻辑。**
  6. *
  7. * 实现在 {@see UserService}——AI 助手与人类用户拼的是同一种摘要,原先分成两个类
  8. * 只是历史结果,两份代码已经漂出了差异(头像在 testing 环境的处理不一致)。
  9. *
  10. * @deprecated 用 App\Services\UserService
  11. */
  12. class AiAssistantApi
  13. {
  14. /** @deprecated 用 UserService::assistantByUuid() */
  15. public static function getByUuid($id)
  16. {
  17. return app(UserService::class)->assistantByUuid($id);
  18. }
  19. /** @deprecated 用 UserService::assistantProfile() */
  20. public static function userInfo($user)
  21. {
  22. return app(UserService::class)->assistantProfile($user);
  23. }
  24. }