refac: DTO 구조 변경

- Converter - Constructor 관련 경고 수정
- JsonString 관련 의존성 제거, jsonFlag 지정
- DateTimeConveter에서 time format 지정
This commit is contained in:
2022-05-29 00:44:28 +09:00
parent 7464629597
commit 35b178fe3c
10 changed files with 96 additions and 98 deletions
+4 -2
View File
@@ -5,7 +5,9 @@ namespace sammo\DTO\Attr;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class JsonString
{
public function __construct(public readonly bool $emptyItemIsArray = false)
{
public function __construct(
public readonly bool $emptyItemIsArray = false,
public readonly int $jsonFlag = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK
) {
}
}