增加积分调整日志
This commit is contained in:
30
app/admin/validate/MallPointsLog.php
Normal file
30
app/admin/validate/MallPointsLog.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\admin\validate;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class MallPointsLog extends Validate
|
||||
{
|
||||
protected $failException = true;
|
||||
|
||||
protected $rule = [
|
||||
'user_asset_id' => 'require|integer|gt:0',
|
||||
'score_value' => 'require|integer|notIn:0',
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['user_asset_id', 'score_value'],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->field = [
|
||||
'user_asset_id' => __('User asset'),
|
||||
'score_value' => __('Points adjustment'),
|
||||
];
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user