<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 应用配置
 */
namespace app\smartbc\validate;
use think\Validate;

class Group extends Validate{

    protected $rule = [
        'member_miniapp_id' => 'require',
        'title'             => 'require',
        'content'           => 'require',
        'uid'               => 'require',
    ];

    protected $message = [
        'member_miniapp_id' => '应用ID丢失',
        'title'             => '商圏名称必须填写',
        'content'           => '商圏简介必须填写',
        'uid'               => '圈主必须选择',
    ];

    protected $scene = [
        'edit' => ['title', 'content']
    ];
}