<?php

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

class BatchCustomSendMsgsTransformers
{
    public function transform($batchCustomSendMsgs){
        return [
            'id'       =>  isset($batchCustomSendMsgs->id)?$batchCustomSendMsgs->id:'',
            'name'       =>  isset($batchCustomSendMsgs->name)?$batchCustomSendMsgs->name:'',
            'create_time'       =>  isset($batchCustomSendMsgs->create_time)?$batchCustomSendMsgs->create_time:'',
            'send_time'       =>  isset($batchCustomSendMsgs->send_time)?$batchCustomSendMsgs->send_time:'',
            'content'       =>  isset($batchCustomSendMsgs->content)?$batchCustomSendMsgs->content:'',
            'redirect_url'       =>  isset($batchCustomSendMsgs->redirect_url)?$batchCustomSendMsgs->redirect_url:'',
            'status'       =>  isset($batchCustomSendMsgs->status)?$batchCustomSendMsgs->status:'',
            'subscribe_time'       =>  isset($batchCustomSendMsgs->subscribe_time)?$batchCustomSendMsgs->subscribe_time:'',
            'sex'       =>  isset($batchCustomSendMsgs->sex)?$batchCustomSendMsgs->sex:'',
            'balance'       =>  isset($batchCustomSendMsgs->balance)?$batchCustomSendMsgs->balance:'',
            'order_type'       => isset($batchCustomSendMsgs->order_type)?$batchCustomSendMsgs->order_type:'',
            'category_id'       =>  isset($batchCustomSendMsgs->category_id)?$batchCustomSendMsgs->category_id:'',
            'user_num'       =>  isset($batchCustomSendMsgs->user_num)?$batchCustomSendMsgs->user_num:'',
            'is_full_send'       =>  isset($batchCustomSendMsgs->is_full_send)?$batchCustomSendMsgs->is_full_send:'',
            'book_names'       =>   isset($batchCustomSendMsgs->book_names)?$batchCustomSendMsgs->book_names:'',
            'bids'       =>   isset($batchCustomSendMsgs->bids)?$batchCustomSendMsgs->bids:'',
            'pv'       =>  isset($batchCustomSendMsgs->pv)?$batchCustomSendMsgs->pv:'',
            'uv'       =>  isset($batchCustomSendMsgs->uv)?$batchCustomSendMsgs->uv:'',
            'pay_user_num'       =>  isset($batchCustomSendMsgs->pay_user_num)?$batchCustomSendMsgs->pay_user_num:'',
            'total_order_num'       =>  isset($batchCustomSendMsgs->total_order_num)?$batchCustomSendMsgs->total_order_num:'',
            'suc_order_num'       =>  isset($batchCustomSendMsgs->suc_order_num)?$batchCustomSendMsgs->suc_order_num:'',
            'success_order_sum'       =>  isset($batchCustomSendMsgs->success_order_sum)?$batchCustomSendMsgs->success_order_sum:'',

        ];
    }
}