Files
Yi.Admin/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application.Contracts/Dtos/Discuss/DiscussGetOutputDto.cs

74 lines
2.4 KiB
C#
Raw Normal View History

2023-12-11 09:55:12 +08:00
using Volo.Abp.Application.Dtos;
using Yi.Framework.Bbs.Application.Contracts.Dtos.BbsUser;
2025-01-19 15:17:48 +08:00
using Yi.Framework.Bbs.Application.Contracts.Dtos.DiscussLable;
2024-01-04 20:36:54 +08:00
using Yi.Framework.Bbs.Application.Contracts.Dtos.Plate;
2025-01-19 18:40:42 +08:00
using Yi.Framework.Bbs.Domain.Shared.Consts;
2023-12-11 09:55:12 +08:00
using Yi.Framework.Bbs.Domain.Shared.Enums;
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
2023-04-15 22:44:33 +08:00
2023-12-11 09:55:12 +08:00
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Discuss
2023-04-15 22:44:33 +08:00
{
2023-12-11 09:55:12 +08:00
public class DiscussGetOutputDto : EntityDto<Guid>
2023-04-15 22:44:33 +08:00
{
2023-12-19 13:05:03 +08:00
/// <summary>
2025-01-19 15:17:48 +08:00
/// 是否禁止评论创建功能
2023-12-19 13:05:03 +08:00
/// </summary>
public bool IsDisableCreateComment { get; set; }
2023-04-15 22:44:33 +08:00
public string Title { get; set; }
2023-04-20 23:08:21 +08:00
public string? Introduction { get; set; }
2023-04-15 22:44:33 +08:00
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
public string Content { get; set; }
2023-04-20 23:08:21 +08:00
public string? Color { get; set; }
2023-04-15 22:44:33 +08:00
2023-12-11 09:55:12 +08:00
public Guid PlateId { get; set; }
2025-01-19 15:17:48 +08:00
//是否置顶默认false
2023-04-15 22:44:33 +08:00
public bool IsTop { get; set; }
2025-04-12 23:18:06 +08:00
/// <summary>
/// 主题类型
/// </summary>
public DiscussTypeEnum DiscussType { get; set; }
2023-04-15 22:44:33 +08:00
/// <summary>
2025-01-19 15:17:48 +08:00
/// 封面
2023-04-15 22:44:33 +08:00
/// </summary>
2023-04-20 23:08:21 +08:00
public string? Cover { get; set; }
2025-01-19 15:17:48 +08:00
//是否私有默认false
2023-04-15 22:44:33 +08:00
public bool IsPrivate { get; set; }
2025-01-19 15:17:48 +08:00
//私有需要判断code权限
2023-04-20 23:08:21 +08:00
public string? PrivateCode { get; set; }
2023-04-15 22:44:33 +08:00
public DateTime CreationTime { get; set; }
public DiscussPermissionTypeEnum PermissionType { get; set; }
2023-12-24 11:56:44 +08:00
public bool IsAgree { get; set; } = false;
2025-01-19 18:40:42 +08:00
public List<string> PermissionRoleCodes { get; set; } = new List<string>();
public BbsUserGetListOutputDto User { get; set; }
2024-01-04 20:36:54 +08:00
public PlateGetOutputDto Plate { get; set; }
2025-01-19 15:17:48 +08:00
2025-01-19 18:40:42 +08:00
public List<Guid>? DiscussLableIds { get; set; } = new List<Guid>();
2025-01-19 15:17:48 +08:00
public List<DiscussLableGetOutputDto> Lables { get; set; } =new List<DiscussLableGetOutputDto>();
2025-01-19 18:40:42 +08:00
public bool HasPermission { get;internal set; }
2025-04-12 23:18:06 +08:00
public DiscussRewardGetOutputDto? RewardData { get; set; }
2025-01-19 18:40:42 +08:00
/// <summary>
/// 设置权限
/// </summary>
public void SetPassPermission()
{
HasPermission = true;
}
/// <summary>
/// 设置无权限
/// </summary>
public void SetNoPermission()
{
HasPermission = false;
Content=DiscussConst.Privacy;
}
2023-04-15 22:44:33 +08:00
}
}