feat(WIP): 베팅 개시 타입 변경
-candidate를 미리 추가. -이를 통해 betting을 중립적으로 운용 가능
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use Sammo\DTO\SelectItem;
|
||||
use Spatie\DataTransferObject\Attributes\CastWith;
|
||||
use Spatie\DataTransferObject\Attributes\Strict;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
@@ -10,15 +12,20 @@ use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
|
||||
#[Strict]
|
||||
class NationBettingInfo extends DataTransferObject
|
||||
class BettingInfo extends DataTransferObject
|
||||
{
|
||||
public int $id;
|
||||
public string $type;
|
||||
public string $name;
|
||||
public bool $finished;
|
||||
public int $selectCnt;
|
||||
public bool $reqInheritancePoint;
|
||||
public int $openYearMonth;
|
||||
public int $closeYearMonth;
|
||||
|
||||
/** @var \sammo\DTO\SelectItem[] */
|
||||
#[CastWith(ArrayCaster::class, itemType: SelectItem::class)]
|
||||
public array $candidates;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Sammo\DTO;
|
||||
|
||||
use Spatie\DataTransferObject\Attributes\Strict;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
#[Strict]
|
||||
class SelectItem extends DataTransferObject
|
||||
{
|
||||
public string $title;
|
||||
public ?string $info;
|
||||
public ?bool $isHtml;
|
||||
public ?array $aux;
|
||||
}
|
||||
Reference in New Issue
Block a user