using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
using SqlSugar;
namespace YD_Event.Application.Client.Dtos;
///
/// 通用分页输入
///
public class MyPageInput : Pagination
{
}
///
/// 个人中心-首页信息
///
public class MyProfileDto
{
public string NickName { get; set; }
public string Avatar { get; set; }
public string Mobile { get; set; }
public int Points { get; set; }
public int CertificateCount { get; set; }
///
/// 实名认证状态:0-未认证,1-已认证,2-审核中
///
public int AuthStatus { get; set; }
}
///
/// 个人中心-实名认证信息
///
public class MyAuthInfoDto
{
public string Name { get; set; }
public string Mobile { get; set; }
public string IdCardNumber { get; set; }
public string IdCardImageUrl { get; set; } // 正面
public string IdCardBackImageUrl { get; set; } // 反面
public AuditStatus AuditStatus { get; set; }
public string? AuditRemark { get; set; }
}
///
/// 提交实名认证
///
public class SubmitAuthInput
{
[Required(ErrorMessage = "姓名不能为空")]
public string Name { get; set; }
[Required(ErrorMessage = "手机号不能为空")]
public string Mobile { get; set; }
[Required(ErrorMessage = "身份证号不能为空")]
public string IdCardNumber { get; set; }
public string? IdCardImageUrl { get; set; }
public string? IdCardBackImageUrl { get; set; }
}
///
/// 个人中心-我的团队
///
public class MyTeamDto
{
public long Id { get; set; }
public string Name { get; set; }
public DateTime EstablishedDate { get; set; }
public int MemberCount { get; set; } // 队员数量
public bool IsLeader { get; set; } // 是否队长
}
///
/// 个人中心-我的证书
///
public class MyCertificateDto
{
public long Id { get; set; }
public string EventName { get; set; } // 赛事名称 (需要联表查)
public string ProjectName { get; set; } // 项目名称
public string CertificateName { get; set; } // 证书名称
public string CertificateUrl { get; set; }
public DateTime? IssuedTime { get; set; }
}
///
/// 个人中心-积分记录
///
public class MyPointsRecordDto
{
public long Id { get; set; }
public string Title { get; set; } // 标题:如 "参加xxx赛事获得"
public decimal Points { get; set; }
public DateTime CreatedTime { get; set; }
public int Type { get; set; } // 1-获取,2-消耗
}
///
/// 个人中心-我的订单
///
public class MyOrderDto
{
public long Id { get; set; }
public string OrderNo { get; set; }
public string EventName { get; set; }
public decimal Amount { get; set; }
public int Status { get; set; } // OrderStatus
public DateTime CreatedTime { get; set; }
}
///
/// 个人中心-参赛记录
///
public class MyRegistrationDto
{
public long Id { get; set; }
public string EventName { get; set; }
public string TeamName { get; set; } // 个人赛则为个人
public int Status { get; set; } // RegistrationStatus
public DateTime RegistrationTime { get; set; }
public string ProjectNames { get; set; } // 报名项目集合
}