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

@@ -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; }
}
}