feat(WIP): 베팅 관련 작업중
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Sammo\DTO;
|
||||
|
||||
use Spatie\DataTransferObject\Attributes\MapFrom;
|
||||
use Spatie\DataTransferObject\Attributes\Strict;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
#[Strict]
|
||||
class BettingItem extends DataTransferObject
|
||||
{
|
||||
#[MapFrom('id')]
|
||||
public null|int $rowID = null;
|
||||
#[MapFrom('betting_id')]
|
||||
public int $bettingID;
|
||||
#[MapFrom('general_id')]
|
||||
public int $generalID;
|
||||
#[MapFrom('user_id')]
|
||||
public null|int $userID;
|
||||
#[MapFrom('betting_type')]
|
||||
public string $bettingType;
|
||||
public int $amount;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use Spatie\DataTransferObject\Attributes\Strict;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
//https://json2dto.atymic.dev/
|
||||
|
||||
|
||||
|
||||
#[Strict]
|
||||
class NationBettingInfo extends DataTransferObject
|
||||
{
|
||||
public int $id;
|
||||
public string $name;
|
||||
public bool $finished;
|
||||
public int $selectCnt;
|
||||
public bool $reqInheritancePoint;
|
||||
public int $openYearMonth;
|
||||
public int $closeYearMonth;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
{
|
||||
"id": 45,
|
||||
"name": "1차전",
|
||||
"finished": false,
|
||||
"selectCnt": 1,
|
||||
"reqInheritancePoint": true,
|
||||
"openYearMonth": 110,
|
||||
"closeYearMonth": 120
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user