ThinkAdmin/plugin/think-plugs-wemall/src/model/PluginWemallUserCreate.php
2024-08-02 08:45:48 +08:00

39 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | WeMall Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2022~2024 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// | 会员免费 ( https://thinkadmin.top/vip-introduce )
// +----------------------------------------------------------------------
// | gitee 代码仓库https://gitee.com/zoujingli/think-plugs-wemall
// | github 代码仓库https://github.com/zoujingli/think-plugs-wemall
// +----------------------------------------------------------------------
declare (strict_types=1);
namespace plugin\wemall\model;
use plugin\account\model\PluginAccountUser;
use think\model\relation\HasOne;
/**
* 手动创建会员用户模型
* @class PluginWemallUserCreate
* @package plugin\wemall\model
*/
class PluginWemallUserCreate extends AbsUser
{
/**
* 关联代理用户
* @return \think\model\relation\HasOne
*/
public function agent(): HasOne
{
return $this->hasOne(PluginAccountUser::class, 'phone', 'phone');
}
}