1234567891011121314151617181920212223242526 |
- <?php
- namespace app\common\validate;
- use think\Db;
- use think\Validate;
- class Certificate extends Validate{
- protected $rule = [
- 'title|名称' => 'require',
- 'user_id' => 'require|gt:0',
- 'status' => 'require|in:1,2,3'
- ];
- protected $message = [
- 'user_id.require' => '未选择员工',
- 'user_id.gt' => '未选择员工',
- 'status.require' => '未选择状态',
- 'status.in' => '未选择状态',
- ];
- protected $scene = [
- ];
- }
|