using QYZH.InteractiveMagazine.Models.Dto.CheckIn;
using QYZH.InteractiveMagazine.Models.Dto.Compensation;
using QYZH.InteractiveMagazine.Models.Dto.Points;
namespace QYZH.InteractiveMagazine.Models.Dto;
///
/// Users查询输入DTO
///
public class UsersQueryInput : PageQueryModel
{
///
/// 微信用户ID
///
public string? WxUserId { get; set; }
}
///
/// Users输出DTO (基本信息)
///
public class UsersOutput
{
///
/// 主键ID
///
public long Id { get; set; }
///
/// 微信用户ID
///
public string WxUserId { get; set; } = string.Empty;
///
/// 昵称
///
public string Name { get; set; } = string.Empty;
///
/// 头像地址
///
public string? AvatarUrl { get; set; }
///
/// 积分余额
///
public int Points { get; set; }
///
/// 用户类型
///
public string Type { get; set; } = string.Empty;
///
/// 状态
///
public string Status { get; set; } = string.Empty;
///
/// 当前成长值
///
public int GrowthPoints { get; set; }
}
///
/// 用户详情输出DTO(包含基本信息、积分记录、签到记录、补偿任务、期刊列表)
///
public class UserDetailOutput
{
///
/// 用户基本信息
///
public UsersOutput BasicInfo { get; set; } = new();
///
/// 积分使用记录(最近20条)
///
public List PointsRecords { get; set; } = [];
///
/// 签到记录(最近30条)
///
public List CheckInRecords { get; set; } = [];
///
/// 失败的补偿任务(需要手动处理)
///
public List FailedCompensationTasks { get; set; } = [];
///
/// 用户拥有的期刊列表
///
public List Journals { get; set; } = [];
}
///
/// 用户期刊项输出DTO
///
public class UserJournalItemOutput
{
///
/// 绑定记录Id
///
public long BindId { get; set; }
///
/// 期刊Id
///
public long JournalId { get; set; }
///
/// 期刊标题
///
public string JournalTitle { get; set; } = string.Empty;
///
/// 期刊封面
///
public string? CoverImageUrl { get; set; }
///
/// 绑定类型: Read, Favorite, Subscribe
///
public string Type { get; set; } = string.Empty;
///
/// 绑定状态
///
public string Status { get; set; } = string.Empty;
///
/// 绑定时间
///
public DateTime CreatedAt { get; set; }
}
///
/// 更新用户状态输入DTO
///
public class UpdateUserStatusInput
{
///
/// 用户状态: 1-启用, 2-冻结
///
public int Status { get; set; }
}