<?php


namespace App\Http\Transformers;


class SkuUploadLogTransformer
{
    public function transformList($list)
    {
        foreach ($list as &$item) {
            $item['create_time'] = !empty($item['create_time']) ? date('Y-m-d H:i:s', $item['create_time']) : '';
            $item['status'] = array_get(config('field.SkuUploadLogStatus'), $item['status']);
        }
        unset($item);

        return $list;
    }

}