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

@@ -12,14 +12,9 @@ namespace Blahblah.FlowerStory.Server.Controller;
[ApiController]
[Produces("application/json")]
[Route("api/comment")]
public class CommentApiController : BaseController
public class CommentApiController(FlowerDatabase database, ILogger<CommentApiController>? logger = null) : BaseController<CommentApiController>(database, logger)
{
static readonly int?[] specialTypes = { 1, 2, 3 };
/// <inheritdoc/>
public CommentApiController(FlowerDatabase database, ILogger<BaseController>? logger = null) : base(database, logger)
{
}
static readonly int?[] specialTypes = [1, 2, 3];
/// <summary>
/// 获取符合条件的评论