<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/9
 * Time: 10:20
 */

return [
    "SMG\Page\PageModel" => [
        'group_by' => 'type',
        'form' => [
            //德商分会
            /*
            'activity'=>[
                [
                    'text'=>['organizer', '主办方'],
                    'after'=>['content'],
                ],
            ],
            */
         ],
    ],

    "SMG\Categories\Models\Category" => [
        'group_by' => [\SMG\Categories\ExtraGroup::class,'getCommon'],
        'form' => [
            'SMG\Slider\SliderModel_position'=>[
                [
                    'text'=>['position_code', '位置编号'],
                ],
                [
                    'select'=>['single', '单个广告'],
                    'options'=>[[0=>'否', 1=>'是']],
                ],
            ],
        ]
    ],

//    "SMG\Slider\SliderModel" => [
//        'form' => [
//            [
//                'select'=>['product_category_id', '所属商品分类'],
//                'options'=>['/api/package/mall/default/categories_select/1'],
//                'after'=>['title'],
//                'help'=>['位置为商品分类时需要选择'],
//                'rules'=>[]
//            ],
//            [
//                'imageSelect'=>['cover', '视频封面'],
//                'help'=>['当广告图是视频是可以在此上传一张图片作为封面图'],
//                'rules'=>[]
//            ],
//        ]
//    ]
];