webman-admin/app/admin/validate/setting/StorageValidate.php
2023-03-10 13:44:21 +08:00

52 lines
951 B
PHP

<?php
namespace app\admin\validate\setting;
use app\common\validate\BaseValidate;
class StorageValidate extends BaseValidate
{
protected $rule = [
'engine' => 'require',
'status' => 'require',
];
/**
* @notes 设置存储引擎参数场景
* @return \app\admin\validate\setting\StorageValidate
* @author 乔峰
* @date 2022/4/20 16:18
*/
public function sceneSetup()
{
return $this->only(['engine', 'status']);
}
/**
* @notes 获取配置参数信息场景
* @return StorageValidate
* @author 乔峰
* @date 2022/4/20 16:18
*/
public function sceneDetail()
{
return $this->only(['engine']);
}
/**
* @notes 切换存储引擎场景
* @return StorageValidate
* @author 乔峰
* @date 2022/4/20 16:18
*/
public function sceneChange()
{
return $this->only(['engine']);
}
}