return(awaitdatabase.all<AnnotationRow>('SELECT id, image_id, x, y, content, author_name, author_role, status, closure_reason, withdrawn_at, created_at FROM annotations WHERE image_id = ? ORDER BY id ASC',[imageId])).map(toAnnotation);
constid=awaitdatabase.insertId('INSERT INTO annotations (image_id, x, y, content, author_name, author_role) VALUES (?, ?, ?, ?, ?, ?)',[imageId,data.x,data.y,data.content,data.author_name||'客户',data.author_role||'client']);
returntoAnnotation((awaitdatabase.one<AnnotationRow>('SELECT id, image_id, x, y, content, author_name, author_role, status, closure_reason, withdrawn_at, created_at FROM annotations WHERE id = ?',[id]))!);