調整 ID 非必要 20250717
This commit is contained in:
parent
03e890bdf0
commit
6c8780e895
@ -7,7 +7,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
/**
|
||||
* @OA\Schema(
|
||||
* schema="ReceiveSwitchRequest",
|
||||
* required={"id","branch_id", "floor", "type", "name", "is_online", "status"},
|
||||
* required={"branch_id", "floor", "type", "name", "is_online", "status"},
|
||||
* @OA\Property(property="id", type="integer", example="1"),
|
||||
* @OA\Property(property="branch_id", type="integer", example="1"),
|
||||
* @OA\Property(property="floor", type="integer", example=2),
|
||||
@ -31,7 +31,7 @@ class ReceiveSwitchRequest extends ApiRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'id' => ['required','integer','exists:rooms,id'],
|
||||
'id' => ['nullable'],
|
||||
'branch_id' => ['required','integer','exists:branches,id'],
|
||||
'floor' => ['required','integer'],
|
||||
'type' => ['required','in:unset,pc,svr'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user