Files
Fishing2Server/Hotfix/HTTPHandler/ProductsController.cs
2025-06-30 10:51:37 +08:00

21 lines
427 B
C#

using Microsoft.AspNetCore.Mvc;
namespace Fantasy;
[ApiController]
[Route("api/[controller]")]
public class ProductsController : ControllerBase
{
[HttpPost]
public IActionResult MiniGame ([FromBody] Product product)
{
// 假设已经保存产品数据
return Ok("Product created successfully");
}
}
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
}