first commit
This commit is contained in:
81
app/adminapi/validate/user/UserMineRecordValidate.php
Normal file
81
app/adminapi/validate/user/UserMineRecordValidate.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
namespace app\adminapi\validate\user;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 挖矿记录验证器
|
||||
* Class UserMineRecordValidate
|
||||
* @package app\adminapi\validate\user
|
||||
*/
|
||||
class UserMineRecordValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return UserMineRecordValidate
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->remove('id', true);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return UserMineRecordValidate
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return UserMineRecordValidate
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return UserMineRecordValidate
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user