20 lines
750 B
Swift
20 lines
750 B
Swift
import Foundation
|
|
|
|
/// API 配置信息
|
|
public enum APIConfig {
|
|
/// API 基础 URL
|
|
public static let baseURL = "https://api.memorywake.com/api/v1"
|
|
|
|
/// 认证 token - 生产环境中应该存储在 Keychain 中
|
|
public static let authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJqdGkiOjczNjM0ODY2MTE1MDc2NDY0NjQsImlkZW50aXR5IjoiNzM1MDQzOTY2MzExNjYxOTg4OCIsImV4cCI6MTc1NjE5NjgxNX0.hRC_So6LHuR6Gx-bDyO8aliVOd-Xumul8M7cydi2pTxHPweBx4421AfZ5BjGoEEwRZPIXJ5z7a1aDB7qvjpLCA"
|
|
|
|
/// 认证请求头
|
|
public static var authHeaders: [String: String] {
|
|
return [
|
|
"Authorization": "Bearer \(authToken)",
|
|
"Content-Type": "application/json",
|
|
"Accept": "application/json"
|
|
]
|
|
}
|
|
}
|