UserServiceFacade.php 682 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\service\admin;
  3. use think\Facade;
  4. /**
  5. * 后台用户服务门面
  6. * @package app\service\admin
  7. * @method static mixed init($token) 初始化
  8. * @method static mixed getError() 获取错误信息
  9. * @method static mixed logout() 退出登录
  10. * @method static mixed getUserInfo() 获取登录用户信息
  11. * @method static mixed getAllowFields() 获取允许展示的字段
  12. * @method static mixed getUser() 获取User模型
  13. * @method static mixed isLogin() 获取登录状态
  14. * @method static mixed getToken() 获取token
  15. */
  16. class UserServiceFacade extends Facade
  17. {
  18. protected static function getFacadeClass()
  19. {
  20. return User::class;
  21. }
  22. }