feat(miniapp): 拍照巡检页(拍照上传 + AI 结果 + 历史记录,#8)

This commit is contained in:
weijuesen
2026-08-12 17:00:13 +08:00
parent 22b6179c85
commit 8274cc8c14
7 changed files with 420 additions and 0 deletions
+20
View File
@@ -209,6 +209,26 @@ export interface KnowledgeArticle {
sortOrder?: number;
}
export interface AIDetection {
bbox: { x: number; y: number; w: number; h: number };
class: string;
confidence: number;
}
export interface InspectionRecord {
id: string;
userId?: string;
roomId?: string;
imageUrl?: string;
detections?: AIDetection[];
riskScore?: number;
riskLevel?: string;
aiStatus: string;
idempotencyKey?: string;
createdAt?: string;
updatedAt?: string;
}
export interface ApiResponse<T> {
data: T;
message?: string;