BookPromotionTransformer.php 966 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Date: 2017/3/31
  5. * Time: 14:02
  6. */
  7. namespace App\Http\Controllers\Manage\Book\Transformers;
  8. class BookPromotionTransformer
  9. {
  10. public function transform($item)
  11. {
  12. return [
  13. 'bid' => $item->bid,
  14. 'date' => $item->date,
  15. 'book_name' => $item->book_name,
  16. 'uv_one_day' => $item->uv_one_day,
  17. 'uv_three_day' => $item->uv_three_day,
  18. 'company_name' => $item->company_name,
  19. 'send_order_count' => $item->send_order_count,
  20. 'register_user_num' => $item->register_user_num,
  21. 'recharge_amount_in_one_day' => $item->recharge_amount_in_one_day,
  22. 'percent_recharge_devide_uv' => $item->percent_recharge_devide_uv,
  23. 'recharge_amount_in_three_days' => $item->recharge_amount_in_three_days,
  24. 'percent_recharge_devide_uv_three_day' => $item->percent_recharge_devide_uv_three_day,
  25. ];
  26. }
  27. }