feat(mypage): /mypage/finish_battle (returns check=0 — no in-flight state yet)
This commit is contained in:
@@ -10,7 +10,9 @@ using SVSim.EmulatedEntrypoint.Constants;
|
||||
using SVSim.EmulatedEntrypoint.Infrastructure;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests.MyPage;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Responses;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Responses.MyPage;
|
||||
using SVSim.EmulatedEntrypoint.Services;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Controllers;
|
||||
@@ -361,4 +363,11 @@ public class MyPageController : SVSimController
|
||||
EndTime = row.EndTime.ToString(WireDateFormat, CultureInfo.InvariantCulture),
|
||||
};
|
||||
}
|
||||
|
||||
[HttpPost("finish_battle")]
|
||||
public ActionResult<MyPageFinishBattleResponse> FinishBattle([FromBody] MyPageFinishBattleRequest _)
|
||||
{
|
||||
if (!TryGetViewerId(out long __)) return Unauthorized();
|
||||
return new MyPageFinishBattleResponse { CheckUnfinishedBattle = 0 };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user