模块化 AppStore 并完善素材管理与个人空间设置。
将会话、权限、位置、收款与排队存储拆分为独立模块,同步更新各 ViewModel 与单元测试,并补充素材管理 UI 与个人空间设置交互。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -99,7 +99,7 @@ final class WalletViewModel {
|
||||
/// 初始化钱包首页 ViewModel。
|
||||
init(
|
||||
staffIdProvider: @escaping () -> Int? = {
|
||||
Int(AppStore.shared.userId.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
Int(AppStore.shared.session.userId.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
},
|
||||
calendar: Calendar = Calendar(identifier: .gregorian)
|
||||
) {
|
||||
@ -480,7 +480,7 @@ final class PointsRedemptionViewModel {
|
||||
|
||||
/// 初始化积分兑现 ViewModel。
|
||||
init(staffIdProvider: @escaping () -> Int? = {
|
||||
Int(AppStore.shared.userId.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
Int(AppStore.shared.session.userId.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
}) {
|
||||
self.staffIdProvider = staffIdProvider
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user