using Yi.Framework.Bbs.Domain.Shared.Enums;
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Discuss
{
///
/// Discuss输入创建对象
///
public class DiscussCreateInput
{
public DiscussTypeEnum DiscussType { get; set; }
public string Title { 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 Guid PlateId { get; set; }
///
/// 默认公开
///
public DiscussPermissionTypeEnum PermissionType { get; set; } = DiscussPermissionTypeEnum.Public;
///
/// 封面
///
public string? Cover { get; set; }
public int OrderNum { get; set; } = 0;
///
/// 是否禁止评论创建功能
///
public bool IsDisableCreateComment { get; set; }
///
/// 标签
///
public List? DiscussLableIds { get; set; }
///
/// 角色
///
public List? PermissionRoleCodes { get; set; } = new List();
///
/// 悬赏类型主题
///
public DiscussRewardCreateInput? RewardData { get; set; }
}
public class DiscussRewardCreateInput
{
///
/// 悬赏最小价值
///
public decimal MinValue { get; set; }
///
/// 悬赏最大价值
///
public decimal? MaxValue { get; set; }
///
/// 作者联系方式
///
public string Contact { get; set; }
}
}