多药房
Build Docker / build (push) Canceled after 0s

This commit is contained in:
haomingming
2026-09-08 10:09:07 +08:00
parent 4dfcdacb12
commit d3fce247e5
20 changed files with 782 additions and 65 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace App\Request;
use Hyperf\Validation\Request\FormRequest;
class DoctorPharmacyRequest extends FormRequest
{
protected array $scenes = [
'setDefault' => ['pharmacy_id'],
'bindPharmacy' => ['pharmacy_id'],
];
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'pharmacy_id' => 'required|numeric',
];
}
public function messages(): array
{
return [
'pharmacy_id.required' => '药房ID不能为空',
'pharmacy_id.numeric' => '药房ID必须为数字',
];
}
}