refactor: 去除文章/视频/附件下载新增/编辑接口启用状态字段输入

This commit is contained in:
2025-03-31 16:53:27 +08:00
parent e9dcaa99ac
commit a347543586
6 changed files with 0 additions and 13 deletions

View File

@@ -23,7 +23,6 @@ class ArticleValidate extends Validate
'sort' => 'integer',
'recommend' => 'require|in:0,1',
'release_time' => 'dateFormat:Y-m-d H:i:s',
'enabled' => 'in:1,-1',
'seo_title' => 'max:255',
'seo_keywords' => 'max:255',
'seo_desc' => 'max:255'
@@ -49,7 +48,6 @@ class ArticleValidate extends Validate
'recommend.require' => '推荐状态不能为空',
'recommend.in' => '推荐状态的值必须是0或1',
'release_time.dateFormat' => '发布时间格式不正确',
'enabled.in' => '状态值必须是1或-1',
'seo_title.max' => 'SEO标题长度不能超过255个字符',
'seo_keywords.max' => 'SEO关键字长度不能超过255个字符',
'seo_desc.max' => 'SEO描述长度不能超过255个字符'