精简模型

This commit is contained in:
柳清爽
2025-04-08 16:30:20 +08:00
parent 880d132849
commit 1cc150472c
15 changed files with 31 additions and 1359 deletions

View File

@@ -11,23 +11,6 @@ class DeviceWechatLogin extends Model
// 设置表名
protected $name = 'device_wechat_login';
// 设置主键
protected $pk = 'id';
// 自动写入时间戳
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createTime';
// 定义字段类型
protected $type = [
'id' => 'integer',
'deviceId' => 'integer',
'companyId' => 'integer',
'createTime' => 'integer'
];
/**
* 查询设备关联的微信ID列表
* @param int $deviceId 设备ID