新增 SplashView、SplashCoordinator 与 Launch Screen 资源,移除冷启动 Lottie;LoginView 加载 App 配置。同时将 token 存储迁移至 UserDefaults,并更新相关测试与文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
502 B
Swift
23 lines
502 B
Swift
//
|
||
// AppConfigModels.swift
|
||
// suixinkan
|
||
//
|
||
// Created by Codex on 2026/6/29.
|
||
//
|
||
|
||
import Foundation
|
||
|
||
/// App 远程配置响应,对齐 Android `AppConfigResponse`。
|
||
struct AppConfigResponse: Decodable, Equatable {
|
||
let enableRegister: Bool
|
||
|
||
enum CodingKeys: String, CodingKey {
|
||
case enableRegister = "enable_register"
|
||
}
|
||
|
||
/// 创建 App 配置响应,默认关闭注册入口。
|
||
init(enableRegister: Bool = false) {
|
||
self.enableRegister = enableRegister
|
||
}
|
||
}
|