백엔드 계약 문서 동기화하고 DTO 파서 정합성 확장

This commit is contained in:
JiWoong Sul
2025-10-17 00:52:30 +09:00
parent efed3c1a6f
commit 7522f46693
10 changed files with 660 additions and 194 deletions

View File

@@ -34,7 +34,7 @@ class GroupPermissionRepositoryRemote implements GroupPermissionRepository {
if (groupId != null) 'group_id': groupId,
if (menuId != null) 'menu_id': menuId,
if (isActive != null) 'active': isActive,
if (includeDeleted) 'include_deleted': true,
if (includeDeleted) 'deleted': true,
'include': 'group,menu',
},
options: Options(responseType: ResponseType.json),

View File

@@ -42,7 +42,7 @@ class MenuDto {
: json['parent'] is Map<String, dynamic>
? MenuSummaryDto.fromJson(json['parent'] as Map<String, dynamic>)
: null,
path: json['path'] as String?,
path: json['path'] as String? ?? json['route_path'] as String?,
displayOrder: json['display_order'] as int?,
isActive: (json['is_active'] as bool?) ?? true,
isDeleted: (json['is_deleted'] as bool?) ?? false,