feat: enhance models and services with Sendable conformance, add preview data for debugging

This commit is contained in:
2026-03-14 07:18:35 +07:00
parent a4b475b13f
commit 758f5ec05f
17 changed files with 851 additions and 198 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import Foundation
struct UserResponse: Codable, Identifiable {
struct UserResponse: Codable, Identifiable, Sendable {
let id: UUID
let email: String
let status: UserStatus
@@ -18,7 +18,7 @@ struct UserResponse: Codable, Identifiable {
}
}
enum UserStatus: String, Codable {
enum UserStatus: String, Codable, Sendable {
case pending
case active
case suspended
@@ -26,7 +26,7 @@ enum UserStatus: String, Codable {
}
// Helper for Any JSON values
struct AnyCodable: Codable {
struct AnyCodable: Codable, @unchecked Sendable {
let value: Any
init(_ value: Any) {