<?php

namespace app\api\validate;

class CourseValidate extends BaseValidate
{
    protected $rule =   [
        'searchKeyWords'=>'require',
        'category_id'=>'require|number',
        'course_id'=>'require|number',
        'class_id'=>'require|number',
        'current_time'=>'require|number',
        'attachment_ids'=>'require',
        'work_id'=>'require|number',
        'content'=>'require',
    ];

//    protected $message  =   [
//        'name.require' => '名称必须',
//        'mobile.require'   => '手机号不能为空',
//        'mobile.mobile'  => '手机号格式不正确',
//        'password.require'   => '密码必须',
//        'code.require'   => '验证码必须',
//        'token.require'   => 'token必须',
//        'str.require'   => '必填项不能为空',
//        'confirm_password.checkPasswordEqual' => '两次输入的密码不一致'
//    ];
}