feat: complete TASK-WP4-04 color and dynamic stickers

This commit is contained in:
suyx
2026-08-03 14:11:40 +08:00
parent dd7a23a281
commit 457e1147e4
29 changed files with 2234 additions and 61 deletions
+15
View File
@@ -0,0 +1,15 @@
export interface AmapAdapter {
reverseGeocode(coordinates: { latitude: number; longitude: number }): Promise<{ formattedValue: string; serviceMode: "mock" }>;
}
export class MockAmapAdapter implements AmapAdapter {
readonly calls: Array<{ latitude: number; longitude: number }> = [];
async reverseGeocode(coordinates: { latitude: number; longitude: number }) {
this.calls.push({ ...coordinates });
return {
formattedValue: `模拟地点 ${coordinates.latitude.toFixed(4)}, ${coordinates.longitude.toFixed(4)}`,
serviceMode: "mock" as const,
};
}
}