feat(mypage): /mypage/get_special_crystal_info (empty — no offers)

This commit is contained in:
gamer147
2026-06-12 23:12:49 -04:00
parent 43e4c06a2c
commit e2f5786b60
2 changed files with 33 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ using SVSim.Database.Services;
using SVSim.EmulatedEntrypoint.Constants;
using SVSim.EmulatedEntrypoint.Infrastructure;
using SVSim.EmulatedEntrypoint.Models.Dtos;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests.MyPage;
using SVSim.EmulatedEntrypoint.Models.Dtos.Responses;
@@ -370,4 +371,13 @@ public class MyPageController : SVSimController
if (!TryGetViewerId(out long __)) return Unauthorized();
return new MyPageFinishBattleResponse { CheckUnfinishedBattle = 0 };
}
[HttpPost("get_special_crystal_info")]
public ActionResult<EmptyResponse> GetSpecialCrystalInfo([FromBody] BaseRequest _)
{
if (!TryGetViewerId(out long __)) return Unauthorized();
// No special-crystal offers configured. Spec mock is `data: {}` for the no-offers
// case — special_crystal_info field is optional and omitted when absent.
return new EmptyResponse();
}
}