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
+19
View File
@@ -0,0 +1,19 @@
package model
import (
"encoding/json"
"time"
"github.com/google/uuid"
)
// RelationInsight is a dual-profile understanding record.
type RelationInsight struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"user_id"`
ProfileAID uuid.UUID `json:"profile_a_id"`
ProfileBID uuid.UUID `json:"profile_b_id"`
Summary json.RawMessage `json:"summary"`
ReportID *uuid.UUID `json:"report_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
}