12345678910111213141516171819202122232425 |
- <?php
- /**
- * Created by PhpStorm.
- * User: hp
- * Date: 2017/11/21
- * Time: 10:53
- */
- namespace App\Http\Controllers\Channel\Promotion\Transformers;
- /**
- * Class BodyTemplatesTransformer 内容模板
- * @package App\Modules\Promotion\Transformers
- */
- class BodyTemplatesTransformer
- {
- public function transform($bodyTemplatesItem)
- {
- return [
- 'id' => $bodyTemplatesItem->id,
- 'content' => $bodyTemplatesItem->content,
- 'style'=>isset($bodyTemplatesItem->style)?$bodyTemplatesItem->style:''
- ];
- }
- }
|