This commit is contained in:
zel
2025-02-11 16:43:26 +08:00
parent 20ac0b5069
commit d7310a2394
9 changed files with 40 additions and 36 deletions

View File

@@ -1,12 +1,16 @@
using TightWiki.Models.DataModels;
using System.ComponentModel.DataAnnotations;
using TightWiki.Models.DataModels;
namespace TightWiki.Models.ViewModels.Admin
{
public class MenuItemViewModel : ViewModelBase
{
public int Id { get; set; }
[Display(Name = "分类")]
public string Name { get; set; } = string.Empty;
[Display(Name = "链接")]
public string Link { get; set; } = string.Empty;
[Display(Name = "序列")]
public int Ordinal { get; set; }
public MenuItem ToDataModel()