<?php

return array (
    //产品系列列表(一级分类)
    'parent_id' => [
        'rule' => [
            'parent_id'                => 'require|number',
            'page'                     => 'require|number',
        ],
        'msg' => [
            'parent_id.require'            => '一级分类id不能为空',
            'parent_id.number'             => '一级分类id必须是数字',
            'page.require'                 => '分页页码不能为空',
            'page.number'                  => '分页页码必须是数字',
        ]
    ],
    //产品系列列表(二级分类)
    'children_id' => [
        'rule' => [
            'children_id'              => 'require|number',
            'page'                     => 'require|number',
        ],
        'msg' => [
            'children_id.require'          => '二级分类id不能为空',
            'children_id.number'           => '二级分类id必须是数字',
            'page.require'                 => '分页页码不能为空',
            'page.number'                  => '分页页码必须是数字',
        ]
    ],
    //产品系列详情
    'series_id' => [
        'rule' => [
            'series_id'                => 'require|number',
        ],
        'msg' => [
            'series_id.require'            => '产品系列id不能为空',
            'series_id.number'             => '产品系列id必须是数字',
        ]
    ],
    //服务分类详情
    'service_id' => [
        'rule' => [
            'service_id'                => 'require|number',
        ],
        'msg' => [
            'service_id.require'            => '服务分类id不能为空',
            'service_id.number'             => '服务分类id必须是数字',
        ]
    ],
    //分页
    'page' => [
        'rule' => [
            'page'                   => 'require|number',
        ],
        'msg' => [
            'page.require'            => '分页页码不能为空',
            'page.number'             => '分页页码必须是数字',
        ]
    ],
    //产品系列搜索
    'search' => [
        'rule' => [
            'keyword'                => 'require',
            'page'                   => 'require|number',
        ],
        'msg' => [
            'keyword.require'         => '关键字不能为空',
            'page.require'            => '分页页码不能为空',
            'page.number'             => '分页页码必须是数字',
        ]
    ],
);