Files
pulse-mobile/PulseHealth/Models/AuthModels.swift

6 lines
317 B
Swift

import Foundation
struct LoginRequest: Codable { let email: String; let password: String }
struct LoginResponse: Codable { let token: String; let user: UserInfo }
struct UserInfo: Codable { let id: Int; let email: String; let name: String }
struct ProfileResponse: Codable { let user: UserInfo; let apiKey: String? }