erp_old/app/admin/validate/retail/CashierinfoValidate.php
2024-04-26 11:26:12 +08:00

82 lines
1.3 KiB
PHP

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