diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-02-20 16:27:29 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-02-20 16:27:29 +0100 |
| commit | fb11d8099e44f0e02f71d46b807dcab9c890eac8 (patch) | |
| tree | 0bcbb65ff9179e3835012f950363e7e328e862b0 /backend/general | |
| parent | 4a2a8c34e87c5dd25f6d01a1aafaa10799aa907f (diff) | |
| download | llostre-fb11d8099e44f0e02f71d46b807dcab9c890eac8.tar.xz llostre-fb11d8099e44f0e02f71d46b807dcab9c890eac8.zip | |
added profile info
Diffstat (limited to 'backend/general')
| -rw-r--r-- | backend/general/profiles.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/backend/general/profiles.go b/backend/general/profiles.go new file mode 100644 index 0000000..be74364 --- /dev/null +++ b/backend/general/profiles.go @@ -0,0 +1,29 @@ +package general + +type Profile struct { + Handle string + DisplayName string + AvatarURL string + BannerURL string + Pronouns string +} + +type ProfileRecord struct { + DisplayName string `json:"displayName"` + Avatar *struct { + Ref struct { + Link string `json:"$link"` + } `json:"ref"` + } `json:"avatar,omitempty"` + Banner *struct { + Ref struct { + Link string `json:"$link"` + } `json:"ref"` + } `json:"banner,omitempty"` + Pronouns string `json:"pronouns"` +} + +type ProfileRecordResponse struct { + URI string `json:"uri"` + Value ProfileRecord `json:"value"` +} |
