<?php
namespace app\workerapi\validate;

use app\common\validate\BaseValidate;


/**
 * GoodsCategoryValidate
 * Class GoodsCategoryValidate
 * @package app\workerapi\validate\works
 */
class GoodsCategoryValidate extends BaseValidate
{

    /**
     * 设置校验规则
     * @var string[]
     */
    protected $rule = [
        'id' => 'require',
    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id' => '分类ID',
    ];

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

}