feat(account): add /account/update_name endpoint

Implements POST /account/update_name — writes Viewer.DisplayName and
returns an empty array per the prod capture. Includes TDD test covering
the persist side-effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-05-28 11:54:14 -04:00
parent bc9ffe1d31
commit 0f6b3f231a
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Account;
[MessagePackObject]
public class AccountUpdateNameRequest : BaseRequest
{
[JsonPropertyName("name")]
[Key("name")]
public string Name { get; set; } = string.Empty;
}