27 lines
748 B
PHP
Executable File
27 lines
748 B
PHP
Executable File
<?php
|
|
|
|
namespace app\service\api;
|
|
|
|
use think\Facade;
|
|
|
|
/**
|
|
* Api用户服务门面
|
|
* @package plugin\core\service
|
|
* @method static mixed init($token) 初始化
|
|
* @method static mixed getError() 获取错误信息
|
|
* @method static mixed emailRegLogin($param) 邮箱密码注册登录
|
|
* @method static mixed logout() 退出登录
|
|
* @method static mixed getUserInfo() 获取登录用户信息
|
|
* @method static mixed getUser() 获取User模型
|
|
* @method static mixed isLogin() 获取登录状态
|
|
* @method static mixed getToken() 获取token
|
|
* @method static mixed getAllowFields() 允许输出的字段
|
|
*/
|
|
class MemberServiceFacade extends Facade
|
|
{
|
|
protected static function getFacadeClass()
|
|
{
|
|
return Member::class;
|
|
}
|
|
}
|