<?php

namespace App\Http\Controllers\Wechat\OfficialAccount\Transformers;

class WechatTemplatesTransformer
{
    public function transform($wechatTemplates){
        return [
            'appid'       =>  $wechatTemplates->appid,
            'common_template_id'       =>  $wechatTemplates->common_template_id,
            'template_id'       =>  $wechatTemplates->template_id,
            // 'name'       =>  $wechatTemplates->WechatTemplateMsg->name,
            // 'send_time'       =>  $wechatTemplates->WechatTemplateMsg->send_time,
            // 'template_content'       =>  $wechatTemplates->WechatTemplateMsg->template_content,
            // 'redirect_url'       =>  $wechatTemplates->WechatTemplateMsg->redirect_url,
            // 'send_appid'       =>  $wechatTemplates->WechatTemplateMsg->send_appid,
            // 'status'       =>  $wechatTemplates->WechatTemplateMsg->status,
            // 'remark'       =>  $wechatTemplates->WechatTemplateMsg->remark,
            // 'distribution_channel_id'       =>  $wechatTemplates->WechatTemplateMsg->distribution_channel_id,
        ];
    }
}