1
0
mirror of synced 2025-02-15 02:02:38 +01:00
GC-local-server-rewrite/MainServer/Controllers/Game/ServiceOptionController.cs

19 lines
527 B
C#

using Application.Game.Option;
using Microsoft.AspNetCore.Mvc;
namespace MainServer.Controllers.Game;
[ApiController]
[Route("service/option")]
public class ServiceOptionController : BaseController<ServiceOptionController>
{
[HttpGet("PlayInfo.php")]
public async Task<ActionResult<string>> GetPlayCount([FromQuery(Name = "card_id")] long cardId)
{
var query = new PlayCountQuery(cardId);
var count = await Mediator.Send(query);
return Ok("1\n" +
$"{count}");
}
}