登录界面记住我功能

This commit is contained in:
2026-02-24 12:56:42 +08:00
parent 63e9cb5c48
commit 25e3923ad3
3 changed files with 116 additions and 26 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace app\model\Tenant;
use think\Model;
/**
* 租户模型
*/
class Tenant extends Model
{
// 数据库表名
protected $name = 'mete_tenant';
// 字段类型转换
protected $type = [
'id' => 'integer',
'tenant_code' => 'string',
'tenant_name' => 'string',
'contact_person' => 'string',
'contact_phone' => 'string',
'contact_email' => 'string',
'address' => 'string',
'status' => 'integer',
'create_time' => 'datetime',
'update_time' => 'datetime',
'remark' => 'string',
];
}