落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Profile is a personal archive (self or other).
|
|
type Profile struct {
|
|
ID uuid.UUID `json:"id"`
|
|
UserID uuid.UUID `json:"user_id"`
|
|
Relation string `json:"relation"`
|
|
DisplayName string `json:"display_name"`
|
|
BirthDate time.Time `json:"birth_date"`
|
|
BirthTime *string `json:"birth_time,omitempty"`
|
|
BirthPlace *string `json:"birth_place,omitempty"`
|
|
Gender *string `json:"gender,omitempty"`
|
|
RelationType *string `json:"relation_type,omitempty"`
|
|
GeoLat *float64 `json:"geo_lat,omitempty"`
|
|
GeoLng *float64 `json:"geo_lng,omitempty"`
|
|
GeoVisible bool `json:"geo_visible"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
// SynastryInvite is a shareable pair invite.
|
|
type SynastryInvite struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Token string `json:"token"`
|
|
HostUserID uuid.UUID `json:"host_user_id"`
|
|
HostProfileID uuid.UUID `json:"host_profile_id"`
|
|
ExpiresAt time.Time `json:"expires_at"`
|
|
GuestUserID *uuid.UUID `json:"guest_user_id,omitempty"`
|
|
GuestProfileID *uuid.UUID `json:"guest_profile_id,omitempty"`
|
|
ReportID *uuid.UUID `json:"report_id,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|