Start migration to asp .net core + entity framework core

This commit is contained in:
asesidaa
2023-02-08 21:33:22 +08:00
parent aea09c2c8b
commit f7761f200f
56 changed files with 2798 additions and 0 deletions
@@ -0,0 +1,19 @@
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}");
}
}