問題修正
This commit is contained in:
parent
e8bdbaf7eb
commit
1a9aeb7fb3
@ -36,12 +36,7 @@ class BranchControlController extends Controller
|
||||
* @OA\Property(
|
||||
* property="rooms",
|
||||
* type="object",
|
||||
* additionalProperties=@OA\Schema(
|
||||
* @OA\Property(property="is_online", type="boolean", example=true),
|
||||
* @OA\Property(property="status", ref="#/components/schemas/RoomStatus"),
|
||||
* @OA\Property(property="started_at", type="string", format="date-time", example="2025-06-04 10:00:00Z"),
|
||||
* @OA\Property(property="ended_at", type="string", format="date-time", example="2025-06-04 12:00:00Z")
|
||||
* )
|
||||
* additionalProperties={"$ref": "#/components/schemas/RoomInfo"}
|
||||
* )
|
||||
* ))
|
||||
* )
|
||||
@ -62,6 +57,7 @@ class BranchControlController extends Controller
|
||||
* ),
|
||||
* )
|
||||
*/
|
||||
|
||||
public function Branches(Request $request): JsonResponse
|
||||
{
|
||||
$branches = Branch::with('rooms')->get()->map(function ($branch) {
|
||||
|
@ -21,6 +21,16 @@ use App\Traits\LogsModelActivity;
|
||||
* @OA\Property(property="ended_at", type="string", format="date-time", example=null),
|
||||
* )
|
||||
*/
|
||||
/**
|
||||
* @OA\Schema(
|
||||
* schema="RoomInfo",
|
||||
* type="object",
|
||||
* @OA\Property(property="is_online", type="boolean", example=true),
|
||||
* @OA\Property(property="status", ref="#/components/schemas/RoomStatus"),
|
||||
* @OA\Property(property="started_at", type="string", format="date-time", example="2025-06-04T10:00:00Z"),
|
||||
* @OA\Property(property="ended_at", type="string", format="date-time", example="2025-06-04T12:00:00Z")
|
||||
* )
|
||||
*/
|
||||
class Room extends Model
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\ArtistFactory> */
|
||||
|
Loading…
x
Reference in New Issue
Block a user