feat:第一次提交

This commit is contained in:
LyMysterious
2025-10-17 18:33:29 +08:00
commit 79780d8b3a
26 changed files with 1372 additions and 0 deletions
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using NapCatRobotClient.Service.Dispatcher.Service;
namespace NapCatRobotClient.API.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class EntryController : ControllerBase
{
private readonly IDispatcherService _dispatcherService;
public EntryController(IDispatcherService dispatcherService)
{
_dispatcherService = dispatcherService;
}
[HttpPost]
public async Task<IActionResult> Post()
{
using StreamReader reader = new(Request.Body);
string body = await reader.ReadToEndAsync();
bool result = await _dispatcherService.ReceiveMessageAndProcess(body);
return Ok(result);
}
}
}