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; }
//批量查询,不给内容,性能考虑
//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>
/// 封面
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
//私有需要判断code权限
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.;
Introduction = "";
Cover = null;
this.Title = DiscussConst.;
this.Introduction = "";
this.Cover = null;
//被禁止
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; }
//是否置顶默认false
@@ -25,12 +25,12 @@ namespace Yi.Furion.Core.Bbs.Dtos.Discuss
/// <summary>
/// 封面
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
//是否私有默认false
public bool IsPrivate { get; set; }
//私有需要判断code权限
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>
/// ·âÃæ
/// </summary>
public string Cover { get; set; }
public string? Cover { get; set; }
}
}