更新时分校名称必传
This commit is contained in:
@@ -33,7 +33,7 @@ class CampusValidator extends AetherValidator
|
||||
'update' => [
|
||||
'rules' => [
|
||||
'id' => 'required|integer|min:1',
|
||||
'name' => 'nullable|string|max:255',
|
||||
'name' => 'required|string|max:255',
|
||||
'parent_id' => 'nullable|integer|min:0',
|
||||
'level' => 'nullable|integer|in:1,2,3',
|
||||
'province' => 'nullable|string|max:100',
|
||||
@@ -42,6 +42,7 @@ class CampusValidator extends AetherValidator
|
||||
],
|
||||
'messages' => [
|
||||
'id.required' => '校区ID不能为空',
|
||||
'name.required' => '校区名称不能为空',
|
||||
'level.in' => '层级只能是1、2、3',
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user