<?php
namespace app\validate;

use taoser\Validate;

class Withdrawl extends Validate
{
    // 定义规则
    protected $rule =   [
        'title'  => 'require|max:32',
        'package'   => 'require',
        'platform' => 'require',   
        'user_id' => 'require',    
    ];

    // 定义信息
    protected $message  =   [
        'title.require' => '应用名称不合规',
        'user_id.require' => '请先登录',
        'title.max'     => '名称最多不能超过32个字符',
        'package'   => '请输入合法的应用包名',
        'platform'        => '请先选择一个平台',    
    ];

    //定义场景
    protected $scene = [
        'create'  =>  ['title','package','platform','user_id'],
        'update'  =>  ['title','package','platform','user_id']
    ];

}