feat(pack): gacha-point endpoint DTOs

This commit is contained in:
gamer147
2026-05-28 22:56:33 -04:00
parent 96f1d73e35
commit ef1af8259e
6 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Pack;
[MessagePackObject]
public class ExchangeGachaPointRequest : BaseRequest
{
[JsonPropertyName("card_id")]
[Key("card_id")]
public long CardId { get; set; }
[JsonPropertyName("parent_gacha_id")]
[Key("parent_gacha_id")]
public int ParentGachaId { get; set; }
[JsonPropertyName("odds_gacha_id")]
[Key("odds_gacha_id")]
public int OddsGachaId { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Pack;
/// <summary>
/// Inbound /pack/get_gacha_point_rewards body. Capture shows odds_gacha_id and parent_gacha_id
/// are always the same value (the pack id); we only consume parent_gacha_id for the lookup.
/// </summary>
[MessagePackObject]
public class GetGachaPointRewardsRequest : BaseRequest
{
[JsonPropertyName("odds_gacha_id")]
[Key("odds_gacha_id")]
public int OddsGachaId { get; set; }
[JsonPropertyName("parent_gacha_id")]
[Key("parent_gacha_id")]
public int ParentGachaId { get; set; }
}