feat: add article and production modules

This commit is contained in:
2026-08-31 13:16:46 +08:00
parent ac3da246b2
commit 5c586a1a95
334 changed files with 34419 additions and 1 deletions
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace plugin\produce\app\validate;
use core\base\BaseValidate;
class MaterialCategoryValidate extends BaseValidate
{
public function rules(): array
{
return ['category_name' => ['required', 'max:100']];
}
protected array $message = [
'category_name.required' => '分类名称不能为空',
'category_name.max' => '分类名称不能超过100个字符',
];
protected array $scene = [
'store' => ['category_name'],
'update' => ['category_name'],
];
}