43 lines
1023 B
C#

using System.ComponentModel.DataAnnotations;
namespace AGSS.Models.Entities;
public class MenuModel
{
[Key]
[MaxLength(150)]
public string Uuid { get; set; } = string.Empty;
[MaxLength(150)]
public string? ParentId { get; set; }
[MaxLength(300)]
public string Path { get; set; } = string.Empty;
[MaxLength(300)]
public string Label { get; set; } = string.Empty;
[MaxLength(300)]
public string Icon { get; set; } = string.Empty;
[MaxLength(1000)]
public string? MenuCode { get; set; }
[MaxLength(120)]
public string Adaptability { get; set; } = "pc";
[MaxLength(1200)]
public string Component { get; set; } = string.Empty;
public int Sort { get; set; }
[MaxLength(20)]
public string Status { get; set; } = "1";
[MaxLength(10000)]
public string? Query { get; set; }
public DateTime CreateTime { get; set; } = DateTime.Now;
public DateTime? UpdateTime { get; set; }
}