增加老版本 KJDWebService

This commit is contained in:
chfei committed 2026-08-21 16:46:36 +08:00
1 parent 58abbb5b4f
commit f84c4c1949
115 files changed
+36598 -18

No files matched your search

@@ -0,0 +1,41 @@
using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using StoreHub.KJDWebService.Services;
namespace StoreHub.KJDWebService.Controllers
{
[ApiController]
[ApiVersionNeutral]
[Route("ToolService/[action]")]
public class ToolController : BaseApiController
{
private readonly ToolService _toolService;
public ToolController(ToolService toolService)
{
_toolService = toolService;
}
[AcceptVerbs("GET", "POST")]
public IActionResult hello_world()
{
return Content("Hello World");
}
[AcceptVerbs("GET", "POST")]
public IActionResult create_table()
{
//return;
_toolService.CreateTable();
return Content("");
}
}
}