/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System.Collections.Generic;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.UI;
using SqlSugar;
namespace CoreCms.Net.Model.ViewModels.DTO
{
///
/// 购物车返回列表实体
///
public class CartDto
{
public int userId { get; set; } = 0;
///
/// 商品总金额
///
public decimal goodsAmount { get; set; }
///
/// 总金额
///
public decimal amount { get; set; }
///
/// 订单促销金额
/// 单纯的订单促销的金额
///
public decimal orderPromotionMoney { get; set; } = 0;
///
/// 商品促销金额
/// 所有的商品促销的总计
///
public decimal goodsPromotionMoney { get; set; } = 0;
///
/// 优惠券优惠金额
///
public decimal couponPromotionMoney { get; set; } = 0;
///
/// 促销列表
///
public Dictionary promotionList { get; set; } = new();
///
/// 运费
///
public decimal costFreight { get; set; } = 0;
///
/// 商品总重
///
public decimal weight { get; set; } = 0;
///
/// 优惠券
///
public List coupon { get; set; } = new();
///
/// 购物车类型
///
public int type { get; set; } = 1;
///
/// 积分
///
public int point { get; set; } = 0;
///
/// 积分可以抵扣多少金额
///
public decimal pointExchangeMoney { get; set; } = 0;
public List list { get; set; } = new();
///
/// 消息回调
///
public WebApiCallBack error { get; set; } = new();
}
public class CartProducts
{
public int id { get; set; } = 0;
public int userId { get; set; } = 0;
public int productId { get; set; } = 0;
public int nums { get; set; } = 1;
public bool isCollection { get; set; } = false;
public bool isSelect { get; set; } = false;
public int type { get; set; } = 1;
public decimal weight { get; set; } = 0;
public CoreCmsProducts products { get; set; } = new();
public CoreCmsGoods good { get; set; }
///
/// 是否定制
///
public bool isCustomizable { get; set; } = false;
///
/// 定制费用
///
public decimal CustomizableMoney { get; set; } = 0;
}
///
/// 设置购物车商品数量
///
public class FMSetCartNum
{
public int id { get; set; } = 0;
public int nums { get; set; } = 1;
}
}