1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * Created by PhpStorm.
- * Date: 2017/3/31
- * Time: 14:02
- */
- namespace App\Http\Controllers\Manage\Book\Transformers;
- class BookPromotionTransformer
- {
- public function transform($item)
- {
- return [
- 'bid' => $item->bid,
- 'date' => $item->date,
- 'book_name' => $item->book_name,
- 'uv_one_day' => $item->uv_one_day,
- 'uv_three_day' => $item->uv_three_day,
- 'company_name' => $item->company_name,
- 'send_order_count' => $item->send_order_count,
- 'register_user_num' => $item->register_user_num,
- 'recharge_amount_in_one_day' => $item->recharge_amount_in_one_day,
- 'percent_recharge_devide_uv' => $item->percent_recharge_devide_uv,
- 'recharge_amount_in_three_days' => $item->recharge_amount_in_three_days,
- 'percent_recharge_devide_uv_three_day' => $item->percent_recharge_devide_uv_three_day,
- ];
- }
- }
|