perf: AI机器人支持多会话

This commit is contained in:
kuaifan
2025-02-10 15:43:02 +09:00
parent 30d88761b4
commit 0272933f70
5 changed files with 67 additions and 18 deletions

View File

@@ -7,7 +7,6 @@ namespace App\Models;
*
* @property int $id
* @property int $dialog_id 对话ID
* @property int $userid 用户ID
* @property string $title 会话标题
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
@@ -27,7 +26,6 @@ namespace App\Models;
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogSession whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogSession whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogSession whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogSession whereUserid($value)
* @mixin \Eloquent
*/
class WebSocketDialogSession extends AbstractModel
@@ -50,12 +48,4 @@ class WebSocketDialogSession extends AbstractModel
{
return $this->belongsTo(WebSocketDialog::class, 'dialog_id');
}
/**
* 获取关联的用户
*/
public function user()
{
return $this->belongsTo(User::class, 'userid');
}
}