refactor: 配置项值字数限制修改

This commit is contained in:
2025-04-23 16:54:10 +08:00
parent e06c8dfe99
commit 9057f6c8ac
3 changed files with 8 additions and 8 deletions

View File

@@ -19,8 +19,8 @@ class SysConfigValidate extends Validate
'group_id' => 'require|integer',
'title' => 'require|max:64',
'name' => 'require|unique:sys_config,group_id^name|max:64',
'value' => 'max:255',
'extra' => 'max:255|checkLinkage',
'value' => 'max:512',
'extra' => 'max:512|checkLinkage',
'type' => 'max:64',
'sort' => 'integer',
'remark' => 'max:255'
@@ -42,8 +42,8 @@ class SysConfigValidate extends Validate
'name.require' => '标识不能为空',
'name.unique' => '标识已存在',
'name.max' => '名称最多不能超过64个字符',
'value.max' => '值最多不能超过255个字符',
'extra.max' => '额外信息最多不能超过255个字符',
'value.max' => '值最多不能超过512个字符',
'extra.max' => '额外信息最多不能超过512个字符',
'type.max' => '类型最多不能超过64个字符',
'sort.integer' => '排序必须是整数',
'remark.max' => '备注最多不能超过255个字符',