refactor: 去除文章/视频/附件下载新增/编辑接口启用状态字段输入
This commit is contained in:
@@ -93,7 +93,6 @@ class Article
|
|||||||
'content',
|
'content',
|
||||||
'recommend',
|
'recommend',
|
||||||
'release_time',
|
'release_time',
|
||||||
'enabled' => 1,
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc',
|
'seo_desc',
|
||||||
@@ -126,7 +125,6 @@ class Article
|
|||||||
'content',
|
'content',
|
||||||
'recommend',
|
'recommend',
|
||||||
'release_time',
|
'release_time',
|
||||||
'enabled',
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc',
|
'seo_desc',
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ class Attachment
|
|||||||
'applicable_to',
|
'applicable_to',
|
||||||
'support_platform',
|
'support_platform',
|
||||||
'attach',
|
'attach',
|
||||||
'status' => 1,
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc'
|
'seo_desc'
|
||||||
@@ -127,7 +126,6 @@ class Attachment
|
|||||||
'applicable_to',
|
'applicable_to',
|
||||||
'support_platform',
|
'support_platform',
|
||||||
'attach',
|
'attach',
|
||||||
'status',
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc'
|
'seo_desc'
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ class Video
|
|||||||
'image',
|
'image',
|
||||||
'video',
|
'video',
|
||||||
'link',
|
'link',
|
||||||
'status' => 1,
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc'
|
'seo_desc'
|
||||||
@@ -124,7 +123,6 @@ class Video
|
|||||||
'image',
|
'image',
|
||||||
'video',
|
'video',
|
||||||
'link',
|
'link',
|
||||||
'status' => 1,
|
|
||||||
'seo_title',
|
'seo_title',
|
||||||
'seo_keywords',
|
'seo_keywords',
|
||||||
'seo_desc'
|
'seo_desc'
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ class ArticleValidate extends Validate
|
|||||||
'sort' => 'integer',
|
'sort' => 'integer',
|
||||||
'recommend' => 'require|in:0,1',
|
'recommend' => 'require|in:0,1',
|
||||||
'release_time' => 'dateFormat:Y-m-d H:i:s',
|
'release_time' => 'dateFormat:Y-m-d H:i:s',
|
||||||
'enabled' => 'in:1,-1',
|
|
||||||
'seo_title' => 'max:255',
|
'seo_title' => 'max:255',
|
||||||
'seo_keywords' => 'max:255',
|
'seo_keywords' => 'max:255',
|
||||||
'seo_desc' => 'max:255'
|
'seo_desc' => 'max:255'
|
||||||
@@ -49,7 +48,6 @@ class ArticleValidate extends Validate
|
|||||||
'recommend.require' => '推荐状态不能为空',
|
'recommend.require' => '推荐状态不能为空',
|
||||||
'recommend.in' => '推荐状态的值必须是0或1',
|
'recommend.in' => '推荐状态的值必须是0或1',
|
||||||
'release_time.dateFormat' => '发布时间格式不正确',
|
'release_time.dateFormat' => '发布时间格式不正确',
|
||||||
'enabled.in' => '状态值必须是1或-1',
|
|
||||||
'seo_title.max' => 'SEO标题长度不能超过255个字符',
|
'seo_title.max' => 'SEO标题长度不能超过255个字符',
|
||||||
'seo_keywords.max' => 'SEO关键字长度不能超过255个字符',
|
'seo_keywords.max' => 'SEO关键字长度不能超过255个字符',
|
||||||
'seo_desc.max' => 'SEO描述长度不能超过255个字符'
|
'seo_desc.max' => 'SEO描述长度不能超过255个字符'
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ class AttachmentValidate extends Validate
|
|||||||
'attach.*.ext' => 'string',
|
'attach.*.ext' => 'string',
|
||||||
'attach.*.btn_name' => 'string',
|
'attach.*.btn_name' => 'string',
|
||||||
'sort' => 'integer',
|
'sort' => 'integer',
|
||||||
'status' => 'in:1,-1',
|
|
||||||
'recommend' => 'in:0,1',
|
'recommend' => 'in:0,1',
|
||||||
'seo_title' => 'max:255',
|
'seo_title' => 'max:255',
|
||||||
'seo_keywords' => 'max:255',
|
'seo_keywords' => 'max:255',
|
||||||
@@ -56,7 +55,6 @@ class AttachmentValidate extends Validate
|
|||||||
'attach.*.file_ext.string' => '附件扩展名必须是字符串',
|
'attach.*.file_ext.string' => '附件扩展名必须是字符串',
|
||||||
'attach.*.btn_name.string' => '附件按钮名必须是字符串',
|
'attach.*.btn_name.string' => '附件按钮名必须是字符串',
|
||||||
'sort.integer' => '排序必须是整数',
|
'sort.integer' => '排序必须是整数',
|
||||||
'status.in' => '状态必须是1或-1',
|
|
||||||
'recommend.in' => '推荐状态必须是0或1',
|
'recommend.in' => '推荐状态必须是0或1',
|
||||||
'seo_title.max' => 'SEO标题不能超过255个字符',
|
'seo_title.max' => 'SEO标题不能超过255个字符',
|
||||||
'seo_keywords.max' => 'SEO关键字不能超过255个字符',
|
'seo_keywords.max' => 'SEO关键字不能超过255个字符',
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ class VideoValidate extends Validate
|
|||||||
'link' => 'url|max:125',
|
'link' => 'url|max:125',
|
||||||
'sort' => 'integer',
|
'sort' => 'integer',
|
||||||
'recommend' => 'integer|in:1,0',
|
'recommend' => 'integer|in:1,0',
|
||||||
'status' => 'integer|in:1,-1',
|
|
||||||
'seo_title' => 'max:255',
|
'seo_title' => 'max:255',
|
||||||
'seo_keywords' => 'max:255',
|
'seo_keywords' => 'max:255',
|
||||||
'seo_desc' => 'max:255',
|
'seo_desc' => 'max:255',
|
||||||
@@ -53,8 +52,6 @@ class VideoValidate extends Validate
|
|||||||
'sort.integer' => '排序参数类型错误',
|
'sort.integer' => '排序参数类型错误',
|
||||||
'recommend.integer' => '推荐参数类型错误',
|
'recommend.integer' => '推荐参数类型错误',
|
||||||
'recommend.in' => '推荐参数错误,必须是1或0',
|
'recommend.in' => '推荐参数错误,必须是1或0',
|
||||||
'status.integer' => '状态参数类型错误',
|
|
||||||
'status.in' => '状态参数错误,必须是1或-1',
|
|
||||||
'seo_title.max' => 'SEO标题不能超过255个字符',
|
'seo_title.max' => 'SEO标题不能超过255个字符',
|
||||||
'seo_keywords.max' => 'SEO关键字不能超过255个字符',
|
'seo_keywords.max' => 'SEO关键字不能超过255个字符',
|
||||||
'seo_desc.max' => 'SEO描述不能超过255个字符',
|
'seo_desc.max' => 'SEO描述不能超过255个字符',
|
||||||
|
|||||||
Reference in New Issue
Block a user