CollegeTeachingValidate.php 639 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\admin\validate\life;
  3. use support\Validate;
  4. class CollegeTeachingValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'teaching_id' => 'require|integer',
  8. 'teaching_name|名称' => 'require',
  9. 'teaching_time|上课时间' => 'date',
  10. 'teaching_courses_id|所属课程' => 'require|integer',
  11. 'teaching_price|价格' => 'float',
  12. 'teaching_status|状态' => 'integer',
  13. 'teaching_is_del' => 'integer',
  14. ];
  15. protected $message = [];
  16. protected $scene = [
  17. 'add' => ['teaching_name', 'teaching_courses_id', 'teaching_price', 'teaching_status'],
  18. ];
  19. }