feat: 接口调用
This commit is contained in:
parent
ee1b1321ff
commit
2c1c16b389
@ -89,7 +89,9 @@ struct MemoriesView: View {
|
||||
isLoading = true
|
||||
errorMessage = nil
|
||||
|
||||
NetworkService.shared.get(path: "/material/list") { [self] (result: Result<MaterialResponse, NetworkError>) in
|
||||
let parameters: [String: Any] = ["page": 0]
|
||||
|
||||
NetworkService.shared.get(path: "/material/list", parameters: parameters) { [self] (result: Result<MaterialResponse, NetworkError>) in
|
||||
DispatchQueue.main.async { [self] in
|
||||
self.isLoading = false
|
||||
|
||||
|
||||
@ -167,7 +167,7 @@ struct MediaUploadView: View {
|
||||
}
|
||||
|
||||
// 开始上传
|
||||
// uploadManager.startUpload()
|
||||
uploadManager.startUpload()
|
||||
} else {
|
||||
print("ℹ️ 没有新文件需要添加,所有选择的文件都已存在")
|
||||
}
|
||||
@ -249,7 +249,7 @@ struct MediaUploadView: View {
|
||||
}
|
||||
|
||||
// 开始上传新添加的媒体
|
||||
// uploadManager.startUpload()
|
||||
uploadManager.startUpload()
|
||||
print("媒体添加完成,总数量: \(uploadManager.selectedMedia.count)")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user