模板重新生成可空类型

This commit is contained in:
陈淳
2023-01-06 11:12:47 +08:00
parent 576397a042
commit 29df3d658b
52 changed files with 573 additions and 478 deletions

View File

@@ -8,7 +8,7 @@ namespace Yi.Framework.DtoModel.Base.Dto
{
public class GiveRoleSetMenuDto
{
public List<long> RoleIds { get; set; }
public List<long> MenuIds { get; set; }
public List<long>? RoleIds { get; set; }
public List<long>? MenuIds { get; set; }
}
}

View File

@@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.Base.Dto
{
public class RoleInfoDto
{
public RoleEntity Role { get; set; }
public List<long> DeptIds { get; set; }
public List<long> MenuIds { get; set; }
public RoleEntity Role { get; set; }=new ();
public List<long> DeptIds { get; set; } = new ();
public List<long> MenuIds { get; set; } = new ();
}
}

View File

@@ -8,7 +8,7 @@ namespace Yi.Framework.DtoModel.Base.Dto
{
public class UpdatePasswordDto
{
public string NewPassword { get; set; }
public string OldPassword { get; set; }
public string NewPassword { get; set; }=string.Empty;
public string OldPassword { get; set; } = string.Empty;
}
}