<?php
namespace app\workerapi\validate;


use app\common\validate\BaseValidate;


/**
 * ReturnWork验证器
 * Class ReturnWorkValidate
 * @package app\workerapi\validate\works
 */
class ReturnWorkValidate extends BaseValidate
{

     /**
      * 设置校验规则
      * @var string[]
      */
    protected $rule = [
        'id' => 'require',
        'work_sn' => 'require',
        'return_work_status' => 'require',
        'dispatch_time' => 'require',
        'appointment_time' => 'require',
        'finished_time' => 'require',
        'master_worker_id' => 'require',

    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id' => 'id',
        'work_sn' => '工单编号',
        'return_work_status' => '返修工单状态',
        'dispatch_time' => '派单时间',
        'appointment_time' => '预约上门时间',
        'finished_time' => '结单时间',
        'master_worker_id' => '师傅',

    ];

    /**
     * @notes 详情场景
     * @return ReturnWorkValidate
     * @author whitef
     * @date 2024/07/10 15:06
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }

}