feat(tutorial): add /tutorial/gift_top with hardcoded starter present list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-05-28 12:02:54 -04:00
parent 0f6b3f231a
commit 2034034c1b
9 changed files with 4014 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.Gift;
[MessagePackObject]
public class GiftTopRequest : BaseRequest
{
[JsonPropertyName("page")]
[Key("page")]
public int Page { get; set; }
}

View File

@@ -0,0 +1,70 @@
using System.Text.Json.Serialization;
using MessagePack;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Responses.Gift;
[MessagePackObject]
public class GiftTopResponse
{
[JsonPropertyName("present_list")]
[Key("present_list")]
public List<PresentDto> PresentList { get; set; } = new();
[JsonPropertyName("present_history_list")]
[Key("present_history_list")]
public List<PresentDto> PresentHistoryList { get; set; } = new();
[JsonPropertyName("limit_over_present_list")]
[Key("limit_over_present_list")]
public List<PresentDto> LimitOverPresentList { get; set; } = new();
}
/// <summary>
/// Prod sends most numeric-looking fields as STRINGS on this endpoint
/// (present_id, reward_type, reward_detail_id, reward_count, condition_number,
/// present_limit_type). item_type is an INT. We mirror the prod shape exactly.
/// </summary>
[MessagePackObject]
public class PresentDto
{
[JsonPropertyName("present_id")]
[Key("present_id")]
public string PresentId { get; set; } = string.Empty;
[JsonPropertyName("reward_type")]
[Key("reward_type")]
public string RewardType { get; set; } = string.Empty;
[JsonPropertyName("reward_detail_id")]
[Key("reward_detail_id")]
public string RewardDetailId { get; set; } = string.Empty;
[JsonPropertyName("reward_count")]
[Key("reward_count")]
public string RewardCount { get; set; } = string.Empty;
[JsonPropertyName("condition_number")]
[Key("condition_number")]
public string ConditionNumber { get; set; } = "0";
[JsonPropertyName("present_limit_type")]
[Key("present_limit_type")]
public string PresentLimitType { get; set; } = "0";
[JsonPropertyName("reward_limit_time")]
[Key("reward_limit_time")]
public int RewardLimitTime { get; set; }
[JsonPropertyName("create_time")]
[Key("create_time")]
public string CreateTime { get; set; } = string.Empty;
/// <summary>Only present on item/pack-ticket entries (gifts where reward_type=4); omit on currency entries.</summary>
[JsonPropertyName("item_type")]
[Key("item_type")]
public int? ItemType { get; set; }
[JsonPropertyName("message")]
[Key("message")]
public string Message { get; set; } = string.Empty;
}