WxNotice.php 375 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. use think\Db;
  5. class WxNotice extends Validate{
  6. protected $rule = [
  7. 'title|名称' => 'require',
  8. 'content|内容' => 'require',
  9. ];
  10. /**
  11. * 定义错误信息
  12. * 格式:'字段名.规则名' => '错误信息'
  13. *
  14. * @var array
  15. */
  16. protected $message = [];
  17. }