<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/11/21
 * Time: 10:53
 */

namespace App\Http\Controllers\Channel\Promotion\Transformers;

/**
 * Class QrCodeTransformer  二维码
 * @package App\Modules\Promotion\Transformers
 */
class QrCodeTransformer
{
    public function transform($QrCodeItem)
    {
        return [
            'id' => $QrCodeItem->id,
            'codeUrl' => $QrCodeItem->code_url
        ];
    }
}