調整 FavoriteSongs 資料塞值改用seeder 加入 user_song table /api/room/receiveRegister 調整邏輯 room介面 開關包帳功能調整 寫入心跳封包 20250522
34 lines
1016 B
PHP
34 lines
1016 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
/**
|
|
* @OA\Schema(
|
|
* schema="ReceiveRoomRegisterRequest",
|
|
* required={"branch_id", "room_name", "email" ,"password"},
|
|
* @OA\Property(property="branch_id", type="integer", example="1"),
|
|
* @OA\Property(property="room_name", type="string", example="102"),
|
|
* @OA\Property(property="email", type="string", example="XX@gmail.com"),
|
|
* @OA\Property(property="password", type="string", example="XXX"),
|
|
* )
|
|
*/
|
|
class ReceiveRoomRegisterRequest extends ApiRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'branch_id' => 'required|integer|exists:branches,id',
|
|
'room_name' => 'required|string',
|
|
'email' => 'required|email',
|
|
'password' => 'required',
|
|
];
|
|
}
|
|
}
|