<?php

namespace Modules\Mall\Http\Resources\Api\Shop;

use Illuminate\Http\Resources\Json\JsonResource;

class ShopBaseInfoResource extends JsonResource
{

    public function toArray($request): array
    {
        return [
            'shop_id' => $this->id,
            'name'    => $this->name,
            'cover'   => $this->cover_url,
            'is_self' => (bool) $this->is_self,
        ];
    }

}
