ImportantRecord.php 624 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\validate;
  3. use think\Db;
  4. use think\Validate;
  5. class ImportantRecord extends Validate{
  6. protected $rule = [
  7. 'important_id' => 'require|gt:0',
  8. 'user_id' => 'require|gt:0',
  9. 'end_time' => 'require|date',
  10. ];
  11. protected $message = [
  12. 'user_id.require' => '未选择用户',
  13. 'user_id.gt' => '未选择用户',
  14. 'end_time.require' => '未选择截止日期',
  15. 'end_time.date' => '未选择日期',
  16. 'important_id.require' => '参数错误',
  17. 'important_id.gt' => '参数错误',
  18. ];
  19. protected $scene = [
  20. ];
  21. }