feat: GET /api/v1/users/@me
This commit is contained in:
parent
478ba2a406
commit
fe1cf7ce8a
3 changed files with 121 additions and 0 deletions
|
@ -20,6 +20,7 @@ using Foxnouns.Backend.Services.V1;
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using NodaTime;
|
||||
|
||||
namespace Foxnouns.Backend.Dto.V1;
|
||||
|
||||
|
@ -42,6 +43,39 @@ public record UserResponse(
|
|||
Dictionary<Guid, CustomPreference> CustomPreferences
|
||||
);
|
||||
|
||||
public record CurrentUserResponse(
|
||||
string Id,
|
||||
Snowflake IdNew,
|
||||
string Sid,
|
||||
string Name,
|
||||
string? DisplayName,
|
||||
string? Bio,
|
||||
string? MemberTitle,
|
||||
string? Avatar,
|
||||
string[] Links,
|
||||
FieldEntry[] Names,
|
||||
PronounEntry[] Pronouns,
|
||||
ProfileField[] Fields,
|
||||
PrideFlag[] Flags,
|
||||
PartialMember[] Members,
|
||||
int? UtcOffset,
|
||||
Dictionary<Guid, CustomPreference> CustomPreferences,
|
||||
Instant CreatedAt,
|
||||
string? Timezone,
|
||||
bool IsAdmin,
|
||||
bool ListPrivate,
|
||||
Instant LastSidReroll,
|
||||
string? Discord,
|
||||
string? DiscordUsername,
|
||||
string? Google,
|
||||
string? GoogleUsername,
|
||||
string? Tumblr,
|
||||
string? TumblrUsername,
|
||||
string? Fediverse,
|
||||
string? FediverseUsername,
|
||||
string? FediverseInstance
|
||||
);
|
||||
|
||||
public record CustomPreference(
|
||||
string Icon,
|
||||
string Tooltip,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue