refac: 변경한 DTO에 따라 코드 수정

- Spatie/DataTransferObject 대비
  - MapFrom,MapTo -> RawName
  - Strict -> 항상
     - 심지어 raw type도 더 까다롭게
  - array에 MapConverter 적용
  - NullIsUndefined 적용
  - 빈 nullable arg자리에 null 강제 지정
- Vue3에 v-model.number 지정
  - input type="number" 기준
This commit is contained in:
2022-05-22 22:39:28 +09:00
parent 43a5162a15
commit 78a55fb87a
24 changed files with 152 additions and 128 deletions
+6 -1
View File
@@ -383,10 +383,12 @@ function getDummyBettingInfo(string $tnmt_type): BettingInfo
name: $tnmt_type,
finished: true,
selectCnt: 1,
isExclusive: null,
reqInheritancePoint: false,
openYearMonth: 0,
closeYearMonth: 0,
candidates: []
candidates: [],
winner: null,
);
}
@@ -425,6 +427,7 @@ function startBetting($type, $unit)
$candidates[$general['no']] = new \sammo\DTO\SelectItem(
title: $general['name'],
info: "{$statName}: {$general[$statKey]}",
isHtml: null,
aux: $general
);
}
@@ -436,10 +439,12 @@ function startBetting($type, $unit)
name: $typeText,
finished: false,
selectCnt: 1,
isExclusive: null,
reqInheritancePoint: false,
openYearMonth: $openYearMonth,
closeYearMonth: $closeYearMonth,
candidates: $candidates,
winner: null,
));
$betting = new Betting($bettingID);