You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
661 B
33 lines
661 B
<?php
|
|
|
|
namespace app\admin\validate\shopro\data;
|
|
|
|
use think\Validate;
|
|
|
|
class Faq extends Validate
|
|
{
|
|
/**
|
|
* 验证规则
|
|
*/
|
|
protected $rule = [
|
|
'title' => 'require',
|
|
'content' => 'require',
|
|
'status' => 'require',
|
|
];
|
|
/**
|
|
* 提示消息
|
|
*/
|
|
protected $message = [
|
|
'title.require' => '请填写 Faq 标题',
|
|
'content.require' => '请填写 Faq 内容',
|
|
'status.require' => '请选择 Faq 状态',
|
|
];
|
|
/**
|
|
* 验证场景
|
|
*/
|
|
protected $scene = [
|
|
'add' => ['title', 'content', 'status'],
|
|
'edit' => ['title', 'content', 'status'],
|
|
];
|
|
|
|
}
|
|
|