<?php

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

class ForceSubscribeUsersTransformer
{
    public function transform($forceSubscribeUsers){
        return [
            'uid'       =>  $forceSubscribeUsers->uid,
            'official_account_id'       =>  $forceSubscribeUsers->official_account_id,
            'distribution_channel_id'       =>  $forceSubscribeUsers->distribution_channel_id,
            'appid'       =>  $forceSubscribeUsers->appid,
            'openid'   =>  $forceSubscribeUsers->openid,
            'is_subscribed'   => $forceSubscribeUsers->is_subscribed,
            'subscribe_time' => $forceSubscribeUsers->subscribe_time,
            'unsubscribe_time' => $forceSubscribeUsers->unsubscribe_time,
            'last_interactive_time' => $forceSubscribeUsers->last_interactive_time,
        ];
    }
}