<?php
declare(strict_types=1);
* +----------------------------------------------------------------------
* | ThinkAdmin Plugin for ThinkAdmin
* +----------------------------------------------------------------------
* | 版权所有 2014~2026 ThinkAdmin [ thinkadmin.top ]
* +----------------------------------------------------------------------
* | 官方网站: https://thinkadmin.top
* +----------------------------------------------------------------------
* | 开源协议 ( https://mit-license.org )
* | 免责声明 ( https://thinkadmin.top/disclaimer )
* | 会员特权 ( https://thinkadmin.top/vip-introduce )
* +----------------------------------------------------------------------
* | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
* | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
* +----------------------------------------------------------------------
*/
namespace think\admin\model;
use think\admin\Model;
* 系统日志模型.
*
* @property int $id
* @property string $action 操作行为名称
* @property string $content 操作内容描述
* @property string $create_at 创建时间
* @property string $geoip 操作者IP地址
* @property string $node 当前操作节点
* @property string $username 操作人用户名
* @class SystemOplog
*/
class SystemOplog extends Model
{
protected $createTime = 'create_at';
protected $updateTime = false;
* 格式化创建时间.
* @param mixed $value
*/
public function getCreateAtAttr($value): string
{
return format_datetime($value);
}
}