12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\validate;
- use think\Db;
- use think\Validate;
- class ImportantRecord extends Validate{
- protected $rule = [
- 'important_id' => 'require|gt:0',
- 'user_id' => 'require|gt:0',
- 'end_time' => 'require|date',
- ];
- protected $message = [
- 'user_id.require' => '未选择用户',
- 'user_id.gt' => '未选择用户',
- 'end_time.require' => '未选择截止日期',
- 'end_time.date' => '未选择日期',
- 'important_id.require' => '参数错误',
- 'important_id.gt' => '参数错误',
- ];
- protected $scene = [
- ];
- }
|