Add user settings update functionality in UserController and UserService

Implement a new endpoint in UserController to allow users to update their settings. The UserService is updated to handle the logic for updating user settings, including partial updates for various fields. Additionally, the User entity and database schema are modified to accommodate new user settings properties, ensuring persistence and retrieval of user preferences.
This commit is contained in:
2025-12-30 05:54:15 +07:00
parent 95e60108af
commit 79d8a381d9
13 changed files with 2022 additions and 2 deletions

View File

@@ -1425,16 +1425,37 @@ namespace Managing.Infrastructure.Databases.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<decimal?>("AutoswapAmount")
.HasColumnType("decimal(18,8)");
b.Property<string>("AvatarUrl")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
b.Property<bool>("EnableAutoswap")
.HasColumnType("boolean");
b.Property<bool>("IsAdmin")
.HasColumnType("boolean");
b.Property<bool>("IsGmxEnabled")
.HasColumnType("boolean");
b.Property<DateTimeOffset?>("LastConnectionDate")
.HasColumnType("timestamp with time zone");
b.Property<decimal?>("LowEthAmountAlert")
.HasColumnType("decimal(18,8)");
b.Property<decimal?>("MaxTxnGasFeePerPosition")
.HasColumnType("decimal(18,8)");
b.Property<int?>("MaxWaitingTimeForPositionToGetFilledSeconds")
.HasColumnType("integer");
b.Property<string>("MinimumConfidence")
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(255)