using FuelServer.Core.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fuel.Core.Transactions.Dto { public class TransactionsInput { /// /// 订单id /// public int? TransactionID { get; set; } /// /// 订单状态 /// public int? type { get; set; } /// /// 小程序用户id /// public int? MiniProgramID { get; set; } /// /// 开始时间 /// public DateTime? TransactionSTime { get; set; } /// /// 结束时间 /// public DateTime? TransactionETime { get; set; } /// /// 油品 /// public string Product { get; set; } /// /// 支付类型 /// public string paytype { get; set; } /// /// 枪号 /// public int? NozzleId { get; set; } public static transactionsORDERSTATUS ToTransactionsORDERSTATUS(int value) { if (Enum.IsDefined(typeof(transactionsORDERSTATUS), value)) { return (transactionsORDERSTATUS)value; } else { throw new ArgumentException("Invalid order type value.", nameof(value)); } } } }