Commit a6e7c52
committed
refactor(details): use domain model for profile caching and cleanup DTOs
This commit simplifies the user profile data handling by using the `GithubUserProfile` domain model directly for caching and removing redundant DTOs and mappers.
- **refactor(details)**: Removed `GithubUserProfileDto` and its associated mapper.
- **refactor(details)**: Updated `DetailsRepositoryImpl` to cache and retrieve `GithubUserProfile` directly instead of using a DTO.
- **feat(core)**: Added `@Serializable` to `GithubUserProfile` and `PaginatedDiscoveryRepositories` to support serialization/caching.
- **chore**: Cleaned up unused imports in `ProfileRepositoryImpl` and `DetailsRepositoryImpl`.1 parent cd41c1f commit a6e7c52
6 files changed
Lines changed: 12 additions & 51 deletions
File tree
- core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model
- feature
- details/data/src/commonMain/kotlin/zed/rainxch/details/data
- mappers
- model
- repository
- profile/data/src/commonMain/kotlin/zed/rainxch/profile/data/repository
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
419 | 417 | | |
420 | 418 | | |
421 | 419 | | |
422 | | - | |
| 420 | + | |
423 | 421 | | |
424 | | - | |
| 422 | + | |
425 | 423 | | |
426 | 424 | | |
427 | 425 | | |
| |||
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
434 | | - | |
| 432 | + | |
435 | 433 | | |
436 | 434 | | |
437 | 435 | | |
| |||
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
448 | | - | |
| 446 | + | |
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | | - | |
| 451 | + | |
454 | 452 | | |
455 | | - | |
| 453 | + | |
456 | 454 | | |
457 | 455 | | |
458 | 456 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
0 commit comments