feat: 添加管理员实验板管理界面

This commit is contained in:
2025-07-11 21:09:10 +08:00
parent 546b9250fa
commit 8789d6f9ee
12 changed files with 1060 additions and 240 deletions

View File

@@ -98,6 +98,12 @@ public class Board
[NotNull]
public required BoardStatus Status { get; set; }
/// <summary>
/// [TODO:description]
/// </summary>
[NotNull]
public string FirmVersion { get; set; } = "1.0.0";
/// <summary>
/// [TODO:description]
/// </summary>
@@ -273,6 +279,35 @@ public class AppDataConnection : DataConnection
return this.Insert(board);
}
/// <summary>
/// [TODO:description]
/// </summary>
/// <param name="name">[TODO:parameter]</param>
/// <returns>[TODO:return]</returns>
public int DeleteBoardByName(string name)
{
return this.Board.Where(board => board.BoardName == name).Delete();
}
/// <summary>
/// [TODO:description]
/// </summary>
/// <param name="id">[TODO:parameter]</param>
/// <returns>[TODO:return]</returns>
public int DeleteBoardByID(Guid id)
{
return this.Board.Where(board => board.ID == id).Delete();
}
/// <summary>
/// [TODO:description]
/// </summary>
/// <returns>[TODO:return]</returns>
public Board[] GetAllBoard()
{
return this.Board.ToArray();
}
/// <summary>
/// [TODO:description]
/// </summary>