<?php

namespace App\Http\Controllers\Channel\Order\Transformers;
class ChargeListTransformer
{

    public function transform($res){
        return [
            'id'       =>  $res->id,
            'type'      => $res->type,
            'detail'      => $res->detail,
            'book_name'      => '',
            'chapter_name'      => '',
            'fee'       =>  $res->price,
            'created_at'   =>  date("Y-m-d H:i:s",strtotime($res->created_at))
        ];
    }
}