using System.ComponentModel.DataAnnotations;
namespace CampusErrand.Models.Dtos;
///
/// 发起改价请求
///
public class PriceChangeRequest
{
/// 改价类型:Commission 或 GoodsAmount
[Required(ErrorMessage = "改价类型不能为空")]
public string ChangeType { get; set; } = string.Empty;
/// 新价格
public decimal NewPrice { get; set; }
}
///
/// 响应改价请求
///
public class RespondPriceChangeRequest
{
/// 操作:Accepted 或 Rejected
[Required(ErrorMessage = "操作不能为空")]
public string Action { get; set; } = string.Empty;
}
///
/// 改价响应
///
public class PriceChangeResponse
{
public int Id { get; set; }
public int OrderId { get; set; }
public int InitiatorId { get; set; }
public string ChangeType { get; set; } = string.Empty;
public decimal OriginalPrice { get; set; }
public decimal NewPrice { get; set; }
/// 差额(正数=补缴,负数=退款)
public decimal Difference { get; set; }
public string Status { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; }
}