feat: add RelationInsight API and wire H5 relation/profile pages

Second P1 growth engine: compare two profiles, gate full tips behind
deep-access mock payment, and list personal archives on /profile.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-02 16:28:10 +08:00
co-authored by Cursor
parent 0f320e040b
commit 14b836f53b
12 changed files with 465 additions and 14 deletions
+8
View File
@@ -65,6 +65,14 @@ export function createClient(opts: CreateClientOptions) {
call<{ order_id: string }>('/api/v1/orders', { method: 'POST', body }),
payMock: (orderId: string) =>
call<{ paid: boolean }>(`/api/v1/orders/${orderId}/pay-mock`, { method: 'POST' }),
createRelationInsight: (profile_a_id: string, profile_b_id: string) =>
call<{
insight: { id: string; report_id?: string }
report: GrowthReport
}>('/api/v1/relation/insight', {
method: 'POST',
body: { profile_a_id, profile_b_id },
}),
}
}