<?php

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

use Illuminate\Http\Resources\Json\JsonResource;
use Jason\Api\Api;
use Modules\Mall\Http\Resources\Api\Category\CategoryBaseResource;
use Modules\Mall\Http\Resources\Api\Shop\ShopBaseInfoResource;

class ActivityBaseResource extends JsonResource
{

    public function toArray($request): array
    {
        return [
            'activity_id' => $this->id,
            'cover'       => $this->cover_url,
            'title'       => $this->title,
            'description' => $this->description,
            'created_at'  => (string)$this->created_at,
        ];
    }

}
