AuthController.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace App\Modules\Pc\Controllers;
  3. use App\Base\BaseController;
  4. use Faker\Provider\Image;
  5. class AuthController extends BaseController
  6. {
  7. public function emailCaptcha()
  8. {
  9. return $this->ok();
  10. }
  11. public function profile()
  12. {
  13. return $this->ok([
  14. "id" => 1,
  15. "token" => "token",
  16. "name" => "用户名称",
  17. "avatar" => Image::imageUrl(),
  18. "company" => [
  19. "id" => 1,
  20. "name" => "公司名称",
  21. ],
  22. ]);
  23. }
  24. public function register()
  25. {
  26. return $this->ok([
  27. "token" => "token",
  28. "name" => "",
  29. "phone" => "",
  30. ]);
  31. }
  32. public function login()
  33. {
  34. return $this->ok([
  35. "token" => "token",
  36. "name" => "",
  37. "phone" => "",
  38. ]);
  39. }
  40. public function resetPassword()
  41. {
  42. return $this->ok([
  43. "token" => "token",
  44. "name" => "",
  45. "phone" => "",
  46. ]);
  47. }
  48. }