feat: 更新素材管理和举报风险地图
This commit is contained in:
@ -13,13 +13,15 @@ final class MockLocationProvider: LocationProviding, @unchecked Sendable {
|
||||
var reverseGeocodeResult = "北京市东城区"
|
||||
var requestSnapshotError: Error?
|
||||
var requestCoordinateError: Error?
|
||||
var requestedAccuracies: [CLLocationAccuracy] = []
|
||||
|
||||
func requestSnapshot() async throws -> HomeLocationSnapshot {
|
||||
if let requestSnapshotError { throw requestSnapshotError }
|
||||
return snapshot
|
||||
}
|
||||
|
||||
func requestCoordinate() async throws -> CLLocationCoordinate2D {
|
||||
func requestCoordinate(desiredAccuracy: CLLocationAccuracy) async throws -> CLLocationCoordinate2D {
|
||||
requestedAccuracies.append(desiredAccuracy)
|
||||
if let requestCoordinateError { throw requestCoordinateError }
|
||||
return coordinate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user