代码优化

This commit is contained in:
wong
2025-04-12 15:08:21 +08:00
parent 568de908e2
commit 9257716d9b
49 changed files with 1001 additions and 603 deletions

View File

@@ -10,7 +10,7 @@ use think\Model;
class Conversation extends Model
{
// 设置表名
protected $name = 'coze_conversation';
protected $table = 'ck_coze_conversation';
// 设置主键
protected $pk = 'id';

View File

@@ -6,7 +6,7 @@ use think\Model;
class Message extends Model
{
protected $name = 'coze_message';
protected $table = 'ck_coze_message';
protected $pk = 'id';
// 自动写入时间戳

View File

@@ -10,7 +10,7 @@ use think\Model;
class Workspace extends Model
{
// 设置当前模型对应的完整数据表名称
protected $name = 'coze_workspace';
protected $table = 'ck_coze_workspace';
// 设置主键
protected $pk = 'id';