UserWork.php 366 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\common\validate;
  3. use think\Db;
  4. use think\Validate;
  5. class UserWork extends Validate{
  6. protected $rule = [
  7. 'user_id' => 'require',
  8. 'start' => 'require',
  9. ];
  10. protected $message = [
  11. 'user_id.require' => '参数错误',
  12. 'start.require' => '未选择日期',
  13. ];
  14. protected $scene = [
  15. ];
  16. }