調整 正規化 20250701
ReceiveRoomRegisterRequest 移除 branch_name 改為nullable ,room_name,room_ip
This commit is contained in:
parent
532168f4d1
commit
0d5f78236b
@ -7,10 +7,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
/**
|
||||
* @OA\Schema(
|
||||
* schema="ReceiveRoomRegisterRequest",
|
||||
* required={"branch_name", "room_name", "email" ,"password"},
|
||||
* @OA\Property(property="branch_name", type="string", example="測試"),
|
||||
* @OA\Property(property="room_name", type="string", example="PC101"),
|
||||
* @OA\Property(property="room_ip", type="string", example="192.168.1.1"),
|
||||
* required={ "email" ,"password" },
|
||||
* @OA\Property(property="email", type="string", example="XX@gmail.com"),
|
||||
* @OA\Property(property="password", type="string", example="XXX"),
|
||||
* )
|
||||
@ -25,9 +22,8 @@ class ReceiveRoomRegisterRequest extends ApiRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'branch_name' =>'required|string|exists:branches,name',
|
||||
'room_name' => 'required|string',
|
||||
'room_ip' => 'required|string',
|
||||
'room_name' => 'nullable|string',
|
||||
'room_ip' => 'nullable|string',
|
||||
'email' => 'required|email',
|
||||
'password' => 'required',
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user