feat(guild): controller scaffolding + /guild/info baseline
- 5 common DTOs under Models/Dtos/Common/Guild/ (GuildDetailDto, GuildUserBaseDto, GuildMemberInfoDto, ChatUserDto, ChatMessageDto) - 28 per-endpoint request/response DTOs under Models/Dtos/Guild/ and Models/Dtos/GuildChat/ with full [MessagePackObject]/[Key]/ [JsonPropertyName] attribute mirrors on every property - GuildController (22 actions): /guild/info returns prod-shape with config-backed max_member_num/max_sub_leader_num/usable_stamp_list; 21 stubs return empty/default DTOs - GuildChatController (7 stubs), /guild_chat/messages stub returns wait_interval=10 per config - 29 new routing smoke test cases (100 total, all pass) - GuildWireShape literal-JSON test for GuildInfoResponse (1/1 pass) - GameConfigurationJsonbTests updated for 17th GuildConfig section - Total: 1422 tests pass, 0 errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Common.Guild;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Guild;
|
||||
|
||||
/// <summary>
|
||||
/// Response for POST /guild/invited_guild_list.
|
||||
/// Each entry is GuildDetail fields + invite_id as flat siblings on the wire.
|
||||
/// Per spec: client constructs GuildDetailInfo + reads invite_id from the SAME object.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class GuildInvitedGuildListResponse
|
||||
{
|
||||
[JsonPropertyName("list"), Key("list")]
|
||||
public List<GuildReceivedInviteDto> List { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ReceivedInvite — GuildDetail fields flat-spread + invite_id.
|
||||
/// invite_id and detail fields are siblings, not nested (per guild-invited_guild_list.md).
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class GuildReceivedInviteDto
|
||||
{
|
||||
[JsonPropertyName("guild_id"), Key("guild_id"), JsonConverter(typeof(StringifiedIntConverter))]
|
||||
public int GuildId { get; set; }
|
||||
|
||||
[JsonPropertyName("guild_name"), Key("guild_name")]
|
||||
public string GuildName { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("description"), Key("description")]
|
||||
public string Description { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("guild_emblem_id"), Key("guild_emblem_id"), JsonConverter(typeof(StringifiedLongConverter))]
|
||||
public long GuildEmblemId { get; set; }
|
||||
|
||||
[JsonPropertyName("join_condition"), Key("join_condition"), JsonConverter(typeof(StringifiedIntConverter))]
|
||||
public int JoinCondition { get; set; }
|
||||
|
||||
[JsonPropertyName("activity"), Key("activity"), JsonConverter(typeof(StringifiedIntConverter))]
|
||||
public int Activity { get; set; }
|
||||
|
||||
[JsonPropertyName("member_num"), Key("member_num"), JsonConverter(typeof(StringifiedIntConverter))]
|
||||
public int MemberNum { get; set; }
|
||||
|
||||
[JsonPropertyName("leader_name"), Key("leader_name")]
|
||||
public string LeaderName { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("leader_viewer_id"), Key("leader_viewer_id"), JsonConverter(typeof(StringifiedLongConverter))]
|
||||
public long LeaderViewerId { get; set; }
|
||||
|
||||
/// <summary>Invite id — pass to /guild/join (from_invite=true) or /guild/reject_invite.</summary>
|
||||
[JsonPropertyName("invite_id"), Key("invite_id")]
|
||||
public long InviteId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user