coze优化提交
This commit is contained in:
24
Server/application/cozeai/model/Message.php
Normal file
24
Server/application/cozeai/model/Message.php
Normal 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'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user