Files
ulthon_admin/extend/base/admin/model/SystemMcpLogBase.php
2026-08-16 20:55:03 +08:00

34 lines
937 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace base\admin\model;
use app\common\model\TimeModel;
/**
* @property int $id
* @property int $key_id 密钥ID
* @property string $node 节点
* @property string $arguments 参数摘要JSON
* @property int $is_success 是否成功 0:失败,1:成功
* @property int $cost_ms 耗时毫秒
* @property int $create_time 创建时间
* @property \app\admin\model\SystemMcpKey|null $mcpKey 密钥
*/
class SystemMcpLogBase extends TimeModel
{
protected $updateTime = false;
protected $deleteTime = false;
/**
* 所属密钥.
* withJoin 为 LEFT JOIN 且不附加软删条件:
* 密钥不存在时关联字段为 null、软删密钥仍可 join 出delete_time > 0
* 前端据 mcp_key.title / mcp_key.delete_time 兜底显示"(已删除)#id"。
*/
public function mcpKey()
{
return $this->belongsTo('app\admin\model\SystemMcpKey', 'key_id', 'id');
}
}