* +---------------------------------------------------------------------- */ namespace App\Http\Model\Crud; use App\Http\Model\BaseModel; /** * Class SystemCrudEventLog. * @email 136327134@qq.com * @date 2024/3/14 */ class SystemCrudEventLog extends BaseModel { /** * 表名. * @var string */ protected $table = 'system_crud_event_log'; /** * 主键. * @var string */ protected $primaryKey = 'id'; /** * @email 136327134@qq.com * @date 2024/2/24 */ public function setParameterAttribute($value) { $this->attributes['parameter'] = json_encode($value); } /** * @return mixed * @email 136327134@qq.com * @date 2024/2/24 */ public function getParameterAttribute($value) { return json_decode($value, true); } /** * @email 136327134@qq.com * @date 2024/2/24 */ public function setLogAttribute($value) { $this->attributes['log'] = json_encode($value); } /** * @return mixed * @email 136327134@qq.com * @date 2024/2/24 */ public function getLogAttribute($value) { return json_decode($value, true); } }