This commit is contained in:
Aether
2025-09-25 08:48:23 +08:00
parent 8be88311d4
commit f286e18e71
9 changed files with 57 additions and 347 deletions

View File

@@ -29,7 +29,7 @@ class TeacherValidator extends AetherValidator
'age.max' => '年龄不能大于65岁',
'gender.in' => '性别只能是1(男)或2(女)',
'avatar.url' => '头像必须是有效的URL',
]
],
],
'update' => [
'rules' => [
@@ -47,7 +47,7 @@ class TeacherValidator extends AetherValidator
'age.max' => '年龄不能大于65岁',
'gender.in' => '性别只能是1(男)或2(女)',
'avatar.url' => '头像必须是有效的URL',
]
],
],
'query' => [
'rules' => [
@@ -57,9 +57,9 @@ class TeacherValidator extends AetherValidator
'major_subject' => 'nullable|string|max:100',
'status' => 'nullable|integer|in:0,1',
'page' => 'nullable|integer|min:1',
'size' => 'nullable|integer|min:1|max'
'size' => 'nullable|integer|min:1|max',
],
]
],
];
}
}
}