<?php

namespace Modules\User\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class UserWechatResource extends JsonResource
{

    public function toArray($request): array
    {
        return [
            'id'       => $this->id,
            'unionid'  => $this->unionid,
            'nickname' => $this->nickname,
            'avatar'   => $this->avatar,
            'mini'     => $this->mini,
            'official' => $this->official,
        ];
    }

}