lihaiMiddleOffice/app/psi/validate/OutboundOrderValidate.php

83 lines
1.3 KiB
PHP

<?php
namespace app\psi\validate;
use app\common\validate\BaseValidate;
/**
* PsiOutboundOrder验证器
* Class OutboundOrderValidate
* @package app\psi\validate
*/
class OutboundOrderValidate extends BaseValidate
{
/**
* 设置校验规则
* @var string[]
*/
protected $rule = [
'id' => 'require',
];
/**
* 参数描述
* @var string[]
*/
protected $field = [
'id' => 'id',
];
/**
* @notes 添加场景
* @return OutboundOrderValidate
* @author admin
* @date 2025/03/10 11:08
*/
public function sceneAdd()
{
return $this->remove('id', true);
}
/**
* @notes 编辑场景
* @return OutboundOrderValidate
* @author admin
* @date 2025/03/10 11:08
*/
public function sceneEdit()
{
return $this->only(['id']);
}
/**
* @notes 删除场景
* @return OutboundOrderValidate
* @author admin
* @date 2025/03/10 11:08
*/
public function sceneDelete()
{
return $this->only(['id']);
}
/**
* @notes 详情场景
* @return OutboundOrderValidate
* @author admin
* @date 2025/03/10 11:08
*/
public function sceneDetail()
{
return $this->only(['id']);
}
}