using BPA.KitChen.GroupMealOrder.Application.BaseDto;
using BPA.KitChen.GroupMealOrder.Core.Common.Const;
using BPA.KitChen.GroupMealOrder.Core.Entity;
using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Dtos
{
///
///
///
public class WeighOrderDto: BPA_WeighOrder
{
///
/// 商品信息
///
public List GoodsInfo { get; set; }
///
/// 餐盘信息
///
public List DiningPlateInfo { get; set; }
///
/// 会员信息
///
public MemberInfoDto MemberInfo { get; set; }
}
public class WeighOrderGoodsDto
{
///
/// 主键 Guid
///
public string Id { get; set; } = Guid.NewGuid().ToString();
public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
///
/// 订单id
///
public string OrderId { get; set; }
///
/// 商品名称
///
public string GoodsId { get; set; }
///
/// 商品名称
///
public string GoodsName { get; set; }
public decimal TotalAmount { get; set; }
///
/// 商品商品重量
///
public decimal GoodsWeight { get; set; }
///
/// 商品属性
///
public List? GoodsAttribute { get; set; }
}
public class WeighOrderDiningPlateDto
{
///
/// 订单编号
///
public string OrderId { get; set; }
public string DiningPlateId { get; set; }
public string QRCode { get; set; }
public string ChipCode { get; set; }
}
public class MemberInfoDto
{
///
/// 是否会员
///
public bool IsMember { get; set; }
///
/// 会员名称
///
public string Name { get; set; }
}
public class GoogsAttribute
{
public string AttributeId { get; set; }
public string AttributeName { get; set; }
}
public class GetWeighOrderByOrderIdInputDto
{
///
/// orderId
///
public string OrderId { get; set; }
}
public class GetWeighOrderByChipCodeInputDto
{
///
/// 芯片码
///
public string ChipCode { get; set; }
}
public class WeighOrderCreteDto
{
///
/// 创建人(会员Id)
///
public string CreateId { get; set; }
public string QRCode { get; set; }
}
public class WeighOrderGoodsCreateDto
{
///
/// 商品名称
///
public string GoodsId { get; set; }
///
/// 商品名称
///
public string GoodsName { get; set; }
///
/// 商品商品重量
///
public decimal GoodsWeight { get; set; }
public string OrderId { get; set; }
}
public class WeighOrderDiningPlateCreateDto
{
///
/// 订单编号
///
public string OrderId { get; set; }
public string DiningPlateId { get; set; }
///
/// 二维码
///
public string QRCode { get; set; }
///
/// 芯片码
///
public string ChipCode { get; set; }
}
public class WeighOrderUpdateDto
{
public string OrderId { get; set; }
public int PayStates { get; set; }
public int States { get; set; }
}
public class GetWeighOrderPageByOpenIdInputDto: PageInputBase
{
public string OpenId { get; set; }
}
public class GetWeighOrderByOpenIdInputDto
{
public string OpenId { get; set; }
}
public class GetGoodsListInputDto : PageInputBase
{
public int? states { get; set; }
public int? payStates { get; set; }
}
}