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
+5 -5
View File
@@ -1,11 +1,11 @@
import Foundation
struct LoginResponse: Decodable {
struct LoginResponse: Decodable, Sendable {
let user: UserResponse
let tokens: TokenPair
}
struct RegisterResponse: Decodable {
struct RegisterResponse: Decodable, Sendable {
let user: UserResponse
private enum CodingKeys: String, CodingKey {
@@ -20,7 +20,7 @@ struct RegisterResponse: Decodable {
}
}
struct VerifyEmailResponse: Decodable {
struct VerifyEmailResponse: Decodable, Sendable {
let user: UserResponse
}
@@ -64,8 +64,8 @@ actor AuthService {
}
}
struct ResendCodeResponse: Decodable {
struct ResendCodeResponse: Decodable, Sendable {
let message: String
}
struct EmptyResponse: Decodable {}
struct EmptyResponse: Decodable, Sendable {}