91 lines
2.6 KiB
C#
91 lines
2.6 KiB
C#
using YD_Event.Core.Enum;
|
|
|
|
namespace YD_Event.Application.Order.Dtos;
|
|
|
|
public class OrderListOutput
|
|
{
|
|
public long Id { get; set; }
|
|
public string OrderNo { get; set; }
|
|
public string UnitName { get; set; } // Merchant Name or "/"
|
|
public string EventName { get; set; }
|
|
public string OrderType { get; set; } // Display text
|
|
public string RelatedOrderNo { get; set; }
|
|
public string PaymentMethod { get; set; } // Display text
|
|
public string PaymentProofUrl { get; set; }
|
|
public string RegistrationMode { get; set; } // Display text
|
|
public string ContactName { get; set; }
|
|
public string ContactPhone { get; set; }
|
|
public decimal OriginalAmount { get; set; }
|
|
public decimal DiscountAmount { get; set; }
|
|
public decimal ActualAmount { get; set; } // Paid or Refunded
|
|
public OrderStatus OrderStatus { get; set; }
|
|
public DateTime CreatedTime { get; set; }
|
|
public DateTime? PaymentTime { get; set; }
|
|
public decimal? RefundAmount { get; set; }
|
|
public DateTime? RefundTime { get; set; }
|
|
}
|
|
|
|
public class OrderDetailOutput
|
|
{
|
|
public long Id { get; set; }
|
|
public string OrderNo { get; set; }
|
|
public int OrderType { get; set; }
|
|
public OrderStatus OrderStatus { get; set; }
|
|
|
|
// Event Info
|
|
public string EventName { get; set; }
|
|
public string ProjectNames { get; set; } // Comma separated or list
|
|
public string GroupNames { get; set; }
|
|
|
|
// Registration Info
|
|
public List<OrderItemDto> Items { get; set; }
|
|
public List<OrderPersonDto> Persons { get; set; }
|
|
|
|
// Payment Info
|
|
public string PaymentMethod { get; set; }
|
|
public string PaymentProofUrl { get; set; }
|
|
public decimal OriginalAmount { get; set; }
|
|
public decimal DiscountAmount { get; set; }
|
|
public decimal ActualAmount { get; set; }
|
|
public DateTime CreatedTime { get; set; }
|
|
}
|
|
|
|
public class OrderItemDto
|
|
{
|
|
public string ProjectName { get; set; }
|
|
public string GroupName { get; set; }
|
|
public decimal Fee { get; set; }
|
|
}
|
|
|
|
public class OrderPersonDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string GroupName { get; set; }
|
|
// Add other fields as needed
|
|
}
|
|
|
|
public class UpdateOrderStatusInput
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 支付状态
|
|
/// </summary>
|
|
public int PaymentStatus { get; set; }
|
|
}
|
|
|
|
public class RefundOrderInput
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 退款金额
|
|
/// </summary>
|
|
public decimal RefundAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 退款原因
|
|
/// </summary>
|
|
public string Reason { get; set; }
|
|
}
|