Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -0,0 +1,33 @@
|
||||
<?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'],
|
||||
];
|
||||
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户