diff --git a/beike/Admin/Http/Resources/TaxClassDetail.php b/beike/Admin/Http/Resources/TaxClassDetail.php new file mode 100644 index 00000000..f37d8a72 --- /dev/null +++ b/beike/Admin/Http/Resources/TaxClassDetail.php @@ -0,0 +1,28 @@ + + * @created 2022-08-12 15:56:28 + * @modified 2022-08-12 15:56:28 + */ + +namespace Beike\Admin\Http\Resources; + +use Illuminate\Http\Resources\Json\JsonResource; + +class TaxClassDetail extends JsonResource +{ + public function toArray($request): array + { + return [ + 'id' => $this->id, + 'name' => $this->title, + 'description' => sub_string($this->description), + 'created_at' => time_format($this->created_at), + 'updated_at' => time_format($this->updated_at), + ]; + } +}