multi-store/app/admin/validate/ChangeLogValidate.php
2025-01-06 10:17:25 +08:00

82 lines
1.4 KiB
PHP

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