fix:完成非空问题修复

This commit is contained in:
橙子
2023-04-20 23:08:21 +08:00
parent b55a45baa2
commit c943c1fc74
68 changed files with 206 additions and 209 deletions

View File

@@ -12,7 +12,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Banner
public class BannerCreateInputVo
{
public string Name { get; set; }
public string Logo { get; set; }
public string Color { get; set; }
public string? Logo { get; set; }
public string? Color { get; set; }
}
}

View File

@@ -7,8 +7,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.Banner
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Color { get; set; }
public string? Logo { get; set; }
public string? Color { get; set; }
public DateTime CreationTime { get; set; }
}

View File

@@ -7,8 +7,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.Banner
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Color { get; set; }
public string? Logo { get; set; }
public string? Color { get; set; }
public DateTime CreationTime { get; set; }
}

View File

@@ -2,8 +2,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.Banner
{
public class BannerUpdateInputVo
{
public string Name { get; set; }
public string Logo { get; set; }
public string Color { get; set; }
public string? Name { get; set; }
public string? Logo { get; set; }
public string? Color { get; set; }
}
}

View File

@@ -5,7 +5,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Comment
public class CommentGetListInputVo
{
public DateTime? creationTime { get; set; }
public string Content { get; set; }
public string? Content { get; set; }
//Ӧ<><D3A6>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
public long? DiscussId { get; set; }

View File

@@ -13,11 +13,11 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
public class DiscussCreateInputVo
{
public string Title { get; set; }
public string Types { get; set; }
public string Introduction { get; set; }
public string? Types { get; set; }
public string? Introduction { get; set; }
public DateTime? CreateTime { get; set; } = DateTime.Now;
public string Content { get; set; }
public string Color { get; set; }
public string? Color { get; set; }
public long PlateId { get; set; }
@@ -28,6 +28,6 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
/// <summary>
/// 封面
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
}
}

View File

@@ -16,14 +16,14 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
public long Id { get; set; }
public string Title { get; set; }
public string Types { get; set; }
public string Introduction { get; set; }
public string? Introduction { get; set; }
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD>ܿ<EFBFBD><DCBF><EFBFBD>
//public string Content { get; set; }
public string Color { get; set; }
public string? Color { get; set; }
public long PlateId { get; set; }
@@ -38,10 +38,10 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
//˽<><CBBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ж<EFBFBD>codeȨ<65><C8A8>
public string PrivateCode { get; set; }
public string? PrivateCode { get; set; }
public DateTime CreationTime { get; set; }
public List<long> PermissionUserIds { get; set; }
@@ -50,11 +50,11 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
public void SetBan()
{
Title = DiscussConst.˽<EFBFBD><EFBFBD>;
Introduction = "";
Cover = null;
this.Title = DiscussConst.˽<EFBFBD><EFBFBD>;
this.Introduction = "";
this.Cover = null;
//<2F><><EFBFBD><EFBFBD>ֹ
IsBan = true;
this.IsBan = true;
}
}

View File

@@ -11,12 +11,12 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
public long Id { get; set; }
public string Title { get; set; }
public string Types { get; set; }
public string Introduction { get; set; }
public string? Types { get; set; }
public string? Introduction { get; set; }
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
public string Content { get; set; }
public string Color { get; set; }
public string? Color { get; set; }
public long PlateId { get; set; }
//<2F>Ƿ<EFBFBD><C7B7>ö<EFBFBD><C3B6><EFBFBD>Ĭ<EFBFBD><C4AC>false
@@ -25,12 +25,12 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
//<2F>Ƿ<EFBFBD>˽<EFBFBD>У<EFBFBD>Ĭ<EFBFBD><C4AC>false
public bool IsPrivate { get; set; }
//˽<><CBBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ж<EFBFBD>codeȨ<65><C8A8>
public string PrivateCode { get; set; }
public string? PrivateCode { get; set; }
public DateTime CreationTime { get; set; }
public DiscussPermissionTypeEnum PermissionType { get; set; }

View File

@@ -6,12 +6,12 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
public class DiscussUpdateInputVo
{
public string Title { get; set; }
public string Types { get; set; }
public string Introduction { get; set; }
public string? Types { get; set; }
public string? Introduction { get; set; }
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
public string Content { get; set; }
public string Color { get; set; }
public string? Color { get; set; }
public List<long> PermissionUserIds { get; set; }
@@ -20,6 +20,6 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.MyType
public class MyTypeCreateInputVo
{
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
}
}

View File

@@ -12,8 +12,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.MyType
{
public long Id { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
public long UserId { get; set; }
}
}

View File

@@ -6,8 +6,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.MyType
{
public long Id { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
public long UserId { get; set; }
}
}

View File

@@ -6,8 +6,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.MyType
{
public long Id { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
public long UserId { get; set; }
}
}

View File

@@ -10,8 +10,8 @@ namespace Yi.Furion.Core.Bbs.Dtos.MyType
{
public long Id { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
public long UserId { get; set; }
}
}

View File

@@ -13,7 +13,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Plate
{
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
}
}

View File

@@ -6,7 +6,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Plate
{
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
}
}

View File

@@ -14,7 +14,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Plate
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
}
}

View File

@@ -6,7 +6,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Plate
{
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace Yi.Furion.Core.Bbs.Dtos.Plate
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
}
}

View File

@@ -12,8 +12,8 @@ namespace Yi.Furion.Core.Bbs.Entities
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Color { get; set; }
public string? Logo { get; set; }
public string? Color { get; set; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; }

View File

@@ -21,20 +21,20 @@ namespace Yi.Furion.Core.Bbs.Entities
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
public string Title { get; set; }
public string Types { get; set; }
public string Introduction { get; set; }
public string? Title { get; set; }
public string? Types { get; set; }
public string? Introduction { get; set; }
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
/// <summary>
/// 封面
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
[SugarColumn(Length = 999999)]
public string Content { get; set; }
public string Color { get; set; }
public string? Color { get; set; }
public bool IsDeleted { get; set; }
@@ -58,6 +58,6 @@ namespace Yi.Furion.Core.Bbs.Entities
/// 当PermissionType为部分用户时候以下列表中的用户+创建者 代表拥有权限
/// </summary>
[SugarColumn(IsJson = true)]//使用json处理
public List<long> PermissionUserIds { get; set; }
public List<long>? PermissionUserIds { get; set; }
}
}

View File

@@ -12,8 +12,8 @@ namespace Yi.Furion.Core.Bbs.Entities
public bool IsDeleted { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public string BackgroundColor { get; set; }
public string? Color { get; set; }
public string? BackgroundColor { get; set; }
public long UserId { get; set; }
}

View File

@@ -11,8 +11,8 @@ namespace Yi.Furion.Core.Bbs.Entities
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
public string Name { get; set; }
public string Logo { get; set; }
public string Introduction { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
public bool IsDeleted { get; set; }
}
}