coze优化提交

This commit is contained in:
Ghost
2025-04-03 15:53:24 +08:00
parent 461092f1d5
commit b4c93c61f1
5 changed files with 475 additions and 62 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace app\cozeai\model;
use think\Model;
class Message extends Model
{
protected $name = 'coze_message';
protected $pk = 'id';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
// 类型转换
protected $type = [
'created_at' => 'integer',
'updated_at' => 'integer',
'create_time' => 'integer',
'update_time' => 'integer'
];
}