2025-07-14 15:10:13 +08:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
namespace AGSS.Models.Entities;
|
|
|
|
|
|
|
|
public class MenuModel
|
|
|
|
{
|
|
|
|
[Key]
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(150)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Uuid { get; set; } = string.Empty;
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(150)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string? ParentId { get; set; }
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(300)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Path { get; set; } = string.Empty;
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(300)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(300)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Icon { get; set; } = string.Empty;
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(1000)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string? MenuCode { get; set; }
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(120)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Adaptability { get; set; } = "pc";
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(1200)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Component { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(20)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string Status { get; set; } = "1";
|
|
|
|
|
2025-07-16 09:32:03 +08:00
|
|
|
[MaxLength(10000)]
|
2025-07-14 15:10:13 +08:00
|
|
|
public string? Query { get; set; }
|
|
|
|
|
|
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
|
}
|