using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.Utils.Converters;
using Kurisu.AspNetCore.Utils.Extensions;
using Newtonsoft.Json;
namespace Dlhis.Canteen.Order.Response;
public class OrderBookingResponse
{
///
/// 订单号
///
public string No { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 配送地址
///
public string DeliveryAddress { get; set; }
///
/// 订单金额
///
public decimal Amount { get; set; }
///
/// 工号
///
public string UserCode { get; set; }
///
/// 用户
///
public string UserName { get; set; }
///
/// 部门名称
///
public string DepartmentName { get; set; }
///
/// 餐次
///
public ShiftEnumType? ShiftType { get; set; }
///
/// 餐次
///
public string ShiftTypeDesc => ShiftType.GetDescription();
///
/// 下单时间
///
public DateTime CreateTime { get; set; }
public CanteenOrderStatusEnumType Status { get; set; }
public string StatusDesc => Status.GetDescription();
///
/// 订餐日期
///
[JsonConverter(typeof(ToDateJsonConverter))]
public DateTime BookingDate { get; set; }
///
/// 支付方式
///
public BalanceRecordSourceEnumType Source { get; set; }
public string SourceDesc => Source.GetDescription();
///
/// 汇总数量
///
public int TotalNumber { get; set; }
public object DishesInfos { get; set; }
}