2026-03-14 06:24:00 +08:00

125 lines
3.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
using SqlSugar;
namespace YD_Event.Application.Client.Dtos;
/// <summary>
/// 通用分页输入
/// </summary>
public class MyPageInput : Pagination
{
}
/// <summary>
/// 个人中心-首页信息
/// </summary>
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; }
/// <summary>
/// 实名认证状态:0-未认证,1-已认证,2-审核中
/// </summary>
public int AuthStatus { get; set; }
}
/// <summary>
/// 个人中心-实名认证信息
/// </summary>
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; }
}
/// <summary>
/// 提交实名认证
/// </summary>
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; }
}
/// <summary>
/// 个人中心-我的团队
/// </summary>
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; } // 是否队长
}
/// <summary>
/// 个人中心-我的证书
/// </summary>
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; }
}
/// <summary>
/// 个人中心-积分记录
/// </summary>
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-消耗
}
/// <summary>
/// 个人中心-我的订单
/// </summary>
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; }
}
/// <summary>
/// 个人中心-参赛记录
/// </summary>
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; } // 报名项目集合
}