feat: add user settings endpoint

This commit is contained in:
sam 2024-09-05 22:17:10 +02:00
parent 22d09ad7a6
commit fa3c1ccaa7
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 536 additions and 139 deletions

View file

@ -25,6 +25,7 @@ public class User : BaseModel
public List<Member> Members { get; } = [];
public List<AuthMethod> AuthMethods { get; } = [];
public UserSettings Settings { get; set; } = new();
public required Instant LastActive { get; set; }
@ -58,4 +59,9 @@ public enum PreferenceSize
Large,
Normal,
Small,
}
public class UserSettings
{
public bool? DarkMode { get; set; } = null;
}