refac: DTO 구조 변경
- Converter - Constructor 관련 경고 수정 - JsonString 관련 의존성 제거, jsonFlag 지정 - DateTimeConveter에서 time format 지정
This commit is contained in:
@@ -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
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user