GalleryValidate.php 536 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2021 勾股工作室
  4. * @license https://opensource.org/licenses/Apache-2.0
  5. * @link https://www.gougucms.com
  6. */
  7. namespace app\admin\validate;
  8. use think\Validate;
  9. class GalleryValidate extends Validate
  10. {
  11. protected $rule = [
  12. 'cate_id' => 'require',
  13. 'title' => 'require',
  14. 'thumb' => 'require',
  15. ];
  16. protected $message = [
  17. 'cate_id.require' => '所属分类不能为空',
  18. 'title.require' => '图集名称不能为空',
  19. 'thumb.require' => '缩略图不能为空',
  20. ];
  21. }