feat: add community tag icons
This commit is contained in:
@@ -10,12 +10,14 @@ class CommunityTagValidate extends BaseValidate
|
||||
protected $rule = [
|
||||
'id' => 'require|checkTag',
|
||||
'name' => 'require|length:1,50',
|
||||
'icon' => 'max:500',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'id.require' => '标签id不能为空',
|
||||
'name.require' => '标签名称不能为空',
|
||||
'name.length' => '标签名称长度须在1-50位字符',
|
||||
'icon.max' => '标签图标地址不能超过500个字符',
|
||||
];
|
||||
|
||||
public function sceneAdd()
|
||||
|
||||
Reference in New Issue
Block a user