develop #5
@ -25,56 +25,56 @@ namespace AGSS.Migrations
 | 
				
			|||||||
            modelBuilder.Entity("AGSS.Models.Entities.MenuModel", b =>
 | 
					            modelBuilder.Entity("AGSS.Models.Entities.MenuModel", b =>
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    b.Property<string>("Uuid")
 | 
					                    b.Property<string>("Uuid")
 | 
				
			||||||
                        .HasMaxLength(50)
 | 
					                        .HasMaxLength(150)
 | 
				
			||||||
                        .HasColumnType("character varying(50)");
 | 
					                        .HasColumnType("character varying(150)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Adaptability")
 | 
					                    b.Property<string>("Adaptability")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(20)
 | 
					                        .HasMaxLength(120)
 | 
				
			||||||
                        .HasColumnType("character varying(20)");
 | 
					                        .HasColumnType("character varying(120)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Component")
 | 
					                    b.Property<string>("Component")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(200)
 | 
					                        .HasMaxLength(1200)
 | 
				
			||||||
                        .HasColumnType("character varying(200)");
 | 
					                        .HasColumnType("character varying(1200)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<DateTime>("CreateTime")
 | 
					                    b.Property<DateTime>("CreateTime")
 | 
				
			||||||
                        .HasColumnType("timestamp with time zone");
 | 
					                        .HasColumnType("timestamp with time zone");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Icon")
 | 
					                    b.Property<string>("Icon")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(100)
 | 
					                        .HasMaxLength(300)
 | 
				
			||||||
                        .HasColumnType("character varying(100)");
 | 
					                        .HasColumnType("character varying(300)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Label")
 | 
					                    b.Property<string>("Label")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(100)
 | 
					                        .HasMaxLength(300)
 | 
				
			||||||
                        .HasColumnType("character varying(100)");
 | 
					                        .HasColumnType("character varying(300)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("MenuCode")
 | 
					                    b.Property<string>("MenuCode")
 | 
				
			||||||
                        .HasMaxLength(500)
 | 
					                        .HasMaxLength(1000)
 | 
				
			||||||
                        .HasColumnType("character varying(500)");
 | 
					                        .HasColumnType("character varying(1000)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("ParentId")
 | 
					                    b.Property<string>("ParentId")
 | 
				
			||||||
                        .HasMaxLength(50)
 | 
					                        .HasMaxLength(150)
 | 
				
			||||||
                        .HasColumnType("character varying(50)");
 | 
					                        .HasColumnType("character varying(150)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Path")
 | 
					                    b.Property<string>("Path")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(200)
 | 
					                        .HasMaxLength(300)
 | 
				
			||||||
                        .HasColumnType("character varying(200)");
 | 
					                        .HasColumnType("character varying(300)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Query")
 | 
					                    b.Property<string>("Query")
 | 
				
			||||||
                        .HasMaxLength(1000)
 | 
					                        .HasMaxLength(10000)
 | 
				
			||||||
                        .HasColumnType("character varying(1000)");
 | 
					                        .HasColumnType("character varying(10000)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<int>("Sort")
 | 
					                    b.Property<int>("Sort")
 | 
				
			||||||
                        .HasColumnType("integer");
 | 
					                        .HasColumnType("integer");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("Status")
 | 
					                    b.Property<string>("Status")
 | 
				
			||||||
                        .IsRequired()
 | 
					                        .IsRequired()
 | 
				
			||||||
                        .HasMaxLength(1)
 | 
					                        .HasMaxLength(20)
 | 
				
			||||||
                        .HasColumnType("character varying(1)");
 | 
					                        .HasColumnType("character varying(20)");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<DateTime?>("UpdateTime")
 | 
					                    b.Property<DateTime?>("UpdateTime")
 | 
				
			||||||
                        .HasColumnType("timestamp with time zone");
 | 
					                        .HasColumnType("timestamp with time zone");
 | 
				
			||||||
 | 
				
			|||||||
@ -5,36 +5,36 @@ namespace AGSS.Models.Entities;
 | 
				
			|||||||
public class MenuModel
 | 
					public class MenuModel
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    [Key]
 | 
					    [Key]
 | 
				
			||||||
    [MaxLength(50)]
 | 
					    [MaxLength(150)]
 | 
				
			||||||
    public string Uuid { get; set; } = string.Empty;
 | 
					    public string Uuid { get; set; } = string.Empty;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(50)]
 | 
					    [MaxLength(150)]
 | 
				
			||||||
    public string? ParentId { get; set; }
 | 
					    public string? ParentId { get; set; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(200)]
 | 
					    [MaxLength(300)]
 | 
				
			||||||
    public string Path { get; set; } = string.Empty;
 | 
					    public string Path { get; set; } = string.Empty;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(100)]
 | 
					    [MaxLength(300)]
 | 
				
			||||||
    public string Label { get; set; } = string.Empty;
 | 
					    public string Label { get; set; } = string.Empty;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(100)]
 | 
					    [MaxLength(300)]
 | 
				
			||||||
    public string Icon { get; set; } = string.Empty;
 | 
					    public string Icon { get; set; } = string.Empty;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(500)]
 | 
					    [MaxLength(1000)]
 | 
				
			||||||
    public string? MenuCode { get; set; }
 | 
					    public string? MenuCode { get; set; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(20)]
 | 
					    [MaxLength(120)]
 | 
				
			||||||
    public string Adaptability { get; set; } = "pc";
 | 
					    public string Adaptability { get; set; } = "pc";
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(200)]
 | 
					    [MaxLength(1200)]
 | 
				
			||||||
    public string Component { get; set; } = string.Empty;
 | 
					    public string Component { get; set; } = string.Empty;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public int Sort { get; set; }
 | 
					    public int Sort { get; set; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(1)]
 | 
					    [MaxLength(20)]
 | 
				
			||||||
    public string Status { get; set; } = "1";
 | 
					    public string Status { get; set; } = "1";
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    [MaxLength(1000)]
 | 
					    [MaxLength(10000)]
 | 
				
			||||||
    public string? Query { get; set; }
 | 
					    public string? Query { get; set; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public DateTime CreateTime { get; set; } = DateTime.Now;
 | 
					    public DateTime CreateTime { get; set; } = DateTime.Now;
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,7 @@ public class MenuService
 | 
				
			|||||||
                Sort = request.Sort,
 | 
					                Sort = request.Sort,
 | 
				
			||||||
                Status = request.Status,
 | 
					                Status = request.Status,
 | 
				
			||||||
                Query = request.Query,
 | 
					                Query = request.Query,
 | 
				
			||||||
                CreateTime = DateTime.Now
 | 
					                CreateTime = DateTime.UtcNow
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            _context.Menus.Add(menu);
 | 
					            _context.Menus.Add(menu);
 | 
				
			||||||
@ -82,7 +82,7 @@ public class MenuService
 | 
				
			|||||||
            menu.Sort = request.Sort;
 | 
					            menu.Sort = request.Sort;
 | 
				
			||||||
            menu.Status = request.Status;
 | 
					            menu.Status = request.Status;
 | 
				
			||||||
            menu.Query = request.Query;
 | 
					            menu.Query = request.Query;
 | 
				
			||||||
            menu.UpdateTime = DateTime.Now;
 | 
					            menu.UpdateTime = DateTime.UtcNow;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            await _context.SaveChangesAsync();
 | 
					            await _context.SaveChangesAsync();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -126,7 +126,7 @@ public class MenuService
 | 
				
			|||||||
                Sort = request.Sort,
 | 
					                Sort = request.Sort,
 | 
				
			||||||
                Status = request.Status,
 | 
					                Status = request.Status,
 | 
				
			||||||
                Query = request.Query,
 | 
					                Query = request.Query,
 | 
				
			||||||
                CreateTime = DateTime.Now
 | 
					                CreateTime = DateTime.UtcNow
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            _context.Menus.Add(menu);
 | 
					            _context.Menus.Add(menu);
 | 
				
			||||||
@ -174,7 +174,7 @@ public class MenuService
 | 
				
			|||||||
            menu.Sort = request.Sort;
 | 
					            menu.Sort = request.Sort;
 | 
				
			||||||
            menu.Status = request.Status;
 | 
					            menu.Status = request.Status;
 | 
				
			||||||
            menu.Query = request.Query;
 | 
					            menu.Query = request.Query;
 | 
				
			||||||
            menu.UpdateTime = DateTime.Now;
 | 
					            menu.UpdateTime = DateTime.UtcNow;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            await _context.SaveChangesAsync();
 | 
					            await _context.SaveChangesAsync();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user