ChannelBookSellTransformer.php 785 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Http\Controllers\Manage\Channel\Transformers;
  3. class ChannelBookSellTransformer
  4. {
  5. public function transform($Item)
  6. {
  7. return [
  8. 'id' => $Item->id,
  9. 'plaform' => $Item->plaform,
  10. 'zsy_bid' => $Item->zsy_bid,
  11. 'book_name' => $Item->book_name,
  12. 'bill_type' => $Item->bill_type,
  13. 'amount' => $Item->amount,
  14. 'sub_num' => $Item->sub_num,
  15. 'date' => $Item->date,
  16. 'month' => $Item->month,
  17. 'is_checked' => $Item->is_checked,
  18. 'is_pushed' => $Item->is_pushed,
  19. 'created_at' => date("Y-m-d H:i:s", strtotime($Item->created_at)),
  20. 'updated_at' => date("Y-m-d H:i:s", strtotime($Item->updated_at))
  21. ];
  22. }
  23. }