upgrade to .net 8

This commit is contained in:
2024-10-12 14:34:11 +08:00
parent 7a44b7fd9c
commit c914f13828
15 changed files with 384 additions and 393 deletions

View File

@@ -9,12 +9,8 @@ namespace Blahblah.FlowerStory.Server.Controller;
[ApiController]
[Produces("application/json")]
[Route("api")]
public partial class ApiController : BaseController
public partial class ApiController(FlowerDatabase database, ILogger<ApiController>? logger = null) : BaseController<ApiController>(database, logger)
{
/// <inheritdoc/>
public ApiController(FlowerDatabase database, ILogger<BaseController>? logger = null) : base(database, logger)
{
}
/// <summary>
/// 获取版本号
@@ -46,7 +42,7 @@ public partial class ApiController : BaseController
/// </remarks>
/// <returns>字典集</returns>
/// <response code="200">返回常量字典集</response>
[Route("consts", Name = "getConsts")]
[Route("consts", Name = "getConstants")]
[HttpGet]
public ActionResult<DefinitionResult> GetDefinitions()
{