<?php
/**
 *
 *User:Administrator
 *Date:2021/10/29
 */

namespace app\api\validate;

use think\Validate;

class Sample extends Validate
{

    protected $rule = [
        'task_id' => 'require|integer',

    ];
    protected $message = [
        'task_id.require' => '任务id为空',
        'task_id.integer' => '任务id错误',

    ];

    protected $scene = [
        'get_cyd_list' => ['task_id',],
    ];
}